Skip to content

The right way to write a prompt: talk, loop, or spell it out

← Learning Atlas · Path 24 of 28 · For anyone working with coding agents: learn when to chat, when to let an agent loop, and when to write a full spec with failure conditions and a done check.

The right way to write a prompt: talk, loop, or spell it outWatch on YouTube

This is the Learning Atlas from Orbit. Get your invite

AI agents and harnessesConcepts and methodologyOrbit-internal concepts

  1. Step 1: Prompt

    Why this matters here

    Start with the prompt itself, because the real question isn't short versus detailed. It's how much of the answer you already have, and that decides how much you need to write.

    In short

    The message you give an AI model or agent describing what you want. How much detail it needs depends on how much of the answer you already know.

    Full definition of Prompt →

    Next: Spec ↓

  2. Step 2: Spec

    Why this matters here

    When you have no idea yet, talk it out like you would with a coworker. That conversation is how the plan gets made, and the spec is what it leaves behind for a fresh agent to build.

    In short

    A written plan for what to build, including the goal and important details, that a fresh agent can use to carry out the work.

    Full definition of Spec →

    Next: Agentic loop ↓

  3. Step 3: Agentic loop

    Why this matters here

    When you know the goal but not the details, say the goal and let the agent loop. The model is often smarter than you at the details, and piling on rules can make its work worse.

    In short

    The continuous cycle where an AI agent observes its environment, makes a plan, executes a tool, evaluates the result, and decides what to do next.

    Full definition of Agentic loop →

    Next: Critic agent ↓

  4. Step 4: Critic agent

    Why this matters here

    A loop needs someone to judge each round. A second agent as critic, checking against a clear goal, usually beats a page of instructions.

    In short

    A second AI agent that reviews each round of work against a clear goal and sends it back with notes until the result is good enough.

    Full definition of Critic agent →

    Next: Tool loop exhaustion ↓

  5. Step 5: Tool loop exhaustion

    Why this matters here

    This is the catch with loops. With a fuzzy goal, the agent can wander down a rabbit hole, repeating work that never gets closer to done.

    In short

    A failure state where an AI agent gets stuck repeatedly executing the exact same incorrect tool actions until it runs out of its allowed token budget or context window.

    Full definition of Tool loop exhaustion →

    Next: Token budget ↓

  6. Step 6: Token budget

    Why this matters here

    Rabbit holes cost real money, because every lap burns tokens. A clear goal and a way to check are what keep the budget from draining.

    In short

    The strict allocation and monitoring of how many API tokens an AI agent or application is allowed to consume during a specific task or workflow.

    Full definition of Token budget →

    Next: FAILURE CONDITIONS ↓

  7. Step 7: FAILURE CONDITIONS

    Why this matters here

    When you already know the exact fix, spell it out: the context, the task, how to check it, and what not to do. A loose prompt here just makes the agent guess, and it might take a shortcut, like deleting a failing test instead of fixing the bug.

    In short

    A required final section in Orbit prompts listing specific, verifiable, binary criteria that constitute prompt failure. Catches incomplete or wrong implementations.

    Full definition of FAILURE CONDITIONS →

    Next: Definition of done ↓

  8. Step 8: Definition of done

    Why this matters here

    Whichever way you prompt, decide what done means and give the agent a way to check its work: a test, a critic, or a screenshot. That's what keeps it out of the rabbit hole.

    In short

    The agreed check that says a task is finished, such as a passing test, a critic's sign-off, or a screenshot that matches the expected result.

    Full definition of Definition of done →

    Continue with When your app gets popular →