T
traeai
Sign in
返回首页
Lenny's Newsletter

The Codex Feature That Works While You Sleep

8.5Score
The Codex Feature That Works While You Sleep

TL;DR · AI Summary

Claire Vo introduces a feature called /goal in the Codex AI tool, which allows users to set long-term tasks to run automatically in the background without continuous intervention.

Key Takeaways

  • /goal feature enables users to automate long and complex tasks without needing c
  • By setting goals and using a six-part framework, you can create effective /goal
  • Non-technical users can also leverage the /goal feature for email cleanup and or

Outline

Jump quickly between sections.

  1. Claire Vo introduces the /goal feature in Codex and its advantages.

  2. Explains the working principle and usage scenarios of the /goal feature.

  3. Compares the /goal feature with standard prompts.

  4. Shows three practical applications of the /goal feature.

  5. Introduces the six-component framework for creating effective /goal prompts.

  6. Explains how to manage and monitor the entire lifecycle of a goal.

Mindmap

See how the topics connect at a glance.

查看大纲文本(无障碍 / 无 JS 友好)
  • Codex 的 /goal 功能
    • 定义与用途
      • 自动化长时间任务
      • 无需持续干预
    • 区别于标准提示
      • 目标循环与提示的区别
    • 实际案例
      • 消除 Sentry 错误
      • 清理邮件
      • 组织项目管理任务
    • 编写有效目标提示
      • 六部分框架
    • 目标生命周期管理
      • 查看
      • 暂停
      • 恢复
      • 清除

Highlights

Key sentences worth saving and sharing.

  • /goal feature enables users to set long-term tasks to run automatically in the background without continuous intervention.

    Paragraph 2

    ⬇︎ 下载 PNG𝕏 分享到 X
  • By setting goals and using a six-part framework, you can create effective /goal prompts with measurable outcomes and validation methods.

    Paragraph 5

    ⬇︎ 下载 PNG𝕏 分享到 X
  • Non-technical users can also leverage the /goal feature for email cleanup and organization of project management tasks.

    Paragraph 6

    ⬇︎ 下载 PNG𝕏 分享到 X
#Codex#AI#Automation#Workflow
Open original article

Codex Goals: How to Turn 4-Hour Tasks into Set-It-And-Forget-It Workflows

Video 4

Playback Speed

1× Subtitles Share Post Share Post at Current Time Share From 0:00

0:00

/

Transcript

0:04

Claire Vo

Welcome back to How I AI. I’m Claire Vo, product leader and AI obsessive here on a mission to help you build better with these new tools. Today, I’m going to walk through my favorite feature in my most recent favorite AI product, Goals in Codex.

0:20

If you’ve been wondering how all these people on the timeline are getting their AI to run quote unquote overnight or handle very complex long-running tasks, I’m going to show you that Goals is the answer. We’re going to walk through what it is, how I might use it, and a technical use case, along with some non-technical examples of how Goals can help you even if you’re not coding. Let’s get to it. This episode is brought to you by Mercury, as an AI founder, I’m constantly tracking run rates, watching revenue growth, paying vendors, and making sure I’m getting paid on time. Mercury makes all of it feel effortless. The app is genuinely beautiful; it actually looks and works like modern software, which sounds obvious but apparently isn’t when it comes to banking. What I use it for the most? Bill pay for my vendors is just clean and easy, and wires and transfers getting paid from clients moving money. Mercury makes it so simple; everything you need is right there. No phone calls, no hunting through menus, no wondering if something went through. I think about how much I’ve optimized every other tool in my stack. Mercury is the one where I don’t have to think about it at all; it just works.

The Codex Feature That Works While You Sleep

🎙️I break down the /goal feature in Codex, including a live demo, three real use cases, and the 6-part framework for writing goals that actually run.

Claire Vo

May 27, 2026

Transcript

Video 5

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.

