Stub CLAUDE.md; move internals to docs/internals.md#116
Merged
Conversation
CLAUDE.md is auto-injected into agent context on first file read in this repo — at ~230 lines it was the largest involuntary context load in the organism. It is now a 9-line stub pointing at AGENTS.md (matching PyAutoBrain/PyAutoHeart); the internals (autobuild CLI, pre-build steps, workspace structure, configs, release.yml) move to docs/internals.md, read on demand. The never-rewrite-history safety block moves to AGENTS.md so it stays in the always-read path. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
There was a problem hiding this comment.
Pull request overview
This PR restructures repository guidance docs to reduce default context load: CLAUDE.md becomes a short pointer, detailed pipeline internals move to docs/internals.md (on-demand), and the “never rewrite history” policy is relocated into AGENTS.md.
Changes:
- Add
docs/internals.mdcontaining detailed operational/internal pipeline documentation. - Replace the previously long
CLAUDE.mdwith a short stub that points toAGENTS.mdanddocs/internals.md. - Update
AGENTS.mdto point to the new internals doc and include the “Never rewrite history” rules.
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| docs/internals.md | New on-demand internal documentation for the build pipeline and repo operations. |
| CLAUDE.md | Reduced to a minimal entrypoint that redirects to AGENTS.md and docs/internals.md. |
| AGENTS.md | Updated references to internals location and now contains the history-rewrite prohibition. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Comment on lines
+1
to
+5
| # PyAutoBuild — internals | ||
|
|
||
| Operational detail for working **inside** this repo: the `autobuild` CLI, the | ||
| pre-build steps, workspace folder structure, config files, and `release.yml`. | ||
| What PyAutoBuild *is* and the Brain/Heart/Build boundary live in |
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.
Same surgery as PyAutoLabs/PyAutoHeart#33:
CLAUDE.md(~230 lines, the single largest involuntary context load in the organism — auto-injected on any file read here) becomes a 9-line stub →AGENTS.md; internals move todocs/internals.md(on-demand); the never-rewrite-history block moves toAGENTS.md. Tests pass.Part of the organism token-efficiency roadmap (item 2).
🤖 Generated with Claude Code