Who it is forA developer pasting code into a chat model with a limited context window.
The problemChoosing files by hand either overflows the window or misses key code.
The outcomeA Markdown pack focused on the areas you name, within your token budget.
What you need first
- Node.js 18+
Steps
- Clone and build with
npm installandnpm run build - Run
node dist/cli.js pack . --focus auth,api --max-tokens 8000 - Paste the pack into your prompt
- Use --json for scripts
Prompt for your agent
Run `node dist/cli.js pack . --focus <area> --max-tokens 8000` from repo-context-mcp on <repo> and report which files were included. Verify the pack stays under the token budget.
Caveat. search_code is substring search, not semantic search.
Use this in your AI agent
Ask your agent
Using the Deduped MCP, get the setup steps for nduc99911/repo-context-mcp and "Build a token-budgeted context pack for a prompt"
Add Deduped to Claude Code once
claude mcp add --transport http deduped https://dedupedai.com/mcp
Every Monday: the 5 hottest repos and exactly how to use them. Free, one email a week, unsubscribe anytime.
Get them freeShare: X LinkedIn Hacker News Email Copy link
Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer