--prompt-only) for AI coding agents to parse and act on. Combined with a team key, it lets an agent review its own changes, fix what the review finds, and review again, with no human in the loop. The CLI also installs Kodus skills into the agents on your machine, so an agent knows which command to run.
Supported agents
kodus skills install finds an agent by its config folder, in the current directory and in your home folder, and writes the Kodus skills there. It detects:
For any other agent that can run shell commands and read text,
kodus review --prompt-only works without a skill.
Quickest setup
Install the CLI plus the skills in one shot:KODUS_TEAM_KEY in the environment where your agent runs. For a self-hosted instance, also set KODUS_API_URL. To add or refresh skills later, run kodus skills install or kodus skills resync.
The skills
Skills that change rules, settings, or agents need a login, or a team key that allows it. See Authentication Modes.
The Review-Fix Loop
1
Agent runs review
REVIEW_ANALYSIS_COMPLETE and ends with END_REVIEW.2
Agent applies fixes
The agent reads the output, decides which fixes to apply, and edits the files. A skipped false positive is fine; the agent should say why.
3
Agent re-runs review
--fail-on error, the command exits with code 1 while an error-or-worse issue remains. When the review is clean, it prints NO_ISSUES_FOUND, exits 0, and the agent moves on.4
Agent commits and pushes
Once the review is clean, the agent commits and pushes. Optionally, install the pre-push hook (
kodus hook install) as a safety net on manual pushes.--fix asks for a confirmation in the terminal, so an unattended agent should apply fixes itself instead.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
Other commands take
--json. kodus schema prints every command and flag as JSON, for an agent that needs to check what exists.
Example: Claude Code loop with business validation
Capturing what the agent decides
kodus trace enable adds hooks for Claude Code, Cursor, and Codex that record each session, so the reasons behind an agent’s changes are kept and can be read back by path. See Kodus Trace.
Related
Concepts
Review modes, diff modes, and agent output flags.
Command Reference
Full flag listing.
Kodus Trace
Record and read back the decisions behind agent-written changes.
Troubleshooting
Agent loop issues, hook problems, timeouts.