I Was Wrong About Codex /goals — Here's Proof

The AI How · Intermediate ·🔧 Backend Engineering ·2mo ago

About this lesson

I gave OpenAI Codex /goals a one-page spec. It autonomously built a 9-agent AI analytics platform — FastAPI backend, LangGraph agents, pgvector embeddings, Next.js dashboard. 47 minutes of wall-clock time. 230,000 tokens. Two /goal commands. I reviewed commits, not conversations. This is the full case study: what I built, how /goals works, what budget_limited actually means, and when you should use it. 👇 Full codebase: https://github.com/eightlabs08/creator-intelligence-agent 0:00 — 47 MIN · 9 AGENTS · 2 COMMANDS (the promise) 0:16 — The Karpathy Loop: the pattern /goals evolved from 0:35 — Why normal agents fail at 60% (and why you become the loop) 0:54 — Enabling Codex /goals (two lines in config.toml) 1:08 — The Spec: why it's the first line of code you write 1:25 — Goal 1: 150,000 token budget, backend platform 1:46 — Backend output: 9 agents live, 7 API routes, 12 DB tables 2:09 — budget_limited is not failure — it's a handoff document 2:31 — Goal 2: 80,000 token budget, Next.js frontend 2:47 — Frontend output: 8 pages, zero TypeScript errors 3:07 — The truth: the spec was load-bearing from the start 3:27 — When to use /goal (migration, refactor, spec-driven build) 3:46 — Subscribe + what's next (CI/CD integration) 🔗 Creator Intelligence Agent repo: https://github.com/eightlabs08/creator-intelligence-agent — In this video, we showcase an AI platform that automates research automation and content creation based on a written specification, eliminating the need for manual coding. This full demo highlights a workflow where ai agents operate in a loop, continuously refining output until a goal is achieved. It's a prime example of how ai automation and ai tools can streamline complex ai projects. Built with: • OpenAI Codex CLI v0.128.0 • LangGraph (9 agents) • FastAPI + PostgreSQL + pgvector + Redis + Celery • Gemini multimodal analysis + Apify content ingestion • Next.js 15 + shadcn/ui + TanStack Query + Recharts The AI How — tutorials for AI builders. #co

Original Description

I gave OpenAI Codex /goals a one-page spec. It autonomously built a 9-agent AI analytics platform — FastAPI backend, LangGraph agents, pgvector embeddings, Next.js dashboard. 47 minutes of wall-clock time. 230,000 tokens. Two /goal commands. I reviewed commits, not conversations. This is the full case study: what I built, how /goals works, what budget_limited actually means, and when you should use it. 👇 Full codebase: https://github.com/eightlabs08/creator-intelligence-agent 0:00 — 47 MIN · 9 AGENTS · 2 COMMANDS (the promise) 0:16 — The Karpathy Loop: the pattern /goals evolved from 0:35 — Why normal agents fail at 60% (and why you become the loop) 0:54 — Enabling Codex /goals (two lines in config.toml) 1:08 — The Spec: why it's the first line of code you write 1:25 — Goal 1: 150,000 token budget, backend platform 1:46 — Backend output: 9 agents live, 7 API routes, 12 DB tables 2:09 — budget_limited is not failure — it's a handoff document 2:31 — Goal 2: 80,000 token budget, Next.js frontend 2:47 — Frontend output: 8 pages, zero TypeScript errors 3:07 — The truth: the spec was load-bearing from the start 3:27 — When to use /goal (migration, refactor, spec-driven build) 3:46 — Subscribe + what's next (CI/CD integration) 🔗 Creator Intelligence Agent repo: https://github.com/eightlabs08/creator-intelligence-agent — In this video, we showcase an AI platform that automates research automation and content creation based on a written specification, eliminating the need for manual coding. This full demo highlights a workflow where ai agents operate in a loop, continuously refining output until a goal is achieved. It's a prime example of how ai automation and ai tools can streamline complex ai projects. Built with: • OpenAI Codex CLI v0.128.0 • LangGraph (9 agents) • FastAPI + PostgreSQL + pgvector + Redis + Celery • Gemini multimodal analysis + Apify content ingestion • Next.js 15 + shadcn/ui + TanStack Query + Recharts The AI How — tutorials for AI builders. #co
Watch on YouTube ↗ (saves to browser)
Sign in to unlock AI tutor explanation · ⚡30

Related Reads

📰
10 Most Common Mistakes Java Developers Make in Interviews
Learn the common mistakes Java developers make in interviews and how to avoid them to improve your chances of success
Medium · Programming
📰
# C++ Error Messages Translated — 10 Common Compilation & Link Errors Explained
Learn to decipher 10 common C++ error messages for compilation and linking, improving debugging efficiency
Dev.to · Yilong Wu
📰
# Picking What to Read Next: The Trade-offs of Ranked-Choice Voting in a Django App
Learn how to implement ranked-choice voting in a Django app, weighing the trade-offs and complexities involved
Medium · Python
📰
The Ultimate Rust ORM Comparison 2026: Diesel vs SQLx vs SeaORM vs Rusqlite — Pick Your Powerhouse!
Compare top Rust ORMs Diesel, SQLx, SeaORM, and Rusqlite to choose the best fit for your project
Medium · Programming

Chapters (13)

47 MIN · 9 AGENTS · 2 COMMANDS (the promise)
0:16 The Karpathy Loop: the pattern /goals evolved from
0:35 Why normal agents fail at 60% (and why you become the loop)
0:54 Enabling Codex /goals (two lines in config.toml)
1:08 The Spec: why it's the first line of code you write
1:25 Goal 1: 150,000 token budget, backend platform
1:46 Backend output: 9 agents live, 7 API routes, 12 DB tables
2:09 budget_limited is not failure — it's a handoff document
2:31 Goal 2: 80,000 token budget, Next.js frontend
2:47 Frontend output: 8 pages, zero TypeScript errors
3:07 The truth: the spec was load-bearing from the start
3:27 When to use /goal (migration, refactor, spec-driven build)
3:46 Subscribe + what's next (CI/CD integration)
Up next
Beginners Guide to GPT4 API & ChatGPT 3.5 Turbo API Tutorial
Adrian Twarog
Watch →