{"schemaVersion":"1.0","contentRevision":"4a4ceed612deeb23d5591ed650f5a76588f4a8dcd44fa4f321da1482eac45631","id":"knowledge:61316f11-678e-4824-b3b6-a555aaad4edc","kind":"concept","title":"Let code keep control between agent decisions","summary":"A code-first pipeline should invoke an agent only for bounded judgments, then return control to deterministic steps for predictable recurring work.","recordUrl":"https://intelligencesnacks.com/api/knowledge/v1/observations/61316f11-678e-4824-b3b6-a555aaad4edc.json","graphUrl":"https://intelligencesnacks.com/graph/?node=knowledge%3A61316f11-678e-4824-b3b6-a555aaad4edc","citationUrl":"https://intelligencesnacks.com/episodes/episode-065/","episode":{"id":"8de8bb54-0d39-464f-b360-237b0ab930d9","number":65,"title":"Working with AI Agents","url":"https://intelligencesnacks.com/episodes/episode-065/","publishedAt":"2026-07-30T00:00:00.000Z"},"extractionMethod":"Automated extraction with transcript validation","transcriptRevisionId":"4c7f9676-9620-44c9-a2c8-204401c98235","evidence":[{"id":"603c209b-43af-4e55-ae4b-d5e22528298f","excerpt":"[00:46:37] Pete\nYeah, so for the new listener, like a pipeline in Autopilot is effectively, it's a code first workflow that can include agents. So it's a way you can declare a workflow to be a certain set of thing. It can run certain instructions. It can pass data into the next steps and so on. And then any one of those steps could be an agent. And the agent will fire up, make a decision, do something that you need intelligence for, go look at something, and then it'll close itself down, moves back into the code space. but it just reduces the cost of doing repetitive work and it increases the level of, I guess, the predictability of the outcomes and the consistency. Like this, it sounds like","speaker":"Pete","contributorUrl":"https://intelligencesnacks.com/contributors/pete-winn/","timestamp":null,"sourceUrl":"https://intelligencesnacks.com/episodes/episode-065/","locator":"episode"},{"id":"7603e597-6b49-4c52-b0ea-4604b09058f4","excerpt":"it's like skills, but it's not because skills operate inside the agent runtime. So you kind of have to hope the agent follows the skill. Whereas in a pipeline, it's forced. It's code. Like, you know, we don't ever ask the agent to run the code. The code just runs the code that it's needed. Then the agent gets only what it needs to make its decision and then it shuts down and then we carry on with the code.","speaker":"Pete","contributorUrl":"https://intelligencesnacks.com/contributors/pete-winn/","timestamp":null,"sourceUrl":"https://intelligencesnacks.com/episodes/episode-065/","locator":"episode"},{"id":"8fab72d6-29a9-4e94-a540-8972bf1be5d6","excerpt":"[00:47:40] Pete\nWhich a lot of stuff, it's less, you've got to put more work in upfront than you would with a skill or just an agent loop. But once you've figured out what you want to do, it means you'll get the right sort of output.","speaker":"Pete","contributorUrl":"https://intelligencesnacks.com/contributors/pete-winn/","timestamp":null,"sourceUrl":"https://intelligencesnacks.com/episodes/episode-065/","locator":"episode"}],"connections":[{"sourceId":"episode:8de8bb54-0d39-464f-b360-237b0ab930d9","targetId":"knowledge:61316f11-678e-4824-b3b6-a555aaad4edc","type":"develops","explanation":null,"neighbourId":"episode:8de8bb54-0d39-464f-b360-237b0ab930d9","neighbourTitle":"Episode 65 · Working with AI Agents","reviewMethod":null,"reviewer":null,"reviewedAt":null,"neighbourUrl":"https://intelligencesnacks.com/episodes/episode-065/"},{"sourceId":"contributor:pete-winn","targetId":"knowledge:61316f11-678e-4824-b3b6-a555aaad4edc","type":"contributed","explanation":null,"neighbourId":"contributor:pete-winn","neighbourTitle":"Pete Winn","reviewMethod":null,"reviewer":null,"reviewedAt":null,"neighbourUrl":"https://intelligencesnacks.com/contributors/pete-winn/"},{"sourceId":"knowledge:61316f11-678e-4824-b3b6-a555aaad4edc","targetId":"knowledge:8c394e86-e9ef-4cfd-8272-129b20a6b781","type":"supports","explanation":"Bounded agent steps operationalize the preference for deterministic business outcomes.","neighbourId":"knowledge:8c394e86-e9ef-4cfd-8272-129b20a6b781","neighbourTitle":"Businesses value consistency over raw intelligence","reviewMethod":null,"reviewer":null,"reviewedAt":null,"neighbourUrl":"https://intelligencesnacks.com/api/knowledge/v1/observations/8c394e86-e9ef-4cfd-8272-129b20a6b781.json"},{"sourceId":"knowledge:61316f11-678e-4824-b3b6-a555aaad4edc","targetId":"knowledge:d6c5c8c9-76a2-4e5d-8d5b-b3e77506028f","type":"enables","explanation":"Pipelines provide the mechanism for automating routine paths while reserving exceptional judgment for people.","neighbourId":"knowledge:d6c5c8c9-76a2-4e5d-8d5b-b3e77506028f","neighbourTitle":"Put recurring decisions into workflows and escalate exceptions","reviewMethod":null,"reviewer":null,"reviewedAt":null,"neighbourUrl":"https://intelligencesnacks.com/api/knowledge/v1/observations/d6c5c8c9-76a2-4e5d-8d5b-b3e77506028f.json"},{"sourceId":"knowledge:61316f11-678e-4824-b3b6-a555aaad4edc","targetId":"snack:f84c3ca7-b4eb-47fd-835b-ab8bac29c421","type":"summarised-by","explanation":null,"neighbourId":"snack:f84c3ca7-b4eb-47fd-835b-ab8bac29c421","neighbourTitle":"Put the workflow in code","reviewMethod":null,"reviewer":null,"reviewedAt":null,"neighbourUrl":"https://intelligencesnacks.com/snacks/put-the-workflow-in-code/"},{"sourceId":"canonical:code-first-workflows","targetId":"knowledge:61316f11-678e-4824-b3b6-a555aaad4edc","type":"discussed-in","explanation":"Episode 65 describes code-first pipelines that start an agent for a decision and return control to code. This editorial grouping does not assert that the claims are equivalent.","neighbourId":"canonical:code-first-workflows","neighbourTitle":"Code-first workflows","reviewMethod":"agent-editorial-review","reviewer":"lara","reviewedAt":"2026-11-09","neighbourUrl":"https://intelligencesnacks.com/api/knowledge/v1/ideas/code-first-workflows.json"}]}