# AGENTS.md — agentreflect repo

## Rules for AI coding agents working in this repo

- Run `pytest tests/ -v` before committing any changes
- All public functions must have docstrings
- Use type annotations on all function signatures
- Never modify `tests/fixtures/` without updating corresponding tests
- The basic mode (no `--llm`) MUST work without any API key
- Keep `anthropic` import inside the function that needs it (lazy import)
- Confidence scores must be floats between 0.0 and 1.0
- When adding new error type mappings, add tests in `test_generators.py`
