Skip to content

docs: move agent instructions to AGENTS.md - #200

Merged
stanislavlevin merged 1 commit into
mainfrom
issue_199
Nov 17, 2026
Merged

stanislavlevin merged 1 commit into
mainfrom
issue_199

Conversation

@stanislavlevin

@stanislavlevin stanislavlevin commented Nov 17, 2026 •

Copy link
Copy Markdown
Owner

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:

  • Add a root AGENTS.md that directs contributors to task-specific project guidance.

Enhancements:

  • Organize shared development guidance into dedicated rules for commands, development practices, CLI behavior, testing, and design documents.
  • Document project constraints, supported workflows, commit message conventions, test structure, and design-writing expectations.

Documentation:

  • Replace the tool-specific .claude/CLAUDE.md guidance with repository-wide AGENTS.md and linked documentation under docs/agents/.

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>
@sourcery-ai

sourcery-ai Bot commented Nov 17, 2026

Copy link
Copy Markdown

Linked issues

Checked at commit d269588

#199 Move agent instructions to AGENTS.md · 2 of 2 met

# Requirement Status Notes
1 Move the agent instructions to a root AGENTS.md that briefly describes the project and links to focused files under docs/agents/. ✅ Met AGENTS.md gives a brief project description and links to focused guidance files; the tool-specific .claude/CLAUDE.md is removed.
2 State when each guidance file should be read. ✅ Met Each link in AGENTS.md names the tasks for which its guidance applies.

@sourcery-ai sourcery-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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


Sourcery is free for open source - if you like our reviews please consider sharing them ✨

Comment thread docs/agents/commands.md Resolved
Comment thread AGENTS.md Resolved
Comment thread docs/agents/commands.md Resolved
@stanislavlevin
stanislavlevin merged commit 454b18a into main Nov 17, 2026
22 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Move agent instructions to AGENTS.md

1 participant