Skip to content

perf: remove @docs/multi-project.md auto-import from CLAUDE.md (70k chars loaded every session) #372

@me2resh

Description

@me2resh

Summary

CLAUDE.md line 20 auto-imports docs/multi-project.md via @:

Full setup guide: @docs/multi-project.md

At 70,700 characters (~18k tokens), this file is loaded into every Claude Code session context — even for adopters whose fork is already fully configured and will never run setup again.

Impact

  • Consumes ~18k tokens of context on every session start
  • Triggers Claude Code's performance warning: Large docs/multi-project.md will impact performance (70.7k chars > 40.0k)
  • Causes earlier context compaction and slower responses for all adopters
  • The file is setup/migration documentation — not needed for day-to-day portfolio operations

Proposed Fix

Replace the @ auto-import with a plain reference link (already present in the Quick Reference table at line 296):

- Full setup guide: @docs/multi-project.md
+ Full setup guide: `docs/multi-project.md`

The file remains readable on demand via the Read tool when setup or migration context is actually needed — it just won't be loaded into every session automatically.

Notes

  • No behaviour change for daily workflow skills (/projects, /inbox, /status, etc.)
  • All setup instructions remain accessible — just not auto-loaded
  • Same fix could be evaluated for other large @-imported files if any exist

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions