Adopt
How to adopt it
The executable template v0.1 is published: openspec-software-factory-template. This page describes how the method is adopted.
Adoption consists in creating the project from the template, configuring it with a few values and verifying it. It is not a platform install: it is a repository with rules and gates.
The full walkthrough, with two blocks and eleven tasks, has its own page: Full example. This page stays focused on adoption.
On this page
Minimal route
This route sets up the OpenCode adapter for v0.1. Setting up the harness takes 20–30 minutes; the first change, another 15.
- Create the repository from the template.
- Initialize OpenSpec if the project does not use it yet (
openspec init). - Run bootstrap:
node bootstrap.mjs(interactive or with flags). - Review the contract:
AGENTS.md, agents and commands with no placeholders. - Verify:
docs-sync --check,check-secretsand the tests. - Start the method:
/opsx-propose "<description>"→/implementar→/revisar.
/coordinar and /curar come later; those three commands are enough to start. If you do not know what is next, /estado tells you. Daily operation — docs, scripts and curator — lives in How it runs.
Requirements
The method and the v0.1 adapter do not need the same things.
Method
| You need | How | Why |
|---|---|---|
| OpenSpec | Install: openspec.dev/docs/installation · or npm i -g @fission-ai/openspec@latest (Node 22.20+) | Specifications and tasks; run openspec init if the project does not have it yet. |
| Git and CI | Have already: git-scm.com and your CI | Branches, commits and PRs; gates run locally and in CI. |
OpenCode adapter v0.1
v0.1 is built and tested on OpenCode. It is not a dependency of the method —the contract, gates and trace are files and git— but it is a dependency of the capabilities the loop uses: subagents, per-agent permissions and resumable sessions. The adapter runs on Windows (Git Bash or WSL) and Linux; PowerShell is not supported for the gates.
| You need | How | Why |
|---|---|---|
| OpenCode | Install: opencode.ai/docs · Windows: standalone binary | Harness: subagents, permissions and commands. |
| Node.js 22+ | Install: nodejs.org (LTS 22) | Harness and CI only: bootstrap, docs-sync, worktree-deps, plan and tests. The generated product does not need it. |
| Bash | Have already: Git Bash (bundled with Git for Windows) or wsl --install | Agents run the gates there. |
| OpenCode models | Configure: /connect in OpenCode · providers | The six model IDs from bootstrap must exist in your installation. |
| Harness | v0.1 status |
|---|---|
| OpenCode | supported |
| Claude Code | planned extension |
| Codex | planned extension |
| Gemini CLI | planned extension |
An adapter translates the same source into each assistant's format. None is implemented until the method is validated: maintaining two harnesses before the first one works doubles the maintenance. If an assistant has no subagents or permissions, the loop degrades to a single agent and the limit is documented.
| Role in the method | In OpenCode |
|---|---|
| Coordinator | main session · /coordinar |
| Implementer | implementer subagent · /implementar |
| Reviewer | reviewer subagent · /revisar |
| Spec reviewer | openspec-reviewer subagent · /openspec-review |
| Curator | main session · /curar |
Project fields
| Field | Example |
|---|---|
| Name and slug | acme-notes |
| Description and stack | internal notes; Node + TypeScript |
| Source directories | src/ |
| Commands | build, test and format |
| Models per level | implement and review [HARD], NORMAL and [FAST] |
| Review copies | .review |
| Main branch | main |
Bootstrap asks for those values once and writes them to harness.config.json and the contract. If a placeholder is left unresolved, it fails.
What not to copy
- Another project's domain documents.
- Personal diagnostic tools.
- Credentials, domains and concrete paths.
- The decision history: each project writes its own.
How to know it works
- A new document without
typebreaks CI. - A task without an explicit dependency shows in the plan.
- A task commit without a brief is detected in review.
- A harness change without a record row is reviewed by the curator.
- A secret or real-project piece of data must break the build.
If none of that fails, the method is decoration, not control.
What the factory adds to OpenSpec
OpenSpec already solves specification: proposal, requirements, scenarios and tasks. The factory does not compete with that; it executes it. This page separates what each layer contributes, without hype.
Honest comparison
| Capability | OpenSpec | Factory |
|---|---|---|
| Requirements and scenarios | ✅ | ✅ (uses them) |
| Tasks with dependencies | ✅ | ✅ (queries them) |
| Delegation to subagents | — | ✅ |
| Closed brief per task | — | ✅ |
| Build, test and format gates | — | ✅ |
| Mutation as test proof | — | ✅ |
| Trace with agent, cost and result | — | ✅ |
| Brief and verdict in the commit | — | ✅ |
| Review by commit range | — | ✅ |
| Decision record and curator | — | ✅ |
| OpenCode harness (subagents and permissions) | — | ✅ (v0.1 adapter) |
| Adapters for other harnesses | — | planned, outside the current scope |
| Change archive | ✅ | ✅ |
What each part adds
- The brief turns a task into a verifiable contract: files, criterion and model.
- Gates turn "it is done" into reproducible evidence.
- Mutation turns a green test into a test that proves something.
- The trace turns work into data: what it cost, what failed and why.
- The curator turns data into rules for the next pass.
- The OpenCode harness makes the method executable: subagents, permissions and native commands. Adapters for other assistants remain a documented extension, not a promise of the current version.
What it does not promise
It is not a benchmark. There is no independent metric saying this method is better. There is local evidence: gates that run, mutations that fail and a record with dates and commits.
>
It does not remove human review. It concentrates it on the gates that matter.
>
It does not work without a specification. An agent without a contract executes fast what it should not.
Where it comes from
The four-part architecture —context, agent, trace and curator— appears across the industry under different names. This method applies it to a real project with OpenSpec as the contract, subagents as executors and git as traceability.
- Software factory: the thesis that the team builds the system that writes software, not the software line by line.
- Factory loop: in 2026, Tomasz Tunguz describes the same sequence —context, agent, trace and curator— for code and knowledge. It is an architectural convergence, not empirical validation: the article itself notes that it includes no benchmark.
- LLM Wiki: the idea that knowledge is compiled once and kept current, instead of re-derived on every query. Here it inspires an optional layer, not the template core.
- Meta-harness: the idea that the harness is installed with a visible plan and can be audited.
The difference is the starting point: here the contract is OpenSpec and the goal is for the agent to execute it without losing the evidence.