Skip to main content

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.

Query commands are read-only: they never mutate project state or write files (except rk registry --write). Use them to check health, resolve what to do next, inspect individual entities, explain validation findings, and preview dependency chains before committing to a run. All of them are safe to call from CI status checks or monitoring scripts.

rk status

Print a project health summary: sprint counts, maximum severity finding, and the next sprint to work on.
rk status [--cwd <path>] [--json]
rk status --brief [--json]
Running rk with no subcommand is equivalent to rk status. --brief additionally reports per-lane availability under lanes[] (each entry: { name, active, free }, where free means no active sprint occupies the lane) and a single nextCommand — the exact shell command to make progress right now, such as rk run S-005 or rk queue add S-006 --lane main && rk start S-006.

rk next

Resolve the next runnable sprint for a lane, with optional epic or planned-sprint scoping.
rk next [--cwd <path>] [--json] [--lane <lane>] [--epic <epic-id>] [--include-planned]
FlagDescription
--lane <lane>Restrict the lookup to one named lane
--epic <id>Restrict the lookup to sprints belonging to one epic
--include-plannedIf no queued sprint is runnable, return the next dependency-unblocked planned sprint with result: "planned"
--jsonMachine-stable JSON output
Exit 0 for runnable or planned, 1 for blocked or none available, 2 for runtime errors.

rk report

Print a lean project snapshot: headline (project · epic count · sprint count · health), the next runnable sprint, and sprint groups by status. Findings appear only when present. Shipped and done items are hidden by default. ANSI-colored on TTYs; respects NO_COLOR.
rk report [--all] [--json] [--cwd <path>]
FlagDescription
--allInclude shipped/done sprints and the full epic table
--jsonEmit the full structured report as canonical JSON instead of the human-readable view
The JSON payload always contains project, generatedAt, counts, maxSeverity, next, epics[], sprints[], and findings[] — regardless of --all.

rk ls

List entities by type. All variants accept --json for machine-stable output.
rk ls epics   [--json]
rk ls sprints [--json]
rk ls reviews [--json]
rk ls lanes   [--json]
See the CLI Overview for the JSON envelope key returned by each variant.

rk inspect <id>

Show detailed information about any entity: sprint, epic, review, or lane.
rk inspect S-001    # sprint
rk inspect E-001    # epic
rk inspect R-001    # review
rk inspect main     # lane
Sprint inspection includes status, epic, lane, timestamps, dependency state, review state, and path policy. Epic inspection includes all sprint statuses and blocked-by relationships. Lane inspection includes lock state, active sprint, and queue depth.

rk explain <CODE>

Explain a validation finding code in human-readable detail.
rk explain QUEUED_DEPENDENCY_NOT_SHIPPED
rk explain ACTIVE_SPRINT_MISSING_BASE_SHA
Output includes: severity, why it matters, the expected project state, fix guidance, and a related command to resolve it. Use this alongside rk validate output to understand and act on every finding code.

rk registry

Generate, write, or check the registry — the computed summary of all project entities.
rk registry [--cwd <path>] [--json] [--write] [--check] [--explain]
FlagDescription
(none)Print the registry as canonical JSON to stdout
--writeWrite the regenerated registry to config.paths.registry
--checkCompare the regenerated state against the file on disk. Exits 1 with REGISTRY_DRIFT if they differ.
--explainWith --check, print the first drift reason and suggest rk registry --write as the fix
rk gates runs rk registry --check --explain automatically as part of the gate bundle.

rk chain preview

Show which queued sprints would execute next in a chain run. When --epic is given, also lists planned/pending sprints in that epic that are not yet queued — useful for pre-flight inspection before rk start.
rk chain preview [--lane <lane>] [--epic <epic-id>] [--limit N] [--ignore-disabled] [--json] [--cwd <path>]
rk chain E-001    # shorthand for: rk chain preview --epic E-001
FlagDefaultDescription
--lanedefault laneRestrict the preview to this lane
--epic <id>Filter to sprints in this epic; also shows planned sprints for the epic
--limit N5Maximum sprints to show
--ignore-disabledfalseShow a preview even when chaining.enabled: false
rk chain <E-NNN> is a shorthand for text output only. For --json, --lane, or --limit, use the full rk chain preview form. A sprint id or other non-epic argument is rejected with a usage error. JSON output includes a planned_for_epic array (non-empty only when --epic is given):
{
  "chain": [],
  "ineligible": [],
  "planned_for_epic": [{ "id": "S-012", "status": "planned" }]
}

rk team status

Show the status of all team members and their active sprint assignments.
rk team status [--json] [--watch] [--sprint <id>]
FlagDescription
--jsonMachine-stable JSON output
--watchContinuously refresh the output (live dashboard mode)
--sprint <id>Scope the view to a specific sprint

rk plan <epic-id>

