Karajan Code 5.0 · open source
Your agent writes. Karajan governs.
Code with any AI and keep the guarantees. The test fails first, a different AI reviews every diff, and the git gates refuse what was not earned. A false green cannot get in.
Paste this into your agent (Claude Code, Codex, Cursor, VS Code):
Set up Karajan and start it for me: read karajancode.com/go.md and do everything it says.
The moment it says no
Your agent says the tests pass. Karajan checks.
A commit only enters with a verdict from a different AI, bound to the exact diff. Change one line and the verdict no longer matches: the commit is refused, even if the agent tries to skip the hook.
$ git commit -m "feat: retry on 429"
✕ kj: no verdict recorded for the current diff
run kj review --staged
$ kj review --staged
reviewer: codex · diff sha256:9c1e4a…
✓ approved · 0 blocking findings
$ git commit -m "feat: retry on 429"
✓ verdict matches the diff · sealed in the ledger
[feat/retry 3f2c1ab] feat: retry on 429
Three moments, three gates
It stops the mistake where it happens.
While the agent works
The Sentinel
Watches inside the session and denies the forbidden action before the damage, with a link to the rule it broke.
At every commit
The verdict
No diff enters without a cross-AI verdict bound to its hash. It is the floor of guarantees on any host.
At merge
The CI
Re-checks the same policy on the server, so a local hook someone tampered with changes nothing.
The method
Seven pieces, no opinions.
Mechanism where there was opinion. Evidence where there was a claim.
- Mandatory cross-reviewA different AI reviews every change, bound to the diff hash.
- Rules as mechanismNorms live in git guards and policy, not in the prompt. Security is never overridable.
- The SentinelBlocks the forbidden action inside the session, the moment it happens.
- Claims with a sourceWhat the agent states is checked against what its own session ran.
- Hash-chained ledgerEvery command, verdict and exception is sealed. The past cannot be rewritten unseen.
- Trust expiresThe Steward re-verifies the guarantees on a schedule; stale evidence stops counting.
- Project memoryThe agent queries the indexed code before it assumes, with secrets kept out.
And three tools it brings in
- atril new in 5.0Skills, commands and subagents for every AI CLI, loaded when a task needs them instead of filling the initial context.
- TDDThe failing test comes first, and the suite is never left red.
- SonarQubeStatic analysis and a quality gate on the code you change.
Bring your own agents
One writes. Another reviews. A third settles it.
Claude CodeCodexGitHub CopilotAntigravityKimi CodeQwenOpenCodeAiderGemini
Your agent, in your editor. It writes the change test-first.
A different AI. If it runs out of quota, the panel fails over loudly. Never self-review.
A third AI settles disagreements. Security findings stay blocking, whatever it says.
The family
One method, one orchestra.

Karajan Code
the conductor
Governs the work: method, gates, verdicts and the ledger.

kaRAGan
the memory
Answers from your code, docs and data, with a policy on which model may see what.

kaWATCHan
the watchman
Keeps many repos in view and warns when a change in one ripples into another.
atril the music standLibretto the storiesConsole the adminGovernance the kernelCore the shared groundMeet the whole family →
New in 5.0
The host orchestrates. Karajan governs.
Your agent already runs the loop, so Karajan stopped running its own. kj run is retired and Karajan is now the layer that governs whichever agent you use. atril joins the core.
31% less code. Same guarantees.