agentusecases.aiAll 2,316 use cases
Software & DevOps

Debug overnight with a long-running agent

The author leaves Codex CLI running for hours to add debug prints and test hypotheses against a reproducing unit test, often only to find the bug.

Done withCXCodex

What they did
The author starts Codex running for a few hours overnight on a bug they can't explain. The key requirement is a deterministic unit test that reproduces the bug through the app's front door. The agent then grinds through the tedious work on its own: adding debug prints throughout the code and testing hypotheses about the cause.
How it went
The source gives no numbers or specific results. The author calls it an ideal use case and says they do it routinely, though it doesn't say how often the agent actually finds the bug.
Worth knowing
Write a deterministic reproducing test first, entering through the app's front door; the approach depends on the agent having a repeatable pass/fail signal to test hypotheses against.

Try it yourself with Codex

There is a bug in [project] that reproduces with the test [test name or path]. Form hypotheses about the cause, add temporary debug prints, run the test, and keep testing hypotheses until you find the root cause. Stop when you can explain the cause with evidence from the output, then list the debug prints you added and remove them. Propose a fix but do not apply it without asking me.

Want help getting this working? Join the Vibe Coding Academy ↗ Run by Alex Finn, who also runs this site.

Read the original ↗

Source: HN · Undated

Related use cases

  • CC

    Turn tickets into merged pull requests

    Pulls tasks from GitHub Issues or Linear, then runs Claude Code or Codex in isolated Kubernetes pods to carry each one through to a PR.

    Claude CodeCodex

  • CX

    Build and publish a BaZi chart reading agent

    Built solo with coding agents, an agent computes BaZi charts, interprets them, detects language and takes on-chain payments for readings.

    Codex

  • CX

    Schedule Codex automations for docs, tracking, and API tests

    The poster uses Codex automations to update agents.md files, refresh a daily master tracking file for a large project, and test ICS source code and an API.

    Codex

  • CL

    Build a C compiler with a team of parallel agents

    Anthropic's engineering write-up on tasking Opus 4.6 agent teams with building a C compiler.

    Claude

  • RA

    Build a Pokemon-style dog collecting app

    A user had Replit Agent build a catch-em-all dog app whose rarity comes from scraped American Kennel Club regional population data.

    Replit Agent

  • ··

    Review agent work plans and track user intent logs

    A developer logs every user message to distill intent and has agents review saved plan files against project constraints before executing work.

    Custom agent

Keep browsing

All 107 Codex use casesAll 433 Software & DevOps use cases

Get 5 like this every morning

The best things people got an AI agent to do, each with the prompt to try it.

All use casesAgentsTopicsJobsNewRSSAboutContactSponsorPrivacy
Sponsors
VCVibe Coding Academy: Master AI and automate your lifeS/Ship/It Weekly: #1 AI newsletter on planet Earth+Your logo here: sponsor usVCVibe Coding Academy: Master AI and automate your lifeS/Ship/It Weekly: #1 AI newsletter on planet Earth+Your logo here: sponsor usVCVibe Coding Academy: Master AI and automate your lifeS/Ship/It Weekly: #1 AI newsletter on planet Earth+Your logo here: sponsor usVCVibe Coding Academy: Master AI and automate your lifeS/Ship/It Weekly: #1 AI newsletter on planet Earth+Your logo here: sponsor usVCVibe Coding Academy: Master AI and automate your lifeS/Ship/It Weekly: #1 AI newsletter on planet Earth+Your logo here: sponsor us
VCVibe Coding Academy: Master AI and automate your lifeS/Ship/It Weekly: #1 AI newsletter on planet Earth+Your logo here: sponsor usVCVibe Coding Academy: Master AI and automate your lifeS/Ship/It Weekly: #1 AI newsletter on planet Earth+Your logo here: sponsor usVCVibe Coding Academy: Master AI and automate your lifeS/Ship/It Weekly: #1 AI newsletter on planet Earth+Your logo here: sponsor usVCVibe Coding Academy: Master AI and automate your lifeS/Ship/It Weekly: #1 AI newsletter on planet Earth+Your logo here: sponsor usVCVibe Coding Academy: Master AI and automate your lifeS/Ship/It Weekly: #1 AI newsletter on planet Earth+Your logo here: sponsor us