Skip to main content

Agentic Workflow (awf)

license: MIT Python 3.10+ tests PyPI

Multi-agent pipeline orchestrator for opencode. Plan → build → verify → commit — through typed MCP tools, not bash. Requires opencode 2.x (opencode --version ≥ 2). awf 2.x remains on its tag for anyone still on the 1.x line.

The problem it solves

AI coding agents are powerful but chaotic. They jump straight to code without planning, skip review, leave bugs.

awf adds structure: a supervisor agent plans the work, worker agents execute through a pipeline you design (any roles, any depth — from a single worker to a multi-stage chain), and you approve each result before it commits. All through natural language — "start working on the backlog", "verify and approve", "reject — the DOMParser fix is missing".

You stay in control. The agent stays on rails.

Quick Start

# 1. Install
pip install awf agent-workflow-ui
# After install the `awf` console command is available (or `python -m awf`)

# 2. Configure opencode — add to ~/.config/opencode/opencode.json:
# {
#   "mcp": {
#     "agent-workflow-ui": {
#       "type": "local",
#       "command": ["python3", "-m", "agent_workflow_ui"],
#       "enabled": true,
#       "timeout": 600000
#     }
#   }
# }

# 3. Run — just talk to opencode:
# "Initialize awf in my project"
# "Develop the MVP based on the backlog"

Requirements

Component Requirement
Python 3.10+
opencode any recent version with MCP support
OS Linux (tested), macOS (should work). Windows is unsupported: start, the destructive paths (reset/rollback/init --force) and the managed writers — including the awf metrics cache and report — refuse on non-POSIX. awf feedback's desktop report stays portable (outside-surface exception)
Models Model-agnostic. Tested with Qwen vLLM. Should work with Claude, GPT, or any opencode-supported provider.
Git 2.36+ (git hook run); git 2.5–2.35 works via a direct hook fallback with the same semantics

Timeouts: agent stages time out after 1 hour. Extend with AWF_SUPERVISOR_TIMEOUT=7200 (env) or awf start --timeout 7200 (USAGE.md → Troubleshooting).

Features

  • 🎯 State-Machine Orchestration (SMO) — awf guides the supervisor through phases: init → goal → form → normalize → brief → run → verify → done. Every tool returns a next_action hint — even weak models follow the full flow without getting lost.
  • 🔧 56 MCP tools — typed pipeline control: init, dispatch, start, approve, reject, rollback, dashboard, model validation, run-queue revision, service run, commit-workflow. No bash, no manual file editing.
  • 📊 Live Dashboard — HTTP server with real-time polling. Chat-style agent handoffs, TODO content, TODO timeline, worker status, browser notifications. No page reloads.
  • 🧱 Custom pipelines — any roles, any depth. 1 stage or 10. You choose in the setup form. Generated, full and code-health pipelines carry the checklist-close gate (it closes the unit's completion checklist) and the checklist-check follow-up (it reviews only the closer's diff); single keeps both, while the quick tier skips them to stay short.
  • ✅ Approve / Reject — symmetric verify tools. Approve commits and archives. Reject kills the pipeline and asks for fixes.
  • 🔍 Pre-dispatch check — before launching a pipeline, awf greps your codebase for keywords from the TODO. Warning if the task might already be done.
  • 🔄 Crash recovery — salvage path when workers don't signal, orphan TODO cleanup, state reconciliation on startup.
  • 📋 Increment planning — decomposition variants (vertical, horizontal, risk-first) presented as an HTML form for user choice.

Usage

Talk in natural language — the supervisor agent calls the right tools:

You say What happens
"Initialize awf in my project" Creates .agentic/, detects stack, asks for your goal
"Develop the MVP" Opens setup form → configures pipeline → plans first TODO
"Verify" Supervisor reads handoffs, checks git diff, approves or rejects
"Reject — the cache is missing" Pipeline killed, new TODO dispatched with fix instructions

See USAGE.md for full scenarios and tool reference.

SMO Flow

graph LR
    init --> goal --> form --> normalize --> brief --> run --> verify --> done

Phase-by-phase: USAGE.md → SMO phases.

Architecture

graph TD
    A[opencode supervisor LLM] -->|MCP stdio - 56 tools| B[agent-workflow-ui plugin]
    B -->|Python import| C[awf orchestrator]
    C -->|subprocess| D[opencode run - worker agents]
    C -->|HTTP daemon| E[Dashboard - live /api/state]

Two packages:

  • awf — Python core. Pipeline engine, phase state machine, signals, commit gate, dashboard server.
  • agent_workflow_ui — MCP plugin. Thin async wrappers + next_action guidance + HTML forms.

Comparison

awf Aider Claude Code Devin
Planning before code ✅ ❌ ⚠️ ✅
Human approve/reject ✅ ❌ ❌ ✅
Custom pipelines ✅ ❌ ❌ ❌
MCP-native ✅ ❌ ❌ ❌
Self-hosted / free ✅ ✅ ❌ ❌
Any LLM provider ✅ ✅ ❌ ❌

Real-world results

This repository is built on awf: a 31-unit stabilization program and the follow-up verification and documentation waves (13 more units) — plan, implement, review, verify, commit, with the supervisor approving every unit and the review stage catching defects before merge.

Roadmap

  • SMO escape hatches — manual phase jumps and interruptions (from real session edge cases)
  • PyPI — pip install awf agent-workflow-ui
  • Dashboard v3 — stage timing bars, session summary, sound notifications
  • Standalone mode — awf without opencode (API-only)

Full backlog: BACKLOG.md

Documentation

License

MIT — see LICENSE.

Metadata

Release files for awf 3.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for awf 3.0.0
File Size Uploaded Provenance Actions
awf-3.0.0.tar.gz 947.0 kB Without provenance Details for awf-3.0.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for awf 3.0.0
File Interpreter ABI Platform Actions
awf-3.0.0-py3-none-any.whl Python 3 none any Details for awf-3.0.0-py3-none-any.whl

Total release size: 2.0 MB

Release files / awf-3.0.0.tar.gz

Download URL awf-3.0.0.tar.gz
Size 947.0 kB
Tags Source
SHA-256 checksum
How to use checksums
81bf100f1ad4e94b3a74ac201f4e14a2f321250a2dba7989c1657246d5604e09
BLAKE2b-256 checksum
How to use checksums
9d0aa50fc95805536ae940d43ea52781d72051e20c881cab9fcd0ac110525c52
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.14

Release files / awf-3.0.0-py3-none-any.whl

Download URL awf-3.0.0-py3-none-any.whl
Size 1.0 MB
Tags Python 3
SHA-256 checksum
How to use checksums
348f7311fd453636a74d1b96c62ed073bf3cc71a96cd86366fa66b9e99346ab4
BLAKE2b-256 checksum
How to use checksums
32156543370ae1b7ea99423d211f945536c879a4465b04953deb7da442b6bcd8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.14

Security for awf 3.0.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page