NEWCloud agents are live.See how

Prompts

One-shot

Also called One-shotting, One-shot prompt

Getting a working result from a single prompt, with no follow-up corrections: “I one-shotted the migration.” Used as a quality brag about a model or a prompt, and as a unit of measure: a task that one-shots is a task worth delegating, and one that takes eight rounds probably needed a plan first.

At a glance

Means
Working result from the first prompt
Used as
A brag and a unit of measure
Likely when
Clear pattern, clear check for done
Unlikely when
Vague goal or many systems touched
Not the same as
One-shot prompting (one example)

How it works

A task one-shots when everything the model needs is either in the prompt or easy to find, and when success is unambiguous. Adding an endpoint that mirrors three existing ones, writing tests for a pure function, renaming a field across a codebase: these have clear patterns to copy and a clear way to check the result. Tasks that rarely one-shot share the opposite traits: requirements that live in someone's head, changes across several systems, or a definition of done that is a matter of taste.

A prompt built to one-shot states the outcome, names the file or existing example to follow, lists the constraints that would otherwise be guessed, and says how to verify the result. Those four parts give an agent enough to finish and confirm its own work.

Why it matters

Tracking which tasks one-shot tells you what to hand off as is and what to break down first. When a task keeps failing, the fix is usually upstream: ask for a plan, correct it, then let the agent build. Two short rounds beat eight rounds of patching. As a brag it misleads, though: a demo that one-shots a game says little about a change to a mature codebase, where the hard part is knowing the conventions and constraints that are not written down anywhere.

One-shot versus one-shot prompting

In machine learning, one-shot prompting means including exactly one worked example in the prompt, as opposed to zero-shot (none) or few-shot (several). That is a technique for shaping output. The coding slang is about outcome: the task succeeded on the first attempt, whether or not the prompt contained an example.

Example

A prompt built to one-shot
Add a DELETE /api/projects/:id route.
Follow src/app/api/projects/[id]/route.ts (the GET and PATCH handlers).
Return 404 if the project does not exist, 403 if the caller is not an owner.
Do not add dependencies.
Done when: pnpm typecheck passes and the new test in projects.test.ts passes.

Common mistakes

  1. Skipping review because the result arrived in one prompt, when one-shot means finished, not correct.
  2. Patching a failing task with round after round of corrections instead of stepping back to write a plan.
  3. Judging a model on demo one-shots that look nothing like changes to your own codebase.

Frequently asked questions

What does one-shotted mean?

It means the model produced a working result from the first prompt, without any follow-up corrections.

Is one-shot the same as zero-shot?

No. In prompting terms, zero-shot means no examples in the prompt and one-shot means exactly one. In coding slang, one-shot simply means success on the first try.

Sources

Know the words. Run the work.