Fully Automated - 100% Backpressure - Pipeline runner ๐Ÿƒ for AI workflows. ๐Ÿš€

Commit 7dec1220

7dec122024acMerged

Scott Nixon <[email protected]> ยท 9 months ago ยท 4 files ยท ~4 modified

Description

Document plan, decompose, scaffold commands and planning workflow

Details

Commit
7dec122024ac
Parent
ce038fc51419

README.mdmodifiedView file

@@ -21,10 +21,13 @@
2121 ## Features
2222
2323 - **DOT pipeline definitions** -- Standard Graphviz digraph syntax with typed attributes (strings, integers, floats, booleans, durations)
24+- **Planning workflow** -- Generate PRD and spec documents from templates or AI prompts, decompose specs into beads issues, scaffold pipelines from epics
25+- **Beads integration** -- Decompose specs into epics and tasks, scaffold pipelines from beads epics, close issues as pipeline nodes complete
2426 - **Multi-provider LLM support** -- OpenAI, Anthropic, and Gemini adapters with unified request/response types
2527 - **Built-in tools** -- read_file, write_file, edit_file, shell, grep, glob
2628 - **Agent loop** -- LLM + tool execution cycle with steering injection, follow-up queues, loop detection, and output truncation
2729 - **Pipeline engine** -- Graph traversal, edge selection, condition evaluation, parallel fan-out/fan-in, manager loops
30+- **Human review gates** -- Pause pipeline execution for human approval at any step
2831 - **Goal gates** -- Enforce completion criteria before allowing pipeline exit
2932 - **Checkpoint/resume** -- Save and restore pipeline state mid-execution
3033 - **Validation** -- 12 built-in lint rules for pipeline correctness
@@ -71,6 +74,31 @@
7174 attractor run pipeline.dot --dry-run
7275 ```
7376
77+### Planning workflow (PRD โ†’ Spec โ†’ Beads โ†’ Pipeline)
78+
79+```sh
80+# Generate a PRD from a prompt
81+attractor plan --prd --from-prompt "Add user authentication with OAuth2"
82+
83+# Or copy the blank template and edit manually
84+attractor plan --spec
85+
86+# Decompose a spec into beads epic + tasks
87+attractor decompose .attractor/spec.md
88+
89+# Scaffold a pipeline from the beads epic
90+attractor scaffold <EPIC_ID>
91+
92+# Run the generated pipeline
93+attractor run pipelines/<EPIC_ID>.dot -w .
94+```
95+
96+There's also a meta-pipeline that chains the full workflow end-to-end:
97+
98+```sh
99+attractor run templates/plan-to-execute.dot -w .
100+```
101+
74102 ## Documentation
75103
76104 - **[docs/cli-reference.md](docs/cli-reference.md)** โ€” CLI commands, flags, examples, and environment setup
@@ -79,6 +107,7 @@
79107 - DOT file syntax and all node/edge attributes
80108 - Conditional routing, goal gates, and stylesheets
81109 - Pipeline patterns (linear, verify/fixup loop, branching, feature implementation)
110+- Planning workflow (PRD โ†’ spec โ†’ beads โ†’ pipeline)
82111 - Beads integration for issue-driven development
83112 - Writing effective prompts and controlling costs
84113 - Adding Attractor to your project
@@ -103,7 +132,7 @@
103132 | `attractor-tools` | Tool trait, registry, built-in tools, execution environment |
104133 | `attractor-agent` | Agent session loop with steering and loop detection |
105134 | `attractor-pipeline` | Pipeline graph, engine, handlers, validation, stylesheets |
106-| `attractor-cli` | CLI binary (`attractor run`, `validate`, `info`) |
135+| `attractor-cli` | CLI binary (`attractor run`, `validate`, `info`, `plan`, `decompose`, `scaffold`) |
107136
108137 ## License
109138