Skip to content

docs(claude): move "Binary Size Analysis" body into agents/docs/ - #2884

Merged
zackees merged 1 commit into
masterfrom
refactor/bloat-progressive-disclosure
Jun 7, 2026
Merged

zackees merged 1 commit into
masterfrom
refactor/bloat-progressive-disclosure

Conversation

@zackees

@zackees zackees commented Jun 7, 2026 •

Copy link
Copy Markdown
Member

Summary

Progressive-disclosure cleanup. CLAUDE.md is the index — full bodies belong under agents/docs/<topic>.md, matching the pattern every other row in the task→doc table already follows (cpp-standards, testing-commands, hardware-autoresearch, etc.).

Changes

  • New agents/docs/binary-size-analysis.md carrying the quick-start commands, artifact shape, 5 lessons baked in, and don'ts list verbatim.
  • CLAUDE.md task→doc table row now points to the new doc.
  • CLAUDE.md Key Commands line for bash bloat references the new doc.
  • The ~50-line "Binary Size Analysis" section under the Key Commands block is removed — its content lives in the dedicated doc.

No behavioural change to bash bloat, ci/bloat.py, or the artifacts written to .build/symbols/<board>/.

Test plan

  • bash lint clean (markdown-only diff).
  • CLAUDE.md still indexes the topic via two paths (table row + Key Commands line).
  • agents/docs/binary-size-analysis.md reads standalone — every cross-reference stays valid.

🤖 Generated with Claude Code

Summary by CodeRabbit

Release Notes

  • Documentation
    • Added comprehensive binary-size analysis documentation with quick-start guide, example commands, and output schema details.
    • Reorganized guidance structure for improved clarity and navigation of related commands and references.

Progressive-disclosure cleanup. CLAUDE.md is the index — full bodies
belong under `agents/docs/<topic>.md`, matching the pattern every
other row in the task→doc table already follows.

Changes:

- New `agents/docs/binary-size-analysis.md` carrying the quick-start
  commands, artifact shape, 5 lessons baked in, and don'ts list
  verbatim.
- CLAUDE.md row in the task→doc table now points to the new doc
  instead of pulling the reader back into CLAUDE.md.
- "Key Commands" line for `bash bloat` references the new doc.
- The ~50-line "Binary Size Analysis" section under the Key Commands
  block is removed — its content lives in the dedicated doc.

No behavioural change to `bash bloat`, `ci/bloat.py`, or the
artifacts written to `.build/symbols/<board>/`.
@zackees
zackees merged commit f013443 into master Jun 7, 2026
1 check passed
@coderabbitai

coderabbitai Bot commented Jun 7, 2026 •

Copy link
Copy Markdown

Review Change Stack

Caution

Review failed

The pull request is closed.

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: a18bf73c-69df-49d2-9542-bde1b83cc947

📥 Commits

Reviewing files that changed from the base of the PR and between b69ad0e and a77c8a0.

📒 Files selected for processing (2)
  • CLAUDE.md
  • agents/docs/binary-size-analysis.md

📝 Walkthrough

Walkthrough

CLAUDE.md was reorganized to consolidate binary-size analysis guidance and point to a new dedicated documentation file. agents/docs/binary-size-analysis.md was created to provide comprehensive bloat analysis instructions, workflow examples, output artifact documentation, wrapper-specific behaviors, and related issue links.

Changes

Documentation reorganization and binary-size analysis guide

Layer / File(s) Summary
CLAUDE.md command reference updates
CLAUDE.md
The "Investigating binary size / flash bloat" instruction now links directly to agents/docs/binary-size-analysis.md, and the "bash bloat " command was relocated into the "Key Commands" section with consolidated "NEVER use" and "FORBIDDEN" guidance.
Binary-size analysis guide
agents/docs/binary-size-analysis.md
New comprehensive documentation describes the bloat analysis workflow for multiple ESP boards, including quick-start examples, output artifact schemas (report.json and report.md), wrapper-specific behaviors, prohibited practices, and references to upstream issues.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~3 minutes

Possibly related issues

Poem

🐰 A clearer path through bloat awaits,
Our docs now guide through builded gates,
With "bash bloat" commands plain to see,
And analysis notes, wild and free!
The binary truth shall now be known.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch refactor/bloat-progressive-disclosure

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant