Skip to content

Handbook

The Handbook is the long-form companion to the CLI reference. The reference is the quick lookup (“what does --enable-tester do?”); the handbook is the deep dive (“when does enabling the tester role actually pay off, when is it overkill, and how does it interact with TDD methodology?”).

Every page follows the same canonical structure so you always know where to find the bit you need:

  • What it does — detailed behaviour, in plain prose.
  • When to use — concrete scenarios where the command/role/option pays off, each with a one-line example.
  • When NOT to use — scenarios where it’s overhead, noise, or a footgun, with the reason why.
  • Options — every flag with default, when to flip it, and how it interacts with the rest.
  • Examples — 3-5 representative recipes (typical use, CI/automation, advanced).
  • How it works internally — 2-3 paragraphs of reasoning for users who want the “why behind the why”.
  • Related — links to the rest of the handbook.

If you’ve never used Karajan before, do the Getting Started → Quick Start first. The handbook assumes you’ve already got the CLI installed and have run at least one pipeline.

From there, what you read depends on what you’re trying to do:

GoalStart here
Understand kj run end-to-endkj run and Pipeline roles
Generate and execute a plankj plan
Audit a codebasekj audit and Audit dimensions
Set up your environmentkj initkj doctorkj install-tools
Pick the right external toolExternal tools
Run a single role standalonekj code, kj review, kj scan, kj triage
  • Commands — one page per kj command with the full Handbook treatment. See the sidebar under “Handbook” for the full list.
  • Pipeline roles — the 24 roles that make up kj run: when each activates, why it exists, when it’s overhead. Read it →
  • Audit dimensions — the six dimensions kj audit evaluates (security, codeQuality, performance, architecture, testing, accessibility). Read it →
  • External tools — the five non-bundled tools Karajan integrates with (Sonar, OSV-Scanner, Semgrep, Lighthouse, Docker): what each adds, how Karajan calls them, what to do when they’re missing. Read it →

“I want to start running real pipelines today”:

  1. kj init
  2. kj doctorkj install-tools
  3. kj run — read the “What it does”, skim the options, run a tiny task.
  4. Come back to Pipeline roles the first time you wonder “what is solomon and why is it firing?”

“I want to understand the design”:

  1. Pipeline roles — the heart of the system.
  2. kj run → “How it works internally” section at the end.
  3. Audit dimensions — what counts as a finding and why.

“I’m setting up CI/CD automation”:

  1. kj run — focus on --yes, --methodology, --max-iterations, --auto-pr.
  2. kj plan and kj audit — both have --deterministic-only flags worth knowing.
  3. kj install-tools--yes --only <subset> for non-interactive provisioning.

The handbook is updated alongside every minor release. If you find a discrepancy between the handbook and what kj actually does in the version you’re running, please open an issue. The page footer of every entry shows the version it was last revised against.