# `.agents/` — harness-agnostic agentic dev toolkit Portable skills, prompts, and scripts that drive the box-box development lifecycle. Any harness (Claude, Codex, opencode, …) can read these — the canonical workflows live here, not in a tool-specific folder. The shared project context every harness reads is `AGENTS.md` (→ `CLAUDE.md`). ## Layout ``` skills/ Codex/open agent skills: groom, write-spec, implement, review, lenses personas/ grill.md (base) + lens overlays (architect, …) — the interrogation voices prompts/ ready-spec.md (groomed spec), implement.md/review.md dispatch prompts lib/gh.sh GitHub issue + Project (#2) state helpers: issue_*, set_stage/effort/priority lib/dispatch.sh dispatch(): Ready issue → worktree → harness → gate → PR harnesses.sh headless adapters (one fn per harness) + run_gate — the ONLY tool-specific code bin/dev CLI: `dev implement --harness [--dry-run]` ``` ## The lifecycle `Icebox → Research → Ready → In Progress → In Review → Done` (the Project `Stage` field). - **Groom** (interactive, Claude): `/groom ` runs a seeded grill-me → writes a Ready spec into the issue body → sets Effort/Priority → leaves Stage at `Research`. You review and flip to `Ready`. - **Implement** (recommended harnesses: `codex` or `cursor`): `.agents/bin/dev implement --harness ` (or `/implement …` in Claude to supervise) → isolated worktree → runs the harness headless on the spec → build gate → opens a PR → sets Stage `In Review`. - **Review + merge**: use the `review` skill from a harness different from the implementer to create a local review packet and PR comment, then you merge. ## Skills and harnesses `.agents/skills` is the canonical home for reusable workflows. Codex discovers repo skills from that path directly, and Claude can use the same files through `.claude/skills -> ../.agents/skills`. Other harnesses can read the same `SKILL.md` files explicitly or enter the workflow through `.agents/bin/dev`. Do not put canonical workflow instructions under `.claude/`; that directory is local adapter state. ## Adding / fixing a harness Edit one function in `harnesses.sh`: `harness_ `, running the tool non-interactively in `` on the prompt. For current implementation dispatch, prefer `codex` or `cursor`; `claude` and `opencode` remain available, and `pi` still needs flag verification before trusting. `agy` / Antigravity is deliberately disabled for non-dry-run dispatch as of 2026-07-04. Phase 1 testing found the headless path unreliable: with `--new-project` it ignored the prompt and tried to scaffold, while without it the CLI could resume a stale conversation and hang past the print timeout. Keep using `.agents/bin/dev implement --harness agy --dry-run` for prompt inspection only; real dispatch should use `codex` or `cursor` until a fresh Antigravity headless invocation is verified and documented. Always `--dry-run` a new harness first: it renders the exact prompt and plan, touching nothing (no worktree, PR, or state change).