If you're new to this repository, this guide gives you a practical mental model, a map of where things live, and a fast path to becoming productive.
AgentOps is the operational layer for coding agents: a skills + CLI system that provides bookkeeping, validation, primitives, and flows so sessions compound instead of restarting from zero. AgentOps 3.0 is hookless by default; this repo uses the local cockpit gate as routine release authority, with CI as an optional/manual backstop.
At a high level:
- Run primitives and flows with skills (
/research,/implement,/validate,/rpi) - Persist bookkeeping in
.agents/ - Inject the best prior learnings into the next session
- Enforce quality through local gates, with CI as an optional/manual backstop
See also:
- Codebase Overview — consolidated map for humans and agents (start here for repo archaeology)
- README
- AgentOps 3.0 — the north star
- Operating Loop — how work flows (primary navigation)
- Architecture — historical system overview (read the 3.0 banner first)
- How It Works
Think in four layers:
- Product/docs layer —
docs/+ selected repo-root entrypoints such asREADME.md,CHANGELOG.md,GOALS.md, andPRODUCT.md - Skills layer —
skills/, checked-inskills-codex/, andskills-codex-overrides/(SKILL.mdcontracts + per-skill scripts/references + Codex-only tailoring) - CLI layer —
cli/(cli/cmd/ao/,cli/internal/, generatedcli/docs/COMMANDS.md) - Validation layer —
scripts/,tests/, the local cockpit gate, and.github/workflows/validate.ymlas an optional/manual backstop
When docs disagree, follow this order:
- Executable code + generated artifacts (
cli/**,scripts/**,cli/docs/COMMANDS.md) - Skill contracts/manifests (
skills/**/SKILL.md,schemas/**) - Explanatory docs (
docs/**,README.md)
For Codex skills specifically:
skills/<name>/SKILL.mdis the canonical behavior contractskills-codex-overrides/<name>/is the Codex-specific tailoring layerskills-codex-overrides/catalog.jsonrecords the Codex treatment decision for every skillskills-codex/<name>/is the checked-in Codex runtime artifact
For the core Codex execution chain, skills-codex-overrides/catalog.json also
stores machine-readable operator_contract markers. When you change one of
those prompts, update the contract alongside the prose so the validator can
enforce the intended Codex-specific guarantees. After Codex prompt/artifact
changes, run bash scripts/refresh-codex-artifacts.sh --scope worktree so hash
refresh and Codex-specific validators follow one obvious repair path.
The architecture assumes output quality depends on input context quality. Most patterns in this repo are about context scoping, isolation, and compounding.
Use the router in Skills Reference to choose the right entry point:
- Start with uncertainty:
/research - Break work into issues:
/plan - Implement one issue:
/implement - Run multi-issue waves:
/crank - Run end-to-end lifecycle: follow Operating Loop (the
/rpiskill is one turn's executor — not the primary navigation surface)
Tracked work lives in _beads/ (private nested repo). Until legacy .beads/ is retired, invoke:
BEADS_DIR=$PWD/_beads br ready
BEADS_DIR=$PWD/_beads br update <id> --claimDo not use bd or Dolt — retired as of 2026-06-11. See Dependencies.
AgentOps 3.0 ships zero hooks; nothing auto-injects or runs at session boundaries. This repo uses the local cockpit gate as the routine gate, while CI (.github/workflows/validate.yml) is an optional/manual backstop. If you want a bounded local gate of your own, author one with the hooks-authoring skill — AgentOps does not ship one.
cli/docs/COMMANDS.md is generated. If command behavior changes, regenerate docs and keep parity checks passing.
CI validates not just builds/tests but also docs parity, skill integrity/schema, security scans, and contract compatibility.
README.mddocs/architecture/codebase-overview.md— consolidated repo mapdocs/3.0.md— north stardocs/architecture/operating-loop.md— how work flowsdocs/documentation-index.mddocs/SKILLS.md
- CLI behavior:
cli/cmd/ao/,cli/internal/,cli/docs/COMMANDS.md - Skill behavior:
skills/<name>/SKILL.md - Opt-in hooks:
skills/hooks-authoring/(AgentOps ships none by default) - Validation/release/security:
scripts/*.sh+tests/+.github/workflows/validate.yml
- Docs-only fix (safe): update wording or cross-links and run docs validation scripts.
- Skill/docs parity fix (medium): update docs to match a
SKILL.mdchange and validate parity. - Small CLI command improvement (advanced beginner): update command behavior, regenerate CLI docs, and run CLI checks.
- Run the local gate before pushing:
ao gate check --fast --scope head(Go registry; smart routing checks only what changed). Legacy bash escape hatch:AGENTOPS_GATE_BASH=1→scripts/pre-push-gate.sh --fast. - Use a git worktree per bead when the canonical checkout is shared — see
AGENTS-RUNTIME.md. - Trust runtime files over narrative docs when there is a mismatch.
- Keep changes small and verify with local gates before pushing.
- Treat
.agents/as a first-class part of the system behavior. - Treat Codex as a first-class runtime: when a skill change affects Codex UX or execution style, inspect
skills-codex-overrides/, updateskills-codex-overrides/catalog.jsonif treatment changes, update the checked-inskills-codex/copy when needed, and run the Codex validation scripts. - If you touch command surfaces or skill contracts, expect related parity checks to fail until updated.