Coding offline with OpenCode, Ollama and Qwen3.5 9B
A Thomson Reuters principal engineer writes in Latent Space about running the OpenCode coding agent fully offline against Qwen3.5 9B served locally by Ollama. The walkthrough covers an opencode.json that enables only the local provider and blocks web tools…
Why it matters
It gives a reproducible recipe for a fully local coding agent, useful on flights, poor connections or data-sensitive projects.
What happened
1 min readA Thomson Reuters principal engineer writes in Latent Space about running the OpenCode coding agent fully offline against Qwen3.5 9B served locally by Ollama. The walkthrough covers an opencode.json that enables only the local provider and blocks web tools, starting Ollama with cloud features disabled, and fixing a small bug against existing unit tests. Benchmark figures are quoted from Qwen's model card and a preprint, not measured on the laptop.
Our analysis
Nothing here is new technology, but the guide is honest: it shows a 9B model's limits, such as proposing pytest for a unittest project, and does not hand-wave memory needs. The cited finding that OpenCode used roughly 40x Goose's tokens per solved task matters a lot when running locally with limited context. Don't expect this to replace cloud agents on large tasks; it suits small, test-driven fixes.