Local · free · open source

Prune your logs.

The context layer for AI debugging. Point Roka at any log file and get back only the lines that matter — collapsed, ranked, and packed to your token budget.

Open source Works offline
bash — deploy.log
$

10-line excerpt of a 12,847-line file — Roka prunes the same way at full scale.

Install Roka

One command installs the local CLI. Detects your OS and architecture automatically — no sudo required.

INSTALL ROKA

Installs the roka binary on your PATH.

terminal
$

                        
verify
$

                        
prune
$

                        

MCP

Connect Roka to your AI agent

Roka ships as an MCP server. Run one connect command for your agent — no manual JSON editing. After that, the agent can prune logs before they burn tokens.

CONNECT MCP
  • Writes the MCP config for your agent automatically (Claude Code, Cursor, Codex, Copilot).
  • Exposes prune_file, prune_logs, and prune_tail as tools.
  • Optional Pro key: npx roka-mcp connect --agent cursor --api-key rk_live_...
  • Watch mode: npx roka-mcp watch ./logs/dev.log --on-crash