I'm primarily an embedded C/C++ developer, and I recently put together a small open-source repo called kilo-builder to organize the CLI tools and agent rules I use with Kilo Code and OpenCode across Linux, macOS (Apple Silicon), and Windows.

Why CLI-First Instead of All-MCP?

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.

To keep things predictable and lightweight, I shifted to a CLI-first layout:

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

Reproducible Packaging & License Checks

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

Source & Feedback

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: