Opencode - The Last Hope
I don’t like “vibe coding”. I prefer, and advocate, for Machine Learning versus A.I., as from my perspective, it’s more applicable and useful for the real-world. There is far too much LLM hype for my liking. It’s also in our face all the time. People have far too much faith in the output and humanity is slowly losing critical thinking it appears. For those reasons, I’ve been pretty minimal in my use until I came across the Opencode. My first dive down the rabbit hole.
I’ve only ever classified A.I. as a “tool in the toolbox”. This means I primarily use it for productivity but I want it to be a reflection of me. Not an independent entity running wild on tokens. Many of the subscription services are nice and convenient but it’s not part of my “vibe life”. There are individuals who use these tools for everything, like independent thinking is that elusive. I want to get in, do my computer work, and get back out.
I’ve spent the past three days with Opencode and unintentionally got deeper than I anticipated. It is the first abstracted tooling I’ve used where you can use any model as a coding agent in the CLI. Beyond that, you have a lot of customization and configuration with MCP, tooling and agentic workflow. These features got me excited in developing a true productivity tool that works for me. A few things I’ve tried with some success that I’m excited to continue with.
Local Agents
I have a gaming PC with NVIDIA graphics which Ollama supports out of the box. This enabled me to download a couple of local models in the range of 4 – 5 GB to experiment with. I implemented these in a few cases:
Brave Browser Leo AI allows you to use local agents. I setup llama3.2 for the browser and it works pretty well as it can take in the context of the open web page. I’m using it as my daily driver for searching the web now on my main machine and requires no subscription.
If you don’t need an agentic workflow, these models can be used in pipelines or linear workflows. If I want to be hands free, I’ll at times record audio. I’ve setup a Watchdog service on my local machine when audio files are created, it will convert audio to text using a local whisper model. That context will then be fed into into my local llama3.2 for templated summarizing of the working session. This requires no paid service and is fully contained to your system into my local llama3.2 for templated summarization of the working session. This requires no paid service and is fully contained to the local system.
These local agents I’ve noticed have really poor tool calling so I haven’t had much success in using them directly in Opencode. I’m hoping in the future this becomes better. I’ve seen a number of posts on improving the local model performance with Opencode but nothing I found worthy of implementing. However, if these sames models are ran with ollama run the context in and out works really well, which sets us up for the next section.
Customized MCP
In some applications, I want better numerical operations or advanced numerical operations that a LLM won’t excel at. This means implementing tooling that can be leveraged by the LLM. This is where the hybrid approach of local and cloud comes in. OpenAI and Claude are top notch when it comes to, tooling calls and this was the gap what I saw with the local agents.
What I find really interesting about Opencode is the ability to create local MCPs and this can be done in any language! The documentation includes a python example, but then this can be wrapped in the FastMCP and leveraged as a tool in Opencode session. Once I configured it, I saw the status healthy in my Opencode session. While using gpt model, I saw the customized tooling call through my MCP. My hybrid setup!
"learn-mcp": 9"type": "local",
"command":[
"uv",
"run",
"--directory",
"/home/<user>/.config/opencode/mcps",
"python","server.py"],
"enabled": true
9
This means you could build any type of MCP and run it locally. This is extremely exciting to me because now I’m not just passing a bunch of inferred tokens. I can be extremely specific and intentional on what is occuring behind the scenes. I mentioned above the local models worked well when just passing data in and getting it out. This could be wrapped in a MCP in the meantime for local tooling calls improving privacy and reducing token counts against online services. This kind of becomes endless which makes it really appealing.
Future Work
I’m going to keep running with this to see where I end up. There are a few things of particular interest I want to work towards, one being driver creation. These are often large PDF files you have to crawl through to create a driver in C/Rust/Zig. It’s not a trivial problem as you have to extract all this data from a PDF and then create something usable and repeatable.
Another one is a hardware debugging agent which takes logs from a micro controller and does diagnostics on it.