# AGENTS.md ## Repository expectations This repository is designed to be worked on by multiple coding agents and humans. All agents must follow the same repo-first workflow. ## Source of truth - Codebase and versioned docs are authoritative - Gitea Issues are the official task board - ADRs are authoritative for architectural decisions - Handoffs summarize session state, but do not replace ADRs - External shared memory is operational only, not the final source of truth ## Required reading order 1. Current Gitea issue 2. This file 3. `CLAUDE.md` if using Claude Code 4. Relevant files in `docs/context/` 5. Relevant ADRs in `docs/adr/` 6. Latest relevant handoff in `docs/handoffs/` ## Work rules - Work on one issue at a time - Respect issue scope - If scope changes, update the issue before proceeding - Do not silently introduce architecture changes - Prefer explicit, reviewable diffs - Avoid hidden assumptions; document them - If uncertain, leave a note in the issue and handoff - Never commit secrets; `.env` is git-ignored and the repository is public ## Required outputs per task - Code changes linked to the issue - Tests or clear explanation why tests were not added/run - Updated docs when needed - Handoff file for non-trivial tasks ## Handoff minimum content Each handoff should include: - Issue reference - Goal - What was changed - Files touched - Tests run - Open risks - Recommended next step ## File ownership convention When a task has an active owner, avoid unrelated edits in the same area. If multiple tasks overlap, coordinate through the Gitea issue. ## Commit guidance Use small, focused commits. Reference the issue number in commit messages and PRs when applicable.