wassname 5347b109a2 Compress tool descriptions ~52% less always-loaded context
- Gut monolithic bash.md + sandbox-note.md (duplicated by 2.1.53 sub-files)
- Gut 22 "model-knows-this" bash + sandbox sub-files to header-only
- Deduplicate git safety rules (sub-files cover them)
- Compress TaskCreate, ToolSearch, ReadFile, ExitPlanMode, EnterWorktree,
  WebFetch, WebSearch, Skill, Sleep, LSP, AskUserQuestion, EnterPlanMode
- Fix Task tool: inverted polling instruction, add back isolation:worktree
- Fix sandbox-default dangling "unless:" -- fold conditions inline
- Escape backticks for tweakcc parser
- Add CLAUDE.md with Pi + Trail of Bits design principles
- Always-loaded budget: 8.7k words (down from ~18k stock)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-02 14:46:57 +08:00

tweakcc-minimal

Minimal system prompts for Claude Code. 23 files changed, -47k chars (~10% of total), targeting the verbose files that override CLAUDE.md.

Quick start

# 1. Clone into ~/.tweakcc
git clone https://github.com/wassname/tweakcc-minimal ~/.tweakcc

# 2. Create patched binary (copy original, apply patches)
cp ~/.local/share/claude/versions/$(claude --version | head -1 | cut -d' ' -f1) \
   ~/.local/share/claude/versions/$(claude --version | head -1 | cut -d' ' -f1)-min
ln -sf ~/.local/share/claude/versions/*-min ~/.local/bin/claude
npx tweakcc --apply

# 3. Create symlink so both versions coexist
ln -sf ~/.local/share/claude/versions/*-min ~/.local/bin/claude-mn  # patched
ln -sf ~/.local/share/claude/versions/2.1.63 ~/.local/bin/claude    # restore stock

Now claude = stock, claude-mn = minimal prompts.

Re-apply after edits

Edit .md files in system-prompts/, then:

cp ~/.tweakcc/native-binary.backup ~/.local/share/claude/versions/2.1.44-min
npx tweakcc --apply

Disable auto-updates

CC auto-updates overwrite patched binaries:

// ~/.claude/settings.json
{ "autoUpdates": false }

Or DISABLE_AUTOUPDATER=1. If it fires, just re-apply.

Key files to edit

File Controls
system-reminder-plan-mode-is-active-5-phase.md Plan mode workflow (was overriding CLAUDE.md)
system-reminder-plan-mode-is-active-iterative.md Iterative plan mode variant
system-prompt-main-system-prompt.md Role definition, ~10 lines
system-prompt-doing-tasks.md Task execution rules + tool hints
system-prompt-tone-and-style.md Output style
system-prompt-tool-usage-policy.md Parallel calls, tool preferences
system-prompt-hooks-configuration.md Hook event definitions (don't drop events)

~200 files untouched (already 6-8 lines, tool descriptions, agent/skill prompts loaded on-demand).

What changed

Principle: System prompts provide tool access and safety rails. CLAUDE.md/AGENTS.md provide workflow and conventions. Inspired by Pi's context engineering.

File Before After Notes
plan-mode-5-phase 90 20 Defers to CLAUDE.md for workflow
plan-mode-iterative 61 18 Same
main-system-prompt 17 10 Pi-style minimal
doing-tasks 18 7 "Read first, follow CLAUDE.md"
learning-mode 80 11 Kept core, cut examples
insights-* (5 files) 170 45 Kept JSON schema, cut examples
hooks-configuration 163 33 Kept structure + all events, cut examples
mcp-cli 124 25 Kept commands, cut 6x repeated examples
S
Description
No description provided
Readme 423 KiB
Languages
Markdown 100%