PromptMake

Loop Prompt Generator

Turn a coding task into a paste-ready command with success criteria, a turn cap, and verification steps for Claude Code or Codex.

0/800

Upgrade your limits

1 credit = 1 generation. Go unlimited with Pro or buy credit packs.

Free

$0/month

  • 5 text / day · 3 image / day
  • Prompt history
Get Started

Pro

$9/month

  • Unlimited generations
  • Batch image processing
  • Pro options

Pro Annual

$79/year

  • Everything in Pro
  • Best value

Or pay as you go

Starter

$1.99

50 credits

Pro Pack

$4.99

200 credits

Ultimate

$12.99

1000 credits

Batch image processing

Upload up to 10 images at once on Image to Prompt. Pro includes unlimited batches. Otherwise: $1.99 one-time per batch, or 10 credits.

Log in to purchase. Full pricing page →

What loop engineering means for coding agents

Loop engineering turns a broad agent request into a controlled cycle: inspect, change, verify, and decide whether to continue. The useful part is not repetition by itself. It is the contract around each repetition. A coding loop needs a bounded task, observable evidence, a stop condition, and a limit on attempts. Without those controls, the agent can revisit the same files, chase unrelated failures, or declare success from its own summary.

Use external evidence wherever possible. Tests, lint, type checks, builds, file assertions, and API responses give the worker and evaluator something concrete to inspect. Keep a human checkpoint for risky changes. PromptMake writes this loop specification; it does not execute the workflow.

Use /goal for a verifiable finish line

A /goal workflow fits work that should continue through consecutive turns until a condition becomes true. The condition must describe proof, not intent. “Run pnpm test and report exit code 0 with no changed snapshots” is evaluable. “Make the app better” leaves the worker and evaluator guessing. Ask the agent to expose command results in the conversation so the evaluator can judge the same evidence you would inspect.

Add a turn cap and early-abort rules. Missing secrets, unavailable services, flaky infrastructure, or a false premise can make a goal impossible. A cap stops token burn and limits unwanted changes. If several turns repeat the same error, stop, inspect the diff and transcript, then revise the goal.

Use /loop for scheduled checks

A /loop workflow repeats a prompt on a time interval. It suits polling and recurring maintenance: check CI every five minutes, watch a deployment, review a queue, or collect status from an external service. The clock triggers each run. A success evaluator does not turn the schedule into an autonomous finish-line workflow, so define how you will stop or cancel it.

Choose an interval that matches the system you are checking. Fast polling wastes tokens and can hit rate limits without producing new information. Keep scheduled actions read-only unless you understand the failure modes. If the task should make changes until tests pass, use /goal. If you want to approve each cycle, use turn-based instructions.

Build a verification ladder

A verification ladder orders checks from fast and narrow to broad and expensive. Start with the test closest to the edited code. Continue with the relevant package tests, lint or type checking, then a production build. Finish with a diff review and any behavior check the automated suite cannot cover. This order gives the agent quick feedback before it spends tokens on the full repository.

State expected results for every step. Name the command, exit status, required output, and protected behavior. Add abort conditions for new failures outside scope, unexpected schema changes, generated-file churn, or missing credentials. For a large change, require checkpoints instead of one long run. Good verification catches false completion and keeps a local fix from creating a wider regression.

How the PromptMake Loop Prompt Generator works

Describe the task, choose Claude Code or Codex, and select /goal, /loop, turn-based, or automatic recommendation. PromptMake converts the brief into six practical parts: the recommended primitive, command text, success criteria, turn cap, verification steps, and stop or abort guidance. Review paths, commands, intervals, and assumptions before copying anything.

Paste the result into Claude Code or adapt it to your Codex workflow. Start on a branch with a narrow scope, approve only the tools the task needs, and watch the first cycle. PromptMake never executes the loop or accesses your repository. Guests get 3 generations a day, free accounts get 5, and Pro costs $9 for regular use.

FAQ

What is loop engineering?

Loop engineering is the practice of designing an AI agent workflow that repeats work, checks evidence, and stops under a defined condition. A useful loop names the task, limits its scope, states how to verify progress, and sets a hard cap on attempts or turns. For coding work, evidence might include a test command returning exit code 0, a clean lint run, a successful build, or a specific file change. The term describes workflow design, not a guarantee that an agent will solve every task. PromptMake helps you write the command and control rules; Claude Code or Codex performs the work after you paste the output there.

What is the difference between /goal and /loop?

Use /goal for a finish line that an evaluator can check after each turn. The agent works through consecutive turns until the success condition passes, the turn cap is reached, or you cancel. Use /loop for a prompt that should run again on a time interval, such as checking CI every five minutes or polling a deployment. A scheduled /loop does not mean “keep fixing until done”; it means “repeat this instruction on a schedule.” If the task has a measurable end state, choose /goal. If time triggers the next run, choose /loop. PromptMake can also produce turn-based guidance when you want to review each cycle yourself.

What is a turn-based loop?

