Kavi

File Layout

Directory structure reference for the .kavi/ directory and machine-local state

Repo-Local (.kavi/)

Created by kavi init in your project root.

config.toml
codex.md
claude.md
session.json
events.jsonl
events.db
approvals.json
land-001.json
task-<id>.json
.gitignore
FilePurpose
config.tomlProject configuration
prompts/codex.mdCustom system prompt for Codex
prompts/claude.mdCustom system prompt for Claude
state/session.jsonCurrent session record
state/events.jsonlEvent log (append-only)
state/events.dbSQLite mirror (opt-in)
state/approvals.jsonApproval rules ledger
.gitignoreIgnores state/ from version control

Machine-Local

Defaults to standard XDG paths. Override with environment variables.

config.toml
<repo-hash>.sock
<repo-hash>.db

Worktrees

Created by kavi open or kavi start. Location is managed by git.

Each worktree is a full checkout of the repository at the base commit, independent of the main working tree.

Environment Variables

VariableDefaultPurpose
KAVI_HOME_CONFIG_DIR~/.config/kaviUser-local config directory
KAVI_HOME_STATE_DIR~/.local/state/kaviMachine-local state directory
KAVI_ENABLE_SQLITE_HISTORY0Set to 1 to enable SQLite event mirroring

On this page