Skip to content

Commit 27eee5c

Browse files
committed
chore(sync): apply remaining canonical fleet drift fixes
1 parent f35d68e commit 27eee5c

2 files changed

Lines changed: 10 additions & 0 deletions

File tree

.gitattributes

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,11 @@
134134
.claude/hooks/marketplace-comment-guard/package.json linguist-generated=true
135135
.claude/hooks/marketplace-comment-guard/test/index.test.mts linguist-generated=true
136136
.claude/hooks/marketplace-comment-guard/tsconfig.json linguist-generated=true
137+
.claude/hooks/minify-mcp-output/README.md linguist-generated=true
138+
.claude/hooks/minify-mcp-output/index.mts linguist-generated=true
139+
.claude/hooks/minify-mcp-output/package.json linguist-generated=true
140+
.claude/hooks/minify-mcp-output/test/index.test.mts linguist-generated=true
141+
.claude/hooks/minify-mcp-output/tsconfig.json linguist-generated=true
137142
.claude/hooks/new-hook-claude-md-guard/README.md linguist-generated=true
138143
.claude/hooks/new-hook-claude-md-guard/index.mts linguist-generated=true
139144
.claude/hooks/new-hook-claude-md-guard/package.json linguist-generated=true
@@ -324,6 +329,7 @@
324329
.claude/skills/worktree-management/SKILL.md linguist-generated=true
325330
.config/lockstep.schema.json linguist-generated=true
326331
.config/oxlint-plugin/index.mts linguist-generated=true
332+
.config/oxlint-plugin/lib/fleet-paths.mts linguist-generated=true
327333
.config/oxlint-plugin/lib/iterable-kind.mts linguist-generated=true
328334
.config/oxlint-plugin/lib/rule-tester.mts linguist-generated=true
329335
.config/oxlint-plugin/lib/rule-types.mts linguist-generated=true

CLAUDE.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,10 @@ Apply in: worktree creation, base-ref resolution for `git diff`/`git rev-list`,
7171

7272
🚨 Fleet-blessed Claude Code plugins are SHA-pinned in the wheelhouse-canonical [`.claude-plugin/marketplace.json`](../.claude-plugin/marketplace.json), with companion human-readable metadata (pin date, pinner) in [`.claude-plugin/README.md`](../.claude-plugin/README.md). The pair is enforced together: every `plugins[].source.sha` in `marketplace.json` must have a row in the README table with matching `version` + `sha` + an ISO-8601 `date`. Same staleness signal the GHA `uses:` SHA-pin comments carry. Bump the SHA → bump the row. Run `pnpm run install-claude-plugins` to reconcile a machine to the pinned set — adds the marketplace + installs each plugin at its pinned SHA, no plugin modifications (enforced by `.claude/hooks/marketplace-comment-guard/`).
7373

74+
### Token minification
75+
76+
Two surfaces apply lossless compression to Claude tool_result payloads — `minify` (JSON whitespace), `strip-lines` (`cat -n` prefixes), `whitespace` (3+ blank lines → 1). All deterministic and information-preserving; no semantic ML compression. **Wire-level proxy**: `@socketsecurity/token-minifier` in [`socket-wheelhouse/packages/`](../packages/socket-token-minifier/) sits between Claude Code and `api.anthropic.com` when `ANTHROPIC_BASE_URL=http://localhost:7779` is set. **In-context hook**: [`.claude/hooks/minify-mcp-output/`](.claude/hooks/minify-mcp-output/) fires PostToolUse on MCP-tool results and returns `hookSpecificOutput.updatedMCPToolOutput` — the only documented rewrite channel for already-collected tool outputs (built-in tools like Read/Bash have no such channel; use the proxy for those) (enforced by `.claude/hooks/minify-mcp-output/`).
77+
7478
### Fix it, don't defer
7579

7680
🚨 See a lint/type/test error or broken comment in your reading window — fix it. Stop current task, fix the issue in a sibling commit, resume. Don't label as "pre-existing", "unrelated", or "out of scope" — the labels are rationalizations (enforced by `.claude/hooks/excuse-detector/`).

0 commit comments

Comments
 (0)