Skip to content

docs: add a contributor and coding-agent guide - #76

Merged
megabyde merged 5 commits into
mainfrom
docs/agents-guide
Aug 26, 2026
Merged

docs: add a contributor and coding-agent guide#76
megabyde merged 5 commits into
mainfrom
docs/agents-guide

Conversation

@megabyde

Copy link
Copy Markdown
Owner

Summary

This repository had no AGENTS.md, so an agent working here started from the README and had to infer the rest. Since the repository is a template, that gap propagates to every project generated from it.

The guide records the process the user docs do not carry, and links into docs/development.md rather than restating it:

  • The build-policy defaults that must not be relaxed to get a build through, and the reason hardening and LTO cover first-party targets only: dependency binaries come from the Conan cache and are not rebuilt.
  • The dependency update order, conanfile.py then make lock then verify then commit both, and that a lock regenerated without a pin change is churn.
  • The rename-script invariant. .github/workflows/template.yml renames the template in CI and then builds, tests, and runs the result, so a new file carrying the project name has to teach scripts/rename.py about it in the same change or that workflow fails.

CLAUDE.md is a symlink to AGENTS.md because Claude Code reads only the former.

Test plan

  • markdownlint --config .markdownlint.json AGENTS.md is clean
  • prettier --check AGENTS.md reports the file already conforms
  • Every docs/development.md anchor referenced resolves to a real heading
  • git ls-files -s CLAUDE.md reports mode 120000
  • Required checks pass, including rename / ubuntu-latest / gcc, which is the one this change could plausibly affect

Records the process the user docs do not carry: the build-policy defaults
that must not be relaxed to get a build through, the dependency update
order, and the rename-script invariant that the template workflow
enforces. Claude Code reads CLAUDE.md rather than AGENTS.md, so the
symlink points it at the same file.

@chatgpt-codex-connector chatgpt-codex-connector 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.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 83a49d80cc

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread AGENTS.md Outdated

@chatgpt-codex-connector chatgpt-codex-connector 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.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 1dcb25461f

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread CLAUDE.md Outdated
CLAUDE.md becomes a regular file importing AGENTS.md, the alternative the
Claude Code documentation gives for the symlink. That removes the only
tracked symlink, so PRETTIER_SOURCES and MARKDOWN_SOURCES go back to a
plain git ls-files.

The import also survives a Windows checkout. Git without symlink support
writes the link target as file content, which would leave a generated
project with a CLAUDE.md containing the string AGENTS.md.
@megabyde
megabyde merged commit f49a1b2 into main Aug 26, 2026
17 checks passed
@megabyde
megabyde deleted the docs/agents-guide branch August 26, 2026 03:48
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.

1 participant