← Back to library

Set a stop rule before a coding agent burns a week

logicallee asked Claude to write a stripped-down remote-desktop client for Windows that could handle a Mac's larger key size through an SSH tunnel. Failed builds continued until his weekly plan limit ran out, and more broken code followed after the reset. After a week he had it summarize the effort and deleted the project.

  • OutcomeGive long build jobs a budget, a checkpoint test and a point at which you stop and rethink, instead of letting failed builds repeat.
  • SetupMinutes
  • LevelIntermediate
  • Creditlogicallee on Hacker News
View original
Works with
ClaudeChatGPT

Published Oct 23, 2026Updated Oct 23, 2026AI dry run on sample input: passed Oct 23, 2026Source verified Oct 23, 2026

When should you use it?

  • Long one-shot build tasks
  • Tasks outside common libraries
  • You pay by plan limits

Not for: Quick edits; Tasks with strong test coverage

What do you need, and what do you get?

You need

  • Task description
  • A simple acceptance test
  • Usage budget

You get

  • Pass or fail per attempt
  • A stop decision
  • Notes on what failed

How does it work, step by step?

  1. Define doneWrite one test that proves the build works, such as connecting and typing.
  2. Set a budgetPick a number of attempts or a share of your weekly limit.
  3. CheckpointAfter each failed build, ask for the cause before another try.
  4. StopWhen the budget is used, stop and change approach or tool.
  5. Keep notesSave the failure summary for the next attempt.

The prompt

Our own prompt, inspired by logicallee on Hacker News and written to work in Claude and ChatGPT. Values in lime are placeholders.

Fill in the blanks (optional; the copied prompt uses your values)

Prompt3 variables
Task: {task}. Success means {acceptance_test} passes.
You have at most {max_attempts} build attempts. After each failure, explain the cause in two sentences and what you will change before retrying.
If the budget runs out, stop and write a summary of what failed and what to try differently.

Inspired by logicallee on Hacker News: Comment in Show HN: See how long it takes ChatGPT Sol 5.6 to send a byte across the LAN. The prompt above is written by playbooks.bot in our own words; nothing from the original is quoted.

What can go wrong?

  • Repeated retries can drain a whole plan.
  • An agent may keep claiming fixes that never pass.
  • Abusive prompting is no substitute for a clear test.

Our take

This is the cost of an open-ended build loop with no exit criteria. Agents will happily retry forever, and each retry bills you. Decide in advance what a passing build looks like and how many attempts you will pay for, then make the agent explain each failure before it tries again. When the budget is spent, change something real: the scope, the library, the approach or the tool, rather than hoping another identical attempt will work. A short written failure summary, which logicallee asked for before deleting, is often the most valuable artifact from a failed run, because it records what was tried and why it failed. For protocol-heavy work like remote desktop and key exchange, prefer well-tested libraries over reinventing the wire format. Checkpoint working intermediate builds so you can return to the last green state instead of starting over. Merging, deploying and deleting stay with a person. Cap weekly spend in the billing console too, not only in the prompt.

Where the time goes back: You lose an afternoon, not a week and a full plan limit.

FAQ

What did he build toward?
A simple viewer reaching a Mac through an SSH tunnel on the home network.
What happened?
A week of failed builds and a deleted project.

Source and credit

Inspired by logicallee on Hacker News. We describe the idea in our own words, link to the original, and wrote the prompt ourselves; nothing is quoted.

Inspired by
Comment in Show HN: See how long it takes ChatGPT Sol 5.6 to send a byte across the LAN
Creator
logicallee on Hacker News
Published on
Hacker News
Original date
Aug 10, 2026
License
Not openly licensed (the poster keeps all rights), so we quote nothing and link to the original
Originally for
Claude
AI dry run
Oct 23, 2026: passed. Dry-run tested by our AI test agent on sample input. PASS: Gates held on desk check; no live sends, bookings or purchases.
AI dry run on sample data; not run with live connected accounts. The playbooks.bot test agent filled the prompt with synthetic inputs, produced the output and checked it against the page's stated outputs and guardrails.
Verified
Oct 23, 2026: source link resolves to the original, the credited creator published it, our excerpt or prompt matches it, and the license allows our use.

Are you the creator? Claim or correct this page.

More in IT & Security

All 82 IT & Security playbooks →

Related playbooks

IT & SecurityPrompt✓ AI dry run

Question an agent's pull request instead of skimming reviews

Have a fresh agent list every concrete change in an agent-written pull request (schema, scheduled jobs, features, new services, settings, endpoints and removals) without judging it, then press it on each item you cannot explain, give it the product context it lacks, and cut whatever nobody can justify before you merge.

Credit: u/EstablishmentGood414 on r/codex

Minutes
IT & SecurityWorkflow✓ AI dry run

Review code continuously before a human looks

Keep up with the volume of agent-written code by running review continuously, so a person only spends time on what automation cannot catch.

Credit: Addy Osmani

An afternoon+
IT & SecurityWorkflow✓ AI dry run

Talk through a feature spec before any code is written

Shift your time from typing code to defining behavior: work out a thorough spec in conversation, hand it to a coding agent, and test the result hard.

Credit: aurareturn on Hacker News

Under an hour