When should you use it?
- The agent keeps guessing at a visual or layout bug
- Fixes come back confident and wrong
- The agent cannot see what it built
Not for: Bugs with clear stack traces; Code you can test directly
What do you need, and what do you get?
You need
- Bug description
- Where to add logging
- A way to save screenshots or frames
You get
- Logged values for the failing case
- Saved frames
- A fix based on measured data
How does it work, step by step?
- Stop the guessingTell the agent not to change code until it has measured the problem.
- Add logsHave it print the actual sizes, positions or values involved.
- Save framesIf it draws a UI, have it save frames as images it can check.
- CompareAsk it to compare the logged numbers with what they should be.
- Fix and recheckMake the change, then log again to confirm.
The prompt
Our own prompt, inspired by u/no-shadowban-lmao on r/ClaudeAI and written to work in Claude Code. Values in lime are placeholders.
Fill in the blanks (optional; the copied prompt uses your values)
Do not change any code yet. For this bug: {bug}, add logging that prints the actual values involved: {values_to_log}. If it is visual, save a frame as an image. Run the failing case, show me the numbers, and explain what they should be. Only then propose a fix, and log again afterwards to confirm it.
Inspired by u/no-shadowban-lmao on r/ClaudeAI: ThinkTerm: cross-platform pure Rust terminal multiplexer, multi-machine workspaces, no UI framework. The prompt above is written by playbooks.bot in our own words; nothing from the original is quoted.
What can go wrong?
- Remove noisy logs after the fix.
- Screenshots can include private data; keep them local.
- A rules file that grows too long gets ignored; the author trimmed theirs.
Our take
The best line in u/no-shadowban-lmao's write-up is a debugging rule worth pinning above any agent session: make it log real values before it theorizes. Models produce plausible explanations effortlessly, and without data each new guess sounds as convincing as the last, which is how one bug absorbed five wrong fixes. Once actual sizes and positions were printed, the agent was comparing numbers, a task it does well. Put the rule in your agents file in plain words, for example that any visual or layout bug requires logging the measured values and the expected ones before proposing a change. The frame-export trick is the other reusable idea. A terminal emulator's rendering is invisible to the agent, so dumping frames as images gives it something concrete to inspect and gives you an artifact to check. Seven months is also a reminder that long projects with agents still need a human reviewer and stable rules; the author's role shifted to reviewing and deciding, not disappearing.
Where the time goes back: One logging pass replaces rounds of confident wrong fixes.
FAQ
Why does this help?
Where should rules live?
Source and credit
Inspired by u/no-shadowban-lmao on r/ClaudeAI. We describe the idea in our own words, link to the original, and wrote the prompt ourselves; nothing is quoted.
- Inspired by
- ThinkTerm: cross-platform pure Rust terminal multiplexer, multi-machine workspaces, no UI framework
- Creator
- u/no-shadowban-lmao on r/ClaudeAI
- Published on
- Original date
- Oct 20, 2026
- License
- Not openly licensed (the poster keeps all rights), so we quote nothing and link to the original
- Originally for
- Claude Code
- 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.