Features

Hooks: inject your logic before and after every tool call

PreToolUse, PostToolUse, SessionStart, Stop, UserPromptSubmit — six lifecycle points where you can attach shell scripts. Audit, rewrite, block, cache, report.

Turn the "AI black box" into a controllable workflow.

Config lives in the vault

Hook configuration sits at `<WorkspaceDir>/.kition/hooks.json` and travels with the vault. New machine, new team — same config.

Six lifecycle points

PreToolUse / PostToolUse wrap each tool call; SessionStart / Stop set up or clean resources; UserPromptSubmit rewrites or pre-processes input; Notification routes alerts.

Real-world uses

Audit — log every file write to a remote sink. Comply — block agent access to specific paths. Cache — store expensive web_fetch results. Augment — translate instructions into your DSL.

Composable with MCP and subagents

Hooks can fire new MCP calls or refuse a subagent spawn. The whole machinery composes cleanly.

Ready when you are.

Kition is a local-first AI workspace. Markdown documents, structured tables, and an AI agent — running on your own machine, against the model provider you choose.