Skip to content

chore: simplify AGENTS.md but keep impact - #334

Open
cameronapak wants to merge 2 commits into
mainfrom
chore/rightsize-agents
Open

chore: simplify AGENTS.md but keep impact#334
cameronapak wants to merge 2 commits into
mainfrom
chore/rightsize-agents

Conversation

@cameronapak

@cameronapak cameronapak commented Aug 14, 2026

Copy link
Copy Markdown
Collaborator

What

Rightsize the root AGENTS.md from a 108-line kitchen sink down to identity, gotchas, a guardrail, and pointers.

Kent posted https://x.com/kentcdodds/status/2087943922073079868 which sparked this in my head to simplify the agents file. https://claude.com/blog/the-new-rules-of-context-engineering-for-claude-5-generation-models

TL;DR - AI models are a LOT better at finding/retrieving context from the repo. Gotchas a more important to cover. More info in https://claude.com/blog/the-new-rules-of-context-engineering-for-claude-5-generation-models

Changes

  • Trim AGENTS.md (108 → 29 lines): keep identity, gotchas, the one-way dependency guardrail, and router pointers.
  • Move the testing block into a new docs/testing.md and repoint the three package guides (packages/*/AGENTS.md) at it.
  • Add an empty changeset (docs-only, no release).

Why

Always-on context budget should hold only what every task needs. Release/env/package/testing/domain detail already lives in PUBLISHING.md, CONTEXT.md, the nested package guides, and the CI configs — the root file should route to them rather than restate them.

Test

  • pnpm lint + prettier --write ran via pre-commit hook (markdown files).
  • No code changed; no tests affected.

Greptile Summary

The PR rightsizes the root agent guide and moves shared testing guidance into a dedicated document.

  • Retains repository identity, key gotchas, package boundaries, and documentation pointers.
  • Updates package-level guides to reference the shared testing document.
  • Adds an empty changeset for the documentation-only update.

Confidence Score: 5/5

The documentation-only PR appears safe to merge.

No blocking failure remains.

Important Files Changed

Filename Overview
AGENTS.md Condenses the root guide into repository-wide guardrails, gotchas, and focused documentation pointers.
docs/testing.md Preserves the extracted testing principles, flavor matrix, ownership boundaries, and test-scope guidance.
packages/core/AGENTS.md Repoints core package testing guidance to the new shared testing document.
packages/hooks/AGENTS.md Repoints hooks package testing guidance to the new shared testing document.
packages/ui/AGENTS.md Repoints UI package testing guidance to the new shared testing document.
.changeset/empty-eels-poke.md Adds the intentional empty changeset required for this documentation-only PR.

Reviews (2): Last reviewed commit: "chore: restore downstream rebuild gotcha" | Re-trigger Greptile

Trim the root agent guide to identity, gotchas, a guardrail, and
pointers. Move the testing block into docs/testing.md and repoint the
package guides at it.

Co-authored-by: CommandCodeBot <noreply@commandcode.ai>
@changeset-bot

changeset-bot Bot commented Aug 14, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: fbbb760

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 0 packages

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@cameronapak cameronapak self-assigned this Aug 14, 2026
@cameronapak cameronapak changed the title chore: rightsize AGENTS.md chore: simplify AGENTS.md but keep impact Aug 14, 2026
Comment thread AGENTS.md
Co-authored-by: CommandCodeBot <noreply@commandcode.ai>
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