Curated summary
Building self-improving tax agents with Codex
Building Self-Improving Tax Agents with Codex
Thrive Holdings and OpenAI built Tax AI, a system that prepares 1040 and 1041 tax returns for Crete's network of 30+ accounting firms, and it improves itself from production use. Rather than relying on engineers to find and fix each failure by hand, the system turns practitioner corrections and production traces into structured signals that Codex uses to propose and validate changes. Over one tax season across 7,000 returns, the system became measurably better: the share of returns reaching 75% correct field completion rose from a quarter at launch to 86% within six weeks, and the team sees the approach as a blueprint for self-improving agents in domains where practitioner expertise drives quality.
The Problem with Manual Iteration
Tax preparation is a real bottleneck. Practitioners prepare tens of thousands of returns each season, and data entry alone can take eight hours for a medium- to large-complexity filing. Early versions of Tax AI handled simple W-2s and 1099s, but harder work such as K-1s, rental real estate schedules, and multi-source reconciliation exposed a deeper issue. Practitioners could correct errors, but the product did not record why a value changed. A correction might reflect a true extraction miss, a mapping gap, missing product support, or ordinary workflow noise. Engineers had to follow up on each case, and the team lacked the signal needed to know which problem to tackle next.
A Three-Part Improvement Loop
The team built the system around three pillars:
- Stay close to practitioners. The people doing the work decide which errors matter and which parts of the workflow deserve attention next.
- Make production generate evidence. The product records the full path from source documents, to extracted fields and their provenance, to downstream submission and expert correction.
- Run a Codex-driven improvement loop. Once failures are structured, they become findings, targeted evals, and scoped engineering tasks that Codex can investigate, fix, and validate against regression suites.
From Correction to Eval: The Rental Property Example
Rental income on Schedule E is hard to extract reliably because the source material is messy: handwritten notes, emails, spreadsheets, and prior-year files. The system must extract only fields it can map confidently into the tax engine, and keep enough citation evidence for a practitioner to approve or correct the result.
- Capture the difference. Predicted output is compared with the filed return, producing field-level review rows that record the expected value, the predicted value, and whether the gap is actionable. Some differences are not model errors at all, such as a practitioner preference or a value carried forward from the prior-year return.
- Group related failures. Similar rows are clustered to separate recurring product failures from expected noise. Repeated corrections revealed that the system often missed "fair rental days," mishandled "other expenses," and confused multiple properties within one source package.
- Turn patterns into eval targets. Once reviewed and measured, these clusters become targeted eval sets with representative source packages and expected outputs.
Codex as the Engineering Engine
With the "fair rental days" failure packaged as an eval, Codex investigates within the product scaffold rather than reacting to a bad final output alone. It inspects the production trace, eval set, repository, and skills together, and it can determine whether the root cause is an unsupported field, a missed extraction pattern, a source-selection problem, a mapper gap, or a flawed grader.
- Codex makes targeted changes, such as extending the extraction schema, improving source selection, updating the tax-engine mapper, or refining the grader so that expected noise is not counted as failure.
- It reruns the targeted eval, runs broader regression suites, and surfaces a candidate pull request for engineering review.
- Ambiguous cases, or cases that cannot be safely automated, route back to the product team rather than being forced through the loop.
The task environment separates a writable worktree, which holds the scoped product code, evals, and skills, from read-only production context, which holds traces, source documents, predictions, finalized returns, and tax-engine documentation. Codex can investigate failures without modifying the underlying evidence.
Reusing the Pattern
Rental properties took about six weeks and significant engineering oversight to reach 90% precision and recall, but the work produced reusable abstractions, eval conventions, and review artifacts that made similar schedules, such as Schedule C and Schedule A, faster to support. Because Thrive Holdings is both owner and operator, its engineers work directly with practitioners and production data, which lets the team replicate this environment in other domains. The same three-part design is now being applied to bookkeeping, audit, and IT help desk workflows.
The broader takeaway is that practitioners generate high-value feedback as they deliver the service, the product preserves that feedback as structured evidence, and eval-backed engineering validates improvements before they ship. In one example, a senior accountant who spent 180 hours on tax prep last year spent only 15 this year, using the time saved to give clients more personal, high-touch service and to take on new work.
Related reading
Continue with another curated summary.
OpenAI2026-11-18 How OpenAI’s Performance Factory keeps ChatGPT fast
Read original
OpenAI2026-05-07 Running Codex safely at OpenAI
Read original
OpenAI2026-04-26 An open-source spec for Codex orchestration: Symphony.
Read original
OpenAI2026-02-10 Harness engineering: leveraging Codex in an agent-first world
Read original