Skip to content

Stub CLAUDE.md; move internals to docs/internals.md#33

Merged
Jammy2211 merged 1 commit into
mainfrom
feature/claude-md-stub
Jul 8, 2026
Merged

Stub CLAUDE.md; move internals to docs/internals.md#33
Jammy2211 merged 1 commit into
mainfrom
feature/claude-md-stub

Conversation

@Jammy2211

Copy link
Copy Markdown
Contributor

Claude Code auto-injects a repo's CLAUDE.md into context the first time any file under it is read. Heart's was ~120 lines of internals, paid by every session that merely glances at this repo. Now: CLAUDE.md is a stub → AGENTS.md (the PyAutoBrain pattern); internals live in docs/internals.md (on-demand); the never-rewrite-history block moves to AGENTS.md. References in heart/validate.py, health_agent/capabilities.{yaml,md} updated. 202 tests pass.

Part of the organism token-efficiency roadmap (item 2).

🤖 Generated with Claude Code

CLAUDE.md is auto-injected into agent context on first file read in this repo
— at ~120 lines it was the largest involuntary context load in Heart. It is
now a 9-line stub pointing at AGENTS.md (matching the PyAutoBrain pattern);
the internals (check framework, tick budget, adding checks, hard rules) 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>
Copilot AI review requested due to automatic review settings July 8, 2026 10:21
@Jammy2211 Jammy2211 merged commit feb556c into main Jul 8, 2026
2 checks passed
@Jammy2211 Jammy2211 deleted the feature/claude-md-stub branch July 8, 2026 10:21

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

This PR reduces default agent-context token cost by stubbing CLAUDE.md and moving detailed PyAutoHeart internals into an on-demand document (docs/internals.md), while updating in-repo references accordingly.

Changes:

  • Replace the heavy CLAUDE.md with a short pointer to AGENTS.md and docs/internals.md.
  • Add docs/internals.md containing the check framework rules, tick budget guidance, and contribution internals.
  • Update internal references in Heart/Health Agent docs and docstrings, and move the “never rewrite history” block into AGENTS.md.

Reviewed changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
heart/validate.py Updates boundary documentation reference from CLAUDE.md to AGENTS.md.
health_agent/capabilities.yaml Updates “adding a check” pointer to docs/internals.md.
health_agent/capabilities.md Updates documentation list to reference docs/internals.md for internals.
docs/internals.md New internals doc: hard rules, structure, adding checks, local running notes.
CLAUDE.md Stubbed to point to AGENTS.md + docs/internals.md instead of embedding internals.
AGENTS.md Updates internals pointer and adds the “never rewrite history” section.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread docs/internals.md

Operational detail for working **inside** this repo: the check framework, the
tick budget, how to add a check, and the hard rules. What PyAutoHeart *is* and
the Brain/Heart/Build boundary live in [`AGENTS.md`](../AGENTS.md) — read that
Comment thread CLAUDE.md
discovering this repository.
Read [`AGENTS.md`](AGENTS.md) in this directory. It is the shared source of
truth for PyAutoHeart — the health authority of the PyAuto organism — and for
the Brain / Heart / Build boundary.
Comment thread docs/internals.md
Comment on lines +21 to +27
4. **Lightweight test footprint**. Heart's own test suite runs on the
standard library plus PyYAML only — no scientific/ML stack (numba,
matplotlib, JAX, the PyAuto libraries). This keeps the suite fast and
flake-free so it runs anywhere (CI, mobile, sandbox). It is a property of
*Heart's* tests, not a claim about the projects Heart watches — Heart may
perfectly well monitor non-JAX (or JAX-heavy) repos; that's their concern,
not the suite's.
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.

2 participants