Install
openclaw skills install latticeInitialize and manage Lattice organizations — a file-based operating system for AI agent teams that enables stable, long-running iterative development throug...
openclaw skills install latticeLattice is a file-based operating system for AI agent teams. It replaces volatile chat windows with persistent files, enabling agents to work stably through long, iterative development cycles via an 8-phase execution pipeline.
Why Lattice?
Example model assignment (from a production setup):
| Phase | Model tier | Example |
|---|---|---|
| Constitute (architecture) | Strong reasoning | Claude Opus |
| Research | Strong reasoning | Gemini Pro |
| Specify (design) | Strong reasoning | Claude Opus |
| Plan + Tasks | Strong reasoning | Claude Opus |
| Implement | Cost-efficient coding | GPT Codex |
| Test | Cost-efficient coding | GPT Codex |
| Review | Strong reasoning | Claude Opus |
| Gap Analysis | Strong reasoning | Gemini Pro |
The key insight: implementation and testing consume the most tokens (writing/running code), but don't require the most expensive models. Planning and review consume fewer tokens but need deeper reasoning. Match model strength to cognitive demand, not token volume.
Templates are bundled at templates/ORG/ relative to this skill directory.
templates/ORG/PROJECTS/pipeline-framework/DESIGN.mdtemplates/ORG/PIPELINE_GUIDE.mdtemplates/ORG/PROJECTS/pipeline-framework/templates/PIPELINE_GUIDE_FOR_SUBAGENTS.mdtemplates/ORG/PROJECTS/pipeline-framework/templates/ORCHESTRATOR_PROMPT.template.mdtemplates/ORG/PROJECTS/pipeline-framework/templates/PHASE_PROMPTS/templates/ORG/PROJECTS/pipeline-framework/templates/PIPELINE_STATE.template.jsonlattice init)Ask the user for:
ORG/ folder (default: current workspace root)Keep it conversational. Don't dump all questions at once.
Copy the entire templates/ORG/ directory to <target>/ORG/.
Then customize:
DEPARTMENTS/example-dept/ → DEPARTMENTS/<dept-name>/<Department Name> placeholders in CHARTER.md, RUNBOOK.md, HANDOFF.md with the actual department name{"lastRun": null, "cursor": null, "notes": "Initial state"}DEPARTMENTS/example-dept/ after creating real departments (unless user wants to keep it as reference)PROJECTS/example-project/ → PROJECTS/<project-name>/PROJECTS/example-project/ after creating the real projectRead templates/ORG/PROJECTS/pipeline-framework/templates/PIPELINE_STATE.template.json as the reference.
Ask the user:
["gflash", "gpro", "sonnet"])Fill in the project's PIPELINE_STATE.json with these values, replacing all <placeholder> tokens.
Read templates/ORG/PROJECTS/pipeline-framework/templates/ORCHESTRATOR_PROMPT.template.md.
Create a cron job using the cron tool:
every 30 minutes (adjustable)isolatedagentTurn<placeholder> tokens filled in:
<project> → project name<org-root> → absolute path to the ORG directory<project-root> → absolute path to the project directory<repo-root> → absolute path to the code repository (ask user)Tell the user the cron job ID so they can manage it later.
Print a brief summary:
lattice new-project)templates/ORG/PROJECTS/example-project/ → ORG/PROJECTS/<name>/lattice new-dept)templates/ORG/DEPARTMENTS/example-dept/ → ORG/DEPARTMENTS/<name>/lattice status)ORG/TASKBOARD.md — summarize active prioritiesORG/PROJECTS/:
STATUS.md — current phase and progressPIPELINE_STATE.json — phase statuses, blockers, run numberORG/DEPARTMENTS/:
HANDOFF.md — current state and blockersConstitute → Research → Specify → Plan+Tasks → Implement → Test → Review → Gap Analysis
ORG/PROJECTS/<project>/
├── STATUS.md # Human-readable status
├── DECISIONS.md # Key decisions + rationale
├── PIPELINE_STATE.json # Phase state machine
├── PIPELINE_LOG.jsonl # Append-only history
├── pipeline/ # Current run artifacts
└── pipeline_archive/ # Historical runs