How I AI

The Codex feature that works while you sleep

· Summarized

Share this episode
Anyone with this link can open it.
Share Link
Start at 0:00

Key takeaways

  • Goals in Codex enable long-duration, autonomous AI tasks by defining clear, measurable outcomes and structured verification processes.
  • Effective goal setting involves specifying outcomes, verification methods, constraints, and decision policies to guide AI work.
  • Goals significantly reduce the need for micromanagement, allowing AI to handle complex projects over hours or days without constant prompts.
  • Use Goals for substantial, outcome-oriented tasks; avoid them for simple, vague, or one-line edits.
  • The introduction of Goals marks a fundamental shift in human-AI collaboration, making AI work more autonomous and akin to managing a colleague.

Summary

Introduction to Goals in Codex

The host, Clarevo, introduces the concept of Goals in Codex, highlighting how this feature enables AI to operate autonomously for extended periods, handling complex and long-running tasks without constant babysitting. She emphasizes the transformative potential of Goals, contrasting them with traditional turn-based prompts, and illustrates how they support sustained AI workflows.

What Are Goals and When to Use Them

Clarevo explains that Goals allow the AI to work towards a specific outcome, continuously looping until the goal is achieved. She compares Goals with prompts, noting that prompts direct a task, while Goals define an outcome and include verification methods, constraints, and clear stopping criteria. She underscores the importance of well-structured, measurable goals for effective autonomous AI operations.

Structuring Effective Goals and Use Cases

The episode dives into how to craft strong Goals, emphasizing outcomes, verification, constraints, iteration policies, and clear success criteria. Clarevo shares technical examples like reducing checkout latency and error elimination, alongside practical non-technical uses such as cleaning thousands of emails and organizing project management tasks. She illustrates how Goals can significantly reduce manual effort and improve efficiency across various domains.

When and When Not to Use Goals

Clarevo discusses the limitations of Goals, advising against their use for simple, one-line edits or vague objectives. She emphasizes that Goals are most powerful when they involve a steady objective, measurable outcomes, and require multiple iterations. Proper application of Goals can lead to substantial productivity improvements, but misuse can result in unnecessary complexity.

The Future and Impact of Goals in Work with AI

The podcast concludes with Clarevo reflecting on how Goals shift the work dynamic from micromanagement to delegating autonomous task execution. She notes that this capability allows AI to handle complex problems over hours or days, reducing human oversight. She envisions a future where working with AI feels more like managing a colleague, thus transforming workflows, especially for engineering and product management teams.

Sponsors

  • Mercury · Mercury makes all of it feel effortless. The app is genuinely beautiful, it works like modern software, and makes financial operations simple — from bill pay to transfers and getting paid by clients. It just works, no fuss.

Show notes

In this 30-minute episode, I walk through my favorite feature in Codex: the /goal command. I show how Goals transform AI from a turn-based assistant that needs constant ‘what’s next?’ prompting into an autonomous agent that can work for hours on complex, multi-step tasks. I share three real examples: eliminating thousands of Sentry errors, cleaning 3,900 emails down to 68, and organizing hundreds of Linear tasks.


What you’ll learn:

  1. What Goals are and how they differ from standard prompts
  2. How I used /goal to eliminate hundreds of error logs in my codebase over a five-hour autonomous run
  3. The non-technical use cases that make Goals incredibly powerful: cleaning up 3,900 emails in under four hours and organizing hundreds of project management tasks in Linear
  4. How to write effective /goal prompts with measurable outcomes, verification methods, and constraints
  5. When not to use Goals and what makes a strong versus weak Goal
  6. Why Goals represent a fundamental shift in how we work with AI, from babysitting the model to managing it

—

Brought to you by:

Mercury—Radically different banking loved by over 300K entrepreneurs

—

In this episode, we cover:

(00:00) Introduction

(01:50) What is /goal and when should you use it?

(02:45) The difference between prompts and Goal-based loops

(04:06) Claire’s first five-hour 45-minute autonomous coding task

(05:05) How to manage a Goal lifecycle: view, pause, resume, and clear

(06:06) How to write strong goals: outcomes vs. outputs

(07:34) The six components of effective Goals

(08:57) Example: Reducing P95 checkout latency with /goal

(09:36) Demo: Using /goal to eliminate Sentry errors in ChatPRD

(13:18) Demo: Burning down Vercel API errors

(17:28) Non-technical use case: Cleaning 3,900 emails with /goal

(21:24) Demo: Using /goal to clean up Linear project tasks

(24:41) When not to use /goal

(26:10) Why /goal changes everything

—

Tools referenced:

• Codex: https://openai.com/codex/

• Sentry: https://sentry.io/

• Vercel: https://vercel.com/

• Linear: https://linear.app/

—

Other reference:

• OpenAI blog post “Using Goals in Codex”: https://developers.openai.com/cookbook/examples/codex/using_goals_in_codex

—

Where to find Claire Vo:

ChatPRD: https://www.chatprd.ai/

Website: https://clairevo.com/

LinkedIn: https://www.linkedin.com/in/clairevo/

X: https://x.com/clairevo

—

Production and marketing by https://penname.co/. For inquiries about sponsoring the podcast, email jordan@penname.co.

Follow this show on AudioBrevity and new episodes get summarized for you. Create a free account

Couldn't load the audio. A blocker may be stopping the show's tracking links. Open the file