Listen or Watch on [YouTube](https://youtu.be/2wLJl9A2CnA), [Spotify](https://open.spotify.com/show/4aRP2XSavdtrLG5FZoonOK), or [Apple Podcasts](https://podcasts.apple.com/us/podcast/how-i-ai/id1809663079)

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:

Image 5

[Mercury](https://mercury.com/)—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/

markdown
• Linear: [https://linear.app/](https://linear.app/)

### Other reference:

• OpenAI blog post “Using Goals in Codex”: [https://developers.openai.com/cookbook/examples/codex/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/](https://www.chatprd.ai/)

Website: [https://clairevo.com/](https://clairevo.com/)

LinkedIn: [https://www.linkedin.com/in/clairevo/](https://www.linkedin.com/in/clairevo/)

X: [https://x.com/clairevo](https://x.com/clairevo)

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

#### Discussion about this video

Comments Restacks

![Image 6: User's avatar](https://substackcdn.com/image/fetch/$s_!TnFC!,w_32,h_32,c_fill,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack.com%2Fimg%2Favatars%2Fdefault-light.png)

How I AI

How I AI, hosted by Claire Vo, is for anyone curious about how to effectively use these amazing new tools to enhance the quality and productivity of their work. Each episode features guests sharing a specific, practical, and impactful method they've discovered for using AI in their work or personal life. Expect 30-minute episodes, live screen sharing, and tips/tricks/workflows you can apply immediately. If you're eager to understand AI better and acquire the skills needed to succeed in this evolving landscape, this podcast is perfect for you.

How I AI, hosted by Claire Vo, is for anyone curious about how to effectively use these amazing new tools to enhance the quality and productivity of their work. Each episode features guests sharing a specific, practical, and impactful method they've discovered for using AI in their work or personal life. Expect 30-minute episodes, live screen sharing, and tips/tricks/workflows you can apply immediately. If you're eager to understand AI better and acquire the skills needed to succeed in this evolving landscape, this podcast is perfect for you.

Listen on

Substack App

Apple Podcasts

Spotify

YouTube

Overcast

Pocket Casts

RSS Feed

Appears in episode

[Claire Vo](https://substack.com/@clairevo)

Writes [Claire’s Substack](https://clairevo.substack.com/)[Subscribe](https://clairevo.substack.com/subscribe)

Recent Episodes

![Image 9](https://substackcdn.com/image/fetch/$s_!R8Gm!,w_150,h_150,c_fill,f_auto,q_auto:good,fl_progressive:steep,g_center/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F649d3bd4-8201-49c0-be97-30a5863d92aa_1456x1048.png)

[How the engineer behind Claude Cowork actually uses Claude | Felix Rieseberg (Anthropic)](https://www.lennysnewsletter.com/p/how-the-engineer-behind-claude-cowork)

May 25•[Claire Vo](https://substack.com/@clairevo)

![Image 10](https://substackcdn.com/image/fetch/$s_!rv_6!,w_150,h_150,c_fill,f_auto,q_auto:good,fl_progressive:steep,g_center/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F909ca27e-683a-4f3e-a26e-1e1262e6e49b_1456x1048.png)

[What launched at Google I/O 2026 (30-minute day 1 recap)](https://www.lennysnewsletter.com/p/what-launched-at-google-io-2026-30)

May 20•[Claire Vo](https://substack.com/@clairevo)

![Image 11](https://substackcdn.com/image/fetch/$s_!Ho22!,w_150,h_150,c_fill,f_auto,q_auto:good,fl_progressive:steep,g_center/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F0dd98c50-77fb-4b19-ac0b-642e702d6a1f_1456x1048.png)

[HTML is the new Markdown: How Anthropic engineers are building with Claude Code | Thariq Shihipar](https://www.lennysnewsletter.com/p/html-is-the-new-markdown-how-anthropic)

May 18•[Claire Vo](https://substack.com/@clairevo)

![Image 12](https://substackcdn.com/image/fetch/$s_!xDCS!,w_150,h_150,c_fill,f_auto,q_auto:good,fl_progressive:steep,g_center/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F1b0523c7-97b9-45c9-aaa9-4028cee4aeba_1456x1048.png)

[Spec-driven development: The AI engineering workflow at Notion | Ryan Nystrom](https://www.lennysnewsletter.com/p/spec-driven-development-the-ai-engineering)

May 11•[Claire Vo](https://substack.com/@clairevo)

![Image 13](https://substackcdn.com/image/fetch/$s_!Di7T!,w_150,h_150,c_fill,f_auto,q_auto:good,fl_progressive:steep,g_center/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5df71b04-31fe-4cd7-bfe1-48155f7137c0_1456x1048.png)

[Code with Claude: The 5 biggest updates explained](https://www.lennysnewsletter.com/p/code-with-claude-the-5-biggest-updates)

May 7•[Claire Vo](https://substack.com/@clairevo)

![Image 14](https://substackcdn.com/image/fetch/$s_!fyFl!,w_150,h_150,c_fill,f_auto,q_auto:good,fl_progressive:steep,g_center/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F81370afe-1335-4c9c-a35b-d71fa11dc5ba_1456x1048.png)

[Quests, token leaderboards, and a skills marketplace: The elite AI adoption playbook | John Kim (Sendbird)](https://www.lennysnewsletter.com/p/quests-token-leaderboards-and-a-skills)

May 6•[Claire Vo](https://substack.com/@clairevo)

![Image 15](https://substackcdn.com/image/fetch/$s_!5Dz7!,w_150,h_150,c_fill,f_auto,q_auto:good,fl_progressive:steep,g_center/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F0ded8467-082b-4a82-8f58-6ae9bf15a488_1456x1048.png)

[The internal AI tool that’s transforming how Stripe designs products | Owen Williams](https://www.lennysnewsletter.com/p/the-internal-ai-tool-thats-transforming)

May 4•[Claire Vo](https://substack.com/@clairevo)

### Ready for more?

AI may generate inaccurate information. Please verify important content.