AI Experiments Part 1: Trying Local Models with OpenCode and Continue
Version note: This experiment records the model identifiers, hardware, and tool behaviour observed in August 2026. Model builds and integrations can change after that test.
Running an AI model locally is easy. Making it useful while I write code is harder.
In August 2026, I wanted two things. First, an agent to inspect a repository and work through a task. Second, autocomplete in VS Code that did not need a cloud service. I first treated this as one model choice. That was the wrong way to think about it.
Agent work and autocomplete need different things.
One server, two jobs
Ollama is the shared layer in this setup. It runs on my workstation with an RTX 3090 and 24 GB of VRAM. It exposes the models to both OpenCode and Continue.
At the time of the test, I had three models installed. Their Ollama download sizes were:
qwen3.6:27b, a 27.8B dense model at 17 GBlaguna-xs-2.1:q4_K_M, a 33.4B mixture-of-experts model at 20 GBqwen2.5-coder:1.5b, a much smaller coding model at 986 MB
The two large models are for OpenCode. The small one is for Continue autocomplete.
OpenCode connects to Ollama through its OpenAI-compatible endpoint at http://localhost:11434/v1. For this experiment, I ran it in VS Code’s integrated terminal. It could inspect files, run commands, and make changes. Continue was installed separately as the inline completion extension.
I had previously written about using Codium. The editor changed, but the preference did not. Keep the editing surface familiar. Make new tools earn their place.
Trying the larger models in OpenCode
I gave Qwen3.6 and Laguna XS 2.1 the same task in OpenCode. I ran each against a throwaway clone. I asked it not to modify anything. I let it inspect the repository with tools.
The task was to explain how future posts are scheduled. It also required finding the next unused Sunday after the existing queue. The answer was not in one file. The model had to inspect post dates. It had to notice the weekly pattern. It had to read the GitHub Actions workflow. It had to check the current date.
I ran the test on 15 August, before adding this draft. The queue then ended on 22 November. The expected answer was Sunday, 29 November 2026.
Both models found that date.
Laguna took the better route. It read the deployment workflow. It checked the current date. It found the last queued post. It confirmed that the next Sunday was unused.
Qwen also reached the right date. It searched far more of the repository than it needed. It described posts scheduled after the test date as already published. It omitted the daily deployment workflow from its final answer.
Laguna was not perfect either. It correctly said that Hugo holds future-dated posts back. It later claimed a normal Hugo build includes them. The final date was right, but part of the explanation was not.
This was one prompt on one small repository. It was not a benchmark. It showed the part I care about. A correct final value can hide a factual mistake. I would not let either model make unattended changes because the last line looks right.
The context compromise
Both larger models support a 262,144-token context window. That sounds like enough to throw an entire repository at them.
The hardware makes that more complicated.
The model and its context cache have to share finite memory. A model supporting 262K tokens does not mean I can allocate that context comfortably on a 24 GB card.
During the test, ollama ps reported a 32K allocated context. That was enough for this task. It is below the 64K minimum in Ollama's OpenCode guide. Qwen also recommends more context for its full thinking capability.
That makes this a hardware-constrained experiment. It is not a fair test of either model at its intended context. It is the setup I can run. That matters more to me than a benchmark on hardware I do not own.
This is the less exciting part of local AI. Model size, quantisation, context, and tool support all have to fit together. ollama ps shows the loaded model. It shows its CPU/GPU split. It shows the allocated context. That tells me more about the real setup than the largest number on a model page.
Autocomplete is a different test
Autocomplete has a much tighter latency budget than agent work.
If I ask OpenCode to review a change, waiting a little is acceptable. If an inline suggestion arrives after I have typed the next line, it is unnecessary visual information.
That makes the 27B and 33B models the wrong tools for the job. Continue's local autocomplete recommendations include Qwen2.5-Coder at 1.5B and 7B. I started with the 1.5B version because it is small. It supports fill-in-the-middle completion.
The Continue configuration is deliberately narrow:
name: Local Autocomplete
version: 0.0.1
schema: v1
models:
- name: Qwen2.5-Coder 1.5B
provider: ollama
model: qwen2.5-coder:1.5b
roles:
- autocomplete
The model alone is not the whole autocomplete system. I tried passing an incomplete Python function and fill-in-the-middle markers through the normal ollama run chat path. Instead of filling the gap, it wrote a long explanation. It produced an invalid example that used glob without importing it.
That was not a Continue request, and that is the point. Continue supplies the completion template. It supplies editor context, debounce, caching, and response cleanup. Setting the model’s role to autocomplete stops me treating a general chat response as an inline suggestion.
The cold command took about three seconds. Roughly two seconds were spent loading the model. Once loaded, generation was fast. Keeping a small model warm matters more to autocomplete than asking a much larger model for a cleverer answer.
I have not used this setup across enough personal projects to judge its suggestion quality. For now, I have a local inline-completion configuration ready for further personal experiments. That is not yet a claim that it replaces every hosted autocomplete service.
The workflow in VS Code
The workflow I am testing is simple:
- Continue and Qwen2.5-Coder are responsible for local inline suggestions while I type.
- OpenCode and one of the larger models handle deliberate tasks in the integrated terminal.
- I review the diff and run the tests, regardless of which model produced the change.
There is some friction. Switching between the large models means unloading one and loading the other. Cold starts are noticeable. The 32K context also means I need to keep agent tasks bounded. I cannot pretend the model can understand everything at once.
The takeaway
One repository task was enough to expose mistakes. It was not enough to crown a winner.
I am keeping the split setup. OpenCode gives the larger models a place to inspect a repository and work through deliberate tasks. Continue gives the smaller model one focused job in VS Code. Ollama keeps the serving layer the same underneath both.
Every generated change still gets a diff review and tests. Running the model locally changes where the work happens. It does not make the answer trustworthy.