Repository navigation
flipback: a Stop hook that sends Claude Code back when a turn ends before the work is done #2141
fainir
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
I kept ending Claude Code turns with a message that sounded finished when it was not: one of three parts done, or "Now let me run the tests." and then nothing. So I built flipback, a Claude Code plugin (a Stop hook plus a skill) that sends the agent back when a turn ends before the request is done.
How it works:
claude -p --model haikujudges whether the work is really unfinished. If so, the agent gets one short note naming the missing piece and keeps going.Measured on a month of my own sessions (823 turn endings): 86% never reached a model; it sent the agent back on 36 turns and was right on 30 of them. It also misses some by design, so for a must-finish job
/goalis still the tool. The README has the method and its limits.Install, in a Claude Code session:
Needs Node 18+ and the
claudeCLI; no API key or config. MIT.Repo: https://github.com/fainir/flipback?utm_source=github-anthropics-skills
Feedback on false nudges is very welcome, those are the cases I tune against. I'm the author.
All reactions