Skip to content

Repository files navigation

agentic-dev-harness

Language: English | 한국어

agentic-dev-harness_preview-img

A document-first agentic dev harness for Claude Code and Codex CLI — sets up document structure and sub-agent workflow all at once when starting a new project. Both CLIs are supported as first-class entry points.

In short: Fork this repo → optionally run /discover-product to ground your charter in real user data → run /bootstrap-project → get charter and architecture in one shot, then /plan-milestone creates milestones/features. The main session orchestrates; sub-agents do the work.

Who is this for

  • Individual developers who frequently start new projects
  • Teams wanting to standardize document structure and work breakdown
  • Users who want the main session to delegate via sub-agents rather than carrying all context

Overall Flow

/discover-product (optional)
  └─ (optional) /validate-discovery (separate session) → /repair-discovery (origin session)
  → /bootstrap-project → /bootstrap-stack → /stack-guard
  → /bootstrap-design (frontend only — evidence-on-demand reference research into DESIGN_RESEARCH.md, multiple concept mockups (REFINE/EXPLORE) to pick a direction *before* writing DESIGN.md with a render/axe acceptance gate, then a temporary design-preview.html for final review; mockups removed after approval) [ADR-058]
  → /plan-milestone (+UI: R5 prototype round) → /plan-workitem M1 (batch)
       └─ (optional) /validate-plan (separate session) → /repair-plan (origin session)
  → /seal-milestone M1 (plan lock gate — final check + your approval, always runs)
  → /implement-workitem
  → /validate-workitem → /repair-workitem (if Needs Fix) → /finalize-workitem
  → /stabilize-milestone

For step-by-step details, see WORKFLOW.md. For sub-agent delegation, see DELEGATION_STRATEGY.md. The Quick Start below walks through these commands as Steps 0–3.

/discover-product is recommended for new projects to ground charter in concrete persona/pain/scenarios. It writes docs/10-charter/DISCOVERY.md, which /bootstrap-project then converts into charter/architecture. For a quick prototype, you can skip /discover-product and pass a natural-language brief directly to /bootstrap-project.

Note: DISCOVERY.md is the SSOT; Charter is a snapshot. To re-sync the Charter after updating DISCOVERY mid-project, run /bootstrap-project --apply (see ADR-035).

Quick Start

Prerequisites

  • Claude Code or Codex CLI installed — the harness supports both as first-class entry points
  • Apply this repository as a GitHub template to a new repo, or clone it to get started

Step 0 (Optional): Discover

Run discovery to ground your charter in real persona/pain data:

/discover-product [product description]

Skip this step for quick prototypes — pass a brief directly to /bootstrap-project instead.

Step 1: Initialize Project

/bootstrap-project [project brief or empty to use DISCOVERY.md]

Generates: README.md, docs/10-charter/PROJECT_CHARTER.md, docs/20-system/ARCHITECTURE_OVERVIEW.md.

Tip — what to include in the brief: what you're building, who uses it, the problem it solves, and what's already decided vs. undecided. See PROJECT_START_CHECKLIST.md for examples.

Step 2: Set Up Stack

/bootstrap-stack is input-adaptive. If you already know your stack, pass it and it is documented directly. If you are undecided, run it with no (or vague) input and it researches options, presents 2-3 combinations with tradeoffs and a recommendation over rounds, and — once you choose — authors everything in one session:

/bootstrap-stack [stack/runtime description]   # decided → document
/bootstrap-stack                               # undecided → deep decision rounds
/bootstrap-stack --migrate [new stack]         # stack change (rounds if target undecided)
/stack-guard

/bootstrap-stack decides (research + rounds when undecided) or documents stack choices and outlines needed automation. Then run /stack-guard after reviewing STACK_SETUP_PLAN.md — it generates the unified validate entrypoint and verify scripts. If a frontend stack is detected, also run /bootstrap-design to populate docs/20-system/DESIGN.md (ADR-027).

Step 3: Plan → Implement → Ship

# Plan (milestone/feature authoring = /plan-milestone (M1 included); decompose into tasks with ## 9. 의존성 ordering)
/plan-milestone [milestone idea]
/plan-workitem M1

# (Optional) Cross-LLM peer review — see ADR-038
#   In a separate terminal / fresh Claude session OR Codex:
/validate-plan [workitem id] [--reviewer-tag <tag>]
#   Then back in the origin plan session:
/repair-plan [workitem id]

