Skip to content

CoderFake/repomix

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3,863 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repomix

Pack your codebase into a single AI-friendly file.

Setup

git clone https://github.com/CoderFake/repomix.git
cd repomix
npm install
npm run build

Usage

# Pack current directory
node bin/repomix.cjs

# Pack specific directory
node bin/repomix.cjs path/to/directory

# Pack remote repo
node bin/repomix.cjs --remote CoderFake/repomix

# Include/exclude
node bin/repomix.cjs --include "src/**/*.ts" --ignore "**/*.test.ts"

# Compress
node bin/repomix.cjs --compress

# Write to stdout
node bin/repomix.cjs --stdout

MCP Server

stdio (default):

node bin/repomix.cjs --mcp

HTTP (default port 8088):

node bin/repomix.cjs --mcp --mcp-transport streamable-http
node bin/repomix.cjs --mcp --mcp-transport streamable-http --mcp-port 9000

Agent config (stdio):

{
  "mcpServers": {
    "repomix": { "command": "node", "args": ["/path/to/repomix/bin/repomix.cjs", "--mcp"] }
  }
}

Agent config (HTTP):

{
  "mcpServers": {
    "repomix": { "type": "http", "url": "http://localhost:8088/mcp" }
  }
}

Agent Skill

Point your agent to skill/SKILL.md. The skill uses Repomix MCP tools to pack a repo and extract its tech stack via targeted grep. Reference files are in skill/references/.

Configuration

Create repomix.config.json:

{
  "output": {
    "filePath": "repomix-output.xml",
    "style": "xml",
    "compress": false
  },
  "include": [],
  "ignore": {
    "useGitignore": true,
    "customPatterns": []
  }
}

License

MIT

About

📦 Repomix is a powerful tool that packs your entire repository into a single, AI-friendly file. Perfect for when you need to feed your codebase to Large Language Models (LLMs) or other AI tools like Claude, ChatGPT, DeepSeek, Perplexity, Gemini, Gemma, Llama, Grok, and more.

Resources

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • TypeScript 93.3%
  • Vue 4.8%
  • JavaScript 1.2%
  • CSS 0.3%
  • Dockerfile 0.2%
  • Shell 0.1%
  • Nix 0.1%