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
## Features2222
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 epics25+
- **Beads integration** -- Decompose specs into epics and tasks, scaffold pipelines from beads epics, close issues as pipeline nodes complete2426
- **Multi-provider LLM support** -- OpenAI, Anthropic, and Gemini adapters with unified request/response types2527
- **Built-in tools** -- read_file, write_file, edit_file, shell, grep, glob2628
- **Agent loop** -- LLM + tool execution cycle with steering injection, follow-up queues, loop detection, and output truncation2729
- **Pipeline engine** -- Graph traversal, edge selection, condition evaluation, parallel fan-out/fan-in, manager loops30+
- **Human review gates** -- Pause pipeline execution for human approval at any step2831
- **Goal gates** -- Enforce completion criteria before allowing pipeline exit2932
- **Checkpoint/resume** -- Save and restore pipeline state mid-execution3033
- **Validation** -- 12 built-in lint rules for pipeline correctness@@ -71,6 +74,31 @@
7174
attractor run pipeline.dot --dry-run7275
```7376
77+
### Planning workflow (PRD โ Spec โ Beads โ Pipeline)78+
79+
```sh80+
# Generate a PRD from a prompt81+
attractor plan --prd --from-prompt "Add user authentication with OAuth2"82+
83+
# Or copy the blank template and edit manually84+
attractor plan --spec85+
86+
# Decompose a spec into beads epic + tasks87+
attractor decompose .attractor/spec.md88+
89+
# Scaffold a pipeline from the beads epic90+
attractor scaffold <EPIC_ID>91+
92+
# Run the generated pipeline93+
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+
```sh99+
attractor run templates/plan-to-execute.dot -w .100+
```101+
74102
## Documentation75103
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 attributes80108
- Conditional routing, goal gates, and stylesheets81109
- Pipeline patterns (linear, verify/fixup loop, branching, feature implementation)110+
- Planning workflow (PRD โ spec โ beads โ pipeline)82111
- Beads integration for issue-driven development83112
- Writing effective prompts and controlling costs84113
- 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
## License109138
docs/cli-reference.mdmodifiedView file
Loading diffโฆ
docs/guide.mdmodifiedView file
Loading diffโฆ
templates/attractor.mdmodifiedView file
Loading diffโฆ