codetwin

AGENTS.md

Operating rules for AI agents working in this repo. Read before any non-trivial change.

1. Spec-driven, roadmap-bound

2. One session = one feature

3. Tests are first-class

4. Determinism is non-negotiable

The same (CodeModel, Config) must render byte-identical output across runs. This unlocks snapshot tests and codetwin diff.

5. Pre-commit gate (all must pass)

cargo fmt --all
cargo clippy --all-targets -- -D warnings
cargo test --all

No --no-verify. If a hook fails, fix the cause.

6. Rust style

7. Off-limits without explicit approval

8. Surgical changes

9. Commits & PRs

10. When in doubt

Stop and ask. Surfacing a tradeoff costs one message; an out-of-scope rewrite costs a session.

Agent skills

Issue tracker

Issues tracked in GitHub Issues at carlosferreyra/codetwin via the gh CLI. See docs/agents/issue-tracker.md.

Triage labels

Default canonical labels (needs-triage, needs-info, ready-for-agent, ready-for-human, wontfix). See docs/agents/triage-labels.md.

Domain docs

Single-context: CONTEXT.md + docs/adr/ at the repo root. See docs/agents/domain.md.