<?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: Lova Rama Krishna Pothagani</title>
    <description>The latest articles on DEV Community by Lova Rama Krishna Pothagani (@plova_rama_5254efcc1133ae).</description>
    <link>https://dev.to/plova_rama_5254efcc1133ae</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%2F4242329%2F571a92e0-ad9d-451c-97b3-e95fe247d6b9.jpg</url>
      <title>DEV Community: Lova Rama Krishna Pothagani</title>
      <link>https://dev.to/plova_rama_5254efcc1133ae</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/plova_rama_5254efcc1133ae"/>
    <language>en</language>
    <item>
      <title>agentbelt 0.3.0: token optimization for local AI agents, with honest numbers</title>
      <dc:creator>Lova Rama Krishna Pothagani</dc:creator>
      <pubDate>Sat, 14 Nov 2026 08:08:07 +0000</pubDate>
      <link>https://dev.to/plova_rama_5254efcc1133ae/agentbelt-030-token-optimization-for-local-ai-agents-with-honest-numbers-3kfa</link>
      <guid>https://dev.to/plova_rama_5254efcc1133ae/agentbelt-030-token-optimization-for-local-ai-agents-with-honest-numbers-3kfa</guid>
      <description>&lt;p&gt;&lt;a href="https://github.com/LovaRK/agentbelt" rel="noopener noreferrer"&gt;agentbelt&lt;/a&gt; gives every AI coding app (Claude Code, Codex, Cursor, Copilot, DeepSeek, LM Studio) the same safe, audited dev tools over MCP. Version 0.2.0 added &lt;strong&gt;context compaction&lt;/strong&gt; for agents running on local models with small context windows (gpt-oss 20B, 16k context, on a MacBook Air). 0.3.0 adds a Goose adapter and a demo GIF.&lt;/p&gt;

&lt;h2&gt;
  
  
  I measured it instead of guessing
&lt;/h2&gt;

&lt;p&gt;I ran the same tasks with compaction off and on, 3 runs each. Token counts are what Ollama itself reported.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Task&lt;/th&gt;
&lt;th&gt;Compaction&lt;/th&gt;
&lt;th&gt;Correct&lt;/th&gt;
&lt;th&gt;Avg input tokens&lt;/th&gt;
&lt;th&gt;Largest prompt&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;read 5 files&lt;/td&gt;
&lt;td&gt;off&lt;/td&gt;
&lt;td&gt;3/3&lt;/td&gt;
&lt;td&gt;46,916&lt;/td&gt;
&lt;td&gt;13,317&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;read 5 files&lt;/td&gt;
&lt;td&gt;on&lt;/td&gt;
&lt;td&gt;3/3&lt;/td&gt;
&lt;td&gt;50,410&lt;/td&gt;
&lt;td&gt;10,269&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;failing test log, twice&lt;/td&gt;
&lt;td&gt;off&lt;/td&gt;
&lt;td&gt;1/3&lt;/td&gt;
&lt;td&gt;42,267&lt;/td&gt;
&lt;td&gt;6,182&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;failing test log, twice&lt;/td&gt;
&lt;td&gt;on&lt;/td&gt;
&lt;td&gt;1/3&lt;/td&gt;
&lt;td&gt;18,448&lt;/td&gt;
&lt;td&gt;3,338&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;The largest prompt was lower in every run.&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;On the log-heavy task: 56% fewer input tokens&lt;/strong&gt;, and every run finished instead of running out of steps.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;On the file-reading task: same accuracy, but no average saving.&lt;/strong&gt; One run re-read files and cost more.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;My first version did worse.&lt;/strong&gt; It shortened file contents too much, and the model re-read what it had lost.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Takeaway:&lt;/strong&gt; for local agents, the biggest win is not repeating the same logs. Shrinking file contents can backfire.&lt;/p&gt;

&lt;p&gt;Full method and raw results: &lt;a href="https://github.com/LovaRK/agentbelt/blob/main/docs/token-optimization.md" rel="noopener noreferrer"&gt;docs/token-optimization.md&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Try it
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;npx agentbelt setup
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Then ask your AI app: "Use agentbelt's agent_run with compact: true to …"&lt;/p&gt;

&lt;p&gt;⭐ If this is useful, a star on &lt;a href="https://github.com/LovaRK/agentbelt" rel="noopener noreferrer"&gt;GitHub&lt;/a&gt; helps other developers find it. And if you run agents on local models, I'd love to hear what you've measured.&lt;/p&gt;

</description>
      <category>ai</category>
      <category>llm</category>
      <category>opensource</category>
      <category>mcp</category>
    </item>
    <item>
      <title>One Toolbelt for Every AI Coding Assistant: Why I Built agentbelt</title>
      <dc:creator>Lova Rama Krishna Pothagani</dc:creator>
      <pubDate>Fri, 13 Nov 2026 06:45:02 +0000</pubDate>
      <link>https://dev.to/plova_rama_5254efcc1133ae/one-toolbelt-for-every-ai-coding-assistant-why-i-built-agentbelt-e1o</link>
      <guid>https://dev.to/plova_rama_5254efcc1133ae/one-toolbelt-for-every-ai-coding-assistant-why-i-built-agentbelt-e1o</guid>
      <description>&lt;p&gt;&lt;em&gt;Claude Code, Codex, Cursor, VS Code, DeepSeek and LM Studio, with the same safe tools, set up once and tested for real.&lt;/em&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  The problem: every AI app reinvents the same tools
