
Smart File Selection
Automatically picks essentials while respecting .gitignore, saving you hours of manual curation.
AI-Ready Code Sharing for Developers
CopyTree is a simple CLI that exports any codebase as XML, JSON, or a tree view — perfect for Claude, ChatGPT, Grok, or Gemini.
Watch how CopyTree transforms your workflow. From installation to your first AI-ready code copy with ease.
Short demo: installation and first run in under a minute · Watch on YouTube
Quick highlights:
Tools to make sharing codebases with AI simpler

Automatically picks essentials while respecting .gitignore, saving you hours of manual curation.

Supports PDFs, images, code summaries, and more for AI compatibility.

Generates XML/JSON ready for large context windows in tools like Claude or GPT-4.

Default profile for quick starts, with easy custom creation via YAML.
Also includes:
From installation to AI-ready code in minutes
Get started with a simple npm install command
npm install -g copytree
Run copytree in your project directory to copy it to your clipboard
copytree
Your codebase is now copied to clipboard in AI-ready format. Simply paste it into Claude, ChatGPT, Grok, or any AI assistant to start building.
CopyTree works great with GitHub repos and integrates into workflows like pasting into AI for planning (as I do in my video):
copytree https://github.com/gregpriday/copytree


Install CopyTree and start sharing AI-ready codebases in seconds.
Prefer GitHub? View the repo
Free and open-source CLI tool