Who it is forA Claude Code or Codex user whose agent burns many turns exploring a large repo.
The problemAgents waste tokens and time opening files one at a time to figure out where things live.
The outcomeAn agent that inspects a compact map of the codebase and then reads the relevant source and tests together.
What you need first
- Cargo, Homebrew, or pip for the Python SDK; binaries are also on the releases page
- Git, Rust and Cargo only if you build from source
- Optional: the wayland feature flag for clipboard support on Wayland systems
Steps
- Install the Code2prompt CLI separately, for example with
cargo install code2prompt - Add the skill with
npx skills add mufeedvh/code2prompt - For one agent globally, run
npx skills add mufeedvh/code2prompt --skill code2prompt --agent codex --global - Ask your agent to map the codebase with the skill before making a change
- Optionally enable the entity-map feature; standard builds fall back to a directory map
Prompt for your agent
Install the mufeedvh/code2prompt CLI and its agent skill for <agent>, then use it to build a map of <repo> and gather only the files and tests needed to <task>. Show me the context you gathered before editing anything.
Caveat. The skill does not install the CLI; you need both. The installer may clone the repository temporarily to fetch the skill files.
Use this in your AI agent
Ask your agent
Using the Deduped MCP, get the setup steps for mufeedvh/code2prompt and "Help your coding agent find the right files faster"
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