AGENTS.md · git:20261117.9aadfd7 · 2026-11-17 · sha256 0dd992c7e52ed8a5
AGENTS.md git:20261117.9aadfd7A
Immutable. This exact content never changes and is served at /api/v1/blob/0dd992c7e52ed8a5.
# Repository guidance - Keep canonical skills under `skills/<name>/SKILL.md`; do not maintain divergent agent-specific copies. - Never edit a skill listed in `ai-prompts.lock` here; change it in AI_prompts and rerun its `scripts/export-skills.py`. - Keep installer behavior idempotent and refuse unmanaged conflicts unless `--force` is explicit. - Prefer self-explanatory code. Add comments only for non-obvious intent, invariants, constraints, workarounds, security boundaries, or surprising tradeoffs. - Keep comments factual, neutral, and normally one sentence. Never narrate prompts, AI use, the user-agent collaboration, debugging history, or obvious code behavior. - Keep external stack reconciliation dry-run by default, preserve unlisted plugins, and require explicit opt-in for persistent session capture. - Keep the `hooks/guard.py` rules high-precision; a false positive that blocks ordinary work gets the whole hook disabled. - Keep guard rules in `hooks/guard.py` only; `hooks/opencode-guard.js` maps OpenCode tool names onto the same payload and must not reimplement a rule. - Quote a guard violation in docs or tests with a `uas-allow` comment on its own line directly above it, never by splitting the literal into concatenated fragments. - Keep the guard's shell wrapper as `guard || exit 0; interpreter script`; the `&& … || exit 0` form turns the blocking exit code 2 into 0 and silently disables every rule. - Run `python3 scripts/validate.py`, `python3 scripts/test_sync_agent_stack.py`, `python3 scripts/test_sync_instructions.py`, `python3 scripts/test_sync_opencode_config.py`, `python3 scripts/test_check_pin_freshness.py`, `python3 scripts/test_hooks.py`, and the installer tests after relevant changes; for shell changes also run `shellcheck` and `shfmt -d` on `install.sh`, `bootstrap.sh`, and `scripts/test-install.sh`. - Update both POSIX and PowerShell implementations when changing installer behavior.