Skip to content

Trim CLAUDE.md for context efficiency #2

@matthewod11-stack

Description

@matthewod11-stack

Description

Gary's CLAUDE.md is ~10KB — too large. When Cowork sessions or scheduled tasks load it, the rules get buried in reference material (tool commands, state files, prompt tables). This causes the same context degradation problem Morty v2 hit: rules get evicted from working memory in long sessions.

Current State

CLAUDE.md tries to be both a rules document and a reference manual. It contains:

  • User profile + onboarding script
  • Account/data source configuration
  • Tool command syntax (email, calendar, Slack, GitHub)
  • Full prompt file index with schedules
  • State file inventory with staleness limits
  • Config file descriptions
  • 8 operational rules
  • Vault structure

Suggested Fix

Follow the pattern applied to Morty v2 (172→88 lines):

  • Extract tool commands, prompt index, state files, and config details into docs/tool-reference.md
  • Keep only rules, account boundaries, locations, scheduled jobs, and personality refs in CLAUDE.md
  • Target: ~80-90 lines (from current ~200+)
  • Ensure all prompts still reference the right files (they already contain their own commands inline)

Why It Matters

  • Cowork chat sessions have limited context windows — lean CLAUDE.md means rules survive longer
  • Scheduled tasks read CLAUDE.md at start — less noise = faster startup
  • The reference material is still accessible in docs/ when needed

Reference

Morty v2 commit: e240b39 — "Trim CLAUDE.md from 172 to 88 lines for iMessage context efficiency"

Priority

Medium — improves reliability of rule-following across all session types

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