Skip to content

Introduction

One command. Multiple AI agents. Full quality pipeline.

Karajan Code (kj) orchestrates AI agents like a conductor orchestrates an orchestra. You define what needs to happen — code, review, test, secure — and Karajan assigns who does each part.

15 specialized roles. Triage, researcher, architect, planner, coder, reviewer, tester, security, and more.

5 AI agents. Claude, Codex, Gemini, Aider, OpenCode. Mix and match freely.

Zero extra cost. Runs on your existing subscriptions — no API keys needed.


There are two ways to use AI coding agents today, and both have serious issues:

Manual usage — You run an agent, wait for the code, check it yourself, find issues, re-prompt, and repeat. No systematic quality enforcement. Slow. Entirely dependent on your own review skills.

Automated usage (CI/CD) — You wire agents into pipelines that run on every push. This removes the manual bottleneck, but introduces uncontrolled costs. A single task can burn through tokens indefinitely — agents retrying, reviewers looping, flaky APIs triggering unlimited retries. Real money, no visibility.

In both cases: no standard way to enforce quality, control spending, or know when to stop.

Karajan Code solves both problems by chaining roles with quality gates and cost controls:

Karajan Code is tested with 2473 automated tests across 190 test files, covering every pipeline role, guard, config option, and MCP tool. The test suite runs in under 14 seconds using Vitest.

Quality is enforced at multiple layers:

  • SonarQube (local, via Docker) — full static analysis with quality gates, blocking on critical issues
  • SonarCloud (cloud, no Docker needed) — complementary cloud-based analysis, advisory mode by default
  • Deterministic guards — regex-based checks for destructive operations, credential leaks, and perf anti-patterns
  • TDD enforcement — source changes require corresponding test changes

Both SonarQube and SonarCloud can run together in the same pipeline — SonarQube as the primary gate and SonarCloud as an additional lens.

Karajan offers two ways to work:

Skills mode — 8 slash commands (/kj-code, /kj-review, /kj-run, etc.) installed directly in Claude Code. Each command includes built-in guardrails. No MCP server needed — ideal for single-agent workflows. Install with kj init.

Orchestrator mode — Full MCP server with 23 tools. Multi-agent pipeline with subprocess orchestration, session management, budget tracking, and rate-limit resilience. Ideal for complex tasks and CI/CD integration.

Both modes can coexist. Use skills for quick tasks and the orchestrator when you need multiple agents or full pipeline control. See the Skills Guide for details.