cxt: A CLI/TUI Tool to Aggregate Code Files into One Clipboard Block for Claude

cxt is a CLI and TUI tool that aggregates selected directories and files into a single clipboard-ready block, wrapped in XML tags with file paths. Designed for developers using Claude or other AI coding agents, it provides full codebase context in a clean format.
Key Features
- Aggregates entire directories and specific files into one XML-tagged block with file paths.
- TUI picker for interactive file/directory selection.
- Piping support.
- Install via cargo (
cargo install cxt), Homebrew, or AUR (see README). --langflag to filter files by language. Example:cxt --lang rust src/extracts only .rs and Cargo.toml files;cxt --lang bash *includes only scripts.
Usage Example
# Aggregate all Rust files in src/ directory
cxt --lang rust src/
Who It's For
Developers who frequently copy code context for AI coding agents and want an automated, structured way to include file paths and language-specific files.
📖 Read the full source: r/ClaudeAI
👀 See Also

HolyCode: Docker Container for Persistent Claude AI Coding Environments
HolyCode is a Docker container that maintains AI coding environment state across machine switches and rebuilds. It includes 30+ preinstalled tools, browser automation with Chromium + xvfb + Playwright, and preserves context in ./data/opencode.

AskFirst API adds human approval layer for AI agents
AskFirst is a REST API that lets AI agents pause for human approval before taking irreversible actions. It works with local models, hosted APIs, and any framework, providing email notifications, approve/deny options, and audit logs.

Open-source CLI tool sdf uses Claude to manage stacked GitHub PRs
sdf is a free, MIT-licensed CLI tool that automates stacked pull request workflows using git and gh, with Claude CLI handling complex tasks like diff analysis and conflict resolution.

RAG Learning Academy Built Inside Claude Code with 20 Specialist Agents
A developer created an interactive RAG learning academy inside Claude Code featuring 20 specialist agents, 17 slash commands, and a 9-module curriculum that assesses knowledge level and uses open-source tools by default.