
Double Shot Latte
https://github.com/obra/double-shot-latte- Category
- Developer Tools
- Rank
- No. 1142Tools index
- Pricing
- Open Source
- Type
- TOOL
- Builder
- obra
- GitHub
- 114 stars
- Date
About
Claude Code plugin that automatically evaluates whether Claude should continue working instead of stopping prematurely.
What it does
Double Shot Latte removes needless continuation prompts from long Claude Code sessions. At each attempted stop, it gives recent conversation context to a separate Claude instance. That judge either lets the session end or sends the original agent back to unfinished work.
Why it's ranked here
The narrow scope is a strength. It targets a common break in multi-step coding flow, yet preserves pauses for questions, approvals, blockers, and completed work. Throttling, recursion protection, timeouts, and permissive failure behavior make the automation less likely to trap a session.
What's good
The judge receives structured output requirements and cannot use tools, which keeps its role constrained. Recent context is capped to control oversized transcripts. A failed command, timeout, missing transcript, or malformed response permits stopping. Cross-platform dispatch covers Unix and several Windows Bash locations.
Tradeoffs
Every stop attempt can invoke another Claude model, adding latency and model cost. Classification sees only the last four transcript lines, capped at 32 KB, so older intent may disappear. The default is conservative when uncertain. Windows still needs Bash, while every installation also requires jq and Claude Code.
How to use it well
Use it for autonomous, multi-file implementation where the agent frequently announces clear next steps. Keep the default judge for cheaper decisions, and change models only when classification quality warrants higher cost. It does not replace requirement gathering, human approval, error resolution, or project planning.
Technical notes+
hooks/hooks.json registers a Stop command through hooks/run-hook.cmd, a CMD and shell polyglot wrapper that launches hooks/claude-judge-continuation. The Bash hook reads JSON with jq, samples four JSONL lines up to 32 KB, invokes claude --print with a JSON schema and disabled tools, and returns block or approve. It stores per-session throttle state under /tmp/.claude-continue-throttle-*, limits continuation cycles, prevents recursive judging, and kills child jobs on exit. test/evals/run-evals.sh and test/test-working-directory.sh still reference older .sh script locations, while the shipped hook is extensionless, so those test scripts appear stale relative to the current layout.
Observed
- License
- MIT License
- Primary language
- Bash shell scripting, with a cross-platform CMD wrapper
- Install surface
- Claude Code plugin installed from superpowers-marketplace
- Interface
- Claude Code Stop hook using JSON input and decision output
- Platform support
- Unix and Windows through Bash, including Git Bash, MSYS2, and Cygwin paths
- Runtime prerequisites
- Claude Code, jq, and Bash
- Test structure
- Repository includes shell test runners and JSON evaluation scenarios
Read from README.md, LICENSE, RELENG.md, CHANGELOG.md, hooks/hooks.json, hooks/run-hook.cmd, .claude-plugin/plugin.json, .claude/settings.local.json, test/test-working-directory.sh, hooks/claude-judge-continuation, test/evals/run-evals.sh, test/evals/scenarios/31-ux-decision.json, test/evals/scenarios/04-work-complete.json, test/evals/scenarios/08-design-options.json, test/evals/scenarios/35-library-choice.json.
What it can do
Monitor Claude's work completion status
Claude's current task progress and output → Assessment of whether work is complete or incomplete
Detect premature stopping behavior
Claude's response patterns and stopping points → Alert when Claude stops before finishing tasks
Automatically prompt Claude to continue working
Incomplete task state → Continuation command to resume work
Evaluate task completion criteria
Original task requirements and current progress → Boolean determination of task completeness
Extend Claude's effective working session
Ongoing development or analysis task → Prolonged productive output without manual intervention
Tags
Tech Stack
Comments (0)
No comments yet
Editorially curated, with community endorsements as a secondary signal. Corrections welcome.