<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Ray Doan</title>
    <description>The latest articles on DEV Community by Ray Doan (@raydoan).</description>
    <link>https://dev.to/raydoan</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4044972%2F8d7565ac-1540-43ef-a73d-20eabbbec6dd.jpg</url>
      <title>DEV Community: Ray Doan</title>
      <link>https://dev.to/raydoan</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/raydoan"/>
    <language>en</language>
    <item>
      <title>Stop Copy-Pasting Your Codebase Into ChatGPT — I Built a CLI That Does It in 3 Seconds</title>
      <dc:creator>Ray Doan</dc:creator>
      <pubDate>Fri, 24 Jul 2026 06:56:13 +0000</pubDate>
      <link>https://dev.to/raydoan/stop-copy-pasting-your-codebase-into-chatgpt-i-built-a-cli-that-does-it-in-3-seconds-5948</link>
      <guid>https://dev.to/raydoan/stop-copy-pasting-your-codebase-into-chatgpt-i-built-a-cli-that-does-it-in-3-seconds-5948</guid>
      <description>&lt;h2&gt;
  
  
  The Problem Every AI-Assisted Developer Knows Too Well
&lt;/h2&gt;

&lt;p&gt;You're deep in a debugging session with Claude or ChatGPT. The AI asks: &lt;em&gt;"Can you share the relevant files?"&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;So you start... copying.&lt;/p&gt;

&lt;p&gt;&lt;code&gt;main.py&lt;/code&gt; → paste.&lt;br&gt;
&lt;code&gt;utils.py&lt;/code&gt; → paste.&lt;br&gt;
Oops, forgot &lt;code&gt;config.py&lt;/code&gt; → paste.&lt;br&gt;
Wait, did I just paste &lt;code&gt;node_modules/some-package/index.js&lt;/code&gt; by accident? 😩&lt;/p&gt;

&lt;p&gt;Fifteen minutes later, you've burned half your context window on irrelevant boilerplate, hit the token limit, and the AI still doesn't have the full picture. Sound familiar?&lt;/p&gt;

&lt;p&gt;This happens &lt;strong&gt;every single day&lt;/strong&gt; to developers using LLMs for code review, refactoring, or onboarding AI into an existing project. So I built a tool to kill this workflow for good.&lt;/p&gt;
&lt;h2&gt;
  
  
  Meet &lt;code&gt;ai-pack&lt;/code&gt; 📦
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;&lt;code&gt;ai-pack&lt;/code&gt;&lt;/strong&gt; is a zero-dependency CLI that scans your repo, respects your &lt;code&gt;.gitignore&lt;/code&gt;, packs the relevant code into clean, token-optimized Markdown — and &lt;strong&gt;copies it straight to your clipboard&lt;/strong&gt;. No manual file-hunting, no accidental binary dumps, no wasted tokens.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;aip &lt;span class="nt"&gt;-s&lt;/span&gt; &lt;span class="nt"&gt;-c&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;That's it. Now just hit &lt;code&gt;Ctrl+V&lt;/code&gt; in Claude or ChatGPT.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why It's Different
&lt;/h2&gt;

&lt;h3&gt;
  
  
  1. 📋 Clipboard-First, Even Over SSH
&lt;/h3&gt;

&lt;p&gt;Most "repo-to-prompt" tools just print output to your terminal, leaving you to select-and-copy manually. &lt;code&gt;ai-pack&lt;/code&gt; copies directly to your clipboard by default — and it even works when you're SSH'd into a remote server, thanks to OSC52 terminal escape sequences. Yes, clipboard sync through SSH, out of the box.&lt;/p&gt;

&lt;h3&gt;
  
  
  2. 💀 Skeleton Mode — Cut Token Usage by Up to 80%
&lt;/h3&gt;

&lt;p&gt;This is the feature I'm most proud of. Most of the time, an LLM doesn't need your &lt;em&gt;entire&lt;/em&gt; function body to understand your architecture — it needs the &lt;strong&gt;shape&lt;/strong&gt; of your code: class definitions, function signatures, imports, type hints.&lt;/p&gt;

