Convert gitgram/ and aitimemachine/ from embedded git repos (which showed as opaque submodule gitlinks on GitHub) into fully-tracked first-party content. AITM now merges its 7 vendored repos as first-party engines: - memory: beads (Go task DAG) + context7 (docs SDK), unified into saved_contexts - git: vendored C git (bundled binary) + gitnexus (in-process code intelligence) - agentic: a2a (@a2a-js/sdk) + pal (AITM-managed Python subprocess) Includes the full session's product build: Gitgram web/mobile/backend features, AITM website/CLI/MCP, the unified memory layer, engine build tooling (scripts/build-engines.sh, Dockerfile, CI), docs (README, ENGINES.md, ARCHITECTURE.md), and extensive test suites. Build artifacts, node_modules, external/, and gemini-cli are gitignored. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
3.1 KiB
3.1 KiB
id, title, sidebar_position
| id | title | sidebar_position |
|---|---|---|
| index | Workflows | 1 |
Workflows
Beads provides powerful workflow primitives for complex, multi-step processes.
Chemistry Metaphor
Beads uses a molecular chemistry metaphor for workflow phases:
| Phase | Command | Synced | Use Case |
|---|---|---|---|
| Proto (solid) | bd cook |
N/A | Compiled template, reusable |
| Mol (liquid) | bd mol pour |
Yes | Persistent work with audit trail |
| Wisp (vapor) | bd mol wisp |
No | Ephemeral operations |
Core Concepts
Formulas
Declarative workflow templates in TOML or JSON. Support variables, conditional steps, loops, inheritance, and composition.
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"]
Cooking
bd cook compiles a formula into a resolved proto. Two modes: compile-time (keeps {{var}} placeholders for planning) and runtime (substitutes all variables for final output).
Molecules
Work graphs with parent-child relationships:
- Created by instantiating formulas with
bd mol pour - Steps have dependencies (
needs) - Progress tracked via issue status
Gates
Async coordination primitives:
- Human gates - Wait for human approval
- Timer gates - Wait for duration
- GitHub gates - Wait for PR merge, CI, etc.
Wisps
Ephemeral operations that don't sync:
- Created with
bd mol wisp - Stored locally with
Ephemeral=true - Lifecycle: squash (promote), burn (discard), or GC (auto-clean)
Swarms
Parallel execution across an epic's dependency graph:
- Analyze epic structure for parallelism:
bd swarm validate - Create coordinated swarm from epic:
bd swarm create - Monitor progress across waves:
bd swarm status
Workflow Commands
| Command | Description |
|---|---|
bd cook |
Compile formula into proto |
bd mol pour |
Instantiate formula as persistent molecule |
bd mol wisp |
Create ephemeral wisp from formula |
bd mol list |
List molecules |
bd mol squash |
Promote wisp to persistent molecule |
bd mol burn |
Delete wisp without trace |
bd mol wisp gc |
Garbage collect old wisps |
bd mol bond |
Bond formulas together with phase control |
bd swarm validate |
Analyze epic for parallel execution |
bd swarm create |
Create swarm from epic |
bd swarm status |
Show swarm progress |
bd swarm list |
List all swarm molecules |
bd formula list |
List available formulas |
Simple Example
# Create a release workflow
bd mol pour release --var version=1.0.0
# View the molecule
bd dep tree bd-xyz
# Work through steps
bd update bd-xyz.1 --claim
bd close bd-xyz.1
# Next step becomes ready...