Skip to content

Common workflows

Run these from the directory that contains the chakshu binary, or from anywhere if the binary is on your PATH. Flags and defaults are in the CLI reference.

Watch a session while you work

./chakshu start
./chakshu logs -f
./chakshu tail --session #ab12cd34

#ab12cd34 is Chakshu's short session id. Commands that take --session also accept the full session id.

Filter tool calls

./chakshu logs 20
./chakshu logs --status fail --agent codex
./chakshu logs --session #ab12cd34 --full
./chakshu search "npm test" --agent claude-code
./chakshu count --by session

--by accepts tool, session, agent, or kind. The default is tool.

Cost, memory, and decisions

./chakshu stats
./chakshu stats --session #ab12cd34
./chakshu memory --session #ab12cd34
./chakshu decisions
./chakshu mcp-memory

mcp-memory speaks JSON-RPC on stdin and stdout. It is meant to be launched by an MCP client, not as a dashboard.

Security, supply chain, and processes

./chakshu audit --level high
./chakshu approvals --risk HIGH
./chakshu audit-mcp
./chakshu audit-skills
./chakshu plugins
./chakshu audit-plugins
./chakshu incidents
./chakshu network --live --spikes
./chakshu ps
./chakshu kill <pid> terminate

kill accepts terminate, kill, pause, or resume. It only signals processes it recognizes as agent processes.

The repository includes synthetic fixtures in examples/ for import and MCP audit. See examples/README.md:

./chakshu import examples/threat-demo.jsonl
./chakshu audit --level high

Snapshots, rollback, and evaluation

./chakshu rollback --list
./chakshu rollback <call-id>
./chakshu eval --ci --min-score 70

A sample GitHub Actions workflow for the eval gate is examples/github-actions/chakshu-eval.yml.

Import history and export telemetry

./chakshu import ~/.codex/sessions/
./chakshu import /path/to/transcript.jsonl --agent codex

./chakshu export --format json > telemetry.json
./chakshu export --format csv > telemetry.csv

--agent accepts codex, claude-code, gemini, and cursor. Omit it to let Chakshu match adapters from the file path.

Develop the dashboard or the Go code

cd web && npm install && npm run dev

The dev server is http://localhost:3000. Contributor checks:

make test
make vet
make fmt-check
make web-build

The full contributor workflow is in Contributing.