&lt;p&gt;&lt;code&gt;ai-pack&lt;/code&gt;'s Skeleton Mode (&lt;code&gt;-s&lt;/code&gt;) uses AST parsing across 30+ languages (Python, TypeScript, Go, Rust, Java, C++, and more) to strip function bodies while preserving structure:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="c1"&gt;# Before
&lt;/span&gt;&lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;calculate_total&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;items&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nb"&gt;list&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;Item&lt;/span&gt;&lt;span class="p"&gt;],&lt;/span&gt; &lt;span class="n"&gt;tax_rate&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nb"&gt;float&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;-&amp;gt;&lt;/span&gt; &lt;span class="nb"&gt;float&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="n"&gt;subtotal&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;sum&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;item&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;price&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="n"&gt;item&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;quantity&lt;/span&gt; &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;item&lt;/span&gt; &lt;span class="ow"&gt;in&lt;/span&gt; &lt;span class="n"&gt;items&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="n"&gt;tax&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;subtotal&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="n"&gt;tax_rate&lt;/span&gt;
    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="nf"&gt;round&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;subtotal&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="n"&gt;tax&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;2&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

&lt;span class="c1"&gt;# After (Skeleton Mode)
&lt;/span&gt;&lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;calculate_total&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;items&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nb"&gt;list&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;Item&lt;/span&gt;&lt;span class="p"&gt;],&lt;/span&gt; &lt;span class="n"&gt;tax_rate&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nb"&gt;float&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;-&amp;gt;&lt;/span&gt; &lt;span class="nb"&gt;float&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="bp"&gt;...&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;For large repos, this alone can be the difference between "fits in context" and "sorry, request too large."&lt;/p&gt;

&lt;h3&gt;
  
  
  3. 🌿 Git-Aware Packing
&lt;/h3&gt;

&lt;p&gt;Don't want to dump your whole repo? Use &lt;code&gt;-c&lt;/code&gt; to pack &lt;strong&gt;only the files you've actually changed&lt;/strong&gt; — uncommitted or staged. Perfect for AI-powered code review before you open a PR:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;aip &lt;span class="nt"&gt;-c&lt;/span&gt; &lt;span class="nt"&gt;-s&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  4. 🎯 Interactive File Picker
&lt;/h3&gt;

&lt;p&gt;Prefer to hand-pick files? &lt;code&gt;-i&lt;/code&gt; opens a checkbox-style file selector right in your terminal — no need to remember paths.&lt;/p&gt;

&lt;h3&gt;
  
  
  5. 🚀 Zero-Dependency, One-Line Install
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;curl &lt;span class="nt"&gt;-fsSL&lt;/span&gt; https://raw.githubusercontent.com/iamraydoan/ai-pack/main/install.sh | sh
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;or via pip:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;pip &lt;span class="nb"&gt;install &lt;/span&gt;ai-pack-cli
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;No Python required if you use the standalone binary. It just works.&lt;/p&gt;

&lt;h2&gt;
  
  
  Real-World Example
&lt;/h2&gt;

&lt;p&gt;Say you're onboarding a teammate — or an AI — into a mid-sized repo. Instead of this:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;"Uh, let me find the relevant files... give me a sec..."&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;You run:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;aip &lt;span class="nt"&gt;-s&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;And paste the result straight into your LLM of choice. The AI instantly sees your project's structure, types, and interfaces without wading through thousands of lines of implementation detail.&lt;/p&gt;

&lt;h2&gt;
  
  
  Try It Out
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;pip &lt;span class="nb"&gt;install &lt;/span&gt;ai-pack-cli
aip &lt;span class="nt"&gt;--help&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Commands: &lt;code&gt;aip&lt;/code&gt;, &lt;code&gt;ai-pack&lt;/code&gt;, or &lt;code&gt;aipack&lt;/code&gt; — whichever you like typing.&lt;/p&gt;

&lt;p&gt;If this saves you the same copy-paste headache it saved me, I'd genuinely appreciate a ⭐ on GitHub — it helps other developers discover the project, and it keeps me motivated to keep shipping features.&lt;/p&gt;

&lt;p&gt;🔗 &lt;strong&gt;GitHub:&lt;/strong&gt; &lt;a href="https://github.com/iamraydoan/ai-pack" rel="noopener noreferrer"&gt;github.com/iamraydoan/ai-pack&lt;/a&gt;&lt;br&gt;
📦 &lt;strong&gt;PyPI:&lt;/strong&gt; &lt;code&gt;ai-pack-cli&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;What's your current workflow for feeding code into LLMs? Curious to hear if others have hacked together similar scripts — drop a comment below 👇&lt;/p&gt;

</description>
      <category>ai</category>
      <category>cli</category>
      <category>opensource</category>
      <category>productivity</category>
    </item>
  </channel>
</rss>
