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

Commit 19e1189c

19e1189c7dfcMerged

Scott Nixon <[email protected]> ยท 9 months ago ยท 1 file ยท ~1 modified

Description

Document Claude Code integration in README

Add a dedicated section explaining how the codergen handler shells out to the local claude CLI, including supported node attributes and the distinction between subscription-powered Claude Code nodes and direct API handlers that require separate keys.

Details

Commit
19e1189c7dfc
Parent
7dec122024ac

README.mdmodifiedView file

@@ -18,8 +18,34 @@
1818 }
1919 ```
2020
21+## Claude Code Integration
22+
23+Attractor's default `codergen` handler executes pipeline nodes by shelling out to your local [Claude Code](https://docs.anthropic.com/en/docs/claude-code) installation (`claude` CLI). This means each node in your pipeline gets the full agentic capabilities of Claude Code โ€” file editing, bash execution, multi-turn tool use โ€” powered by your existing Claude subscription with no separate API keys required.
24+
25+Under the hood, each `codergen` node runs:
26+
27+```
28+claude -p "<prompt>" --output-format json
29+```
30+
31+The handler parses Claude Code's JSON response to extract the result, cost, turn count, and success/failure status, then feeds that context forward to downstream nodes.
32+
33+### Node attributes for Claude Code nodes
34+
35+| Attribute | Description |
36+|-----------|-------------|
37+| `prompt` (required) | The task prompt sent to Claude Code |
38+| `llm_model` | Model override (e.g. `"sonnet"`, `"haiku"`, `"opus"`) |
39+| `allowed_tools` | Comma-separated list of tools Claude Code may use |
40+| `max_budget_usd` | Spending cap for this node |
41+
42+Conditional nodes (`shape=diamond`) automatically instruct Claude Code to select an outgoing edge label, enabling LLM-driven branching.
43+
44+For nodes that only need a single LLM completion without tool use, Attractor also provides direct API handlers for OpenAI, Anthropic, and Gemini via the `attractor-llm` crate.
45+
2146 ## Features
2247
48+- **Claude Code as execution engine** -- Pipeline nodes run via your local `claude` CLI, getting full agentic tool use with no extra API keys
2349 - **DOT pipeline definitions** -- Standard Graphviz digraph syntax with typed attributes (strings, integers, floats, booleans, durations)
2450 - **Planning workflow** -- Generate PRD and spec documents from templates or AI prompts, decompose specs into beads issues, scaffold pipelines from epics
2551 - **Beads integration** -- Decompose specs into epics and tasks, scaffold pipelines from beads epics, close issues as pipeline nodes complete
@@ -114,7 +140,9 @@
114140
115141 ## Environment Variables
116142
117-Set API keys for the LLM providers you use:
143+The default `codergen` handler uses your local Claude Code installation and requires no API keys โ€” it runs on your Claude subscription.
144+
145+For direct API calls via the `attractor-llm` crate (OpenAI, Anthropic, or Gemini handlers), set the relevant keys:
118146
119147 ```sh
120148 export OPENAI_API_KEY=...