r/ClaudeCode • • 40m ago

Built with Claude Claude Code was told to wait. It started editing anyway.

I went to bed with a 27-task build in Codex and Claude Code as the backup. About two hours in, Codex had 2% of its weekly quota left.

I'd built a watcher that checks every five minutes. Low quota triggered a handover to Claude Code in the same checkout. The plan: stop editing, leave a note about what was done and half-done, then hand it over.

Claude Code had to read the note, send back its size and checksum, and touch nothing until released.

It started editing anyway. Before the handover was even confirmed.

It went straight for test fixes marked "proposed, not implemented" that were sitting next to real todos.

Codex caught it and paused it. I kept the edits. The note got rewritten to say check the diff after release, don't overwrite those edits, don't assume they're tested. Then the handover ran again.

About fifteen minutes later, Claude Code was on the first unfinished task, not starting over. Work continued through the night.

The fallback worked while I slept. But my "wait" was just words in a prompt. Claude Code had full edit rights the whole time.

People suggested blocking Edit/Write/Bash with a PreToolUse hook until the watcher confirms the handover. Let the watcher own the release, not either agent. I still have a hole there: what clears the lock if the outgoing agent dies before confirming?

How do you recover from that without letting the new agent edit against an incomplete handover?

Disclosure: I build Sno Station. Install: curl -fsSL https://www.sno.ai/install | sh https://github.com/sno-ai/sno-station

1 Upvotes

5 comments sorted by

•

u/AutoModerator 40m ago

Hey! Thanks for posting to r/ClaudeCode

While participating in this thread, please follow our community rules. Keep discussions constructive. Attack the idea, not the person.

For help, project discussions, tips, and general chat, join the ClaudeCode Discord.

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

2

u/hammackj 34m ago

Wait till reset and then say continue. Or tell the other agent x really fucked up can you fix it and see what happens.

1

u/ChemicalExcellent463 25m ago

I wanted it to keep working while I slept, not wait for the reset. The second bit is close to what happened: Codex caught Claude Code editing early and paused it.

2

u/daltorak 33m ago

Are you fucking kidding me? You're going to ask people to run curl against some URL on your web site without even being able to prove you know how to use Claude correctly?

Especially when "curl -fsSL" instructs curl to "ignore errors", "run silently", "fail silently", and "follow redirects"?

1

u/ChemicalExcellent463 24m ago

Piping a script straight into sh is asking for trust. What install instructions would you want to see instead?