

CopyTree Linux Binary
Feed Entire Codebases into AI with Ease
Ever tried pasting a full project into ChatGPT or another AI modelβ¦ only to realize itβs messy, incomplete, or too big to handle?
CopyTree solves that problem.
CopyTree is a lightweight developer tool that automatically:
π Builds a clean directory tree of your project
π Captures every file with clear headers
π Copies the entire formatted codebase to your clipboard
βοΈ Splits into sections for AI models (when needed, with --gpt mode)
The result? A perfectly structured copy of your codebase, ready to paste into AI β with zero redactions, no guessing, and no manual prep.
Example Output (from a real Flutter project)
βββ benshi
β βββ audio_controller.dart
β βββ protocol
β β βββ audio_protocol.dart
β β βββ command_bodies.dart
β β βββ common.dart
β β βββ data_models.dart
β β βββ gaia_frame.dart
β β βββ message.dart
β β βββ protocol.dart
β β βββ utils.dart
β βββ radio_controller.dart
βββ main.dart
βββ models
β βββ aprs_packet.dart
β βββ memory_list.dart
β βββ repeater.dart
βββ services
β βββ location_service.dart
β βββ repeaterbook_service.dart
βββ ui
βββ screens
β βββ about
β β βββ about.dart
β βββ aprs
β β βββ aprs.dart
β βββ channels
β β βββ channels.dart
β βββ home
β β βββ dashboard.dart
β βββ radio_settings
β β βββ radio_settings.dart
β βββ scan
β β βββ scan.dart
β β βββ vfo_scan_screen.dart
β βββ settings
β β βββ settings.dart
β βββ splash.dart
β βββ vehicle
β βββ vehicle.dart
βββ widgets
βββ main_layout.dart
Copied directory tree and 27 files to clipboard
Total lines 7586 Total Characters 253651
Behind the scenes each file has a header (==== ./file/path ====).
This makes it incredibly easy for AI models to ingest your full codebase without confusion.
Why Developers Love CopyTree
β
Copy your entire project into your clipboard in seconds
β
Automatically exclude build artifacts, vendor directories, or files you donβt need
β
AI-friendly formatting β no redactions, no guesswork
β
Supports GPT mode, which splits large projects into manageable sections with instructions for AI
β
Works on any project β Go, Python, Flutter, Node, PHP, anything
Perfect For
π§βπ» Developers who want to show full codebases to AI for debugging or refactoring
π Students learning programming who need to share entire projects with tutors or forums
β‘ Teams that want to audit or document projects quickly
π Stop manually copying files into AI.
π Stop wasting time fixing broken formatting.
With CopyTree, you just run one command, and your entire project is AI-ready.
π§ System Note:
CopyTree uses your clipboard by default. On Linux, this requires xclip to be installed.
When running over SSH, ensure X forwarding is enabled for clipboard support.