Diagnose Swift errors with ChatGPT from symptoms and code
A Swift developer feeds error symptoms and code to ChatGPT to get a starting lead on the cause, then reviews the code it produces.
Done withChatGPT
- What they did
- The developer writes Swift and pastes an error's symptoms along with the relevant code into ChatGPT, asking what it thinks is going on. They use it like Stack Overflow, but faster and interactive. They review all the code it gives back and have not yet used any of it verbatim.
- How it went
- Per the commenter, it usually gives a good starting point in about half a minute, versus roughly half an hour working it out alone. They found it better than Claude for Swift and it picked up their style.
- Worth knowing
- Treat the answer as a lead, not a fix: the author still reviews everything and hasn't used generated code verbatim.
Try it yourself with Codex
I'm getting this error in my [language/framework] project: [paste error message or describe symptoms]. Here is the relevant code: [paste code or file path]. Find the most likely causes ranked by probability, tell me how to confirm each, and propose a minimal fix as a diff. Don't apply any changes until I've reviewed the diff.
Source: HN · Dec 9, 2025
Five of these in your inbox every morning
The best things people got an AI agent to do, each with the prompt to try it.
More like this
- Claude
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.
- Custom agent
Add agentic forgetting to an agent's memory
Someone implemented a rudimentary version of Tim Kellogg's agentic forgetting approach and reports it works impressively even in its simplest form.
Hand narrow code changes to Devin for pull requests
A team used Devin for a month on small fixes like chart formatting and API edge cases, with tests and PRs; a complex full-stack task went poorly.
Migrate toolchain, architecture and site design with Claude Code
A developer had Claude Code switch a monorepo to oxlint/oxfmt, restructure the architecture and redesign a site, validating in a loop; the redesign took days instead of weeks.
Build and deploy a Game of Life simulation site
In a vendor launch demo, Devin built an interactive Game of Life website, added requested features step by step, and deployed it to Netlify.
Resolve a Slack-reported issue with a coding agent
A Codex agent resolved an issue passed to it in about 40 minutes, and an ops agent verified the fix back in Slack.