Skip to content

Add AGENTS.md and CLAUDE.md - #612

Merged
michalpelka merged 3 commits into
mainfrom
mp/agents_md
Nov 11, 2026
Merged

michalpelka merged 3 commits into
mainfrom
mp/agents_md

Conversation

@michalpelka

Copy link
Copy Markdown
Contributor

Adds project rules for coding agents (Codex, Copilot, Claude Code and others) and for human contributors.

AGENTS.md holds the rules. They are collected from maintainer review comments, and each one cites the PR where it was raised. CLAUDE.md only imports AGENTS.md, so there is one set of rules to maintain.

Sections:

🤖 Generated with Claude Code

Project rules for coding agents, collected from maintainer review
comments: scope of a change, existing workflows, reuse, platform
tiers, third-party libraries, release, tests and docs. CLAUDE.md
imports AGENTS.md so both tools read one set of rules.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@michalpelka
michalpelka marked this pull request as draft November 2, 2026 09:17
@michalpelka
michalpelka requested a review from mwlasiuk November 2, 2026 09:22
@dancmari

dancmari commented Nov 2, 2026

Copy link
Copy Markdown
Contributor

Thank you for putting this together. I think this is a useful starting point: it maps the existing infrastructure, connects the rules to actual review experience, and keeps one authoritative document through the CLAUDE.md import.

I would suggest a few small clarifications:

  • Allow an agreed route for larger changes. “One concern per PR” is a good principle. A fix should be as small as correctness requires, though some problems need coordinated changes across several components. A short architecture proposal agreed with maintainers could establish that scope before implementation. The experimental-branch approach discussed in Lack of AGENTS.md / CLAUDE.md #603 could remain a separate follow-up.
  • Make verification of shared code explicit. When changing reused sources, identify the affected executables and libraries, including Python bindings. PR descriptions should state what was actually built and tested, and what remains for CI. This would directly address the integration mistake we encountered with Step 1: report stage timings and resource usage #608.
  • Clarify platform-specific capabilities. The rule against single-platform features could distinguish between breaking the supported workflow and providing additional native diagnostics with an explicit unavailable state elsewhere. The resource reporting merged in Step 1: report stage timings and resource usage #608 is an example: processing remains portable, while some counters are available only on Windows.
    One practical detail: the build instructions should include --config Release and ctest -C Release for multi-configuration generators such as Visual Studio, consistent with the existing Windows workflow.

With these clarifications, I would support adopting this as an initial rule set and refining it through practical use. It already gives contributors a much clearer basis for preparing changes and understanding review expectations.

@mwlasiuk mwlasiuk left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

My ideas for changes - to be discussed

Comment thread AGENTS.md Resolved
Comment thread AGENTS.md Resolved
Comment thread AGENTS.md Resolved
@dancmari

dancmari commented Nov 3, 2026

Copy link
Copy Markdown
Contributor

The proposed rules would be more balanced if they also reflected the final solutions accepted after review. While the original review comments provide useful context, citing them without acknowledging the subsequent refactoring and approval can give an incomplete picture of the contribution and the lessons learned.

michalpelka added a commit that referenced this pull request Nov 9, 2026
Address review on #612:
- Replace the images/workflow.png pointer with an inline Mermaid
  diagram of the processing chain, readable as text by agents.
- Explain that (#N) points to a GitHub PR and how to read it.
- Add agents/ for per-user agent notes, ignored by git, and forbid
  references to it from code, commits, PRs and tracked docs.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Michal Pelka <michalpelka@gmail.com>
@michalpelka

Copy link
Copy Markdown
Contributor Author

I've adjusted agents.md

@mwlasiuk mwlasiuk left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

After the revision it looks nice and helpful for AI-assisted workflows.

Only thing missing is the addition of agents directory with its .gitignore file - IMO should be added int this PR so it it complete one change. Otherwise someone else will add it in theirs first PR done with AI (probably agent will create it after ingesting the instructions).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@michalpelka
michalpelka marked this pull request as ready for review November 10, 2026 23:47

@mwlasiuk mwlasiuk left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Unless anyone else has objections i belive this is a good start.

@michalpelka
michalpelka merged commit 0cd5b32 into main Nov 11, 2026
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.

3 participants