Documentation menu

Configuration

Every ktesio.toml section.

On this page

ktb init writes this file, and you can edit it freely. A rerun of init adds new hosts and keeps your edits. Every section is optional, and an unknown key is an error.

[budgets]
fast = 4000        # context pack tokens per tier
balanced = 12000
deep = 30000
reply = 2000       # max tokens in one tool reply

[tiers.claude]     # one table per host: claude, codex, copilot, zcode
fast = { model = "haiku", effort = "low" }
balanced = { model = "sonnet", effort = "medium" }
deep = { model = "opus", effort = "high" }

[index]
model = "minishlab/potion-base-8M"   # hub name, local folder, or "off"
skip = []                            # extra paths or globs, on top of .gitignore
max_file_kb = 1024

[verify]
commands = []            # run in order; empty = detected (Cargo, npm, Python, Go, ...)
require_ac_tests = true  # each intent acceptance check must be cited by a test (int-xxxxxx#ac1)
timeout_s = 900

[[verify.rules]]
path = "src/pay/**"
require = ["integration"]
levels = { integration = "cargo test --test it" }
coverage = 80.0                      # minimum line coverage, percent
coverage_cmd = "scripts/coverage.sh" # output ends with the percentage

[guard]
leash = 2                # tasks that may build on a costly assumption
always_ask = ["public-api"]
risk = { money = ["src/pay/**"], auth = ["src/auth/**"] }

[run]
host = ""                # a [tiers] key; empty = the host in use
cmd = ""                 # custom runner: sh -c, prompt on stdin, KTESIO_TIER/MODEL/EFFORT/TASK set
timeout_s = 1800         # per attempt
stall_s = 600            # stop an attempt that changes no file for this long; 0 = off

[trackers]
trailers = false         # add the intent's ref as a commit trailer
trailer = ""             # its format, with {ref}
pr = false               # open the slice's PR at slice end (never merges)

[team]
share = false            # refresh .ktesio/learned/<member>.toml on each task commit

Codex tiers default to model = "default", which is Codex's own model, tiered by effort. That way no machine-specific model name is committed.

Environment variables

VariableEffect
KTESIO_HOMEthe cache folder for the embedding model
KTESIO_CLAUDE_BIN, KTESIO_CODEX_BIN, KTESIO_COPILOT_BINthe host binary ktb run starts
KTESIO_LINGER_Sseconds a finished Claude run may stay open before it is ended (default 30)