&lt;/h2&gt;

&lt;p&gt;I use several AI coding assistants. Each one can run commands, touch git and run my tests, and each one does it differently: different config files, different permission prompts, different ideas about what's safe. When I switched apps, I lost my workflows. And when an assistant runs &lt;code&gt;git reset --hard&lt;/code&gt; or pushes to the wrong branch, "the model meant well" doesn't help much.&lt;/p&gt;

&lt;p&gt;I wanted one set of developer tools that:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;works the same in every AI app;&lt;/li&gt;
&lt;li&gt;is safe even if the model gets confused or manipulated;&lt;/li&gt;
&lt;li&gt;I could set up in a minute and trust after an update.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  The idea: tools as a shared, audited layer
&lt;/h2&gt;

&lt;p&gt;The Model Context Protocol (MCP) lets AI apps call tools provided by a separate program. agentbelt is that program. It provides:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;git tools&lt;/strong&gt; that read the repo and do work in isolated task branches (&lt;code&gt;agentbelt/&amp;lt;id&amp;gt;&lt;/code&gt;). They can commit there but never push, and never run &lt;code&gt;reset&lt;/code&gt;, &lt;code&gt;rebase&lt;/code&gt;, &lt;code&gt;clean&lt;/code&gt; or &lt;code&gt;checkout&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;testing tools&lt;/strong&gt; that find and run the project's &lt;em&gt;own&lt;/em&gt; checks (npm, pnpm, yarn, Cargo, Go, Swift, pytest).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;workflows&lt;/strong&gt;: small JSON recipes like &lt;code&gt;repo-health&lt;/code&gt; or &lt;code&gt;safe-commit&lt;/code&gt;, with approval steps.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Your AI app brings the model. agentbelt brings the tools. No API key, no second LLM.&lt;/p&gt;

&lt;h2&gt;
  
  
  Safety by design, not by prompt
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Every action goes through a broker.&lt;/strong&gt; Plugins never run commands or touch files directly. The broker checks each request against the plugin's declared permissions and a core policy: no shell, allowed subcommands only, paths that can't leave the project or touch &lt;code&gt;.git&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Only you can approve.&lt;/strong&gt; A workflow's approval step can only be approved in your terminal (&lt;code&gt;agentbelt approve&lt;/code&gt;). There's no tool for it, so the model can't approve its own work.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Everything is logged&lt;/strong&gt; to &lt;code&gt;.agentbelt/audit.jsonl&lt;/code&gt;, with secrets removed.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Honest labels.&lt;/strong&gt; Built-in tools are labeled &lt;em&gt;policy-only&lt;/em&gt;: checked, but not OS-sandboxed. Third-party plugins only run inside a real OS sandbox (macOS &lt;code&gt;sandbox-exec&lt;/code&gt;, Linux bubblewrap) with no network, and if there's no sandbox, they're refused.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Updates you can trust
&lt;/h2&gt;

&lt;p&gt;&lt;code&gt;npx agentbelt setup&lt;/code&gt; installs a pinned copy with install scripts turned off, then &lt;strong&gt;makes real tool calls against it before switching to it&lt;/strong&gt;. &lt;code&gt;agentbelt update&lt;/code&gt; does the same with a new version next to the old one; &lt;code&gt;agentbelt rollback&lt;/code&gt; switches back instantly.&lt;/p&gt;

&lt;h2&gt;
  
  
  "Compatible" means tested
&lt;/h2&gt;

&lt;p&gt;An app counts as supported only when it made &lt;strong&gt;real tool calls&lt;/strong&gt; in a real session, and the calls show up in agentbelt's audit log. Testing that way found real problems:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;DeepSeek Harness&lt;/strong&gt; doesn't tell tool servers which project is open, and starts them in its own settings folder. agentbelt now refuses settings folders and asks for &lt;code&gt;--workspace&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Cursor&lt;/strong&gt; doesn't fill in &lt;code&gt;${workspaceFolder}&lt;/code&gt; in its global config. With a folder open, Cursor does share the project through MCP, so the fix was to stop relying on the placeholder.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;LM Studio&lt;/strong&gt; needs the MCP plugin turned on in each chat, and a model whose tool calls it can parse.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Today agentbelt is verified with Claude Code, Codex, Cursor, VS Code (Copilot agent mode), DeepSeek Harness and LM Studio.&lt;/p&gt;

&lt;h2&gt;
  
  
  Try it
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;npx agentbelt setup
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Then ask your AI app: "Use agentbelt to run the checks and fix what fails."&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Guide: &lt;a href="https://lovark.github.io/agentbelt/" rel="noopener noreferrer"&gt;https://lovark.github.io/agentbelt/&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;Code: &lt;a href="https://github.com/LovaRK/agentbelt" rel="noopener noreferrer"&gt;https://github.com/LovaRK/agentbelt&lt;/a&gt; (Apache-2.0)&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;⭐ If agentbelt is useful to you, a star on &lt;a href="https://github.com/LovaRK/agentbelt" rel="noopener noreferrer"&gt;GitHub&lt;/a&gt; helps other developers find it.&lt;/p&gt;

</description>
      <category>ai</category>
      <category>opensource</category>
      <category>devtools</category>
      <category>mcp</category>
    </item>
  </channel>
</rss>
