← All IntelClip / OtherHow /goal loops actually work
From Codex, Behind the Harness — Dominik Kundel, OpenAI · ≈17:54
“So, that is the reason why you actually don't want to, you know, write full essays like I know a lot of you have been trying to um into your goal, but instead have very concrete and very fiable um prompts, so that uh it's easy to detect when things are done.”
“This is a hosted demo, by the way, so you'll be able to replay this afterwards.”
What’s in it
- Shows a live demo of an AI agent looping until it hits its goal
- Explains how a continuation prompt keeps injecting the objective automatically
- Gives a concrete tip for writing goals that agents can verify are done
Clip transcript
show you the demo here. This is a hosted demo, by the way, so you'll be able to replay this afterwards. Um but basically what happens is in this case we're having a try to guess a number, and it's only achieving that goal when it's actually done with guessing that number. And while it until it's done with that, um it will actually automatically the harness will inject this continuation prompt. And this continuation prompt includes, among other things, your objective. That's the goal that you set. And then uh we continue to do this until the model itself calls an update plan update goal tool, which specifies that the plan was actually or the goal was actually achieved. So, that is the reason why you actually don't want to, you know, write full essays like I know a lot of you have been trying to um into your goal, but instead have very concrete and very fiable um prompts, so that uh it's easy to detect when things are done.
Recommended reads
postGetting Started with LoopsClaudeDevs
articleLoopsBench: From Harness Engineering to Loop Engineering in Benchmarking Coding AgentHan Li, Zhemin Fang, Rili Feng, Yingqi Zhao, Jiaheng Liu, Pengfei Gao, He Ye, Dayi Lin, Qingwei Lin, Saravan Rajmohan, Dongmei Zhang
postGoal + Loss Functions: Distill a Product in 30 Hours PlaybookElvis
Comments
Sign in to comment.
Loading comments…