<?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: alilo113</title>
    <description>The latest articles on DEV Community by alilo113 (@alilo113).</description>
    <link>https://dev.to/alilo113</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%2F1976787%2F5a32b3e1-7241-4dfb-9aa4-d2e30e3bfaa5.jpeg</url>
      <title>DEV Community: alilo113</title>
      <link>https://dev.to/alilo113</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/alilo113"/>
    <language>en</language>
    <item>
      <title>How I Built a VS Code AI Coding Assistant That Runs Under 3.2K Tokens Per Request</title>
      <dc:creator>alilo113</dc:creator>
      <pubDate>Fri, 20 Nov 2026 07:41:36 +0000</pubDate>
      <link>https://dev.to/alilo113/how-i-built-a-vs-code-ai-coding-assistant-that-runs-under-32k-tokens-per-request-40fd</link>
      <guid>https://dev.to/alilo113/how-i-built-a-vs-code-ai-coding-assistant-that-runs-under-32k-tokens-per-request-40fd</guid>
      <description>&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fglluibbgourlsmhfn8na.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fglluibbgourlsmhfn8na.png" alt=" " width="800" height="338"&gt;&lt;/a&gt;Most AI coding assistants feel heavy fast. Between injecting open tabs, large file trees, and dozens of tool schemas on every turn, a simple coding request can easily balloon to 30K–100K+ tokens—driving up latency and burning through API credits.&lt;/p&gt;

&lt;p&gt;When I built &lt;strong&gt;Sidekick Code AI&lt;/strong&gt;, I wanted to test the opposite approach: how useful can an in-editor coding assistant be if you keep context retrieval tight and predictable?&lt;/p&gt;

&lt;h2&gt;
  
  
  The Token &amp;amp; Latency Baseline
&lt;/h2&gt;

&lt;p&gt;In recent trace runs (&lt;code&gt;sidekick_cloud_chat_completion&lt;/code&gt;), a real code-generation turn used &lt;strong&gt;3.13K total tokens&lt;/strong&gt; and completed in &lt;strong&gt;~2 seconds&lt;/strong&gt;[cite: 2]:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Input:&lt;/strong&gt; &lt;code&gt;2.75K&lt;/code&gt; tokens (&lt;code&gt;88%&lt;/code&gt;) — system prompt, user request, and targeted local context[cite: 2]&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Output:&lt;/strong&gt; &lt;code&gt;383&lt;/code&gt; tokens (&lt;code&gt;12%&lt;/code&gt;) — focused code generation and next-step guidance[cite: 2]&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;For BYOK (Bring Your Own Key) workflows, keeping routine turns around ~3K tokens makes a big difference: on mid-tier models, a request costs under two cents, and on lightweight models it costs a fraction of a tenth of a cent.&lt;/p&gt;

&lt;h2&gt;
  
  
  3 Decisions That Kept Context Lean
&lt;/h2&gt;

&lt;h3&gt;
  
  
  1. Local Indexing Over Full-File Dumping
&lt;/h3&gt;

&lt;p&gt;Instead of stuffing entire files or every open editor tab into the prompt by default, Sidekick indexes locally and pulls only the relevant snippets needed for the active request.&lt;/p&gt;

&lt;h3&gt;
  
  
  2. Minimal Prompt &amp;amp; Schema Overhead
&lt;/h3&gt;

&lt;p&gt;Every unused tool definition or verbose system instruction gets tokenized on every single call. Keeping the base prompt compact prevents context bloat before the user even types a question.&lt;/p&gt;

&lt;h3&gt;
  
  
  3. Targeted, Incremental Edits
&lt;/h3&gt;

&lt;p&gt;Rather than asking the model to rewrite large modules in one pass, prompts are structured to generate focused changes step by step—keeping output tokens low (&lt;code&gt;~300–500&lt;/code&gt; tokens) and latency around 2 seconds[cite: 2].&lt;/p&gt;

&lt;h2&gt;
  
  
  Try It in VS Code
