Terminal panel showing the environment variables for pointing Claude Code at Ollama and a results table for three local models on two coding tasks

Claude Code with a Local Ollama Model: Setup, and What a 12 GB GPU Can Do

Claude Code speaks the Anthropic API. Ollama now speaks it too. Point one at the other with three environment variables and Claude Code runs against a model on your own GPU. No API key, no per-token bill, and the prompts stay on your network. Whether it’s any good is a different question. I ran it against three models on an RTX 3060 with two small coding tasks each. One model did well at both. One was the best at one and the worst at the other. Treat what follows as a smoke test, not a benchmark, but the differences were big enough to matter. ...

November 6, 2026 · 8 min · Tom Cocking
Terminal window showing a curl request returning the Markdown version of a blog post, with sizes of 22,263 bytes for the HTML and 5,388 bytes for the Markdown

Serve Markdown and llms.txt from Hugo So AI Agents Can Read Your Posts

More of my reading now goes through a coding agent. I ask it to fetch a page, and it works from whatever it gets back. For a blog that’s a problem. A typical post is 22 to 50 KB of HTML, wrapped around 5 to 17 KB of content. The agent has to pull the content out of the wrapper first. So I made every post on this site available as plain Markdown at the same URL with index.md on the end, and added an llms.txt that lists them. Both are Hugo output formats, about twenty lines in total. This post has the config, both templates, the sizes I measured on the live site and the things that bit me. ...

October 30, 2026 · 6 min · Tom Cocking
Terminal showing a script reporting zero matches for a quote a subagent claimed was on a Google policy page

How to Check a Cheap Claude Code Subagent's Research Before You Believe It

I handed two Claude Code subagents a research job. Both ran on Haiku to keep the cost down, and both came back with tidy tables, exact quotes and source URLs. Then I opened the sources, and a fair amount of what they’d told me was wrong. This post is what I found, and the small script I now use before acting on anything a cheap subagent tells me. What I asked them I had a Claude Code session working through SEO and AdSense compliance on this blog, and I spun two background subagents off it with the model set to Haiku: ...

October 23, 2026 · 6 min · Tom Cocking