<?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: Hsuche Chiang</title>
    <description>The latest articles on DEV Community by Hsuche Chiang (@hsuche_chiang_88c247061b9).</description>
    <link>https://dev.to/hsuche_chiang_88c247061b9</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%2F4283845%2F1ef7758f-bc1d-445a-bd7c-7f801c8d2de5.png</url>
      <title>DEV Community: Hsuche Chiang</title>
      <link>https://dev.to/hsuche_chiang_88c247061b9</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/hsuche_chiang_88c247061b9"/>
    <language>en</language>
    <item>
      <title>Cutting MCP Context Overhead: A CLI-First Embedded &amp; RE Toolkit for Kilo Code and OpenCode</title>
      <dc:creator>Hsuche Chiang</dc:creator>
      <pubDate>Sat, 05 Dec 2026 02:36:22 +0000</pubDate>
      <link>https://dev.to/hsuche_chiang_88c247061b9/cutting-mcp-context-overhead-a-cli-first-embedded-re-toolkit-for-kilo-code-and-opencode-o29</link>
      <guid>https://dev.to/hsuche_chiang_88c247061b9/cutting-mcp-context-overhead-a-cli-first-embedded-re-toolkit-for-kilo-code-and-opencode-o29</guid>
      <description>&lt;p&gt;I'm primarily an embedded C/C++ developer, and I recently put together a small open-source repo called &lt;strong&gt;&lt;a href="https://github.com/HsucheChiang/kilo-builder" rel="noopener noreferrer"&gt;kilo-builder&lt;/a&gt;&lt;/strong&gt; to organize the CLI tools and agent rules I use with &lt;strong&gt;Kilo Code&lt;/strong&gt; and &lt;strong&gt;OpenCode&lt;/strong&gt; across Linux, macOS (Apple Silicon), and Windows.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why CLI-First Instead of All-MCP?
&lt;/h2&gt;

&lt;p&gt;When I first started hooking up coding agents to assist with cross-compiling, reading crash dumps, and serial debugging, I tried exposing most tools through MCP servers. In practice, running too many persistent MCP servers ate up a large chunk of the context window—especially when testing smaller local models—and interactive CLI tools would occasionally hang the agent.&lt;/p&gt;

&lt;p&gt;To keep things predictable and lightweight, I shifted to a &lt;strong&gt;CLI-first&lt;/strong&gt; layout:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Minimal rule index (~400 tokens):&lt;/strong&gt; Instead of loading dozens of tool schemas upfront, a small &lt;code&gt;.kilo/rules/&lt;/code&gt; map points the agent (and OpenCode via &lt;code&gt;kilo sync&lt;/code&gt;) to the right CLI flags only when a specific task comes up.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;MCP only where state matters:&lt;/strong&gt; I kept MCP strictly for engines that benefit from persistent state (&lt;code&gt;codebase-memory-mcp&lt;/code&gt; for C/C++ call graphs, and on-demand Ghidra via &lt;code&gt;rea&lt;/code&gt;).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Non-interactive CLIs for routine tasks:&lt;/strong&gt; Everything else runs through standard batch/scripted commands—such as &lt;code&gt;zig cc&lt;/code&gt; for zero-sysroot cross-compiling, &lt;code&gt;lldb -b&lt;/code&gt; for automated core-dump backtraces, &lt;code&gt;pyserial&lt;/code&gt; scripts for UART boot logs, &lt;code&gt;construct&lt;/code&gt;, &lt;code&gt;lief&lt;/code&gt;, and &lt;code&gt;clang-tidy&lt;/code&gt;.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Reproducible Packaging &amp;amp; License Checks
&lt;/h2&gt;

&lt;p&gt;To avoid reconfiguring host toolchains and Python environments every time I switch machines, the environment is locked with &lt;code&gt;pixi&lt;/code&gt; into standalone bundles (&lt;code&gt;kilo-kit&lt;/code&gt;). I also wrote a small script (&lt;code&gt;scripts/verify_licenses.py&lt;/code&gt;) to verify the SPDX license expressions of the bundled dependencies against &lt;code&gt;pixi.lock&lt;/code&gt; and &lt;code&gt;THIRD_PARTY_NOTICES.md&lt;/code&gt;. The repository itself is MIT-licensed.&lt;/p&gt;

&lt;h2&gt;
  
  
  Source &amp;amp; Feedback
&lt;/h2&gt;

&lt;p&gt;The repo is still a work in progress and my Python packaging scripts are a bit rough around the edges, so feedback, bug reports, or suggestions on better CLI patterns for driving embedded tools from coding agents are very welcome:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;GitHub:&lt;/strong&gt; &lt;a href="https://github.com/HsucheChiang/kilo-builder" rel="noopener noreferrer"&gt;https://github.com/HsucheChiang/kilo-builder&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

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