PromptaFlow
简体中文 | English
PromptaFlow turns a goal into a durable, inspectable Agent workflow. Describe the work you want done, let an Agent generate a static Workflow DSL, review and publish it, then run it through installed Agent CLIs or the conversation you are already in.
What it does
- Generates and modifies reusable workflows from natural-language requirements.
- Compiles a validated static Workflow DSL into LangGraph instead of executing an Agent-authored program directly.
- Runs steps on registered Agent CLIs, with branches, conditions, retries, approvals and other human-in-the-loop interruptions.
- Keeps workflow versions, run progress, console output and generated Artifacts durable and inspectable.
- Exposes the same workflows through a browser workspace, HTTP API, MCP tools and five MCP App cards.
- Isolates execution state by workspace while sharing the published workflow library and reusable source templates across the local machine.
How it works
A fixed loopback Hub on 127.0.0.1:8848 is the front door. It selects a
workspace and routes MCP, API and UI traffic to that workspace's Control
Runtime, which owns graph state, authorization and the authoritative
allowed_commands[]. Each Runtime uses authenticated Execution Workers to run
trusted Handlers such as Agent CLIs. Workflow definitions are compiled to
LangGraph, and durable state is stored under ~/.promptaflow/projects/.
Agent App / Browser / API
│
▼
Hub :8848 (MCP Gateway)
│
▼
Workspace Control Runtime ──► Execution Workers ──► Agent CLIs / Handlers
│
└── LangGraph state, runs and Artifacts
Upgrading from Orbit
This project was called Orbit, and the rename is a clean break: nothing from an Orbit install is read, converted or migrated.
- State lives under
~/.promptaflow. An existing~/.orbitis never opened — its projects, Hub registry, workspaces and workflow library are not carried over, and a first run looks like a fresh install. - Per-project state lives in
<project>/.promptaflow. An existing<project>/.orbitis left untouched, worktrees and all. - The distribution is
promptaflow, the command ispromptaflow(paffor short), and the MCP server answers topromptaflow— so every tool's qualified name moved frommcp__orbit__*tomcp__promptaflow__*, and the two card-opening tools are nowopen_promptaflow_dashboardandopen_promptaflow_goals. Reconnect every Agent App and reinstall the plugin; a tool list cached from an Orbit install will not resolve. orbit-runtimeon PyPI is not updated.uv tool uninstall orbit-runtimebefore installing this.
Workspaces are re-registered by running a goal in each project again. The old directories are yours to keep or delete; nothing here will read them.
Install
PromptaFlow requires Python 3.10 or newer and uv.
Install with a prompt
Paste this into a supported Agent App. The Agent follows the maintained instructions in the repository and chooses the installation path for the current App:
Install PromptaFlow for this app from https://github.com/TNJ2026/promptaflow.
If the repository is already cloned, open that checkout in the Agent App and use this prompt instead:
Install or configure PromptaFlow for this app from the current local repository. Do not clone it again or download a Release; follow the host-specific documentation in this checkout, preserve local changes, and stop before any App or Profile restart that I must perform.
When the checkout is not the current workspace, replace “current local repository” with its absolute path.
App-specific instructions:
Run from source
git clone https://github.com/TNJ2026/promptaflow.git
cd promptaflow
uv sync --extra dev
uv run paf serve
The unified serve command reuses or starts the Hub, registers the current
workspace and waits for its managed Runtime to become ready. Open
http://127.0.0.1:8848/ui to see running workspaces.
On Windows, the native launchers work from PowerShell, Command Prompt or Explorer without changing the PowerShell execution policy:
start-promptaflow.cmd
restart-promptaflow.cmd
stop-promptaflow.cmd
Pass a workspace path to the start command when needed:
start-promptaflow.cmd "D:\Develop\your-project"
MCP App cards
PromptaFlow ships five compact MCP App views. In an App that supports MCP Apps, calling the associated tool draws the card beside the conversation. The phrases below are examples you can say naturally; the Agent maps them to the tools.
Workspace

- Try:
Open PromptaFlow. - Does: opens the workspace with Goal, Workflows, History and Agents in one view, including the current or most recent goal.
Workflows

