docs(agents): consolidate architecture into AGENTS.md + merge discipline + shared read-only allowlist#1471
Merged
Conversation
…; add merge discipline + shared read-only allowlist Mirror the framework repo's AGENTS.md hygiene. - Fold .github/copilot-instructions.md (the 10KB "Lead Architect" doc: tech stack, monorepo topology, JSON protocol, the Commandments incl. No-Touch zones, renderer patterns, MSW/debug strategy) into AGENTS.md and delete it. Rationale: Claude Code reads AGENTS.md/CLAUDE.md, NOT copilot-instructions.md, so that architecture guidance was invisible to half the agents working here. Copilot reads AGENTS.md natively, so one file now serves every tool. - Multi-agent discipline: prefer one git worktree per task; add the merge-only-after-CI-green / never `gh pr merge --auto` rule (matches framework #1555). - .claude/settings.json (new, committed/shared): read-only browser/preview observation tools (snapshot/screenshot/list/network/console) derived from recent transcript usage, so parallel agents prompt less. Excludes mutating / arbitrary-exec calls (preview_eval, navigate, click, fill, evaluate_script, agent-browser open/eval) and anything Claude Code already auto-allows. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
Mirrors the hygiene just applied to the
frameworkrepo (framework#1555), adapted to this repo's situation.This repo had two divergent instruction files: a small
AGENTS.md(operational rules + multi-agent discipline) and a large.github/copilot-instructions.md(the 10KB "Lead Architect" doc — tech stack, monorepo topology, JSON protocol, the Commandments, renderer patterns). They didn't reference each other.The problem: Claude Code reads
AGENTS.md/CLAUDE.md, not.github/copilot-instructions.md. So all of the architecture guidance was invisible to Claude Code agents working in this repo — they only saw the 2.8KB operational file.What
.github/copilot-instructions.mdintoAGENTS.mdand delete it. Architecture content preserved: tech-stack constraints (cva/cn, no inline styles), monorepo topology table, JSONUIComponentprotocol, the Commandments (incl. the No-Touch zonepackages/components/src/ui/**), registry/renderer patterns, MSW/client/upstream-first debug strategy, AI workflow. GitHub Copilot readsAGENTS.mdnatively, so one file now serves every agent.gh pr merge --autorule..claude/settings.json(new, committed/shared): read-only browser/preview observation tools (snapshot / screenshot / list / network / console) derived from recent transcript usage, so parallel agents prompt less. Excludes mutating / arbitrary-exec calls (preview_eval,navigate,click,fill,evaluate_script,agent-browser open/eval) and anything Claude Code already auto-allows..claude/settings.local.json(per-machine) untouched.Notes
AGENTS.md).🤖 Generated with Claude Code