
Thinker helps your coding agent use fewer tokens and start every session oriented. Find what it loads but
rarely uses, review what to cut, and let it learn how you work.
- Find savings. See which instructions, skills and tools consume context without helping your sessions.
- Make the cuts. Shorten instructions, switch off unused tools and compress long outputs. You review the changes.
- Start oriented. Thinker learns from your sessions how you work in each repository, what you are in the middle of and what went wrong before, and puts that profile into every session's first prompt.
Already installed? Open your dashboard · Setup guide
Install
npx thinkersh
The installer connects your coding agents and shows suggested savings from your recent sessions.
Review them in your browser or terminal, then keep coding as usual.
Works with Claude Code, Codex, Cursor, Gemini CLI, Devin CLI and more.
Requires Node 20+, git and a supported agent. Free and open source.
See how it works · Setup guide
Open your dashboard
Run this in your terminal, from any directory:
thinker ui
Your local dashboard opens in your browser with Find Savings, View Report, and Recent activity
across the repositories on this machine. No account is required.
To open View Report directly:
thinker ui --tab report
thinker report prints a report in the terminal; use thinker ui for the browser dashboard.
What works with which agent
Four things thinker does, and where each one reaches. "Automatic" means the installer wires it; "by hand" means
the agent can take it once you point it there; a blank means the agent gives thinker no way in.
| Agent | Tool output compression | Session profile | Instruction file optimization | Token usage analytics |
|---|
| Claude Code (CLI, VS Code, JetBrains) | the proxy clears the tool results the agent is done with; wired automatically | yes: on the first prompt, learned from every session | yes: every section, nested file and rule measured; cuts as pull requests | yes: tokens by part and by model, week by week |
| Claude desktop app (Code tab) | old tool results cleared inside the session itself; wired automatically (Desktop sets its own API URL, so the proxy cannot sit in front of it) | yes, through the session itself | yes | yes |
| Codex CLI and app | no: Codex speaks only OpenAI's API, and its hooks cannot rewrite a result | yes | the root AGENTS.md measured | yes |
Cursor (editor and agent CLI) | no: calls go through Cursor's servers | yes (the CLI one tool call late) | the root AGENTS.md measured | partial: Cursor reports no token usage |
| Gemini CLI | no: Google's API only | yes | the root AGENTS.md measured | partial: tool outputs only |
| pi | automatic: the proxy, through models.json | yes | | |
| OpenCode, Kilo Code | automatic for OpenCode (opencode.json); Kilo's CLI by hand | yes | | |
| Factory Droid | by hand: a custom model with the proxy as its base URL | yes | | |
| Qwen Code | by hand, on an Anthropic model provider | yes | | |
| GitHub Copilot CLI, Copilot in VS Code | by hand (the CLI, with your own Anthropic key) | yes, one tool call late | | |
| Cline | by hand: the Anthropic provider's custom base URL | yes (the CLI one tool call late) | | |
| Kiro CLI | no: Kiro's own backend | yes (V3 engine) | | |
| Devin CLI and Devin Desktop's local agent | automatic: Devin's own compactor, set to the same 140k trigger the proxy uses (Devin exposes no model endpoint, so the proxy cannot sit in front of it) | yes: on the first prompt, learned from every session through Devin's own background subagent | | |
| Windsurf Cascade | no: Windsurf's servers | no: its hooks only record, for learning | | |
| Auggie | no: Augment's servers | no: Auggie has no prompt hook | | |
| Goose | automatic on its Anthropic provider: the proxy, through ANTHROPIC_HOST in its config.yaml | no: its hooks only record, for learning | | |
The compression is off by default since 23 November 2026: proxy: { cut: true } in ~/.thinker/config.json turns
it on, and the column says where it reaches once it is. It replaces the tool results the agent has finished
with, through a local proxy thinker keeps running; it reaches any agent that speaks the Anthropic Messages API at
a base URL you can set. A section cut benefits every agent that reads the file, whichever agent's sessions
measured it. Details and the hook events behind each cell: docs/agent-integrations.md.
How you use it
You don't run thinker by hand. Once it is installed there are three ways in: