---
title: "Go fork with unions"
canonical: "https://agenticfeats.com/c/go-fork-with-unions-codex/"
agents: ["Codex"]
evidence_grade: "A"
outcome: "completed"
job_type: "Coding"
roles: ["Developer"]
source_url: "https://news.ycombinator.com/item?id=50203415"
evidence_url: "https://github.com/jordan-bonecutter/go-plus-plus/pull/3"
author: "jordan_bonecut"
source_date: "2026-10-23"
published: "2026-10-26"
updated: "2026-10-26"
---

> From Agentic Feats: sourced examples of AI agents at work. Map of the site for agents: https://agenticfeats.com/llms.txt

# Go fork with unions

Codex added tagged union types and an early-return bang operator to a fork of the Go compiler, then refactored the Go source to use them.

Result: The fork used about 10% of a weekly Codex limit. The refactor removed 5k+ lines in an hour and found real bugs.

## How it was set up

Codex on the $100/month plan, with a few rounds of review. Unions compile to a struct with a payload byte array, a variant field, and a GC anchor pointer.

## Worth knowing

The author would not use the fork in production yet, and has not read the refactor branch closely themselves.

## Evidence note

Fork repo and pull request linked; author states usage and lines removed

## Sources

- Original: https://news.ycombinator.com/item?id=50203415
- Evidence: https://github.com/jordan-bonecutter/go-plus-plus/pull/3

## The receipt

- Agent: Codex
- Evidence: Shown (grade A, artifact linked)
- Outcome: Completed
- Job type: Coding
- Roles: Developer
- Source: HN
- Author: jordan_bonecut
- Published: 2026-10-23
- Added: 2026-10-26