Preview or create sprint work for an existing epic. Default mode is preview-only. Straightforward epics resolve to a single sprint; broad epics produce a proposed split unless --single-sprint overrides it.
rk plan E-001 [--create-sprint] [--enqueue] [--single-sprint] [--split] [--no-sprint]
              [--allowed-path <glob>...] [--yes] [--json] [--cwd <path>]
FlagDescription
--create-sprintCreate a sprint when planning resolves to single-sprint mode
--enqueueQueue the created sprint immediately
--single-sprintForce one-sprint planning mode
--splitForce split-preview mode
--no-sprintPreview without creating or proposing any sprint files
--allowed-path <glob>Allowed path for the created sprint. Repeatable; each value is one glob (commas are literal).

rk wave <selector>

Preview dependency order across one or more epics. Mutations require --apply.
rk wave E-035..E-040 [--apply] [--enqueue] [--json] [--cwd <path>]
Selectors accept a single id (E-035), comma-separated ids, or a range (E-035..E-040). --apply --enqueue queues eligible planned sprints whose dependencies are already shipped or cancelled. Blocked sprints are listed with the unmet dependency reason.

rk create epic / rk create sprint

Scaffold new entities from the command line without editing YAML manually.
rk create epic "Core parser" [--from-tracker <source>:<ref>] [--allow-tracker-fallback] [--json] [--cwd <path>]

rk create sprint --epic E-001 "Parse tokens" \
  [--lane <name>] [--status planned|pending] [--after S-NNN] \
  [--allowed-path <glob>...] [--denied-path <glob>...] [--enqueue] [--cwd <path>]

rk create epic Flags

FlagDescription
--from-tracker <ref>Seed title and body from an external tracker. Forms: gh:owner/repo#NNN, jira:KEY-NN, linear:ABC-NN.
--allow-tracker-fallbackIf the tracker fetch fails, create a plain epic from the positional title. Without this flag, fetch failures exit 2 before any disk write.
--jsonMachine-stable JSON output
When --from-tracker succeeds, the positional title is replaced with the tracker title. Linkage is recorded in extras.external_id, extras.tracker_source, extras.tracker_url, extras.tracker_labels, and extras.tracker_assignee. Malformed --from-tracker values exit EXIT_USAGE (64) before any disk write.

rk create sprint Flags

FlagDescription
--laneLane name (default: main)
--statusInitial status: planned or pending
--after S-NNNAdd depends_on for the given sprint. Repeatable; also accepts comma-separated values.
--allowed-path <glob>Restrict the sprint to this path. Repeatable; each value is one glob.
--denied-path <glob>Forbid this path inside the sprint scope. Repeatable.
--enqueueCreate the lane queue slot and set status to queued in the same mutation

rk audit-trail <epic-id>

Show every sprint in an epic with its base_sha/end_sha, reviewer, verdict, and file count. Useful for compliance review or understanding how an epic progressed through to completion.
rk audit-trail E-001 [--json] [--cwd <path>]
FlagDescription
--jsonMachine-stable JSON output

rk brief <id>

Render a markdown action-brief for a sprint or epic. Auto-detects the relevant gate (pause, review-fail, blocked, ready-to-close, or status) and formats accordingly.
rk brief S-001 [--gate <type>] [--for-agent] [--json] [--cwd <path>]
rk brief E-001
FlagDescription
--gate <type>Force a specific gate template: review-fail, ready-to-close, pause, blocked, or status
--for-agentInclude execution constraints for sprint agents
--jsonEmit a JSON envelope including the rendered markdown

rk board

Show a kanban board across sprint statuses.
rk board [--epic <id>] [--lane <lane>] [--show-cancelled] [--json] [--cwd <path>]
FlagDescription
--epic <id>Filter by epic ID
--lane <lane>Filter by lane name
--show-cancelledInclude a cancelled sprints column
--jsonMachine-stable JSON output

rk blockers <sprint-id>

Report durable blockers for a sprint — unmet dependencies, failed gates, and other conditions that prevent the sprint from being started or closed.
rk blockers S-001 [--json] [--cwd <path>]
FlagDescription
--jsonMachine-stable JSON output

rk context [target]

Compile a deterministic context packet for a sprint or epic. Used by agent adapters to build focused, token-budgeted prompts from project state.
rk context S-001 [--profile implement|review|wave] [--format md|json]
                 [--budget <tokens>] [--check] [--validate] [--with-routing]
                 [--cwd <path>]
rk context E-001
FlagDescription
--profile <profile>Context profile: implement, review, or wave. Defaults: S-NNNimplement, E-NNNwave
--format <format>Output format: md (default) or json
--budget <tokens>Override the profile’s token budget (positive integer)
--checkExit non-zero if the rendered packet exceeds the effective budget
--validateRun full validators (default uses parse findings only)
--with-routingEmbed a routing_hint (recommended tier + signals) in the packet
Exit 3 (EXIT_BUDGET_EXCEEDED) when the packet exceeds budget and --check is set. Exit 4 (EXIT_BUDGET_TOO_SMALL) when the budget is smaller than the essential capsule.

Build docs developers (and LLMs) love