MicTx/spec-harness
面向 AI 编程智能体的任务包工作流工具,用可验证的范围、证据和 Git 门禁管理长期改动。(Task-package workflow for AI coding agents with verifiable scope, evidence, and Git gates.)
What it solves
AI coding agents often interrupt users constantly, ask reversible questions during execution, and deliver changes that have not been verified. Spec Harness introduces a disciplined two-phase task-package workflow: plan thoroughly up front, then execute without asking until the result is checkable and delivered. It also ensures that when UI changes are involved, real operation flows and screenshots are captured and reviewed, so every acceptance criterion is covered by evidence.
How it works
A task package lives in .spec/specs/YYYY-MM-DD_slug/ and contains only spec.md (the specification) and tasks.md (the task list). The harness writes runs.jsonl and state.json as execution proceeds. During planning, the agent uses a charter and machine linting to surface unknown assumptions, split decisions, and reverse-verify tasks into decidable fields. After plan-go, execution runs automatically along a task DAG (directed acyclic graph), with built-in validation and checkpoint commits. If the package touches UI paths, it must record real operation steps and screenshots before the check gate; spec.py ui-review writes these back into ui-review.json. Every criterion must be covered by real operations, and every issue must either be fixed or explicitly accepted by the user. Missing, stale, or unclosed evidence blocks delivery. Each prompt during the lifecycle ends with an encouraging Spark: line to push the agent to explore boldly within boundaries and converge with evidence.
Who it’s for
Developers using AI coding agents like Claude Code, Codex, Gemini CLI, Grok, OpenCode, Cursor, and others. It works as an installable skill that adds a /spec command to these hosts, letting you start with a one-sentence goal and get a structured plan, autonomous execution, and verified delivery. It is also useful if you maintain your own agent harness and want a portable skill package that follows this workflow.
Highlights
- Two-phase workflow: thick planning, then execution without user questions until verifiable delivery.
- Task packages are simple:
spec.mdandtasks.mdonly; harness manages state and runs. - Task DAG drives autonomous execution, validation, and checkpoint commits.
- UI paths require real operation flow, screenshots, and a machine-reviewed
ui-review.jsonbefore delivery. - Every criterion must be covered by evidence; no missing or stale evidence can slip through.
- Installs on many agent hosts (Claude Code, Codex, Gemini, Grok, OpenCode, Cursor, etc.) with a single script.
- License is PolyForm Noncommercial (free for non-commercial use, commercial requires written authorization).
Related
- Project
- Project
- Project
- Project