Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.trykode.xyz/llms.txt

Use this file to discover all available pages before exploring further.

Kode ships a single kode binary that gives you access to every feature of the platform. The binary is written in Go and acts as the primary entry point for the verification engine, code generation, and context planning commands. For everything else — providers, models, sessions, agents, the TUI, and more — the binary automatically proxies the call to the TypeScript CLI bundled alongside it. You never need to invoke two separate tools; kode <anything> just works.

How the CLI works

When you run kode <command>, the Go binary first checks whether the command is one it owns natively (such as init, generate, verify, loop, plan, or stats). If the command is not recognized by the Go layer, the binary transparently forwards the full argument list to the TypeScript CLI. This means every command in both layers appears under the single kode namespace.
# Handled by the Go binary
kode init
kode generate "add pagination"
kode verify --input patches.json

# Automatically proxied to the TypeScript CLI
kode providers
kode models
kode session list

Global flags

version
subcommand
Print the current version, git commit hash, and build date.
kode version
# kode 1.2.3 (commit: abc1234, date: 2025-01-15)

Command index

CommandDescription
kode initScaffold .kode/kode.json config in your project
kode runGenerate, verify, and apply code in one step
kode generateGenerate code patches as JSON output
kode loopFull pipeline: generate → verify → apply → test with rollback
kode verifyRun 6-gate verification on a JSON input file
kode planBuild a context graph from your codebase
kode golfCompetitive optimization across parallel worktrees
kode daemonBackground tech debt watcher
kode statsView verification statistics from the audit log
kode explainGet details on a gate failure
kode mcpStart the Kode MCP stdio server
kode tuiLaunch the terminal UI
kode providersManage AI provider credentials
kode modelsList available AI models
kode sessionList and manage sessions
kode agentManage agents
kode installInstall security tools (sicario)
kode upgradeUpgrade Kode to the latest version

Key command pages

kode init

Scaffold your project configuration with TDD mode, blast radius limits, and auto-detected test commands.

kode run

Generate and apply verified code patches from a plain-English prompt in one command.

kode loop

Run the full generate → verify → apply → test pipeline with automatic rollback on failure.

kode plan

Build a surgical, token-capped context graph using Tree-sitter AST analysis before generating.

kode generate

Generate structured JSON hunks from a prompt, with optional inline verification and apply.

kode verify

Run the 6-gate verification pipeline against a JSON file of hunks or proposed file contents.