Spend your usage limits on work, not on re-reading history.
Without agent-thread-tools, every request resends the whole conversation. With it,
each long Claude Code or Codex session hands off before it bloats, so every project
runs as one forever thread at a fraction of the tokens.
 30–40% fewer tokens in long sessions, so plan usage limits go further. |  No quality loss Handoffs are audited; open items always carry forward. |  Everywhere you code Claude Code and Codex: terminal, desktop, mobile. |
|---|

Past a threshold (300k tokens on a 1M-context model, half the window on a smaller
one), Claude writes and checks a handoff of everything still open. You run /clear,
the handoff loads on its own, and work carries on in a small, fresh session.
How the savings are measured →
⚖️ Powered by Jev, optional
The judgment calls come from Jev, TypeSafe's yes/no decision model on OpenRouter:
when to hand off, and whether the handoff left anything out. About 0.2 seconds a
question, a fraction of a cent a handoff.
| With Jev | Without Jev |
|---|
| ✓ Hands off at a natural break | Hands off at the threshold, even mid-task |
| ✓ Audits the handoff, open items too | No audit |
| ✓ Ranks what the draft keeps | The draft keeps the latest messages |
| ✓ Counts corrections afterwards | Savings measured, quality not |
In real use Jev held a handoff at 329k while work was mid-way, and its audit caught
seven owed device checks a handoff had dropped. It runs on your own OpenRouter key
and sees only redacted excerpts. Set up Jev →
🚀 Two commands
In any Claude Code session:
/plugin marketplace add zenzig/agent-thread-tools
/plugin install agent-thread-tools@agent-thread-tools
Then just work. Check any session with /agent-thread-tools:thread-health, or hand
off yourself with /agent-thread-tools:thread-handoff. For Codex and the
command-line tools, npm install -g agent-thread-tools; see the
installation guide.
🔐 What it runs and sends
Everything runs on your machine from readable Python and JavaScript, with no
telemetry. A hook reads the end of the session's transcript after each turn; the
handoff skill writes the handoff, CLAUDE.md, CLAUDE.local.md, and a local
.reference/ git repository that is never pushed. Nothing leaves the machine unless
you add an OpenRouter key for Jev, which then receives redacted excerpts.
PRIVACY.md lists every file and every excerpt.
📚 Documentation
All guides: Documentation.
📋 Project