Skip to content

CodeClip is a lightweight tool written in golang which allows you to copy your codebase so that you can feed it to a large language model with ease without actually copying each file.

License

Notifications You must be signed in to change notification settings

AryanBhirud/CodeClip

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CodeClip 📋

Go Version License Platform

A lightning-fast tool to capture and share your entire codebase with LLMs.

🚀 Features

  • Intelligent Scanning: Automatically excludes non-essential directories (node_modules, .git, etc.)
  • Smart Filtering: Ignores binary files, images, and other non-code assets
  • Dual Output: Generates both file output and clipboard content
  • Path Preservation: Maintains file paths in the output for better context
  • Zero Configuration: Works out of the box with sensible defaults

🎯 Perfect for

  • Sharing codebase context with AI tools (ChatGPT, Claude, etc.)
  • Quick code documentation and analysis
  • Creating comprehensive code snapshots
  • Code review preparation

📦 Installation

Windows Users

  1. Download the latest cclip_win64.zip from the releases page
  2. Extract the archive to your desired location
  3. Add the extraction path to your system's PATH environment variable

Verify Installation

Run cclip --version to check is codeclip has been installed correctly.

🛠️ Usage

Navigate to your project directory and run cclip

This will:

  1. Scan your codebase
  2. Generate codebase_dump.txt in the current directory
  3. Copy the content to your clipboard automatically

🔍 What Gets Captured?

CodeClip intelligently processes your codebase while ignoring:

Directories

  • node_modules
  • .git
  • .env
  • vendor
  • __pycache__

File Types

  • Executables (.exe, .dll, .bin)
  • Archives (.zip, .tar, .gz)
  • Images (.png, .jpg, .svg, etc.)
  • Log files (.log)
  • Lock files (.lock)

💡 Best Practices

  • Run CodeClip from your project's root directory
  • Review the generated codebase_dump.txt before sharing
  • Consider adding codebase_dump.txt to your .gitignore

🔧 Technical Details

CodeClip is built with Go, leveraging:

  • Efficient file system traversal
  • Concurrent processing
  • Cross-platform clipboard support via atotto/clipboard

🤝 Contributing

Contributions are welcome! Feel free to:

  • Report bugs
  • Suggest features
  • Submit pull requests

📄 License

This project is licensed under the GNU General Public License v3.0 - see the LICENSE file for details.

CodeClip - Copy your entire codebase instantly
Copyright (C) 2024 Aryan Bhirud

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program.  If not, see <https://www.gnu.org/licenses/>.

What this means:

  • ✔️ You can use this software commercially
  • ✔️ You can modify this software
  • ✔️ You can distribute this software
  • ✔️ You can use and modify the software in private
  • ✔️ You can patent your modifications
  • ❗ You MUST open source your modifications
  • ❗ You MUST include the original license
  • ❗ You MUST state your changes
  • ❗ You MUST disclose source

Made with ❤️ for developers who love clean workflows.

About

CodeClip is a lightweight tool written in golang which allows you to copy your codebase so that you can feed it to a large language model with ease without actually copying each file.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages