RepoKernel gets out of your way fast. This guide takes you from a fresh install to a reviewed, merged task using the built-inDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/xantorres/repokernel/llms.txt
Use this file to discover all available pages before exploring further.
fake agent — no API keys, no cloud calls. Once that works, swapping in Claude, Codex, or Ollama is a single flag change.
Install
Install RepoKernel globally from npm. Node 20 or later is required.Verify the install:Both
rk and repokernel are aliases for the same binary. You can use either throughout this guide.Initialize your project
Navigate to any existing Git repository, then run:
rk init writes repokernel.config.yaml and scaffolds the .repokernel/ state directory (epics, sprints, reviews, queues, lanes, and the registry). The --commit flag immediately commits that metadata so worktree-backed commands can run from a clean main checkout — without it, worktree creation fails if uncommitted files are present.If you want a fully working example you can validate and run against right away, use --example instead:--example creates a project with one epic, multiple sprints, a queue, and an accepted review pre-populated. rk validate and rk next both work immediately on the generated scaffold — useful for exploring the system before you have real tasks.Run your first task
Run a task from a plain-English description using the deterministic Here is what happens under the hood:
fake agent:- Synthesis — RepoKernel allocates a task alias (
T-001), scaffolds a sprint with the message as its title, and queues it in the default lane. - Worktree creation — An isolated Git worktree is created on a new branch (
rk/sprint/E-NNN/S-NNN). Yourmainbranch stays untouched. - Agent run — The
fakeagent runs inside the worktree. It writes a placeholder file and exits cleanly. With a real agent, this is where the LLM makes code changes. - Review pause — The run transitions the sprint to
reviewstatus and pauses, waiting for a verdict.
fake. It is a deterministic test agent designed for demos and CI — it always succeeds, always writes the same placeholder, and exercises the full review-gate flow.Review and close the task
Once the agent finishes, you have two paths:
rk close is not a rubber stamp. Before merging, it:- Verifies the sprint has an accepted review verdict
- Runs the repo-configured
checksCmd(linting, type-checking, tests) if one is set - Validates that no files outside
allowed_pathswere touched - Confirms the registry is in sync
end_sha, stamp closed_at, transition the sprint to shipped, and merge the worktree branch into main. The full audit trail — what changed, when, from which sha to which sha — is preserved in the sprint and review files.rk discard T-001 drops the task without merging. The worktree is removed, the sprint is marked cancelled, and no changes reach main.Run with a real agent
Swap Each adapter passes the task description and worktree context to the underlying agent CLI.
fake for an LLM-backed adapter when you are ready for real coding:ollama runs a local model — no API keys, no cloud calls. See the Agent Adapters guide for setup instructions, credential configuration, and how to wire a custom adapter via repokernel.config.yaml.Where to go next
Core Concepts
Learn the full entity model — tasks, sprints, epics, queues, lanes, reviews, and gates. The vocabulary you need to use the full system.
Fastpath in Depth
What the three-command flow does behind the scenes: synthesis, worktree lifecycle, review, and merge safety.
Epics & Sprints
Model multi-task projects with dependency graphs, path scopes, and parallel wave execution.
Agent Adapters
Set up Claude, Codex, Ollama, or a custom adapter. Configure credentials and wire the bundled agent skill.