Harness Sample is a small Python project configured to work with several AI coding harnesses (Claude Code, Codex, Gemini CLI, Grok, GitHub Copilot, OpenCode, or a generic setup). It demonstrates a portable, specification-driven workflow for turning an approved feature request into tests, implementation, and reviewable commits.
When AI agents write most of the code, the rules around them matter as much as the code. This repository carries those rules with it, so every agent follows the same workflow:
- Feature and Fix specifications require human approval before implementation.
- Feature and Fix use tests written before implementation; every lane runs the application suite and relevant checks.
- Separate reviewer sessions check each lane's required work. Feature includes plan, task, security, and final reviews; Fix and Small Change require an independent final review. Each review is recorded.
- Agents don't merge, push, or deploy without a separate request from a person (
.sdd/POLICY.md).
You can clone this repository as a base, use it as-is, or copy the skills and agent roles you prefer into another repository.
-
Choose a development lane using the guide below. For Feature, install OpenSpec 1.13.1 (needs Node.js 20.19 or later):
npm install -g @fission-ai/[email protected] openspec --version
-
For Feature or Fix, install Superpowers for your coding harness. For example:
- Claude Code:
claude plugin marketplace add obra/superpowers-marketplace, thenclaude plugin install superpowers@superpowers-marketplace - Codex: open
/plugins, search for Superpowers, and select Install Plugin.
Steps for Gemini CLI, Grok, Copilot, OpenCode, and other harnesses are in
.sdd/harnesses/. Restart the harness and confirm its skills load. - Claude Code:
-
Open this repository with your coding agent and describe the change.
AGENTS.mdroutes repository work throughsdd-run, which selects or resumes the lane and checks its prerequisites. Feature needs OpenSpec and Superpowers; Fix needs Superpowers without OpenSpec; Small Change uses the standalone workflow without either dependency.
Feature adds a capability or intentionally changes intended behavior, such as adding batch greetings. The agent records your choice about an optional brainstorming round, then prepares an OpenSpec proposal and specification. You review and explicitly approve that exact specification revision before planning or implementation. The agent plans the work, obtains an independent plan review, and implements each eligible task with tests first. Independent specification and code reviews check each task. Full verification, security review, and final review follow before specification sync and archival.
Fix corrects a bug or regression, including an urgent hotfix. Choose it when, for example, names containing only whitespace incorrectly receive a greeting. The agent investigates and writes a short local specification describing the observed behavior, expected behavior, and verification. You explicitly approve that exact revision before implementation. The agent adds a failing regression test, fixes the bug, runs regression checks and the application suite, and obtains an independent final review. Fix does not require OpenSpec planning artifacts.
Small Change preserves behavior while making a low-risk edit, such as correcting a README typo or clarifying a code comment. Your request defines the scope, with no separate specification, planning artifacts, or routine human approval. The agent makes the edit, runs relevant checks and the application suite even for documentation changes, and obtains an independent final review. If the work needs a behavior change, the agent pauses and asks you to keep only behavior-preserving work, move to Fix or Feature, or stop. It waits for your explicit decision; moving lanes requires that lane's prerequisites and specification approval before behavior edits.
Local completion does not authorize publication. A commit, pull request, or merge request requires a separate explicit request; merging, pushing, or deploying also requires separate authorization. A requested pull or merge request authorizes its required push, but not approval, merge, or deployment.
from greeting import greet_people, greet_person
print(greet_person("Ada Lovelace"))
# Hello, Ada Lovelace!
print(greet_people(["Ada Lovelace", "Grace Hopper"]))
# ['Hello, Ada Lovelace!', 'Hello, Grace Hopper!']greet_people(names: list[str]) -> list[str] returns a fresh list in input order, retaining duplicates. Both functions trim surrounding whitespace while preserving capitalization and internal spaces. An empty batch returns a new empty list. Any empty or whitespace-only name raises ValueError("name must not be blank"), with no partial result returned. The input list remains unchanged on success or failure; inputs outside a list of strings are outside the batch contract.
To run the sample tests, install uv and run:
uv run --with pytest python -m pytest -qStart with git log --oneline. Each step of the workflow is its own commit.
- Bootstrap project adds portable repository instructions and harness-specific agent guidance.
- The proposal and specification commits capture the feature intent and its observable behavior before implementation.
- Planning commits record the implementation approach and verification criteria.
- Write personalized greeting tests records the test-first step.
- Implement personalized greeting adds
greet_person(name)after the tests were in place. - Mark greeting tasks complete records the completed implementation tasks.
- Record workflow review evidence and Record final review outcome commit the review record (
.sdd-review.json): the human spec approval, the spec, code, security, and final reviews, and the OpenSpec validation result. - Sync and Archive merge the approved spec into
openspec/specs/and move the change toopenspec/changes/archive/. - Updated harness files refreshes the agent workflow files after the run, the way an existing project would receive template updates.
This repository is a demo run on a deliberately small example. I approved the specification myself. Reviews ran as separate agent sessions, recorded in openspec/changes/archive/2026-11-02-add-personalized-greeting/.sdd-review.json, and the implementation tasks ran in the main Codex session. Paths inside that record point to the change folder before it was archived. It is not a claim that larger projects or production rollouts have been exercised here.
OpenSpec (MIT) owns the specification and change files. Superpowers is referenced but not included. See THIRD_PARTY_NOTICES for details.
MIT. See LICENSE.
Cristian Calabro · ccalabro.dev · [email protected]