rethinker

How it works

Long Claude Code sessions get expensive and unfocused for a simple reason: every turn re-reads everything that came before. rethinker watches for the moments when carrying that history stops paying off, and makes starting fresh cheap.

The problem

A coding agent sends the whole conversation back to the model on every turn. Prompt caching makes those re-reads cheaper, but they still cost money, and a cache entry only lives for a few minutes without use. After a coffee break, the next turn writes the entire context to the cache again.

As a session grows, each turn costs more and the model has more noise to sort through. The obvious fix, making prompts shorter, does not reliably help: in one recent study, a method that cut tool-output tokens by 38.4% raised the billed cost by 6.8% (arXiv:2607.12161). What matters is when you carry history forward and when you start clean.

The flow

rethinker runs alongside your Claude Code session. It also works with Codex CLI and GitHub Copilot.

Sessionyou work in Claude Code as usual
Signalscontext size, cache state, repeated commands
Suggestiona short message at the moment it matters
Handoff noteClaude summarizes what the next session needs
Fresh sessionstarts from the note, not the transcript

The signals

Each signal maps to one concrete suggestion.

SignalWhat rethinker watchesWhat it suggests
Large contextThe session's context passing a size where every turn gets expensiveHand off to a fresh session
Cold cacheTime since the last turn compared with the prompt-cache lifetimeHand off before the next turn re-writes the whole context
Runaway loopThe same command run again and again with no edit in betweenPause and rethink the approach
Unclear promptRequests likely to cost extra turns of back-and-forthA clearer version of the ask

The handoff note

Short enough to start a session cheaply, complete enough that nothing important is lost.

By hand vs. with rethinker

Everything in the right column is in the private beta today.

By handWith rethinker
When to restartYou guess, usually too late.A suggestion when carrying the history costs more than restarting from a note.
What the next session starts fromWhatever you re-paste from memory.A short note: goal, done, decisions, open files, next step.
Cache timingInvisible. The first turn after a break silently re-writes everything.A heads-up before the cache goes cold.
Cost per taskVisible only on the invoice, as a total.Per task, split into input, cache writes, cache reads and output.
LoopsNoticed after the third or fourth retry.Flagged when the same command repeats with no edit in between.

How we measure cost

We measure in money, per task. For each task we take Claude's own usage data, split into input, cache writes, cache reads and output, and price each part at the published API rates. rethinker's own Claude calls count against it too. Savings only count if the same kind of task gets cheaper, not if a prompt gets shorter.

How to run the same comparison on your own work, and where we stand on published results: Guide → Measure it on your own work.

What's next: legacy modernization

The same discipline (small steps, clear handoffs, honest measurement) is what large rewrites need. We are building a modernization workflow in which Claude agents map a legacy application into an inventory graph of screens, endpoints, data and dependencies, split the work into small slices with acceptance criteria and a rollback plan, and draft each slice for engineers to review and own. It is in development and not yet available. See the roadmap.

Running long Claude Code sessions? Let's look at one together.

Write to sales@rethinker.dev with your team size and the agents you use.