Skip to content

Rules for contributors' agents: CONTRIBUTING.md, a pull request template and Codex review rules - #138

Merged
Crokily merged 1 commit into
mainfrom
contrib-rules
Dec 4, 2026
Merged

Crokily merged 1 commit into
mainfrom
contrib-rules

Conversation

@Crokily

@Crokily Crokily commented Dec 4, 2026

Copy link
Copy Markdown
Owner

What was wrong

Most outside issues and pull requests now come from a contributor's coding agent, and nothing in the repository told that agent what an issue or a pull request must hold. #135's description was only a link to its issue, and its design put a need of every chat app into seven Telegram settings and dropped messages before the log. AGENTS.md had the rules, but no word on issues, pull requests or review.

What changed

  • CONTRIBUTING.md (new), written for agents: every issue and pull request follows the rules and principles in AGENTS.md, and a design that breaks one is redone or replaced, even if it works. Then: search first; a new feature starts as an issue that states the need, and the maintainers decide the design; what a bug report holds; a pull request is one change with a description that stands on its own; docs in step, no CHANGELOG or version edits; how review works here.
  • AGENTS.md: a pointer to CONTRIBUTING.md at the top, so an agent that only codes does not read the contribution rules every session. Rule 2: a need that is not only one chat app's is met once in the gateway core, not with settings of one channel. Rule 3: every event the bot receives is logged, at least who, where and when; code may decide not to wake the bot for it, but the bot can always find that it came. Rule 6 names how a run waits for a model that fails, as docs/development.md already does. A ## Code Review Rules section, which Codex's GitHub review follows (P1 for breaks of rules 2, 3, 4, 6 and 7).
  • .github/pull_request_template.md (new): What was wrong, What changed, How it was tested, Not done, with the guidance in comments. GitHub puts it into the description on the web, and Copilot's coding agent fills it.
  • CLAUDE.md is now one line, @AGENTS.md, instead of a symlink. Git on Windows usually checks a symlink out as a small file that says only "AGENTS.md", and Claude Code then reads that file and not AGENTS.md. Copilot's code review reads both AGENTS.md and CLAUDE.md, so the symlink also gave it the rules twice. GEMINI.md (new) is @./AGENTS.md: Gemini CLI reads only GEMINI.md by default. pi reads AGENTS.md before CLAUDE.md, one file per folder, so pi is not changed.
  • README, Develop: points to CONTRIBUTING.md.

How it was tested

Text only. npm run check passes. npx vitest run test/pi.test.ts test/skills.test.ts (context files and skills' links): 23 passed. The full suite runs in CI.

…ate and Codex review rules

- CONTRIBUTING.md: what an issue and a pull request must hold and how review works here, written for the coding agents that open most of them. Every issue and pull request follows AGENTS.md's rules and principles; a design that breaks one is redone or replaced.
- AGENTS.md: a pointer to CONTRIBUTING.md; rule 2 says a need that is not only one chat app's is met once in the gateway core; rule 3 says every event is logged, at least who, where and when; rule 6 names how a run waits for a model that fails, as docs/development.md does; a Code Review Rules section, which Codex's GitHub review follows.
- .github/pull_request_template.md: the four sections of a description.
- CLAUDE.md imports AGENTS.md (@AGENTS.md) instead of being a symlink, which Git on Windows checks out as a file that says only "AGENTS.md"; GEMINI.md imports it for Gemini CLI.
- README: Develop points to CONTRIBUTING.md.
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Dec 4, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-12-04T04:53:28.628646Z fca7ecd PR opened
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@Crokily
Crokily merged commit 105800f into main Dec 4, 2026
6 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.

1 participant