Files
boshu2__agentops/docs/newcomer-guide.md
T
Claude c4166a5c51 docs: fix broken CLI links, add HOOKS/SCHEMAS/UPGRADING pages, expand GLOSSARY
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).
2026-04-22 05:01:02 +00:00

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:

  1. Run primitives and flows with skills (/research, /implement, /validation, /rpi)
  2. Persist bookkeeping in .agents/
  3. Inject the best prior learnings into the next session
  4. Enforce quality through hooks and CI gates

See also:

Repo structure (what matters most)

Think in five layers:

  1. Product/docs layer — docs/ + selected repo-root entrypoints such as README.md, CHANGELOG.md, GOALS.md, and PRODUCT.md
  2. Skills layer — skills/, checked-in skills-codex/, and skills-codex-overrides/ (SKILL.md contracts + per-skill scripts/references + Codex-only tailoring)
  3. Hooks layer — hooks/ with active runtime manifest in hooks/hooks.json
  4. CLI layer — cli/ (cli/cmd/ao/, cli/internal/, generated cli/docs/COMMANDS.md)
  5. Validation layer — scripts/, tests/, and .github/workflows/validate.yml

Source-of-truth precedence

When docs disagree, follow this order:

  1. Executable code + generated artifacts (cli/**, hooks/**, scripts/**, cli/docs/COMMANDS.md)
  2. Skill contracts/manifests (skills/**/SKILL.md, hooks/hooks.json, schemas/**)
  3. Explanatory docs (docs/**, README.md)

For Codex skills specifically:

  1. skills/<name>/SKILL.md is the canonical behavior contract
  2. skills-codex-overrides/<name>/ is the Codex-specific tailoring layer
  3. skills-codex-overrides/catalog.json records the Codex treatment decision for every skill
  4. skills-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

  1. README.md
  2. docs/INDEX.md
  3. docs/how-it-works.md
  4. docs/ARCHITECTURE.md
  5. docs/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
  1. Docs-only fix (safe): update wording or cross-links and run docs validation scripts.
  2. Hook/docs parity fix (medium): update docs to match runtime hook manifest and validate parity.
  3. 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/, update skills-codex-overrides/catalog.json if treatment changes, update the checked-in skills-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.

Where to go next