Skip to content

Update repository agent guidance#43

Merged
vaderyang merged 3 commits into
mainfrom
docs/repository-agent-guidance
May 22, 2026
Merged

Update repository agent guidance#43
vaderyang merged 3 commits into
mainfrom
docs/repository-agent-guidance

Conversation

@vaderyang
Copy link
Copy Markdown
Collaborator

Summary:

  • add AGENTS.md as repo-level agent guidance
  • use English-only Occam wording in CLAUDE.md and AGENTS.md
  • add PR hygiene guidance to scrub private environment details from PR text

Validation:

  • git diff --check

Copy link
Copy Markdown

@github-actions github-actions Bot left a comment

Choose a reason for hiding this comment

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

Summary

This PR creates AGENTS.md (a near-identical copy of CLAUDE.md) and adds a PR Hygiene principle to both files. The AGENTS.md file appears to be for "repository agent guidance" but lacks any explanation of its purpose or how it differs from CLAUDE.md. The documentation duplication creates a significant maintenance burden without clear benefit. REQUEST_CHANGES — the author should clarify why two separate agent guidance files are needed.

Blocking

  • AGENTS.md:1–94 — Duplicate documentation file without clear purpose. AGENTS.md is nearly identical to CLAUDE.md (only the self-references differ: "AGENTS.md" vs "CLAUDE.md" in lines 3, 7, and 55). Any future update to project guidance must now be synchronized across two files, doubling maintenance effort and creating drift risk. The PR description says "add AGENTS.md as repo-level agent guidance" but provides no rationale for why this needs to be a separate file, what agent system consumes it, or how it differs from CLAUDE.md.

Questions

  • Why does this repo need both AGENTS.md and CLAUDE.md? What agent consumes AGENTS.md, and why can't it use CLAUDE.md directly?
  • Is AGENTS.md intended to be a symlink to CLAUDE.md (avoiding duplication), or a true separate file with different content planned?
  • If AGENTS.md is for a different agent system, should it reference CLAUDE.md (e.g., "See CLAUDE.md for the authoritative guidance") rather than duplicating?

Verified

  • Self-references: Confirmed AGENTS.md refers to itself (lines 3, 7, 55) while CLAUDE.md refers to itself — not a symlink issue.
  • Content parity: AGENTS.md matches CLAUDE.md word-for-word except for the self-references and AGENTS.md lacks the currentDate section.
  • PR Hygiene principle: Good addition — addresses a real security/privacy concern about leaking internal details.

🤖 Reviewed by viviworkflow run

vaderyang and others added 2 commits May 22, 2026 18:50
Avoids drift from maintaining two near-identical files. CLAUDE.md
remains the single source of truth; AGENTS.md exists as a symlink so
agent harnesses that probe for AGENTS.md (e.g. OpenAI codex) still
find the guidance.
Copy link
Copy Markdown

@github-actions github-actions Bot left a comment

Choose a reason for hiding this comment

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

Based on my complete review, let me now write the review summary.

Summary

This PR adds AGENTS.md as a symlink to CLAUDE.md to support agent harnesses that look for AGENTS.md (e.g., OpenAI Codex), while keeping CLAUDE.md as the single source of truth. The change also removes Chinese characters from the Occam's Razor principle and adds a new "PR Hygiene" principle about not leaking internal details. The symlink approach is appropriate given the project only targets Linux and macOS (no Windows builds). APPROVE — this is a clean documentation change with clear intent and correct implementation.

Verified

  • Symlink correctness: AGENTS.md -> CLAUDE.md resolves correctly and git tracks it as a symlink (mode 120000)
  • Content accuracy: Repository structure diagram matches actual layout (already missing ts-pcap-extract and deploy/ before this PR)
  • Cross-platform compatibility: Release builds target Linux/macOS only (no Windows), so symlink portability is not a concern
  • Whitespace: No trailing whitespace or other formatting issues
  • Commit alignment: Both commits match their stated intent — "Update repository agent guidance" creates AGENTS.md, "Make AGENTS.md a symlink" converts it to symlink
  • Single source of truth: Content reads correctly via symlink and matches CLAUDE.md exactly

🤖 Reviewed by viviworkflow run

@vaderyang vaderyang merged commit 3e0976b into main May 22, 2026
1 check passed
@vaderyang vaderyang deleted the docs/repository-agent-guidance branch May 22, 2026 11:38
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