Repository navigation
docs: move agent instructions to AGENTS.md - #200
Merged
Merged
Conversation
Move shared project guidance from .claude/CLAUDE.md to a root AGENTS.md so it applies across tools. Link to separate rule files under docs/agents/ and state when each file should be read. Keep the existing project constraints, update setup and test commands, and add guidance for commit messages, test structure, and design docs. Fixes: #199 Assisted-by: Codex:gpt-6.1-sol Signed-off-by: Stanislav Levin <slev@altlinux.org>
Linked issuesChecked at commit d269588 #199 Move agent instructions to AGENTS.md · 2 of 2 met
|
There was a problem hiding this comment.
Hey - I've found 3 issues
Prompt for AI Agents
Please address the comments from this code review:
## Individual Comments
### Comment 1
<location path="docs/agents/commands.md" line_range="55" />
<code_context>
+
+## Setup
+
+```sh
+python3 -m venv .venv
+.venv/bin/python -m pip install --upgrade pip
</code_context>
<issue_to_address>
**Self-run setup fails on managed Python**
When the system Python is marked externally managed, `pip install --user` is rejected for the test dependencies and project, so the self-run workflow cannot install them or start its tests.
Adjust the documented setup so it installs the test dependencies and project without using `pip install --user` against an externally managed system Python.
Also at `docs/agents/commands.md:56-57`.
</issue_to_address>
### Comment 2
<location path="AGENTS.md" line_range="7" />
<code_context>
+primarily for RPM packaging. Runtime uses the standard library and vendored
+`packaging`, with no network I/O. The backend in `backend/` builds this project.
+
+Read and follow the rules for the work you are doing:
+
+- [Commands](docs/agents/commands.md): before environment setup, builds,
</code_context>
<issue_to_address>
**Claude sessions miss project guidance**
When a contributor uses Claude Code, claude Code does not automatically load `AGENTS.md`, so removing `.claude/CLAUDE.md` leaves Claude sessions without the project instructions.
Retain `.claude/CLAUDE.md` or provide another way for Claude Code to load the project instructions.
</issue_to_address>
### Comment 3
<location path="docs/agents/commands.md" line_range="36" />
<code_context>
+## Unit tests and coverage
+
+```sh
+.venv/bin/python -m pytest -vra --cov --cov-config=pyproject.toml tests/unit
+```
+
</code_context>
<issue_to_address>
**Subprocess coverage is omitted**
When the documented unit-coverage command is run, `pytest` collects only the parent process's coverage; spawned subprocesses are not started with coverage, so their execution is missing from the report and the documented run can fail the 100% coverage gate.
Set `COVERAGE_PROCESS_START="$(pwd)/pyproject.toml"` for the coverage command.
</issue_to_address>Sourcery assessment
Approval pending. 3 findings to address first.
Blocking findings: docs/agents/commands.md:55, AGENTS.md:7, docs/agents/commands.md:36
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Move shared project guidance from .claude/CLAUDE.md to a root AGENTS.md so it applies across tools. Link to separate rule files under docs/agents/ and state when each file should be read.
Keep the existing project constraints, update setup and test commands, and add guidance for commit messages, test structure, and design docs.
Fixes: #199
Summary by Sourcery
Move contributor guidance into repository-wide agent documentation and expand it with task-specific development rules.
New Features:
Enhancements:
Documentation: