OMP Docs
Models & providers

Prewalk

Let a capable model investigate and begin a change, then hand the same session to a faster or cheaper model for implementation.

Plan with strength, implement with speed

Prewalk is a one-time model handoff inside a normal omp session. Start on the model you trust to understand an unfamiliar repository, identify risks, and organize the work. Once that model has made a todo list and begun changing the project, omp switches the current session to a faster or cheaper target model to continue the implementation.

A useful first run is:

omp --model @slow --prewalk-into @smol

Then describe the complete outcome as usual. The conversation, repository context, todos, and changes stay in the same session; prewalk changes the model doing the remaining work, not the task.

Prewalk is a tradeoff, not free quality

This can reduce cost and latency on changes where planning is difficult but execution is routine. It is a tradeoff, not a free quality improvement: the target model still has to understand the planner's todos, adapt when implementation reveals a bad assumption, test the result, and finish cleanup. Keep one capable model throughout when the work requires repeated design decisions, subtle debugging, or high-risk edits.

Enable it and choose the target

Prewalk is disabled by default. Arm it for one new session with --prewalk:

omp --prewalk

This uses the model assigned to the smol role. To make the choice predictable, assign that role in /model under Roles, or configure it in ~/.omp/agent/config.yml:

modelRoles:
  smol: anthropic/claude-haiku-4-5

To choose a different target for one launch, pass a role alias or model selector to --prewalk-into. This flag also arms prewalk, so --prewalk is not required alongside it:

omp --prewalk-into @smol
omp --prewalk-into openai/gpt-5-mini

Use a full provider/model-id when you need a stable exact choice. A configured role can also carry a thinking level, and a model selector may include one, such as provider/model-id:medium. omp resolves the target using the same role and model-matching rules as other model controls.

Recognize the handoff

An armed prewalk lets the starting model investigate and establish the implementation plan first. When todos are available, the first completed file edit starts the handoff. The edit itself is made by the starting model; the target model receives the same session and continues from there.

You will see notices that make the lifecycle explicit:

  • Armed — identifies the resolved target and says omp is waiting for the todo list and first edit or write.
  • Switched — identifies the target and reports that the switch followed the first edit or write.
  • Nothing to switch — the target model and thinking level already match the active session, so omp disarms prewalk instead of performing a no-op.

The handoff waits if the model is still only reading, searching, or discussing an approach. If todos are available but no project file has yet been changed, it remains armed. In configurations where todos are unavailable, the first completed file edit can hand off directly.

Prewalk is one-shot. After the switch it is no longer armed, and later edits do not cause more model changes. The target becomes the current model for the remainder of the live session, but the switch does not rewrite your saved model-role settings. The model indicator and the switch notice show which model is currently active.

Choose where to spend model quality

A good prewalk target is authenticated, quick, inexpensive, and reliable at the languages and tools the task needs. Compare the expected savings with the cost of repairing a weak implementation:

Work shapeSuggested choice
Broad investigation followed by repetitive call-site updatesStrong starter, fast target
Clear plan followed by routine tests or mechanical editsStrong starter, cheap target
Security-sensitive migration or behavior with hidden invariantsKeep the capable model active
Debugging where each result changes the next hypothesisUsually skip prewalk
Small, obvious editStart on the inexpensive model directly; prewalk adds little

A stronger planner should leave specific, ordered todos and begin with a representative edit. If the target frequently has to rediscover constraints, use a more capable target or do not hand off.

Prewalk and subagents

This page describes the main session handoff. A task subagent is a separate delegated run with its own context and model selection; arming the main session does not mean every subagent will prewalk. Configure subagent prewalk separately only when you use delegated agents and want the same plan-then-switch pattern inside those runs. See Subagents.

Troubleshooting


Source: omp.sh — MIT, Stencil Labs. Initially imported on 2026-10-03; updates via automatic sync.

OMP Docs· always in sync with upstream
oh-my-piomp.sh/docsContent MIT · Stencil Labs