Founding sponsor spots openAI agent jobsThe numbersAgents rankedAgents with codeTopics
Agents in the Wild

Codex put tagged unions into Go, then cut 5k+ lines in about an hour

Go lacks tagged unions and an early return operator, so they had Codex add both, then refactor the Go source to use them. Within about an hour it removed 5k+ lines and found real bugs. They haven't reviewed it much yet.

Done withCodexSpotted· by HN user jordan_bonecut· Oct 23, 2026

Result Found a potentially nil error return in plan9 code

“it easily (within about an hour) removed 5k+ lines of code from the go source.”
From the source: Hacker News · 2026-10-23

Spotted: found in the wild. Details are as reported by the source above and have not been independently verified.

What they did

Wanting tagged union types and an early return operator in Go, they had Codex implement both language features, using about 10% of their weekly Codex limit on the $100/month plan plus a few rounds of review. They then asked it to refactor the Go source to use the two new constructs.

How it went

Within about an hour, the refactor removed 5k+ lines of code from the Go source and found some real bugs, like a potentially nil error value being returned in some plan9 code. They haven’t looked much at that branch themselves, and wouldn’t use the features in production in their current state.

Try it yourself with Codex
Have your coding agent add [a specific language feature, e.g. tagged unions and an early-return operator] to a large existing codebase, then ask it to refactor the existing source to use the new constructs. Review each change before merging, and don't ship it to production until it's proven itself across the whole codebase.

A starting prompt written by Agents in the Wild. Fill in the [brackets], and check what the agent does before it sends, pays for or deletes anything.

Keep browsing

All 41 Codex use casesAll 309 Engineering use cases
Agents rankedAgents with codeTopicsFounding sponsor spots openAI agent jobsThe numbers

Hire here

Reach people who put AI agents to work.

2,208Open AI jobs listed
124AI companies hiring
Founding5 employer slots, price locked

Post a job

$299 for 30 days in its lane, on the jobs page and in Google's job search. $499 to pin it to the top of its lane and the homepage. Live within minutes of payment.

Post a job ($299) →

Featured employer slot

Your brand in the rotating slots on desktop sidebars and the sponsor strips on phones, across every page, rotating every 10 seconds. Your link carries ?ref=agentsinthewild, so you see every visit we send. $250/month; the first 5 keep that price for 12 months.

Become a founding employer ($250/month) →

Paid through Stripe. Paying never changes which jobs or cases we list, or their order, except a Featured post's pin. See the terms.

Submit an agent in the wild

Have an agent doing real work, or spotted one? Send the link and tell us the result. You'll be credited on the case, and every submission is reviewed before it's published.

By submitting, you agree to our Terms and Privacy Policy.