# Seal — final check + your approval + bulk promotion to ready (ADR-060)
/seal-milestone M1

# Implement (blocked until the milestone is sealed)
/implement-workitem [task id]
/validate-workitem [task id]

# If Pass: finalize and move on
/finalize-workitem [task id]

# If Needs Fix: repair, then re-validate
/repair-workitem [task id]
/validate-workitem [task id]

# Once all tasks in the milestone are done:
/stabilize-milestone [milestone id]

Using with Codex CLI (alternate entry)

When you hit Claude Code's usage limit or prefer Codex:

  1. Run codex in the same repo — AGENTS.md is auto-loaded.
  2. Documents and policies are equal. Core workflow skills have Codex wrappers ($-prefixed): $implement-workitem, $validate-workitem, $repair-workitem, $finalize-workitem, $plan-milestone, $plan-workitem, $seal-milestone, $validate-plan, $repair-plan, $bootstrap-project, $bootstrap-stack, $stabilize-milestone, $repair-milestone, $stack-guard, $validate-discovery, $repair-discovery, $validate-milestone. Remaining skills (discover-product, review-doc, boilerplate-context, bootstrap-design, research-pack) are invoked via natural language. See WORKFLOW.md.
  3. Core workflow skills are callable via Codex Skills:
    • Inner loop: $implement-workitem T-001, $validate-workitem T-001, $repair-workitem T-001, $finalize-workitem T-001
    • Planning / bootstrap / seal / stabilize: $plan-milestone <milestone idea>, $plan-workitem M1, $seal-milestone M1 (plan lock gate — ADR-060), $bootstrap-project <brief>, $bootstrap-stack <stack>, $stack-guard, $stabilize-milestone M1, $repair-milestone M1
    • Plan cross-review (opt-in, ADR-038): $validate-plan M1 (in fresh Codex session) + $repair-plan M1 (in origin session that ran $plan-workitem)
    • Discovery / stabilize cross-review (opt-in, ADR-044/ADR-054): $validate-discovery + $repair-discovery, $validate-milestone M1 (in fresh Codex session) + $repair-milestone M1 (in origin session)
  4. For remaining skills (discover-product, review-doc, boilerplate-context, bootstrap-design, research-pack), invoke in natural language: "Follow .claude/skills/<name>/SKILL.md".

Note: docs in docs/ use Claude's /<skill-name> slash syntax. Read these as $<skill-name> when working in Codex.

For full policy, see ADR-010.

Structure

For a full inventory of all artifacts (location, owner, lifecycle), see STRUCTURE.md.

.
├── AGENTS.md          # Canonical entry instructions (tool-neutral)
├── CLAUDE.md          # Imports AGENTS.md (Claude Code entry)
├── .claude/           # Claude sub-agents, skills, settings
├── .codex/            # Codex CLI project config (safety baseline — limits in config.toml comments)
├── .agents/           # Codex skill wrappers ($-prefixed, point back to .claude/skills)
├── docs/
│   ├── 00-meta/       # Workflow, guardrails, templates, operational guides
│   ├── 10-charter/    # Project scope, goals, problem definition
│   ├── 20-system/     # Architecture overview, UI design (UI projects only)
│   ├── 30-workitems/  # Milestones, features, tasks
│   ├── 40-validation/ # QA findings, improvement guide, reports
│   └── 90-decisions/  # ADR records
├── scripts/           # Project-specific automation (after stack is chosen)
└── .boilerplate/      # Boilerplate self-validation/meta artifacts. Read-only after fork. Not a project artifact.

Guardrail Principles

This harness prioritizes cross-platform reusability — shared base settings do not include OS/shell/runtime-dependent hooks. See GUARDRAILS_STRATEGY.md for details.

Default automation directly covers web frontend, API server, CLI, monorepo, Supabase integration, and Flutter (Android/iOS). Other stacks (iOS Swift, Android Kotlin, React Native, ML, embedded, game, native desktop) require a project ADR that supersedes ADR-031's default-scope decision — see ADR-031 and ADR-059.

Where to Start

Contributing

For improvement suggestions or bug reports, see the issue templates. For structural changes, see the PR template.

License

MIT — see LICENSE.

About

Document-first agentic dev harness for Claude Code and Codex CLI — scaffolds charter, architecture, and a sub-agent workflow for a new project in one shot.

Topics

Resources

Stars

Watchers

Forks

Releases

Contributors

Languages