Skip to content

v1.46.1.0 docs: trim CLAUDE.md ~46% by relocating reference to docs#1719

Open
Nickmcm1 wants to merge 9 commits into
garrytan:mainfrom
Nickmcm1:claude/trim-claude-md
Open

v1.46.1.0 docs: trim CLAUDE.md ~46% by relocating reference to docs#1719
Nickmcm1 wants to merge 9 commits into
garrytan:mainfrom
Nickmcm1:claude/trim-claude-md

Conversation

@Nickmcm1
Copy link
Copy Markdown

Summary

Trims CLAUDE.md from 882 → 500 lines (~12.2K → ~6.6K tokens, -46%) by relocating reference-only detail into docs that load on demand, leaving a tight set of always-on rules plus pointers. No invariant dropped: every section header, every "before editing X read Y" tripwire, the CI-test names, and the gbrain managed-block markers stay put. 7 commits, one per relocated section, plus the version/CHANGELOG commit.

Relocations:

  • CHANGELOG + VERSION style → new docs/CHANGELOG_STYLE.md (the operational checklist stays in the /ship skill)
  • Browser/sidebar internals → ARCHITECTURE.md (new "Sidebar & PTY lifecycle" section; the tunnel / Unicode / prompt-injection blocks were already duplicated there, so they were pointer-linked, not re-added)
  • Slop-scan fix-vs-leave essays → new docs/SLOP_SCAN.md (the error-handling utilities table stays inline)
  • Project-structure tree → condensed in place (70 → 22 lines; kept the commands.ts / snapshot.ts source-of-truth pointers)
  • Fork-PR secret-access workflow + active-skill deploy steps → CONTRIBUTING.md
  • ClawHub publishing commands → docs/OPENCLAW.md

Test Coverage

Documentation only — no application code paths changed, no tests added.

Pre-Landing Review

Clean. Verified all 25 section headers preserved, gbrain managed-block markers intact, every [doc](#anchor) target resolves, and no unique content lost (the 3 deepest browser blocks were already in ARCHITECTURE.md, so they were linked rather than re-added).

Eval Results

No prompt / template / resolver files changed — evals skipped.

Documentation

This change is documentation. CHANGELOG updated with a 1.46.1.0 release-summary entry; all relocated content lives in the docs listed above with pointers from CLAUDE.md.

Test plan

  • bun run test:windows shard 1: 51/51 pass (Windows-runnable suite)
  • [⚠] Pre-existing, environmental failures, not caused by this change:
    • Full bun test: bash bin/ scripts can't be exec'd on Windows
    • test:windows shard 2: browse/test/server-pty-lease-routes.test.ts hits a C:\C:\ doubled-drive-letter path bug
    • Proof of blame: this branch's diff vs origin/main is 6 markdown files; the failing test and the browse/src/server.ts it reads are byte-identical to origin/main, so they fail identically on main. CI on Linux is the authoritative gate.

Note: this is a fork PR (Nickmcm1 → garrytan), so secret-gated eval CI jobs will fail with empty-env auth. To run them, move the branch to the base repo per CLAUDE.md's "Checking out PRs from garrytan-agents" workflow. check-freshness / workflow-lint / windows-tests still run.

🤖 Generated with Claude Code

Nickmcm1 added 9 commits May 26, 2026 05:42
CLAUDE.md kept a ~20-line summary of the load-bearing invariants
(branch-scoped versioning, diff-not-narrative, release-summary format)
and points to the new canonical doc for the detail. Trims ~165 lines
from the always-loaded CLAUDE.md without dropping an invariant.
Moved the unique PTY/sidebar deep-dives (WebSocket Sec-WebSocket-Protocol
auth, ownsTerminalAgent teardown, cross-pane injection, /health token
rule) into a new ARCHITECTURE.md 'Sidebar & PTY lifecycle' section. The
tunnel/Unicode/prompt-injection blocks were already duplicated there, so
CLAUDE.md now keeps only the claude-in-chrome tripwire, the setup-symlink
invariant, and a 'before editing X read Y' pointer list. Every CI tripwire
and the onnxruntime-node constraint stay push-loaded.
CLAUDE.md keeps the philosophy, commands, and the load-bearing
error-handling utilities table inline; the fix-vs-leave essays and
score history move to the new doc with a pointer.
Replaced the 70-line directory listing with a compact top-level map +
'use Glob or gbrain to discover sub-files' note. Kept the two
single-source-of-truth pointers (commands.ts, snapshot.ts) referenced by
the SKILL.md workflow section.
Detailed steps for re-targeting garrytan-agents fork PRs now live next to
the Community PR triage section in CONTRIBUTING.md. CLAUDE.md keeps a
trigger-preserving pointer (the 'check out <PR link>' gotcha + the
empty-env-auth headline) so the agent still knows to look.
The per-skill clawhub publish commands now live in docs/OPENCLAW.md next
to the native methodology skills they publish. CLAUDE.md keeps a one-line
pointer noting the clawhub-publish-not-skill-publish gotcha.
The fetch/reset/rebuild and binary-copy steps now live with the
global-install workflows in CONTRIBUTING.md. CLAUDE.md keeps a one-line
pointer.
Trim CLAUDE.md from 882 to 500 lines by relocating reference detail to
docs (CHANGELOG_STYLE.md, SLOP_SCAN.md, ARCHITECTURE.md, CONTRIBUTING.md,
OPENCLAW.md). No invariants dropped.
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