Archived. No longer developed. A learning project, kept up for reference.
Overview
Attractor projects are defined using the Graphviz DOT language, extended with Attractor-specific node and graph attributes. A project is a directed graph where each node represents an execution stage and each edge represents a transition.
Tip: The Create view can generate a valid DOT project from a natural language description. Use it as a starting point, then customize.
Node Types
Shape / Type
Role
Description
shape=Mdiamond
Start
Project entry point. Every project must have exactly one start node.
shape=Msquare
Exit
Project terminal. Every project must have at least one exit node.
shape=box (default)
LLM Stage
The prompt attribute is sent to the configured LLM. The model’s response becomes the stage output.
shape=diamond
Conditional Gate
Evaluates outgoing edge condition attributes to choose the next stage.
shape=hexagon or type="wait.human"
Human Review Gate
Pauses the project and waits for an operator to approve or reject.
Multiple outgoing edges
Parallel Fan-out
When a non-conditional node has multiple outgoing edges, all target nodes run concurrently.
shape=component
Parallel Fan-out(explicit)
Marks this node explicitly as a parallel fan-out point. All outgoing edges run their target nodes concurrently. Makes the intent unambiguous in the graph source.
shape=tripleoctagon
Parallel Fan-in
Waits for all concurrent branches to complete before continuing. Use as the merge/join point after a component fan-out node.
shape=parallelogram
Tool Node(advanced)
Executes a deterministic tool or script stage rather than dispatching an LLM prompt. The prompt attribute describes the tool invocation.
shape=house
Stack Manager Loop(advanced)
Manages a loop that delegates sub-tasks to a stack-based manager agent. Useful for iterative or recursive workflow patterns.
Node Attributes
Attribute
Type
Description
label
string
Display name shown in the dashboard and graph view. Defaults to the node ID.
prompt
string
LLM instruction for this stage. Required for LLM stage nodes.
shape
string
Determines node behavior. See Node Types above.
type
string
Extended type override. Currently: "wait.human" for human review gates.
Edge Attributes
Attribute
Type
Description
label
string
Display label shown in the graph view.
condition
string
Boolean expression evaluated at a conditional gate. Example: outcome=success, outcome!=success.
Graph Attributes
Attribute
Description
goal
Project description shown in the dashboard Overview panel.
label
Project display label used in the graph title.
Annotated Examples
1. Simple linear project
digraph SimpleProject {
graph [goal="Build and test the application", label="Simple Project"]
start [shape=Mdiamond, label="Start"]
build [shape=box, label="Build",
prompt="Compile the Go application and report any errors."]
test [shape=box, label="Test",
prompt="Run the test suite and summarize results."]
exit [shape=Msquare, label="Done"]
start -> build
build -> test
test -> exit
}
2. Conditional branch
digraph ConditionalProject {
graph [goal="Build, test, and deploy on success"]
start [shape=Mdiamond, label="Start"]
test [shape=box, label="Run Tests",
prompt="Execute the full test suite. Output 'outcome=success' if all pass, 'outcome=failure' otherwise."]
gate [shape=diamond, label="Tests Passed?"]
deploy [shape=box, label="Deploy",
prompt="Deploy the application to production."]
notify [shape=box, label="Notify Failure",
prompt="Send a failure notification with test output."]
exit [shape=Msquare, label="Done"]
start -> test
test -> gate
gate -> deploy [label="Pass", condition="outcome=success"]
gate -> notify [label="Fail", condition="outcome!=success"]
deploy -> exit
notify -> exit
}
3. Parallel fan-out
digraph ParallelProject {
graph [goal="Run unit and integration tests in parallel"]
start [shape=Mdiamond, label="Start"]
unit_tests [shape=box, label="Unit Tests",
prompt="Run unit tests and report coverage."]
integration [shape=box, label="Integration Tests",
prompt="Run integration tests against a test database."]
summarize [shape=box, label="Summarize",
prompt="Combine unit and integration test results into a report."]
exit [shape=Msquare, label="Done"]
start -> unit_tests
start -> integration
unit_tests -> summarize
integration -> summarize
summarize -> exit
}
4. Human review gate
digraph HumanReviewProject {
graph [goal="Generate and review a deployment plan before applying"]
start [shape=Mdiamond, label="Start"]
plan [shape=box, label="Generate Plan",
prompt="Create a detailed deployment plan for the release."]
review [shape=hexagon, label="Human Review",
type="wait.human"]
apply [shape=box, label="Apply Changes",
prompt="Execute the approved deployment plan."]
exit [shape=Msquare, label="Done"]
start -> plan
plan -> review
review -> apply
apply -> exit
}
Tips
Validate your DOT before running: POST /api/v1/dot/validate or attractor dot validate --file project.dot