← Back to library

Make the coding agent log real numbers before guessing

u/no-shadowban-lmao spent seven months building ThinkTerm, an open-source WezTerm-based terminal that bundles its own multiplexer, with Claude Code planning, coding, testing and benchmarking under strict AGENTS.md rules. Because the agent cannot see the screen, it exports frames as images. The key lesson: demand logged numbers, after five wrong guesses on one bug.

  • OutcomeWhen a coding agent cannot see the result, such as a window it draws, have it log actual sizes and values or save frames as images instead of guessing.
  • SetupMinutes
  • LevelStarter
  • Creditu/no-shadowban-lmao on r/ClaudeAI
View original
Works with
Claude Code

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?

  • 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?

  1. Stop the guessingTell the agent not to change code until it has measured the problem.
  2. Add logsHave it print the actual sizes, positions or values involved.
  3. Save framesIf it draws a UI, have it save frames as images it can check.
  4. CompareAsk it to compare the logged numbers with what they should be.
  5. 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)

Prompt2 variables
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?
The author says reading actual sizes found the bug that five guesses missed.
Where should rules live?
The author keeps hard rules in AGENTS.md and moved other notes into memory.

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
Reddit
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.

More in IT & Security

All 82 IT & Security playbooks →

Related playbooks

IT & SecurityWorkflow✓ AI dry run

Compare an agent run with a task you did by hand

Before you believe big productivity claims, time and cost one routine agent task against a similar one you did yourself, counting review and cleanup.

Credit: Chris_Newton on Hacker News

Under an hour
IT & SecuritySkill✓ AI dry run

Find repeat fixes and good habits in your team's PRs

Have Claude Code look across a chosen window of commits and pull request review comments for the same fix or review note coming up again and again, suggest turning the top ones into a project rule or skill you write in your own words, and list good practices already in the repo that other teams could copy.

Credit: anthropics

Under an hour
IT & SecurityWorkflow✓ AI dry run

Hunt flaky tests overnight from CI pass-rate history

Let a coding agent watch your CI history, rank the flakiest tests, try to reproduce and fix them overnight, and leave pull requests for daytime review.

Credit: SeanAnderson on Hacker News

An afternoon+
IT & SecurityWorkflow✓ AI dry run

Intent to review: a five-command pipeline with one plan file

Run each feature through five agent commands, from intent to impact, planning, orchestration and review, all writing to one plan file you review in git.

Credit: gojkoa on Hacker News

An afternoon+