Mergy is a browser extension that combines and optimizes GitHub repository contents into a single text file. It's designed to work with Claude, an AI assistant.
- When you visit a GitHub repository, Mergy can fetch all the files.
- It combines these files into one text document.
- The extension optimizes the content to use fewer tokens, which is important for AI processing.
- You can then upload this combined file to Claude Projects.
- Visit a small to medium-sized library on GitHub.
- Use Mergy to create a single file containing all the code.
- Upload this file to Claude Projects.
- Now you can ask Claude questions about the entire codebase or request it to generate code based on the library.
This tool helps developers quickly give Claude context about an entire codebase, making it easier to work with AI on programming tasks.
- Fetch files from any public GitHub repository
- Customizable file inclusion/exclusion rules
- Combine selected files into a single, downloadable text file
- Respect .gitignore rules and support custom ignore patterns
- User-friendly interface with file size estimates and selection options
- Download the extension from your browser's extension store (links to be added once published)
- Click on "Add to [Your Browser Name]" to install the extension
- Once installed, you'll see the Mergy icon in your browser toolbar
- Navigate to any GitHub repository page
- Click on the Mergy icon in your browser toolbar
- Set your GitHub Personal Access Token in the settings (required for API access)
- Configure Mergy Ignore rules if desired (optional)
- Click "Start Fetching Files" to retrieve the repository contents
- Select the files you want to include in the combined file
- Click "Combine and Download" to generate and download the aggregated text file
To use this extension, you need to provide a GitHub Personal Access Token:
- Go to GitHub Settings > Developer settings > Personal access tokens
- Generate a new token with 'repo' scope
- Copy the token and paste it into the extension's settings
You can customize which files to include or exclude using Mergy Ignore rules:
- Include if path contains: Specify paths to include
- Include file extensions: List file extensions to include
- Exclude if path contains: Specify paths to exclude
- Exclude file extensions: List file extensions to exclude
This extension requires a GitHub Personal Access Token to function. Your token is stored locally in your browser and is only used to authenticate API requests to GitHub. We do not collect or store any personal data.
For bug reports, feature requests, or general questions, please open an issue on our GitHub repository (link to be added).
We welcome contributions to the Mergy project. Please read our contributing guidelines (link to be added) before submitting pull requests.
This project is licensed under the MIT License - see the LICENSE file for details.