Token Ninja — AI skill for Claude Code
token-ninja routes deterministic shell commands locally — zero LLM calls, ~19µs latency.
How to install Token Ninja
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open oanhduong/token-ninja and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Token Ninja does
token-ninja routes deterministic shell commands locally — zero LLM calls, ~19µs latency. Works silently inside AI tools via MCP.
Alternatives in AI
- Ante — Ghost in your shell 1.9k ★
- Room — Open-source earning-focused swarm intelligence engine 838 ★
- Memtrace Public — Structural memory for AI coding agents 466 ★
README
token‑ninja
The Claude Code companion that pays zero tokens for commands your shell already knows how to run.
**Built for Claude Code first.** `token-ninja` hooks into Claude Code's `UserPromptSubmit` event, intercepts commands like `git status`, `npm test`, or `docker ps` **before** they become an API call, runs them locally, and hands the result back to you — in the original colors, with a single dimmed footer line acknowledging the save. The model is never invoked. Zero input tokens, zero output tokens. Everything conversational flows through to Claude untouched.
Other AI tools (Codex, Cursor, Aider, Gemini, Continue) are supported via MCP, but the deepest, most invisible experience — the one that feels like you're just using Claude normally — is Claude Code.
[](https://github.com/oanhduong/token-ninja/actions/workflows/ci.yml) [](https://www.npmjs.com/package/token-ninja) [](https://www.npmjs.com/package/token-ninja) [](https://nodejs.org) [](LICENSE) [](https://github.com/oanhduong/token-ninja/stargazers) [](https://github.com/oanhduong/token-ninja/issues) [](https://github.com/oanhduong/token-ninja/commits/main) [](https://modelcontextprotocol.io)
[**Install**](#install) · [**Quickstart**](#quickstart) · [**How
Related Skills
Weir
Claude Code wrote grep 4,575 times and rg zero times across 25,216 Bash calls in one user’s transcripts. weir
Deterministic Agent Control Protocol
Governance gateway for AI agents — bounded, auditable, session-aware control with MCP proxy, shell proxy & HTT
Image Read Cache
Agent Skill that caches LLM image descriptions as XMP metadata inside image files, reducing token usage by ~92
Context Broker
Cut Claude Code token usage 80-95% on big-file reads. Deterministic, ~1ms, zero egress — no second LLM.
Gemini Model Router
Local-first agentic terminal that routes prompts across local Gemma 4 (vLLM), Gemini CLI, and Claude Code — pi
Claude Code Jev Smart Router
HTTP proxy for Claude Code that selects the Claude model per request to cut cost and latency. Routes on task p
Related Agents
AI Product Designer
The AI Product Designer designs LLM-, agent-, and ML-powered features inside the app: prompt UX, guardrails, l
Cdp Ninja Hidden Door
Browser debugging triage via CDP bridge - reconnaissance specialist. Routes to specialist ninja schools for de
Systems Architect
Use this agent when you need real-time systems architecture, ultra-low latency design, or deterministic system