--prompt-only) designed for AI coding agents to parse and act on. Combined with a team key, it enables autonomous review-fix loops — the agent reviews, applies fixes, re-reviews, and commits, all without human input in the critical path.
Supported agents
- Claude Code — native skill via the skill installer.
- Cursor — native skill.
- Codex — native skill, with Decision Memory via
notifyhooks. - Windsurf — via
--prompt-onlyoutput.
kodus review --prompt-only works out of the box.
Quickest setup
Install the CLI plus all agent skills in one shot:- Installs the
@kodus/clibinary globally. - Configures the team key in
~/.kodus/config.json. - Deploys Kodus skills to every detected agent (Claude Code, Cursor, Codex, Windsurf).
The Review-Fix Loop
Agent runs review
Agent applies fixes
The agent reads the output, decides which fixes to apply (or accepts all via
--fix), and edits files accordingly.Agent re-runs review
--fail-on error, the loop exits non-zero while there are still error-or-worse issues. The agent keeps looping; when the review comes back clean, the process exits 0 and the agent moves on.Team key authentication for agents
Team keys are strongly recommended for agents — no individual signup, no interactive login, easy rotation, per-device tracking.Output flags that matter
| Flag | Use |
|---|---|
--prompt-only | Compact structured output for parsing. Use in the review loop. |
--agent | Enforces deterministic machine-readable output on any command. |
--format json | Full JSON payload. Pair with --agent for strict parsers. |
--fail-on | Exit code gate. The loop keeps going while this is non-zero. |
--fields <csv> | Narrow the JSON/agent payload (e.g. summary,issues.file,issues.severity). Useful to keep agent context windows small. |
Combining with Decision Memory
Pair agent loops with Decision Memory to capture the reasoning behind every agent turn as structured files in your repo. The loop handles what changed; memory captures why.Example: Claude Code loop with business validation
Related
Decision Memory
Persist agent decisions as structured files in your repo.
Concepts
Review modes, diff modes, and agent output flags.
Command Reference
Full flag listing.
Troubleshooting
Agent loop issues, hook problems, timeouts.