A turn-based loop divides work into explicit cycles while keeping you in control of the next cycle. The agent inspects the current state, makes one bounded change, runs the listed checks, reports the result, and waits for your direction. This pattern fits migrations, risky refactors, production debugging, and work where success requires human judgment. It also helps when your agent tool does not support a native /goal or /loop command. PromptMake writes a repeatable per-turn instruction block with verification and stop rules. You paste it into Claude Code or Codex, review each result, and decide whether to continue, revise the prompt, or stop.

How should I write success and verification criteria?

Write criteria that a command or direct inspection can prove. “All tests pass with exit code 0,” “npm run build completes,” and “the API returns HTTP 200 with the required fields” give an evaluator evidence. “Improve the code,” “make it robust,” and “fix everything” do not. Use a verification ladder: start with the narrowest relevant check, then run broader tests, lint or type checks, a build, and a final diff review. Include negative checks when they matter, such as no changed database schema or no new lint warnings. The strongest criterion describes the exact command, expected result, and any files or behavior that must remain unchanged.

Why does every /goal prompt need a turn cap?

A turn cap limits cost and prevents an agent from repeating an unproductive strategy. Even a clear goal can become unreachable because of missing credentials, a broken dependency, flaky tests, an unavailable service, or an incorrect assumption in the task. Set the cap according to scope: a small test fix may need five turns, while a contained refactor may need fifteen. A higher number does not make the workflow better. Ask the agent to stop early when the evaluator identifies an external blocker or repeated failure. When the cap is reached, inspect the transcript and diff before starting a revised goal with better constraints.

What does the evaluator model do in a /goal workflow?

The evaluator reviews the evidence produced during the agent turn and decides whether the stated goal has been met. It needs observable proof in the conversation, such as test output, a build result, or a concise report of a file check. It cannot reliably judge facts that the worker never exposes. A separate evaluator can reduce self-grading bias, but it still depends on the condition you wrote and the evidence it receives. Require the worker to run the verification commands and include their results. Do not use “the agent says it is done” as the stop condition. For high-risk changes, review the final diff and run checks yourself.

When should I not use an agent loop?

Skip autonomous loops when the task has no objective finish line, requires taste or product judgment, can trigger irreversible production changes, or depends on permissions the agent lacks. Do not loop destructive database operations, security-sensitive account changes, payments, legal decisions, or open-ended rewrites without human checkpoints. A loop also adds little value to a one-step edit you can verify at once. Use a turn-based workflow for ambiguous requirements and stop after each bounded change. Before a longer run, test the prompt on a read-only inspection or a small branch. Keep backups and version control in place, and require approval before deploys or data changes.

How much can a Claude Code loop cost in tokens?

Token use depends on the model, repository size, tool output, number of turns, and how much context each cycle reads again. A poorly scoped loop can consume far more tokens than a single coding request because every cycle may inspect files, run commands, process logs, and evaluate the result. Reduce burn with a narrow directory scope, targeted tests, short command output, explicit exclusions, and a conservative turn cap. Stop when two or three turns repeat the same failure without new evidence. PromptMake does not pay for or control Claude Code or Codex usage. Check the pricing and usage limits of the agent platform where you run the generated command.

Is this the same as the Ralph loop pattern?

It belongs to the same family of iterative agent workflows. The Ralph pattern commonly feeds a task back to a coding agent across repeated runs, often with fresh context, repository state, tests, and a completion signal guiding the next attempt. PromptMake does not install or run a Ralph script. It generates a smaller, portable control document: the command, measurable success criteria, turn cap, verification steps, and stop guidance. You can use that output as a starting brief for a Ralph-style setup, but you still need to configure the runner, model, permissions, context handling, and safety controls in your own environment.

Can I use the generated prompt with Codex as well as Claude Code?

Yes, but command syntax and available controls differ. Claude Code users can select output aimed at native /goal, scheduled /loop, or a manual turn-based cycle. For Codex, PromptMake keeps the same verify-first structure and produces instructions you can adapt to the Codex CLI or agent workflow you use. Do not paste a Claude-specific slash command into another tool and assume it has the same behavior. Check that tool’s current command reference, permissions, sandbox, and approval settings. Across both platforms, keep the finish line mechanical, expose verification output, cap the work, and review the final diff before you merge or deploy.

Is the Loop Prompt Generator free?

You can try it without paying. Guests receive 3 generations per day without an account. Registered free users receive 5 generations per day. PromptMake Pro costs $9 and removes the small free-tier allowance for regular use. These limits apply to generating the loop command and verification plan on PromptMake. They do not include model calls, tokens, or subscription costs charged by Claude Code, Codex, or another agent platform. PromptMake does not bundle execution credits for those services. Review the generated output before use, especially when a command could modify many files, access external systems, or run for several turns.

Does PromptMake run the loop or access my repository?

No. PromptMake generates text only. It returns a recommended primitive, a paste-ready command or instruction block, success criteria, a turn cap, verification steps, and stop or abort guidance. It does not open your repository, execute shell commands, schedule recurring jobs, call Claude Code, call Codex, or watch the loop after you leave the page. Copy the output into your chosen agent tool and run it in an environment you control. You remain responsible for repository access, model charges, command approvals, monitoring, cancellation, and review. Treat generated commands as drafts and check every path, test command, interval, and destructive operation before execution.