A stateful, spec-driven framework for AI-assisted software engineering.
⚠️ META-PROJECT: This IS the framework source. Changes propagate to all downstream projects.
Version: 4.7.1
If you are an AI agent interacting with this repository, follow these protocols based on your task:
If you have been tasked with initializing, retrofitting, or updating the Keystone framework in a project, read and follow the instructions in INITIATOR.md. Adopt the "Wizard" role immediately.
If you are contributing to the Keystone framework itself (this meta-project):
- Dogfooding: Follow the framework's own protocols defined in
keystone/directives/. - State: Read
keystone/project/mission.mdandkeystone/project/workstreams/registry.mdto orient yourself. - Isolation: Only edit the workstream file assigned to you in
keystone/project/workstreams/. - Verification: Run
./keystone/bin/audit.shbefore finalizing any changes to thekeystone_starter/distributable.
Copy the entire keystone_starter/ folder to your new project root, then rename it to your project name.
cp -r keystone_starter/ my-new-project/
cd my-new-project/your-project/
├── keystone/ # The framework
│ ├── directives/ # How AI should think and act
│ │ ├── THINKING.md # First Principles & Design
│ │ └── EXECUTION.md # Build & Deliver
│ │
│ ├── standards/ # Code quality rules
│ │ ├── INDEX.md # Which standards to read when
│ │ └── ... # Language-specific rules
│ │
│ ├── templates/ # Frequently recreated files
│ │ └── workstream.md # Unified workstream template
│ │
│ ├── specs/ # Specification files
│ │ ├── problem.md # Problem definition
│ │ └── ... # Other specs
│ │
│ ├── project/ # Project state (living files)
│ │ ├── mission.md # Global North Star
│ │ ├── board.md # Global Kanban (auto-generated)
│ │ └── workstreams/ # Parallel work contexts
│ │ ├── registry.md # Session & Workstream map
│ │ └── [name].md # Unified state & tasks per context
│ │
│ ├── PROJECT_LEARNINGS.md # Process wisdom
│ ├── DECISION_LOG.md # Architectural decisions
│ └── README.md # Framework user guide
│
├── .opencode/skills/ # Agent Skills (Board, Init)
├── AGENTS.md # Entry point for AI agents
├── INITIATOR.md # Setup & Update Wizard
└── CHANGELOG.md # Project version history
- Copy INITIATOR.md — Copy this file to your project root.
- Run Wizard — Ask your AI: "Initialize Keystone" or "Update Keystone".
- Follow Instructions — The AI will guide you through the setup and skill installation.
The framework is optimized for Parallel AI Engineering:
- Unified Workstreams: Tasks, Active State, and Handover are consolidated into a single
workstream.mdfile per context. - Agent Skills: Automated tools for scaffolding workstreams (
keystone-init) and aggregating progress (keystone-board). - Isolation: Each AI session owns its own workstream file, preventing Git merge conflicts and context bleed.
| Command | Action |
|---|---|
| "Create workstream [name]" | Call skills_keystone_init to scaffold a new context |
| "Generate board" | Call skills_keystone_board |
| "Next task" | Find and start next Open task in active workstream |
| "Switch to [workstream]" | Change active workstream focus |
This repository is the meta-project that develops the Keystone framework itself.
- Framework Source:
keystone_starter/(distributable) - Maintainer Tools: Run
./keystone/bin/audit.shto verify the starter integrity.
See CHANGELOG.md for detailed version history.