An AI agent can write a fix in under a minute. Getting it the right evidence (the real stack trace, the request that actually failed, the log line from the right process) is where a debugging session quietly turns into an afternoon.
So instead of another list of apps, here's a teardown of one bug's path on a Mac, stage by stage, with the tool I'd use at each step and the command that hands its output to the agent.
Stage 1: Find the evidence
1. Console (built into macOS)
If the bug lives in a Mac app or a local service, Apple's Console is already installed and collects log messages and reports. The trick I'd learn first is the property shortcut: type p:YourApp to show only that process, then save the search so it sits in the Favorites bar next time. Control-click a noisy message to hide that process or message type.
2. Sentry CLI
For errors from production, the newer Sentry CLI is built "for developers and agents." It detects the project from your .env, so there are no slugs to remember, and issue view and issue events --full print the details and stack traces right in the terminal.
brew install getsentry/tools/sentry sentry issue view @latest sentry issue events @latest --full It can also run as an MCP server, so an agent can pull issues itself: claude mcp add sentry -- sentry mcp. There's even sentry issue explain, which runs Sentry's Seer AI analysis on an issue.
Stage 2: Reproduce it
3. Proxyman
When the error is really a bad API response, Proxyman is a native macOS app that captures and decrypts HTTP(S) traffic, with Breakpoint, Map Local and Scripting for poking at it. The step I'd use most is right-click, Copy cURL (⇧⌘C), which gives a command with headers, cookies, query and body that the agent can rerun. It's free to start; per the pricing page, the Standard perpetual license is $89 for one device, and paid plans include MCP support for tools like Claude Code and Cursor.
4. HTTPie
Once I have the failing request, I'd turn it into a readable repro with HTTPie. Its syntax is shorter than cURL, output is formatted and colorized, and JSON is built in, which makes the repro easy to paste into a bug note or a test.
brew install httpie http POST localhost:3000/api/orders item_id:=42 qty:=0 Stage 3: Fix it
5. Claude Code
Claude Code is where the evidence goes. Per its docs, you paste an error message or describe the symptom and it traces the issue through the codebase, finds the root cause and implements a fix. It also follows the Unix pattern, so logs can be piped straight in:
sentry issue events @latest --full | claude -p "find the root cause and propose a fix with a test" A line in CLAUDE.md like "reproduce with the HTTPie command before changing code" keeps it honest.
6. lazygit
Agent fixes often touch more than the bug. lazygit is an MIT-licensed terminal UI for Git where I can press 0 on a file, stage only the hunk that fixes the bug (a switches to line-by-line), and leave the drive-by refactor out of the commit. shift+a amends the staged change into an earlier commit.
brew install lazygit 7. TokenBar
Debugging loops are the kind of session that burns through an agent plan without warning: every rerun resends logs, stack traces and diffs. TokenBar is a menu bar app that shows usage and reset times for Claude, Codex, Cursor, Gemini and Copilot, so I can tell whether to paste the full event dump now or trim it first. It doesn't add any quota.
It's built on Peter Steinberger's MIT-licensed CodexBar and credits Pixel Agents. $5/month Basic or $15 lifetime Pro, macOS 14+.
Stage 4: Ship it
8. GitHub CLI
GitHub CLI is free and open source and closes the loop without opening a browser: open the PR, then watch CI until it passes or fails.
brew install gh gh pr create --fill gh pr checks --watch If a check fails, its output is one more piece of evidence for the agent, and the loop starts again at stage 3.
Quick picker
| Stage | Question | Tool |
|---|---|---|
| Find | What did my Mac app log? | Console |
| Find | What broke in production? | Sentry CLI |
| Reproduce | What did the request actually send? | Proxyman |
| Reproduce | Can I rerun it in one line? | HTTPie |
| Fix | Who traces the root cause? | Claude Code |
| Fix | How do I commit only the fix? | lazygit |
| Fix | Do I have room for another long run? | TokenBar |
| Ship | Is CI green yet? | GitHub CLI |
Which stage eats most of your time when you debug with an agent: finding the evidence, reproducing it, or reviewing what it changed?

