Files
cli-autoreview/AGENTS.md
2026-02-02 19:54:04 +00:00

24 lines
941 B
Markdown

# AGENTS
## Extending review logic
The review flow is:
1) Generate diff and chunk it in src/ai_reviewer/diff.py.
2) Build prompts in src/ai_reviewer/prompt.py.
3) Send to the model in src/ai_reviewer/ollama.py.
4) Render outputs in src/ai_reviewer/render.py.
## Adding new checks
- Add new rules to the prompt template in src/ai_reviewer/prompt.py.
- Keep outputs JSON-only and evidence-based.
- For uncertain findings, set label to VERIFY.
## Adding linter integration
- Capture linter output in a new module (for example src/ai_reviewer/lint.py).
- Merge linter findings into the existing Finding list in src/ai_reviewer/render.py.
- Ensure each linter-based finding includes file, location, and a snippet of the relevant diff when possible.
## Prompt tuning
- Keep the JSON schema stable so parsing remains deterministic.
- Avoid adding non-deterministic instructions.
- If adding fields, update the parser in src/ai_reviewer/cli.py.