DEDUPED Hot AI repos, turned into use cases Get the Monday 5

How to build a token-budgeted context pack for a prompt with Repo Context MCP

Use the CLI to pack the files about one area into Markdown under a token limit.

Short answer: Clone and build with npm install and npm run build; then run node dist/cli.js pack . --focus auth,api --max-tokens 8000; paste the pack into your prompt. All steps.

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

  1. Clone and build with npm install and npm run build
  2. Run node dist/cli.js pack . --focus auth,api --max-tokens 8000
  3. Paste the pack into your prompt
  4. 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

Cursor, ChatGPT, others

Share: X LinkedIn Hacker News Email Copy link

Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer