Pick your source files. Dump them into markdown. Feed your AI.
Working with AI assistants outside your IDE? Context windows are precious.
2chatty lets you hand-pick exactly the files that matter, bundle them into a single
chat.md file, and attach it directly to any AI chat — giving the model exactly the context it needs, nothing more.
npx @avol-io/2chatty ts tsx
Run from your project root. Requires Node.js ≥ 18.
How it works
Run the tool, pick your files interactively, and get a ready-to-attach markdown document.
Pure Node.js built-ins only — no packages to install or audit. Requires only Node.js ≥ 18.
Hand-pick files down to the individual level. Keep your AI context window focused on what matters.
Traverses your entire project tree, automatically skipping node_modules, build artifacts, and common IDE folders.
Output is plain markdown. Works with ChatGPT, Claude, Gemini, or any tool that accepts file attachments.
Run it multiple times with different filters and selections — each run appends to chat.md.
Pass extensions as arguments or collect all files. Either way, the interactive UI lets you refine the selection.
Usage
Run from your project root. No global install needed.
.ts and .tsx files
Output is appended to chat.md in your current directory. Delete it manually to start fresh.
Keyboard
Full keyboard control — no mouse required.