I was burning through Claude limit in 2 hours - built a tool that cuts it 15x-22x #3
anshmajumdar121
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Like a lot of you this week, I kept hitting the cap faster than ever. Tried all the usual stuff - /clear, shorter prompts, fresh sessions. Helped a bit but did not fix the root cause.
The real problem: every turn, Claude re-reads your entire project structure even when it only needs 3 files. On a medium codebase that is 15,000-30,000 tokens of dead weight per message.
My fix: give Claude a pre-built structural index (CONTEXT_MANIFEST.md) that maps every file, its imports, and its blast-radius. Claude reads this instead of scanning directories.
Results
How it works
No API hacks. No leaked internals. Just Claude Projects + Custom Instructions used differently.
Quick start
git clone https://github.com/anshmajumdar121/context-optimizer.git cd context-optimizer chmod +x scripts/install.sh ./scripts/install.sh /path/to/your/project python3 tools/context_mapper.py /path/to/your/projectInstaller auto-detects Cursor, Windsurf, Claude Code, Cline, and Copilot.
Curious if others have tried the manifest approach or found something that works better?
https://github.com/anshmajumdar121/context-optimizer
All reactions