website/docs/workflows/index.md
Beads provides powerful workflow primitives for complex, multi-step processes.
Beads uses a molecular chemistry metaphor:
| Phase | Storage | Synced | Use Case |
|---|---|---|---|
| Proto (solid) | Built-in | N/A | Reusable templates |
| Mol (liquid) | .beads/ | Yes | Persistent work |
| Wisp (vapor) | .beads-wisp/ | No | Ephemeral operations |
Declarative workflow templates in TOML or JSON:
formula = "feature-workflow"
version = 1
type = "workflow"
[[steps]]
id = "design"
title = "Design the feature"
type = "human"
[[steps]]
id = "implement"
title = "Implement the feature"
needs = ["design"]
Work graphs with parent-child relationships:
bd pourneeds)Async coordination primitives:
Ephemeral operations that don't sync to git:
bd wisp.beads-wisp/ (gitignored)| Command | Description |
|---|---|
bd pour | Instantiate formula as molecule |
bd wisp | Create ephemeral wisp |
bd mol list | List molecules |
bd pin | Pin work to agent |
bd hook | Show pinned work |
# Create a release workflow
bd pour release --var version=1.0.0
# View the molecule
bd mol show release-1.0.0
# Work through steps
bd update release-1.0.0.1 --claim
bd close release-1.0.0.1
# Next step becomes ready...