The fastpath is the shortest end-to-end flow RepoKernel offers. You describe a task, an agent runs it in an isolated Git worktree, checks execute automatically, and you either merge or discard the result — all without touching epics, sprints, or queues directly. It’s the right entry point for quick AI coding tasks and the best way to learn how RepoKernel’s lifecycle works before reaching for the deeper machinery.Documentation 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.
The three-command flow
Run the task
Pass a description with RepoKernel synthesizes a
-m and pick an agent. Using --agent fake runs the deterministic test agent — no API keys, no cloud calls, perfect for trying the flow.T-NNN alias, creates a backing sprint, opens an isolated worktree, runs the agent, then pauses for review once checks pass.fake is a deterministic test agent that writes a placeholder file and returns a completed sentinel — identical lifecycle to a real agent, with zero external dependencies. Swap --agent fake for --agent claude or --agent codex when you’re ready for real coding.Review the diff
When the run enters Inspect the changes with your usual Git tools — the worktree branch is a normal Git branch at
review state you’ll see:.repokernel-worktrees/<repo>/E-NNN.What synthesis does
Each call tork run -m "..." kicks off a synthesis step before any agent work begins:
- Allocates a fresh task id (
T-NNN) by scanning.repokernel/tasks/T-*.jsonand incrementing the max. - Creates a one-sprint epic with frontmatter derived from your description, acceptance criteria, and path constraints.
- Adds the sprint to the default lane queue.
- Commits the synthesis as
chore(rk): synthesize task T-NNNso the working tree is clean before agent work starts.
.repokernel/tasks/T-NNN.json records the mapping from the user-visible T-NNN to the underlying epic and sprint ids, so you never need to look up E-NNN or S-NNN yourself.
rk run also accepts task descriptions in other forms:
What happens during the agent run
After synthesis, RepoKernel:- Acquires an isolated Git worktree at
<config.worktrees.root>/<repo>/E-NNN. - Builds a context packet containing the task description, relevant config, and the list of allowed paths.
- Invokes the chosen agent adapter — for example,
claude --print --cwd <worktree> -p <packet_path>. - Waits for the agent to commit its changes and emit a
REPOKERNEL_RESULT_START/REPOKERNEL_RESULT_ENDsentinel block. - Runs your configured
checksCmdinside the worktree once the agent finishes.
rk/sprint/E-001/S-001.
Review pause
When the agent finishes andchecksCmd exits zero, the run transitions to review state and pauses. If checks fail, the run is left active with the worktree intact:
rk close T-001 refuses to merge until checks pass — failed checks are a hard stop.
Configuring checks
SetchecksCmd in repokernel.config.yaml once and every run uses it:
rk close T-001
Close merges the worktree branch to your current branch and records the run as shipped. It only succeeds when the alias is in review state — checks must have passed. The sequence is atomic:
- Commits any uncommitted RK metadata in the worktree.
- Merges the worktree branch with
git merge --no-ff. - Auto-accepts the review verdict (reaching
reviewmeans checks passed). - Marks the sprint
shipped, capturesend_sha, and clears the queue slot. - Releases the worktree.
- Updates the alias to
shippedwithclosed_at.
git merge produces conflicts, the merge is aborted, your branch stays at its prior HEAD, and the task remains in review. Resolve the conflicts manually and retry rk close T-001.
rk discard T-001
Cancels the sprint and epic, releases the worktree without merging, and marks the alias cancelled. No commits from the worktree branch enter your main branch.
Managing task aliases
These read-only commands let you inspect anyT-NNN alias:
--json is available on all three commands for machine-readable output. rk task status --json emits the raw TaskAlias object; rk task inspect --json emits { alias, paths: { alias, sprint, review } }.
Running from a tracker issue
Pull a task directly from a GitHub issue, Jira ticket, or Linear item:T-NNN alias. Provide -m as a fallback in case the tracker is unreachable:
--allow-tracker-fallback, fetch failures exit before any IDs are allocated.
Files written
Afterrk init --commit && rk run -m "..." --agent fake && rk close T-001, your repo contains:
When to graduate from fastpath
The fastpath is intentionally narrow: one task, one worktree, sequential. Reach for the deeper machinery when:- You want multiple sprints with explicit dependencies → see Epics & Sprints
- You want sprints to run concurrently → see Parallel Waves
- You want explicit
allowed_pathsenforcement per sprint → see sprint frontmatter in Epics & Sprints - You want to configure a specific agent adapter → see Agents