<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Developer Productivity on kenji.blog</title><link>http://kenji.blog/en/tags/developer-productivity/</link><description>Recent content in Developer Productivity on kenji.blog</description><generator>Hugo -- gohugo.io</generator><language>en</language><copyright>kenjinote</copyright><lastBuildDate>Fri, 11 Sep 2026 21:00:00 +0900</lastBuildDate><atom:link href="http://kenji.blog/en/tags/developer-productivity/index.xml" rel="self" type="application/rss+xml"/><item><title>Boosting Development Efficiency by Combining Copilot and Local AI</title><link>http://kenji.blog/en/p/hybrid-ai-development-workflow/</link><pubDate>Fri, 11 Sep 2026 21:00:00 +0900</pubDate><guid>http://kenji.blog/en/p/hybrid-ai-development-workflow/</guid><description>&lt;img src="http://kenji.blog/p/hybrid-ai-development-workflow/img/eyecatch.jpg" alt="Featured image of post Boosting Development Efficiency by Combining Copilot and Local AI" />&lt;h1 id="boosting-development-efficiency-by-combining-copilot-and-local-ai-a-complete-guide-to-the-hybrid-ai-development-workflow">Boosting Development Efficiency by Combining Copilot and Local AI: A Complete Guide to the Hybrid AI Development Workflow
&lt;/h1>&lt;p>In modern software development, the utilization of AI assistants has evolved from a &amp;ldquo;nice-to-have&amp;rdquo; tool to an &amp;ldquo;indispensable&amp;rdquo; infrastructure. Particularly since the advent of GitHub Copilot, the coding experience for developers has changed dramatically. However, relying on cloud-based AI for all tasks is not always the optimal solution.&lt;/p>
&lt;p>Cloud-based AI faces several challenges, including security risks when handling corporate confidential information (secret keys, proprietary algorithms, unreleased architectures), API latency, and working in offline environments without network connectivity. Therefore, the utilization of &lt;strong>local open models (Local AI)&lt;/strong> that run locally, such as Llama 3, CodeLlama, and Mistral, has rapidly gained attention in recent years.&lt;/p>
&lt;p>This article will explain in extreme detail how to maximize (boost) development efficiency by combining and utilizing cloud-based AI (like GitHub Copilot and GPT-4) and local AI. We will cover everything from architectural design and specific decision trees to mathematical analysis of costs and latency.&lt;/p>
&lt;hr>
&lt;h2 id="1-thorough-comparison-between-cloud-ai-and-local-ai">1. Thorough Comparison Between Cloud AI and Local AI
&lt;/h2>&lt;p>Before building a hybrid AI development workflow, it is important to deeply understand the characteristics of each.&lt;/p>
&lt;h3 id="11-cloud-based-ai-github-copilot-gpt-4-claude-35-sonnet">1.1 Cloud-Based AI (GitHub Copilot, GPT-4, Claude 3.5 Sonnet)
&lt;/h3>&lt;p>The greatest weapons of cloud AI are its &amp;ldquo;overwhelming model size&amp;rdquo; and &amp;ldquo;versatile reasoning capabilities&amp;rdquo;. Because it runs on massive GPU clusters, it can execute models with tens to hundreds of billions of parameters at high speed.&lt;/p>
&lt;ul>
&lt;li>&lt;strong>Pros&lt;/strong>:
&lt;ul>
&lt;li>&lt;strong>Unparalleled Reasoning Power&lt;/strong>: Nothing beats it in tasks requiring deep context understanding, such as identifying complex bugs, zero-base architectural design, and advanced refactoring across multiple files.&lt;/li>
&lt;li>&lt;strong>Massive Context Window&lt;/strong>: The latest models have context windows of 100k to 2M tokens, allowing them to read and analyze the entire codebase of a project at once.&lt;/li>
&lt;li>&lt;strong>No Infrastructure Management Needed&lt;/strong>: Developers do not need to worry about GPU resources or model updates.&lt;/li>
&lt;/ul>
&lt;/li>
&lt;li>&lt;strong>Cons&lt;/strong>:
&lt;ul>
&lt;li>&lt;strong>Privacy and Security&lt;/strong>: Since the code is sent to external servers, its use may be restricted in companies or projects that require strict compliance.&lt;/li>
&lt;li>&lt;strong>Latency&lt;/strong>: Depending on network communication conditions, delays can occur in inline completion where responses in milliseconds are required.&lt;/li>
&lt;li>&lt;strong>Cost&lt;/strong>: Pay-as-you-go pricing based on usage or monthly subscription fees apply, and running costs cannot be ignored for large-scale usage.&lt;/li>
&lt;/ul>
&lt;/li>
&lt;/ul>
&lt;h3 id="12-local-ai-llama-3-codellama-qwen25-coder-etc">1.2 Local AI (Llama 3, CodeLlama, Qwen2.5-Coder, etc.)
&lt;/h3>&lt;p>Local AI refers to models that run directly on the developer&amp;rsquo;s local machine (such as Apple Silicon MacBooks or Windows machines equipped with NVIDIA GPUs). Thanks to advancements in quantization technologies (GGUF, AWQ, GPTQ, etc.), models in the 8B to 70B class can now run at practical speeds even on standard development PCs.&lt;/p>
&lt;ul>
&lt;li>&lt;strong>Pros&lt;/strong>:
&lt;ul>
&lt;li>&lt;strong>Ultimate Privacy&lt;/strong>: Data never leaves the external network. It is ideal for handling highly confidential projects or codebases under strict NDAs.&lt;/li>
&lt;li>&lt;strong>Zero Network Latency&lt;/strong>: It is not dependent on internet connection speeds and always returns responses at a consistent speed.&lt;/li>
&lt;li>&lt;strong>Offline Operation&lt;/strong>: You can use the full functionality even on airplanes or in environments isolated from external networks due to security requirements.&lt;/li>
&lt;li>&lt;strong>Infinite Customization&lt;/strong>: You can freely fine-tune it specifically for a particular language or framework, and incorporate your own prompt engineering.&lt;/li>
&lt;/ul>
&lt;/li>
&lt;li>&lt;strong>Cons&lt;/strong>:
&lt;ul>
&lt;li>&lt;strong>Hardware Requirements&lt;/strong>: A machine with sufficient VRAM (Video RAM) (e.g., 16GB to 24GB+ of VRAM, or an M-series chip with 32GB+ of unified memory) is necessary to run it comfortably.&lt;/li>
&lt;li>&lt;strong>Limits to Model Performance&lt;/strong>: Due to hardware constraints, there is a limit to the size of models that can be executed, and they often fall short of the complex logical reasoning of the GPT-4 class.&lt;/li>
&lt;li>&lt;strong>Context Window Constraints&lt;/strong>: Due to memory capacity constraints, the context length that can be handled is typically limited to a few thousand to tens of thousands of tokens.&lt;/li>
&lt;/ul>
&lt;/li>
&lt;/ul>
&lt;hr>
&lt;h2 id="2-architectural-design-of-the-hybrid-ai-workflow">2. Architectural Design of the Hybrid AI Workflow
&lt;/h2>&lt;p>To achieve the best development experience, it is necessary to build an architecture that integrates these tools on a single IDE (e.g., VS Code, Cursor, Neovim) and allows for seamless switching.&lt;/p>
&lt;p>The Mermaid diagram below shows a hybrid architecture illustrating how local agents and cloud services collaborate and distribute developer tasks.&lt;/p>
&lt;div class="mermaid">graph TD
Dev["Developer (IDE)"] -->|"Real-time Typing"| LocalProxy{"Intelligent Router / Proxy"}
LocalProxy -->|"Fast, Privacy-first Task"| LocalAI["Local AI Engine (Ollama / LM Studio)"]
LocalProxy -->|"Complex Logic, Large Context"| CloudAI["Cloud AI Engine (Copilot / OpenAI API)"]
subgraph "Local Environment"
LocalAI --> ModelA["Llama-3-8B-Instruct (GGUF)"]
LocalAI --> ModelB["CodeLlama-13B (GGUF)"]
VectorDB["Local Vector DB (Chroma/FAISS)"] -.->|"RAG Context"| LocalAI
end
subgraph "Cloud Environment"
CloudAI --> GPT4["GPT-4o / Claude 3.5"]
CloudAI --> CopilotBackend["GitHub Copilot Backend"]
end
LocalAI --> ResponseLocal["Response &lt; 200ms"]
CloudAI --> ResponseCloud["Response 1s - 5s"]
ResponseLocal --> Dev
ResponseCloud --> Dev&lt;/div>
&lt;p>The core of this architecture is the presence of an &lt;strong>Intelligent Router / Proxy&lt;/strong>. Depending on the context of the code being written by the developer, the confidentiality level of the target file, and the complexity of the requested task, the IDE extension automatically (or quickly manually) routes between local and cloud models.&lt;/p>
&lt;p>For example, for simple function definition completions or boilerplate generation, the process is thrown to a local model (such as Llama 3 8B) that responds in tens of milliseconds. In contrast, questions related to the overall project design or chat prompts involving large-scale refactoring are routed dynamically to GPT-4 in the cloud.&lt;/p>
&lt;hr>
&lt;h2 id="3-decision-criteria-for-usage-decision-tree">3. Decision Criteria for Usage: Decision Tree
&lt;/h2>&lt;p>So, in the actual coding field, how should developers judge &amp;ldquo;which AI to use right now&amp;rdquo;? We define the decision flow visually using the decision tree below.&lt;/p>
&lt;div class="mermaid">graph TD
Start["New Coding Task"] --> Q1{"Is the code highly confidential?"}
Q1 -->|Yes| Action1["Use Local AI (Llama 3 / CodeLlama)"]
Q1 -->|No| Q2{"Is it a simple inline autocomplete?"}
Q2 -->|Yes| Q3{"Is network connection stable?"}
Q3 -->|Yes| Action2["Use GitHub Copilot"]
Q3 -->|No| Action1
Q2 -->|No| Q4{"Need complex architecture logic or cross-file refactoring?"}
Q4 -->|Yes| Action3["Use Cloud AI (GPT-4 / Claude 3.5 Sonnet)"]
Q4 -->|No| Action4["Use Local AI for medium tasks to save API cost"]&lt;/div>
&lt;h3 id="31-evaluation-axis-1-privacy-and-security">3.1 Evaluation Axis 1: Privacy and Security
&lt;/h3>&lt;p>This is the most important decision criterion. For test code containing customer data that is prohibited from being sent externally by company policy, or files implementing proprietary core algorithms, choose local AI without any compromise. Building local RAG (Retrieval-Augmented Generation) and storing internal documents in a vector store for local LLMs to reference is also a highly effective method.&lt;/p>
&lt;h3 id="32-evaluation-axis-2-latency">3.2 Evaluation Axis 2: Latency
&lt;/h3>&lt;p>To avoid interrupting your train of thought, the latency of completions is extremely important. Cloud AI always incurs a network round-trip time (RTT). Since local AI has zero network latency, keeping a lightweight model resident in VRAM can achieve perceived speeds that surpass the cloud.&lt;/p>
&lt;h3 id="33-evaluation-axis-3-context-window">3.3 Evaluation Axis 3: Context Window
&lt;/h3>&lt;p>For prompts like &amp;ldquo;Read all files in this repository and organize the dependencies,&amp;rdquo; cloud AI capable of processing 100k+ tokens is essential. Attempting to process tens of thousands of tokens with a local model will either deplete the memory or drastically degrade the inference speed (e.g., several seconds per token).&lt;/p>
&lt;hr>
&lt;h2 id="4-mathematical-analysis-of-cost-and-latency">4. Mathematical Analysis of Cost and Latency
&lt;/h2>&lt;p>Let&amp;rsquo;s quantitatively analyze the advantages of the hybrid workflow using mathematical formulas.&lt;/p>
&lt;h3 id="41-cost-calculation-model">4.1 Cost Calculation Model
&lt;/h3>&lt;p>We will formulate the cost when using only a cloud API (e.g., GPT-4). The total cost $C_{total}$ per day in a development project is the sum of the number of input and output tokens for each prompt multiplied by their respective unit prices.&lt;/p>
$$ C_{total} = \sum_{i=1}^{N} \left( P_{in} \times T_{in}^{(i)} + P_{out} \times T_{out}^{(i)} \right) $$
&lt;ul>
&lt;li>$N$ : Number of API calls per day&lt;/li>
&lt;li>$P_{in}$ : Price per input token&lt;/li>
&lt;li>$P_{out}$ : Price per output token&lt;/li>
&lt;li>$T_{in}^{(i)}$ : Number of input tokens for the $i$-th call&lt;/li>
&lt;li>$T_{out}^{(i)}$ : Number of output tokens for the $i$-th call&lt;/li>
&lt;/ul>
&lt;p>Assuming that local AI is introduced and a proportion $\alpha$ (0 &amp;lt; $\alpha$ &amp;lt; 1) of the $N$ calls can be offloaded to the local model, the new cloud API cost $C_{hybrid}$ is reduced as follows:&lt;/p>
$$ C_{hybrid} = (1 - \alpha) \sum_{i=1}^{N} \left( P_{in} \times T_{in}^{(i)} + P_{out} \times T_{out}^{(i)} \right) = (1 - \alpha) C_{total} $$
&lt;p>Even when considering hardware depreciation and electricity costs, if $\alpha$ can be increased to 50% - 70%, it will bring dramatic cost reduction effects in the long run.&lt;/p>
&lt;h3 id="42-latency-model">4.2 Latency Model
&lt;/h3>&lt;p>We model the Time To First Token (TTFT), which is the time from when the user sends a prompt until the first character is displayed.&lt;/p>
&lt;p>The latency of cloud AI $L_{cloud}$ is expressed by the following equation:&lt;/p>
$$ L_{cloud} = L_{network\_rtt} + L_{queue} + \frac{T_{in}}{S_{process\_cloud}} $$
&lt;ul>
&lt;li>$L_{network\_rtt}$ : Network round-trip time (typically 20ms - 200ms)&lt;/li>
&lt;li>$L_{queue}$ : Queue wait time on the cloud provider&amp;rsquo;s side (increases during congestion)&lt;/li>
&lt;li>$S_{process\_cloud}$ : Token processing speed of the cloud GPU (tokens/sec)&lt;/li>
&lt;/ul>
&lt;p>On the other hand, the latency of local AI $L_{local}$ is as follows:&lt;/p>
$$ L_{local} = \frac{T_{in}}{S_{process\_local}} $$
&lt;p>Since the network latency $L_{network\_rtt}$ and cloud queue latency $L_{queue}$ become zero, as long as $S_{process\_local}$ (the processing speed of the local GPU) is sufficiently high, ultra-fast responses (TTFT) on the order of milliseconds can be realized. This is the reason why local AI can be the strongest tool for inline completions.&lt;/p>
&lt;hr>
&lt;h2 id="5-by-development-scenario-deep-dive-into-specific-use-cases">5. By Development Scenario: Deep Dive into Specific Use Cases
&lt;/h2>&lt;h3 id="use-case-1-boilerplate-generation-and-inline-completion-with-github-copilot">Use Case 1: Boilerplate Generation and Inline Completion with GitHub Copilot
&lt;/h3>&lt;ul>
&lt;li>&lt;strong>Scenario&lt;/strong>: Building the skeleton of a React component or writing standard error handling.&lt;/li>
&lt;li>&lt;strong>Approach&lt;/strong>: This is Copilot&amp;rsquo;s domain. While typing, it constantly reads the background context and accurately suggests code ranging from a few lines to dozens of lines. The experience of code completing just by pressing the &amp;ldquo;Tab&amp;rdquo; key without interrupting your thoughts directly boosts development speed the most.&lt;/li>
&lt;/ul>
&lt;h3 id="use-case-2-refactoring-confidential-code-with-local-ai-codellama--llama-3">Use Case 2: Refactoring Confidential Code with Local AI (CodeLlama / Llama 3)
&lt;/h3>&lt;ul>
&lt;li>&lt;strong>Scenario&lt;/strong>: Refactoring database passwords, proprietary encryption logic, or the core logic of unreleased new features.&lt;/li>
&lt;li>&lt;strong>Approach&lt;/strong>: Temporarily block the IDE&amp;rsquo;s network access or use an extension dedicated to local AI (e.g., Continue.dev) to throw prompts to models running locally (e.g., via Ollama). You can receive AI assistance while keeping the risk of data leaks at zero.&lt;/li>
&lt;/ul>
&lt;h3 id="use-case-3-architectural-design-and-complex-bug-fixing-with-cloud-llms-gpt-4--claude-35-sonnet">Use Case 3: Architectural Design and Complex Bug Fixing with Cloud LLMs (GPT-4 / Claude 3.5 Sonnet)
&lt;/h3>&lt;ul>
&lt;li>&lt;strong>Scenario&lt;/strong>: Analyzing mysterious memory leaks or high-level design consultations like &amp;ldquo;What is the best approach to split this monolithic app into microservices?&amp;rdquo;&lt;/li>
&lt;li>&lt;strong>Approach&lt;/strong>: Tasks like this require vast amounts of prior knowledge and advanced logical reasoning capabilities. You should utilize the smartest cloud models, even at a cost. Pass dozens of files as context and have it provide deep insights into &amp;ldquo;where the problem lies.&amp;rdquo;&lt;/li>
&lt;/ul>
&lt;hr>
&lt;h2 id="6-environment-setup-guide-for-local-ai-practical-guide">6. Environment Setup Guide for Local AI (Practical Guide)
&lt;/h2>&lt;p>Here is a brief introduction to specific steps for introducing local AI. The easiest and most powerful approach right now is to use &lt;strong>Ollama&lt;/strong> or &lt;strong>LM Studio&lt;/strong>.&lt;/p>
&lt;h3 id="61-installing-ollama">6.1 Installing Ollama
&lt;/h3>&lt;p>Ollama is a lightweight framework for running LLMs in a local environment. It supports MacOS, Windows, and Linux, allowing you to intuitively manage models like Docker.&lt;/p>
&lt;div class="highlight">&lt;div class="chroma">
&lt;table class="lntable">&lt;tr>&lt;td class="lntd">
&lt;pre tabindex="0" class="chroma">&lt;code>&lt;span class="lnt"> 1
&lt;/span>&lt;span class="lnt"> 2
&lt;/span>&lt;span class="lnt"> 3
&lt;/span>&lt;span class="lnt"> 4
&lt;/span>&lt;span class="lnt"> 5
&lt;/span>&lt;span class="lnt"> 6
&lt;/span>&lt;span class="lnt"> 7
&lt;/span>&lt;span class="lnt"> 8
&lt;/span>&lt;span class="lnt"> 9
&lt;/span>&lt;span class="lnt">10
&lt;/span>&lt;span class="lnt">11
&lt;/span>&lt;/code>&lt;/pre>&lt;/td>
&lt;td class="lntd">
&lt;pre tabindex="0" class="chroma">&lt;code class="language-bash" data-lang="bash">&lt;span class="line">&lt;span class="cl">&lt;span class="c1"># For MacOS&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">brew install ollama
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="c1"># Start the server&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">ollama serve
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="c1"># Download and run the Llama 3 (8B) model&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">ollama run llama3
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="c1"># Run CodeLlama, which is specialized for programming&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">ollama run codellama
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/td>&lt;/tr>&lt;/table>
&lt;/div>
&lt;/div>&lt;h3 id="62-integration-into-editors-utilizing-continuedev">6.2 Integration into Editors (Utilizing Continue.dev)
&lt;/h3>&lt;p>To utilize local models in VS Code or JetBrains IDEs, the open-source extension &lt;strong>Continue&lt;/strong> is extremely excellent.
Simply by specifying the local Ollama server as an endpoint in Continue&amp;rsquo;s configuration file (&lt;code>config.json&lt;/code>), a ChatGPT-like chat window and code highlighting &amp;amp; editing features are added within the IDE.&lt;/p>
&lt;div class="highlight">&lt;div class="chroma">
&lt;table class="lntable">&lt;tr>&lt;td class="lntd">
&lt;pre tabindex="0" class="chroma">&lt;code>&lt;span class="lnt"> 1
&lt;/span>&lt;span class="lnt"> 2
&lt;/span>&lt;span class="lnt"> 3
&lt;/span>&lt;span class="lnt"> 4
&lt;/span>&lt;span class="lnt"> 5
&lt;/span>&lt;span class="lnt"> 6
&lt;/span>&lt;span class="lnt"> 7
&lt;/span>&lt;span class="lnt"> 8
&lt;/span>&lt;span class="lnt"> 9
&lt;/span>&lt;span class="lnt">10
&lt;/span>&lt;span class="lnt">11
&lt;/span>&lt;span class="lnt">12
&lt;/span>&lt;span class="lnt">13
&lt;/span>&lt;span class="lnt">14
&lt;/span>&lt;span class="lnt">15
&lt;/span>&lt;span class="lnt">16
&lt;/span>&lt;span class="lnt">17
&lt;/span>&lt;span class="lnt">18
&lt;/span>&lt;span class="lnt">19
&lt;/span>&lt;span class="lnt">20
&lt;/span>&lt;span class="lnt">21
&lt;/span>&lt;/code>&lt;/pre>&lt;/td>
&lt;td class="lntd">
&lt;pre tabindex="0" class="chroma">&lt;code class="language-json" data-lang="json">&lt;span class="line">&lt;span class="cl">&lt;span class="p">{&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="nt">&amp;#34;models&amp;#34;&lt;/span>&lt;span class="p">:&lt;/span> &lt;span class="p">[&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="p">{&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="nt">&amp;#34;title&amp;#34;&lt;/span>&lt;span class="p">:&lt;/span> &lt;span class="s2">&amp;#34;Ollama Llama 3&amp;#34;&lt;/span>&lt;span class="p">,&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="nt">&amp;#34;provider&amp;#34;&lt;/span>&lt;span class="p">:&lt;/span> &lt;span class="s2">&amp;#34;ollama&amp;#34;&lt;/span>&lt;span class="p">,&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="nt">&amp;#34;model&amp;#34;&lt;/span>&lt;span class="p">:&lt;/span> &lt;span class="s2">&amp;#34;llama3&amp;#34;&lt;/span>&lt;span class="p">,&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="nt">&amp;#34;apiBase&amp;#34;&lt;/span>&lt;span class="p">:&lt;/span> &lt;span class="s2">&amp;#34;http://localhost:11434&amp;#34;&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="p">},&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="p">{&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="nt">&amp;#34;title&amp;#34;&lt;/span>&lt;span class="p">:&lt;/span> &lt;span class="s2">&amp;#34;GPT-4&amp;#34;&lt;/span>&lt;span class="p">,&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="nt">&amp;#34;provider&amp;#34;&lt;/span>&lt;span class="p">:&lt;/span> &lt;span class="s2">&amp;#34;openai&amp;#34;&lt;/span>&lt;span class="p">,&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="nt">&amp;#34;model&amp;#34;&lt;/span>&lt;span class="p">:&lt;/span> &lt;span class="s2">&amp;#34;gpt-4&amp;#34;&lt;/span>&lt;span class="p">,&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="nt">&amp;#34;apiKey&amp;#34;&lt;/span>&lt;span class="p">:&lt;/span> &lt;span class="s2">&amp;#34;sk-your-openai-api-key&amp;#34;&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="p">}&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="p">],&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="nt">&amp;#34;tabAutocompleteModel&amp;#34;&lt;/span>&lt;span class="p">:&lt;/span> &lt;span class="p">{&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="nt">&amp;#34;title&amp;#34;&lt;/span>&lt;span class="p">:&lt;/span> &lt;span class="s2">&amp;#34;Starcoder 2&amp;#34;&lt;/span>&lt;span class="p">,&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="nt">&amp;#34;provider&amp;#34;&lt;/span>&lt;span class="p">:&lt;/span> &lt;span class="s2">&amp;#34;ollama&amp;#34;&lt;/span>&lt;span class="p">,&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="nt">&amp;#34;model&amp;#34;&lt;/span>&lt;span class="p">:&lt;/span> &lt;span class="s2">&amp;#34;starcoder2&amp;#34;&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="p">}&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="p">}&lt;/span>
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/td>&lt;/tr>&lt;/table>
&lt;/div>
&lt;/div>&lt;p>By configuring it this way, developers can instantly switch between &amp;ldquo;local models&amp;rdquo; and &amp;ldquo;cloud models&amp;rdquo; from a dropdown menu as needed to chat or autocomplete.&lt;/p>
&lt;hr>
&lt;h2 id="7-the-future-of-ai-assisted-development-the-rise-of-autonomous-agents">7. The Future of AI-Assisted Development: The Rise of Autonomous Agents
&lt;/h2>&lt;p>The current hybrid workflow is based on the paradigm of a &amp;ldquo;copilot,&amp;rdquo; where &amp;ldquo;humans give instructions to the AI.&amp;rdquo; However, it will evolve further in a few years into an era of &lt;strong>hierarchical autonomous AI agents&lt;/strong>. In this era, lightweight local models will constantly monitor the codebase and run tests in the background, autonomously calling massive cloud models to generate solutions only when they detect complex errors.&lt;/p>
&lt;p>At that time, the developer&amp;rsquo;s local PC will take on a strong role not just as a screen running an editor, but as the front line of inference engines (Edge AI). The fact that NVIDIA and Apple continue to augment the memory (VRAM / unified memory) of machines for developers is in anticipation of this future.&lt;/p>
&lt;hr>
&lt;h2 id="8-conclusion">8. Conclusion
&lt;/h2>&lt;p>It is not a binary choice between &amp;ldquo;Cloud&amp;rsquo;s GitHub Copilot&amp;rdquo; or &amp;ldquo;Local AI&amp;rdquo;; rather, a &lt;strong>hybrid workflow that understands the strengths of both and properly switches between them according to the nature of the task&lt;/strong> is the strongest development environment at present.&lt;/p>
&lt;ul>
&lt;li>&lt;strong>GitHub Copilot / Cloud API&lt;/strong>: Used for general development speed improvements, designing complex logic, and comprehensive analysis of the entire project.&lt;/li>
&lt;li>&lt;strong>Local AI (Ollama, LM Studio)&lt;/strong>: Used for processing highly confidential code, offline environments, ultra-fast inline completions eliminating network latency, and reducing API costs.&lt;/li>
&lt;/ul>
&lt;p>Please use the decision trees and architectures introduced in this article as a reference to take your IDE environment to the next level. By stepping up from just &amp;ldquo;using&amp;rdquo; AI to &amp;ldquo;combining and directing it in the right places,&amp;rdquo; your development efficiency will undoubtedly be boosted.&lt;/p>
&lt;p>Happy Coding with Hybrid AI!&lt;/p></description></item></channel></rss>