omp packages

@saifymatteo/pi-flow0.1.2

/flow phases: open a session on a set model and thinking level and send a skill prompt, carrying the task and spec URLs between phases.

GitHub Actions Published 2 days ago AGPL-3.0-only ~0 downloads/mo

Untested on omp

This is a pi package. No one has reported whether it works on omp yet. If you try it, add your result below.

Did it work for you?

Result

One report per person. A new report replaces your old one.

Reports 0

No reports yet.

Readme

pi-flow

/flow implement opened a new session on build-model with high thinking

/flow implement <spec-url> start with the route: a new session on the implement model with high thinking. Your text is the user message; the phase instructions and spec URL follow in a flow message.

/flow <phase> [args] runs one step of a plan → spec → implement → review workflow: it opens a new session, switches the model and thinking level, and sends the phase's prompt. The task and spec URLs carry over between phases, so you paste them once.

Running locally

From the monorepo root:

pi -e ./packages/pi-flow

Warning: this extension uses your existing Pi resources and settings unless you load it in an isolated home (see the root README). Do not load two copies of the same extension.

Commands

Command Does
/flow grill <task-url> [notes] New session, then /skill:grill-with-docs with your arguments. Starts fresh work.
/flow spec In the current session: /skill:to-spec. The first issue it creates becomes the spec, any further ones become tickets, and /flow implement goes in the editor: press Enter to continue.
/flow tickets In the current session: /skill:to-tickets on the saved spec. Every issue it creates is added to the tickets.
/flow implement [spec-url] [ticket-urls...] New session, then /skill:implement-spec with the spec and tickets (saved, or the URLs given, which replace them).
/flow review New session that reviews the branch against the spec (or the original report), fixes faults and opens a PR.
/flow bug [report] New session that fixes a bug on a branch and commits. Starts fresh work.

Both skills ask you questions first; /flow keeps listening (footer: flow: waiting for the spec issue(s)) until a run creates issues or you start another phase. Issues are read from the output of the agent's gh issue create commands, not from links in its reply, so a related issue it mentions is never mistaken for the spec. If nothing was created that way, /flow says so and you pass the URLs to /flow implement yourself.

Each new-session phase needs a model. A missing, unknown or unauthenticated model stops the phase with an error rather than running on whatever model is current.

What you type after the phase name is sent as your own message, exactly as typed (with the phase's /skill: command in front, if it has one). The phase's instructions, URLs and image paths follow as a separate flow message. Type nothing and the flow message starts the turn alone.

Screenshots pasted with Alt+V (pi-clipboard-image) on the /flow line itself, such as /flow bug checkout total wrong [Image #1], go with your message; their file paths go with the instructions.

If a phase needs something you have not given (/flow bug with no report, /flow implement with no saved spec), nothing is sent and /flow <phase> goes back in the editor. Add the text, a screenshot or an .eml path, then press Enter.

No phase messages people. A PR is the furthest any built-in phase goes.

Settings

<agent-dir>/extensions/flow.json (created with the built-in phases on first load; schema in schemas/flow.schema.json). The built-in phases have no models: set model on every new-session phase, for example:

{
  "phases": {
    "grill": { "start": true, "model": "claude-code/claude-fable-5-2", "thinking": "high", "prompt": "/skill:grill-with-docs {args}" },
    "spec": { "newSession": false, "prompt": "/skill:to-spec {args?}", "capture": "spec", "next": "/flow implement" },
    "implement": { "model": "claude-code/claude-opus-5-5", "thinking": "high", "prompt": "/skill:implement-spec {args?}\nSpec: {spec}\n{tickets?}" }
  }
}

A phase in the file replaces the built-in phase of the same name, and new names add phases. Edits apply on the next /flow without /reload.

Privacy and operations

Stores the flow state (task URL, spec URL, previous session path) as a flow custom entry in the session file. Makes no network calls of its own.