For when you get a brilliant coding idea in the bath and need to discuss it with an AI immediately (no judgment!).
This project is a web-based tool designed to streamline interactions between GitHub repositories and large language models (LLMs) like ChatGPT, Claude, or Bard. The core purpose is to make it effortless to capture, format, and present code from repositories to LLMs for assistance or analysis.
Inspired by the command-line utility clip-files
, this tool provides a web interface for managing repository contexts. Read more about the workflow that led to these tools in this blog post.
Screen.Recording.2025-04-06.at.7.56.50.PM.mp4
The GitHub Repository Clipboard Manager:
- 🔄 Maintains local clones of specified GitHub repositories, always updated to their latest state.
- 🖱️ Allows selection of specific file patterns or collections via a simple web interface.
- 📄 Automatically formats repository content with proper file paths and structure for optimal LLM understanding.
- 📋 Copies the formatted content directly to your clipboard, ready to paste into any LLM interface.
- 🪙 Tracks token usage to help manage context limits in LLM conversations.
- 🌿 Supports switching between different branches of repositories.
- ➕ Enables quick addition of new repositories and file patterns.
- Save Time: Eliminate the tedious manual process of selecting, copying, and formatting code for LLMs.
- Stay Current: Always work with the latest version of your code from your repositories.
- Improve LLM Understanding: Provide contextually accurate and well-structured code snippets to your AI assistant.
- Boost Productivity AFK: Capture and share code context easily, even when away from your desk.
- Manage Context: Keep track of token counts to stay within LLM limits.
When working with code projects, developers often need to share portions of their codebase with LLMs to get assistance with debugging, refactoring, understanding patterns, or generating documentation. This tool streamlines that workflow significantly.
For example, you can define patterns like "Core + Docs"
for a repository (including essential implementation files and documentation) or "Configuration Files"
(gathering all settings files). With a single click, these are properly formatted, labeled with file paths, and copied to your clipboard – ready to paste into your preferred LLM.
Furthermore, this tool is invaluable for capturing code context for discussion with an AI when away from your main workstation. If you have an idea while away from the keyboard (AFK) - perhaps in bed, at the gym, or anywhere else - you can easily grab the pre-formatted codebase context from this tool via its web interface on any device and share it with your AI assistant.
The tool ensures that the content is always from the latest version of your code, properly structured for the LLM to understand the relationships between files, and optimized for token efficiency.