- Try:
Show my PromptaFlow workflows. - Does: lists the published catalogue; selecting a workflow shows its graph and definition and offers New goal, Modify and Delete actions.
Workflow generation

- Try:
Create a workflow that summarizes an article and turns it into a concise presentation. - Does: starts Agent authoring and shows the requirement, generation progress and the resulting workflow.
Goal execution

- Try:
Run the article-to-presentation workflow for this article. - Does: starts a goal and follows its steps, required human input, status and final result.
Goals

- Try:
Show my recent PromptaFlow goals. - Does: lists recent goal runs and their current status, with access to each run's details.
See the card guide for tool mappings, card behavior and cache refresh details.
Run a goal
- Open Goal.
- Select a published workflow, or describe one and let an Agent create it.
- Enter the goal and start it.
- Follow the steps in the workspace or inspect the completed run in History.
Over MCP, the main tools are list_workflows, generate_workflow, start_run,
inspect_run and cancel_run. Clients must use the Runtime's current
allowed_commands[] instead of constructing mutation URLs.
Delegate a goal to the current conversation
Agent steps normally run through the CLI named by the workflow. When no CLI is
installed—or when you want the current App to do the work—start the run with
execution_mode="current_app". PromptaFlow keeps the workflow structure intact,
queues each Agent step for the initiating conversation and stores the effective
graph with the run. The mode is asynchronous and supports parallel branches and
resuming safely from a checkpoint.
How it is triggered
Only by asking for it. There is no CLI flag, no toggle in the UI, and no automatic fallback when a CLI turns out to be missing — a run that was not started in this mode stays in the mode it was started in.
| Way | What to do |
|---|---|
| Ask the Agent App | Say so in the conversation. The bundled skill selects the workflow and passes the mode. |
| MCP tool | start_run(workflow_id=..., goal=..., execution_mode="current_app") |
| HTTP API | POST /api/v1/langgraph-runs with "execution_mode": "current_app" in the body |
Workflows whose Agent steps name a CLI you do not have are filtered out of the
default catalogue. When choosing one for this mode, list with
ready_only=false — a missing CLI is exactly what this mode makes irrelevant.
inspect_workflow_definition also takes execution_mode so you can see how a
definition compiles here before starting anything.
Prompts
Starting a run in this mode:
Use PromptaFlow to <goal>. Run every Agent step in this conversation
instead of forking a CLI.
用工作流 workflow:<id> 执行目标:<目标原文>,Agent 步骤都交给你在当前对话里做,不要调用 CLI。
Picking a workflow first, when you are not sure one exists:
Show me the PromptaFlow workflows that could run entirely in this
conversation, including the ones whose CLIs I have not installed.
Following a run that is already delegated:
Continue the PromptaFlow run you are executing for me — claim the next
step, do it, and report what it produced.
The conversation drives the run through the delegation tools:
list_delegations to see queued work, claim_delegation to take one step,
checkpoint_delegation and renew_delegation while it is long-running, and
complete_delegation to hand the result back. A claimed step that is never
completed is recovered through reconcile_delegation.
CLI quick reference
Installing promptaflow puts two names for the same command on your
PATH: promptaflow, so that what you installed is what you can type, and
paf, which is what everything below uses.
paf serve
paf serve --project-root /absolute/path/to/project
paf hub register /absolute/path/to/project --no-agent-project-access
paf --version
paf runtimes --json
paf mcp
paf mcp --project-root /absolute/path/to/project
paf run list
paf run inspect <run_id>
paf workflow validate <file> --catalog <catalog.json>
paf workflow publish <file> --catalog <catalog.json> --expected-version <n>
Development
uv sync --extra dev
.venv/bin/python -m unittest discover -s tests
node --test tests/ui/client_modules.test.mjs
Build the Python and plugin packages:
uv build
python scripts/build-marketplace-release.py \
--version 0.6.3-alpha \
--output dist/promptaflow-marketplace-0.6.3-alpha.zip \
--plugin-output dist/promptaflow-plugin-0.6.3-alpha.zip
Pushing a full SemVer tag such as v0.6.3-alpha runs the cross-platform Release
workflow and uploads the GitHub distribution assets. PyPI publishing is opt-in on
a manual workflow run; ordinary tag releases remain GitHub-only.
No comments yet. Be the first to write one.