[FEATURE REQUEST] /compact's context summary without /compact

Resolved 💬 5 comments Opened Mar 31, 2025 by ChristopherA Closed Jan 3, 2026

In my exploration of creating shared contexts for different feature branches, to make Claude Code CLI work for teams [see https://github.com/ChristopherA/Claude-Code-CLI-Toolkit], one feature that I'd like to see is some way to capture what the the excellent context summary /context offers into a file, without actually doing a /compact. This allows me then to integrate that context with more explicit process checks before I commit it to the repository for the future or for others to use, and then /exit.

They way I do it in my repositories currently is to maintain a context for each branch in my repository in a ./contexts/ folder. My CLAUDE.md file looks up the git branch, and then loads the appropriate context file between /exit. It works quite well, but could be better if I could integrated it with your evolving context summarizing tool that you do with /compact.

You can see an example of one of my feature branch contexts files at https://github.com/ChristopherA/z_Utils/blob/main/contexts/feature-refactor-github-remote-context.md

Related, it would be powerful if there was some way these contexts could be standardized in your ./.claude folder, possible ./.claude/contexts.

-- Christopher Allen

View original on GitHub ↗

This issue has 5 comments on GitHub. Read the full discussion on GitHub ↗