&lt;/h2&gt;

&lt;p&gt;If you prefer lightweight, BYOK tools and want to test it on a real repo, you can install &lt;strong&gt;Sidekick Code AI&lt;/strong&gt; directly inside VS Code via Quick Open (&lt;code&gt;Ctrl+P&lt;/code&gt; / &lt;code&gt;Cmd+P&lt;/code&gt;):&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;ext install alidendenne.sidekick-code-ai
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Or via terminal:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;code --install-extension alidendenne.sidekick-code-ai
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;I'm actively refining the local indexing and context budgeting based on real developer workflows—if you try it out and hit any friction or edge cases, I'd genuinely appreciate your technical feedback in the comments.&lt;/p&gt;

</description>
      <category>vscode</category>
      <category>ai</category>
      <category>showdev</category>
      <category>programming</category>
    </item>
    <item>
      <title>How I Built a Lightweight, Local-First VS Code AI Assistant with Ollama</title>
      <dc:creator>alilo113</dc:creator>
      <pubDate>Sat, 10 Oct 2026 07:47:50 +0000</pubDate>
      <link>https://dev.to/alilo113/how-i-built-a-lightweight-local-first-vs-code-ai-assistant-with-ollama-3nlm</link>
      <guid>https://dev.to/alilo113/how-i-built-a-lightweight-local-first-vs-code-ai-assistant-with-ollama-3nlm</guid>
      <description>&lt;h2&gt;
  
  
  🚀 The Motivation
&lt;/h2&gt;

&lt;p&gt;Cloud AI coding assistants are convenient, but subscription fees add up and sending enterprise or personal codebases to external APIs isn't ideal for privacy. &lt;/p&gt;

&lt;p&gt;I wanted a simple, zero-cost, local-first alternative that integrates directly into VS Code and hooks straight into &lt;strong&gt;Ollama&lt;/strong&gt;. So, I built &lt;strong&gt;Echo&lt;/strong&gt;.&lt;/p&gt;




&lt;h2&gt;
  
  
  🛠️ How It Works Under the Hood
&lt;/h2&gt;

&lt;p&gt;To keep the MVP fast and reliable, the architecture is entirely decoupled from heavy frontend frameworks:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Extension Host (TypeScript):&lt;/strong&gt; Listens for commands and sends direct HTTP requests to the local Ollama instance running at &lt;code&gt;http://localhost:11434&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Inline Completion Provider (TypeScript):&lt;/strong&gt; Hooks directly into VS Code's native inline completion API (&lt;code&gt;vscode.InlineCompletionItemProvider&lt;/code&gt;) to serve ghost-text suggestions as you type.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Distribution:&lt;/strong&gt; Packaged directly as a &lt;code&gt;.vsix&lt;/code&gt; binary via GitHub Releases for complete control.&lt;/li&gt;
&lt;/ol&gt;




&lt;h2&gt;
  
  
  ⚡ Current Challenges &amp;amp; What's Next
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Hardware Variability:&lt;/strong&gt; Users running different local models need smooth onboarding. My next step is adding automatic model detection via Ollama's API on startup.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Streamlined Workflow:&lt;/strong&gt; Refining how code snippets and prompts are handled directly inside the editor workflow.&lt;/li&gt;
&lt;/ul&gt;




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

&lt;p&gt;Echo is available as an open-source MVP release on GitHub:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;GitHub Release:&lt;/strong&gt; &lt;a href="https://github.com/alilo113/echo-releases/releases" rel="noopener noreferrer"&gt;Download Echo MVP&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Requirements:&lt;/strong&gt; VS Code + &lt;a href="https://ollama.com/" rel="noopener noreferrer"&gt;Ollama&lt;/a&gt; running locally.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;I'd love feedback from fellow developers building local toolchains!&lt;/p&gt;

</description>
      <category>vscode</category>
      <category>ai</category>
      <category>ollama</category>
      <category>javascript</category>
    </item>
  </channel>
</rss>
