CLI commands
Every MCP tool has a CLI equivalent for shell use: senkani exec, senkani search, senkani fetch, senkani bench, senkani kb, senkani learn. Scriptable, pipeable, CI-friendly.
Command
What it does
Status
senkani exec
Run a command with the filter pipeline applied to output. Mutating commands pass through unchanged.
—
Live
senkani search
Symbol lookup from the tree-sitter index.
—
Live
senkani fetch
Read a symbol's source lines by name.
—
Live
senkani explore
Navigate the codebase via the import graph from an entry point.
—
Live
senkani index
Build or update the symbol index manually.
—
Live
senkani validate
Local syntax validation across 25 languages. Zero API calls.
—
Live
senkani stats
Lifetime metrics from the session database. FTS5 search over tool output history.
—
Live
senkani export
JSONL dump of sessions + commands + token_events. GDPR-adjacent data portability.
—
Live
senkani wipe
Destructive: delete session DB + socket-auth token.
—
Live
senkani bench
Run the benchmark suite: 10 tasks × 7 configs.
—
Live
senkani init
Register MCP server + hooks with Claude Code. Idempotent.
—
Live
senkani doctor
Diagnose and optionally repair hook registration, binary paths, grammar versions, config.
—
Live
senkani compare
Diff two files or git revisions through the filter pipeline.
—
Live
senkani grammars
Show installed tree-sitter grammar versions.
—
Live
senkani schedule
Schedule recurring commands via launchd.
—
Live
senkani uninstall
Clean removal of all senkani config, hooks, and MCP entries.
—
Live
senkani kb
Query and manage the project knowledge base.
—
Live
senkani eval
Quality gates: bench savings + KB health + regression detection.
—
Live
senkani learn
Compound learning CLI — review staged proposals, accept/reject, audit.
—
Live