Pipeline reference
Roles, stages, budgets, and the full flag matrix. See pipeline docs.
This guide walks you through your first end-to-end Karajan run — from a clean machine to a merged PR — and anticipates the most common errors you may hit along the way.
The recipe is the same in every stack: you describe the change in natural language, Karajan plans it, codes it, reviews it, and tests it. The bits that differ are how the project is bootstrapped and how the test command is invoked, which is why the per-stack pages below show concrete examples.
Before picking a stack, get Karajan ready on your machine. These three steps are stack-agnostic — they apply to a Node CLI, a Python script, a Java service, or anything else.
Install Karajan globally.
npm install -g karajan-codekj --version # 2.32.0 (or newer)Initialize the project.
Inside the repo where you want to use Karajan:
cd ~/projects/my-appkj initThis creates .karajan/ (local board, plans, RAG store) and writes the orchestrator config. Run it once per repo — re-running is safe and idempotent.
Run the doctor.
kj doctorkj doctor checks every external dependency Karajan needs: Docker, the agent CLIs (Claude / Codex / Gemini / OpenCode), Ollama for embeddings, ports 4000 / 11434, your auth tokens, and the local MCP servers. It auto-fixes what it can and prints concrete instructions for the rest.
Each page below is a self-contained recipe: bootstrap a brand-new project from zero, run Karajan on it to add one feature, observe the output, and merge. They all use the same kj run invocation — only the surrounding project differs.
The fastest path. Node + npm are already on your machine, Karajan’s own CLI is Node-based, and the agents have the deepest training on this stack.
Use this when your team is Python-first or the feature you’re shipping lives in a data / ML codebase.
A vanilla Custom Element (no React / Vue / Svelte) — great for design systems, embeds, and demo pages.
Node + Express + Vitest, end-to-end. Includes the test loop Karajan uses to gate merges.
JVM project with Gradle / Maven. Shows how to wire kj run against a ./gradlew test loop.
Go module with go test. Minimal toolchain, fast feedback.
cargo project. Shows how to handle longer build cycles inside a Karajan iteration budget.
Re-run kj doctor --verbose. It catches ~90% of configuration drift before it reaches the pipeline.
Check the HU Board. Open http://localhost:4000 — every run shows up there with its live trace, iterations, and the exact agent prompts.
Tail the log of the current run.
kj tailFilter to a single role with kj tail --role coder (or reviewer, tester, solomon).
Inspect the last session.
kj report --lastPrints the budget, the final iteration, the reviewer verdict, and the path to summary.md.
Still stuck? Open the failing card on the HU Board, copy its sessionId, and run kj_audit (via MCP) or kj audit --session <id> (via CLI) to get a deterministic report.
Pipeline reference
Roles, stages, budgets, and the full flag matrix. See pipeline docs.
HU Board
The local dashboard at :4000. See HU Board docs.
MCP integration
Use Karajan from Cursor, Claude Desktop, or any MCP-capable client. See MCP guide.
Fix a bug example
A focused walkthrough of the kj run "Fix ..." flow. See Fix a bug.