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

✍️ OpenClawRadar📅 Published: June 26, 2026🔗 Source
cxt: A CLI/TUI Tool to Aggregate Code Files into One Clipboard Block for Claude
Ad

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).
  • --lang flag 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

Ad

👀 See Also