Skip to content

Ad-hoc Flow

Availability

OSS

TL;DR

Use Ad-hoc Flow when no fixed Rosetta workflow matches the task cleanly. The coding agent builds a custom plan from Rosetta building blocks, tracks it through plan-manager, and executes that plan step by step. Use it for small mixed tasks, unusual requests, or work that needs a custom sequence of discovery, planning, execution, review, and validation. The constant artifact is the tracked plan managed through plan-manager. Other artifacts depend on the chosen building blocks. For medium and large requests, plan review and explicit user approval happen before execution. The final gate is a review against the original intent, not only against the latest edited plan.

When To Use This Workflow

When Not To Use This Workflow

Before You Start

How To Start

Ad-hoc: write a quick script to parse these CSV files, flag malformed rows, and save a compact summary
Ad-hoc: investigate this flaky local toolchain issue, produce a short fix plan, then wait for my approval before changing anything
Ad-hoc: refactor logging across three services without changing log semantics, then review the result
Ad-hoc: do discovery on this repo cleanup task, create a tracked plan, and execute only the approved steps

How Rosetta Shapes This Workflow

Rosetta provides instructions. Coding agents act on them. Rosetta itself does not see user requests, code, or project data.

For Ad-hoc Flow, that changes the user experience in a few visible ways:

Workflow At A Glance

Prep, context loading, and workflow routing happen before the phase model below. Once Ad-hoc Flow is selected, the workflow phases start with Build plan.

Phase What you provide What agents do What artifacts appear Review gate
Build plan Desired outcome, boundaries, expected checks Sequence building blocks into a tracked execution plan and upsert it as needed Tracked plan artifact managed by plan-manager No user gate defined here for small work
Review plan Feedback and approval decision Review completeness, sequencing, dependencies, and prompt clarity Reviewed plan summary and plan fixes Required for medium and large requests
Execute plan Answers to questions, approvals, newly discovered facts Pull next step, execute or delegate, update status, adapt the plan Task-specific artifacts defined by the chosen building blocks Any HITL gate included in the plan
Review and summarize Final comments if needed Validate against original intent and summarize completion Final summary, optional memory update after failures Final user review of results

Workflow Overview

flowchart TD
    A[User request] --> B[Rosetta prep and context load]
    B --> C[Ad-hoc Flow selected]
    C --> D[Build plan from selected building blocks]
    D --> E{Request size}
    E -->|Small| G[Execute next planned step]
    E -->|Medium or large| F[Review plan]
    F --> H{User approves plan}
    H -->|No| D
    H -->|Yes| G
    G --> I[Execute directly or delegate]
    I --> J[Update step status]
    J --> K{New facts change plan}
    K -->|Yes| D
    K -->|No| L{More steps}
    L -->|Yes| G
    L -->|No| M[Final review against original intent]
    M --> N[Summarize result]

Interaction Flow

sequenceDiagram
    autonumber
    participant U as User
    participant O as Coding agent
    participant R as Rosetta instructions
    participant P as plan.json
    participant S as Focused subagent

    U->>O: Describe mixed or unusual task
    R->>O: Enforce prep, context load, and workflow routing
    O->>P: Build tracked plan from selected building blocks
    alt Medium or large request
        O->>S: Review plan completeness and sequencing
        S-->>O: Findings and corrections
        O-->>U: Present plan summary for approval
        U->>O: Approve or request changes
        O->>P: Update plan if needed
    end
    loop Until plan_status is complete
        O->>P: Get next eligible step
        O->>S: Delegate focused step when useful
        S-->>O: Artifact, findings, or validation evidence
        O->>P: Update step status
        O-->>U: Stop at any planned HITL gate
    end
    O-->>U: Final summary against original intent

Phases

Prep and workflow selection happen before the phase model below. Within Ad-hoc Flow itself, the first workflow phase is Build plan.

Build plan

Goal

Create a custom execution plan instead of forcing the task into a fixed phase template.

Required user input

Agent actions

Produced artifacts

Review and approval expectations

Review plan

Goal

Catch sequencing errors, missing work, weak prompts, and dependency problems before execution starts.

Required user input

Agent actions

Produced artifacts

Review and approval expectations

Execute plan

Goal

Run the approved custom plan step by step until all planned work is complete.

Required user input

Agent actions

Produced artifacts

Review and approval expectations

Review and summarize

Goal

Check final completion against the original request, not only against the latest edited plan.

Required user input

Agent actions

Produced artifacts

Review and approval expectations

How To Review Results

Review Ad-hoc Flow in the same order the workflow uses it.

  1. Review the tracked plan first. For plans managed through plan-manager, this tracked artifact is a local plan.json file. Check that the selected building blocks fit the actual task. Check that phases and steps have clear boundaries, dependencies, and expected artifacts. Check that approval gates appear before risky or scope-shaping work.

  2. Review the main intermediate artifacts named by the plan. If the plan includes discovery, verify the findings answer the real question. If the plan includes requirements notes or technical specs, verify them before execution continues. If the plan includes implementation, verify that the code change scope still matches the approved plan.

  3. Review the final summary against the original intent. Check that completed work matches the first request, not only the latest internal plan state. Check that any plan adaptations were explicit and justified.

Failure modes to challenge immediately:

Workflow-Specific Customization

Artifacts You Will Get

Always:

When the workflow uses plan-manager:

When the selected building blocks require them:

Ad-hoc Flow does not define one fixed artifact set beyond the tracked plan. The approved plan defines the rest.

Common Mistakes

Source Files

This workflow does not define separate phase files. The authoritative phase definitions live in the main workflow file above.