Addresses a batch of documentation improvements identified in a full-docs audit. The goal is to reduce newcomer friction from dead links and missing canonical references, and to give skill/plugin authors explicit pages for hooks, schemas, and version migration that were previously implied only by source code. Navigation fixes: - docs/INDEX.md and docs/newcomer-guide.md pointed to the wrong path for the CLI reference (cli/commands.md vs. the real cli/docs/COMMANDS.md). Replace with the canonical github URL so both mkdocs and raw-GitHub readers land on the file. - INDEX.md Getting Started section now opens with a "pick your path" router so evaluators, installers, contributors, and upgraders don't have to triangulate across three overlapping entry points. - Link docs/getting-started/index.md from INDEX.md (was previously orphaned) and add an "Install verification" block pointing at ao doctor. New pages: - docs/HOOKS.md: user-facing orientation covering lifecycle events, install/uninstall, customization env vars, and common failure modes, pointing to cli/docs/HOOKS.md for the deep technical reference. - docs/SCHEMAS.md: catalog of every JSON Schema under schemas/ and lib/schemas/, grouped by manifest vs. runtime artifact vs. internal contract, with validation commands. - docs/UPGRADING.md: action-required version migration guide. Seeds Unreleased (2.38.x) and 2.37.x sections covering strict delegation, --no-lifecycle -> --no-scaffold rename, Olympus bridge removal, swarm-evidence schema enforcement, and pre-mortem gate tightening. Reference quality: - GLOSSARY.md: 11 new terms (.agents/, MEMORY.md, Compact/PreCompact, Compile, Context Window, Discovery, Dream/Overnight Run alias, Flywheel Health, Harvest, Holdout, RPI Phase, Session Lifecycle). - troubleshooting.md: three new failure-mode sections (pre-mortem gate, go-test-precommit block, context-window compaction recovery). - CONTRIBUTING.md: escalates the sync-skill-counts.sh requirement from an easily-missed sentence to a bold callout with CI-failure rationale. mkdocs.yml: registers the three new pages in nav so they're reachable from the published site and pass strict build. Validation: - tests/docs/validate-links.sh: 1553 links checked, 0 broken. - tests/docs/validate-doc-release.sh: PASS. - scripts/docs-build.sh --check: new docs introduce 0 warnings (the single remaining preexisting warning about index.md is out of scope).
5.3 KiB
Newcomer Guide: Understanding the AgentOps Repo
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.
What this repo is
AgentOps is the operational layer for coding agents: a skills + hooks + CLI system that provides bookkeeping, validation, primitives, and flows so sessions compound instead of restarting from zero.
At a high level:
- Run primitives and flows with skills (
/research,/implement,/validation,/rpi) - Persist bookkeeping in
.agents/ - Inject the best prior learnings into the next session
- Enforce quality through hooks and CI gates
See also:
Repo structure (what matters most)
Think in five 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) - Hooks layer —
hooks/with active runtime manifest inhooks/hooks.json - CLI layer —
cli/(cli/cmd/ao/,cli/internal/, generatedcli/docs/COMMANDS.md) - Validation layer —
scripts/,tests/, and.github/workflows/validate.yml
Source-of-truth precedence
When docs disagree, follow this order:
- Executable code + generated artifacts (
cli/**,hooks/**,scripts/**,cli/docs/COMMANDS.md) - Skill contracts/manifests (
skills/**/SKILL.md,hooks/hooks.json,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.
Key concepts to learn first
1) Context quality is the core design principle
The architecture assumes output quality depends on input context quality. Most patterns in this repo are about context scoping, isolation, and compounding.
2) Skills are composable primitives and flows
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:
/rpi
3) Hooks are part of runtime behavior
The active hook manifest in hooks/hooks.json is authoritative for what runs at session boundaries.
4) CLI docs are generated, not hand-maintained
cli/docs/COMMANDS.md is generated. If command behavior changes, regenerate docs and keep parity checks passing.
5) CI checks many non-code contracts
CI validates not just builds/tests but also docs parity, hook safety, skill integrity/schema, security scans, and contract compatibility.
Suggested learning path
Day 1 reading order
README.mddocs/INDEX.mddocs/how-it-works.mddocs/ARCHITECTURE.mddocs/SKILLS.md
Then pick one domain
- CLI behavior:
cli/cmd/ao/,cli/internal/,cli/docs/COMMANDS.md - Skill behavior:
skills/<name>/SKILL.md - Hook/gate behavior:
hooks/hooks.json+hooks/*.sh - Validation/release/security:
scripts/*.sh+tests/+.github/workflows/validate.yml
Recommended first contributions
- Docs-only fix (safe): update wording or cross-links and run docs validation scripts.
- Hook/docs parity fix (medium): update docs to match runtime hook manifest and validate parity.
- Small CLI command improvement (advanced beginner): update command behavior, regenerate CLI docs, and run CLI checks.
Practical tips
- Activate the repo-managed git hooks once per clone/worktree:
bash scripts/install-dev-hooks.sh - Trust runtime files over narrative docs when there is a mismatch.
- Keep changes small and verify with local gates before pushing.
- Treat
.agents/and hooks as first-class parts 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 hook contracts, expect related parity checks to fail until updated.