Claude MD Chunk
Slash command for splitting up CLAUDE.md
About This Project
Claude-MD-Chunk is a Claude Code slash command that addresses the problem of oversized CLAUDE.md files. When invoked, it reduces the project's CLAUDE.md to the minimum length needed for an agent to understand the project's purpose and key details. Extraneous but useful context is not discarded; instead, it is split into individual files within an agent-context/ directory, with a reference added back to CLAUDE.md so the agent can locate it.
The tool is implemented primarily in Shell and includes an install.sh script that copies the slash command into ~/.claude/commands/, making it available globally as /chunk-claude in any project. Usage requires running the command within a project whose CLAUDE.md has grown too large. The approach relies on Claude Code's custom slash command mechanism and on keeping persistent agent instructions concise while preserving detailed context in separate files.
This project may be useful to developers who maintain Claude Code projects with lengthy CLAUDE.md files that consume excessive context, and who want a repeatable way to restructure those files without manually separating content. It is part of a broader collection of Claude Code repositories maintained by the author.