About Karajan Code
Karajan Code is an MCP server published by manufosela in the Agents category: local multi-agent coding orchestrator with TDD, SonarQube, and code review pipeline. Conduid read 23 tools from its source: install, kj_agents, kj_audit, kj_board, kj_clean, kj_code and 17 more. It is published to npm as karajan-code and starts with npx.
The repository has 43 stars and 8 forks, and its last commit was on 1 Dec 2026. Conduid has no tagged release on record for it. It passes all 1 static checks Conduid ran on the repository. Its topics include ai-orchestration and orchestrator.
Install
claude mcp add karajan-code -- npx -y karajan-codenpx -y karajan-codegit clone https://github.com/manufosela/karajan-codeTools (23)
installInstall a local skill folder, command or agent file into the storekj_agentsList or change which AI agent (provider) is assigned to each pipeline role. Use action='list' to see current assignments. Use action='set' with role and provider to change it persistently (writes to kj.config.yml, no restart needed).| Parameter | Type | Description |
|---|---|---|
| action | string | Action: list current agents or set a role's provider |
| kjHome | string | |
| provider | string | New provider to assign (e.g. claude, codex, gemini, aider) |
| role | string | Role to change (e.g. coder, reviewer, planner, triage) |
kj_auditAnalyze codebase health without modifying files. Returns findings across security, code quality, performance, architecture, and testing dimensions.| Parameter | Type | Description |
|---|---|---|
| dimensions | string | Comma-separated dimensions to analyze: security,codeQuality,performance,architecture,testing (default: all) |
| kjHome | string | |
| projectDir | string | Absolute path to the project to audit |
| task | string | Optional focus for the audit. If absent (and no taskFile), defaults to a full-codebase analysis. |
| taskFile | string | Alternative to `task`: path to a .md/text file with the audit focus. |
kj_boardStart, stop, or check status of the HU Board dashboard| Parameter | Type | Description |
|---|---|---|
| action | string | Action to perform (default: status) |
| port | number | Port (default: 4000) |
kj_cleanGarbage-collect stale Karajan state: orphan plans (project dir no longer exists), finalised plans/sessions past their retention window, and HU story batches. Dry-run by default; pass yes=true to actually delete. Use nuke=true to wipe everything (retention=0 on every bucket + drop the HU board SQLite DB).| Parameter | Type | Description |
|---|---|---|
| draftDays | number | Keep draft plans for this many days. Default: 60. |
| huDays | number | Keep HU story batches for this many days. Default: 14. |
| nuke | boolean | If true, retention=0 on every bucket + wipe the HU board DB (stops the board first if running). The "I want it all gone right now" button. |
| planDays | number | Keep finalised plans (approved/rejected/executed) for this many days. Default: 30. |
| sessionDays | number | Keep finalised sessions for this many days. Default: 7. |
| yes | boolean | If true, actually delete. Default false (dry-run: returns the list of items that would be removed without touching disk). |
kj_codeRun coder-only mode. Pass the user's task exactly as described. Do NOT split or reinterpret the task.| Parameter | Type | Description |
|---|---|---|
| coder | string | |
| coderModel | string | |
| kjHome | string | |
| projectDir | string | Absolute path to the project directory |
| task | string | Task description. Either `task` or `taskFile` is required. |
| taskFile | string | Alternative to `task`: path to a .md/text file. |
kj_configShow kj configuration| Parameter | Type | Description |
|---|---|---|
| json | boolean | |
| kjHome | string |
kj_discoverAnalyze a task for gaps, ambiguities, and missing information before execution. Returns a verdict (ready/needs_validation) with structured gap list. Can read task details from Planning Game if pgTask is provided.| Parameter | Type | Description |
|---|---|---|
| context | string | Additional context for the analysis (e.g., research output) |
| kjHome | string | |
| mode | string | Discovery mode: gaps (default), momtest (Mom Test questions), wendel (behavior change checklist), classify (START/STOP/DIFFERENT), or jtbd (Jobs-to-be-Done) |
| pgProject | string | Planning Game project ID. Required when pgTask is used. |
| pgTask | string | Planning Game card ID (e.g., KJC-TSK-0042). If provided, fetches full card details as additional context. |
| projectDir | string | Absolute path to the project directory |
| task | string | Task description to analyze for gaps. Either `task` or `taskFile` is required. |
| taskFile | string | Alternative to `task`: path to a .md/text file. |
kj_doctorCheck system dependencies, agent CLIs, ports, tokens and MCP health — auto-remediates when possible| Parameter | Type | Description |
|---|---|---|
| checkOnly | boolean | Detect only, do not apply fixes |
| json | boolean | Emit machine-readable JSON output |
| kjHome | string | |
| timeoutMs | number | |
| verbose | boolean | Include fix hints and timing per check |
| yes | boolean | Auto-confirm prompts for invasive remediations |
kj_huManage user stories (HUs) in the HU Board, the same board `kj hu` uses (local or shared)| Parameter | Type | Description |
|---|---|---|
| acceptanceCriteria | string | Acceptance criteria, one per line |
| action * | string | Action to perform |
| huId | string | HU ID (required for update/get) |
| projectDir | string | Project directory (defaults to cwd) |
| ref | string | Id of this card's replica in the external tracker (Planning Game, Jira, Linear...) |
| status | string | HU status (for create/update) |
| tier | string | How much model the card needs, judged as you plan it (for create): kj code writes it with that model |
| tierReason | string | Why that tier, in a few words (for create) |
| title | string | HU title (required for create) |
kj_initInitialize karajan-code config, review rules, and SonarQube| Parameter | Type | Description |
|---|---|---|
| kjHome | string | Optional KJ_HOME directory |
| timeoutMs | number | Optional command timeout in ms |
kj_preflightConfirm or adjust agent configuration before first kj_code. REQUIRED before running any task via MCP. Show the config to the human, get their confirmation or adjustments, then call this tool with their response.| Parameter | Type | Description |
|---|---|---|
| coder | string | Override coder for this session |
| enableSecurity | boolean | Enable/disable security for this session |
| enableTester | boolean | Enable/disable tester for this session |
| humanResponse * | string | The human's response: 'ok' to confirm defaults, or specific changes like 'use gemini as coder' |
| reviewer | string | Override reviewer for this session |
| security | string | Override security for this session |
| solomon | string | Override solomon for this session |
| tester | string | Override tester for this session |
kj_rag_index(Re)index this project's Karajan-managed assets — every plan-*.json under ~/.karajan/plans/<slug>/ plus the onboarding brief at ~/.karajan/onboarding/<slug>.md — into the local vector store. The index runs in the background and the tool answers at once with `started` and the last run's totals; call it again to get `running` and `progress` ({ done, total } files) until it ends. kj_rag_query answers from the current index meanwhile. Idempotent: a re-run replaces the chunks for each source, never appends duplicates. Pass `withSources: true` to also index the project's text files git versions (skips node_modules / .git / dist / etc.). Required as a one-time bootstrap before kj_rag_query returns anything.| Parameter | Type | Description |
|---|---|---|
| force | boolean | Index even when another indexer holds the machine lease (otherwise it yields). Default false. |
| projectDir | string | Absolute path to the project directory |
| withSources | boolean | Also index .js/.ts files under projectDir. Default false. |
kj_rag_queryRun a semantic search across the indexed Karajan plans, onboarding briefs and (optionally) project source code. Returns the top-K nearest chunks with their metadata so the agent can quote prior decisions, locate where a concept was last implemented, or pull architectural context without re-walking the repo. The store is empty until `kj_rag_index` (or `kj rag index` CLI) has been run at least once on this project; in that case the response carries `empty: true`.| Parameter | Type | Description |
|---|---|---|
| project | string | Project slug to search. Defaults to the basename of projectDir (same isolation as `kj rag query`); 'all' searches every indexed project. |
| projectDir | string | Absolute path to the project directory |
| scope | string | Filter by chunk kind: 'plans' | 'code' | 'onboarding' | 'all' (default). |
| text * | string | The natural-language query. |
| topK | number | Max number of hits to return. Default: 5. |
kj_reportRead latest or list session reports. Use trace=true for chronological stage-by-stage breakdown with timing and token usage.| Parameter | Type | Description |
|---|---|---|
| currency | string | Display costs in this currency |
| format | string | |
| kjHome | string | |
| list | boolean | |
| pgTask | string | Filter reports by Planning Game card ID (e.g., KJC-TSK-0042) |
| sessionId | string | |
| trace | boolean | Show chronological trace of all pipeline stages |
kj_rolesList pipeline roles or show the template instructions for a specific role. Use action='list' to see all roles with their provider and status. Use action='show' with roleName to read the .md template.| Parameter | Type | Description |
|---|---|---|
| action | string | Action: list all roles or show a specific role template |
| kjHome | string | |
| roleName | string | Role name to show (e.g. coder, reviewer, triage, reviewer-paranoid) |
kj_scanRun SonarQube scan for current project| Parameter | Type | Description |
|---|---|---|
| kjHome | string | |
| sonarToken | string | |
| timeoutMs | number |
kj_suggestPropose an observation or suggestion to Karajan's Solomon engine. Solomon will evaluate it and decide whether to accept, reject, or ask the human. You CANNOT override pipeline decisions through this tool, only propose.| Parameter | Type | Description |
|---|---|---|
| context | string | Additional context (current HU, iteration, etc.) |
| projectDir | string | Project directory |
| suggestion * | string | What you observed or want to propose |
rag_queryBusca en el índice RAG (retrieval híbrido vector+BM25) y devuelve los pasajes más relevantes con fuente, línea y score.| Parameter | Type | Description |
|---|---|---|
| question * | string | Pregunta o términos de búsqueda. |
| topK | integer | Nº de pasajes (default 5). |
rag_statusEstado del índice: fingerprint, nº de ficheros, nº de chunks y store.removeRemove an artifact from the storeresolveThe artifacts that fit a task, as the files to read in ordersearchSearch atril's store for skills, commands and agentsSecurity checks
- ✓README presentThe repository's README runs to about 2.9K words.
5 checks have not been run yet.
README
The repository's README runs to about 2.9K words. The original in the repository is authoritative.
Read full README