Documentation menu

Getting started

Install ktb, set up a repo, and the skills, hosts and commands you get.

On this page

Install

Install ktb with one of:

brew install ktesio/tap/ktb     # macOS and Linux
cargo install ktesio-build      # from crates.io, builds from source

Or download the archive for your platform from Releases and put ktb on your PATH. Builds cover Linux (x86_64, arm64; glibc 2.35+), macOS (arm64, x86_64) and Windows (x86_64). To build this checkout: cargo install --path crates/ktesio-cli.

The command was called ktesio before 0.1. To upgrade a repo, run ktb init: it points the MCP entries at ktb, and ktb doctor flags any that still start ktesio.

cd your-repo
ktb init      # detects your hosts; writes ktesio.toml, skills, agents, MCP entries and the AGENTS.md rules
ktb doctor    # what each host can do here, and the fallback when it can't

Then, in your agent:

Skill (Claude Code /name, Codex $name)Use it to
kb-buildbuild any unit of work: plan it into tasks, run each on its tier, verify and commit
kb-shapeturn a new product or big feature into intents with acceptance checks
kb-digestsee what was built, which assumptions to settle, and cost by tier
kb-checkfind records that drifted from the code
kb-syncrefresh the index after edits, a pull or a branch switch
kb-migrateimport an existing BMAD or SpecKit repo
kb-learnturn repeated procedures into skills
kb-helpask what to run next

init also keeps a short Ktesio Build block in AGENTS.md (and an @AGENTS.md import in CLAUDE.md for Claude Code). It tells every session to use kb-build for code changes and the ktesio tools for context, so sessions don't drift to direct edits or another workflow. The MCP server sends the same rule as its instructions. ktb doctor reports a missing or stale block, and BMAD or SpecKit skills installed next to Ktesio Build. Only the text between the markers is managed; the rest of the file is yours.

Running init again is safe: it rewrites only files whose content changed, and it keeps your edits to ktesio.toml. User-level files, such as Codex tier profiles in ~/.codex/, are written only after you confirm, or with --yes. Inside a host, init never prompts.

Supported hosts

HostSkillsTier routingMCP entry
Claude Code.claude/skills/<name>, symlinked to .agents/skills/<name>.claude/agents/kb-{fast,balanced,deep,triage,review}.md, with model and effort.mcp.json
Codex.agents/skills/<name>~/.codex/kb-{fast,balanced,deep}.config.toml, used as codex exec --profile kb-fast.codex/config.toml (loaded for trusted projects)
GitHub Copilot CLI.agents/skills/<name>.github/agents/kb-*.agent.md; headless copilot -p --model M --effort E.mcp.json
ZCode.agents/skills/<name>.zcode/agents/kb-*.md, with model and effort.agents/mcp.json

T3 Code drives Claude Code or Codex underneath, so a repo set up for those works in T3 Code as is.

Commands

ktb init [--host auto|claude|codex|copilot|zcode[,..]] [--yes] [--dry-run]
ktb doctor
ktb status
ktb recall [ID..] [--kind K] [--text Q] [--from ID [--edge REL] [--depth N]] [--full] [--limit N]
ktb record KIND --title T [--link REL:ID].. [--supersedes ID].. [--path P].. [--tag T].. [--subject S] [--ref R]
           [--confidence 0-1 --leash N] [--check CMD --severity error|warn] < body
ktb sync [--full]
ktb pack [TASK|ID] [--file F].. [--id ID].. [--tier fast|balanced|deep]
ktb plan [--file F] < plan.json
ktb verify TASK [--commit] [--tokens N]
ktb run [SLICE|TASK] [--host claude|codex|copilot|zcode] [--dry-run]
ktb check [--all]
ktb digest [--since D] [--peek]
ktb accept ASM [--note T]
ktb reject ASM [--note T] [--revert]
ktb import [--from bmad|speckit] [--dry-run] [--cleanup]
ktb report
ktb share
ktb mcp

Output is JSON when stdout isn't a terminal, or with --json. On a terminal it's one short screen. Exit codes: 0 ok, 1 a check failed, 2 usage error, 3 environment problem (run ktb doctor).

Next: How it works.