Kindle edition · Supplementary material
OpenCode with Local Models
Why Ollama Fails, How Much Context It Really Needs, and How to Keep Everything Off the Cloud
Here are the files that go with the book: scripts, configuration files and test material, as the chapters cite them. The download is free and asks for no personal information.
What is inside the ZIP
config/: Six opencode.json files (Ollama, Ollama with permissions, the everyday daily-v2 configuration, the unattended one for scripts and batches, Strata and the measured reference), a Modelfile with the larger context, and six PowerShell scripts: start Ollama, run OpenCode isolated (adding --standalone with OpenCode 2), read the log, watch the network, review the result table, and batch-run.ps1, which runs one task over many files and logs exit code, time, steps, tokens and tools to CSV.tools/: Four Python tools (3.10 or later): measure-proxy.py, a measuring proxy between OpenCode and Ollama that logs model, tools, tokens, tool calls, reasoning and times for every request; echo-server.py, a fake model server that saves every request and answers without a GPU; count-request.py, which counts system instructions, tools and messages in a saved request; and mcp_lab.py, a small test MCP server with a read-only tool and a simulated external action.tasks/: Three practice projects: invoice/ (a module with two bugs and six tests, four of which fail at the start), feature/ (a specification and two modules to complete, with eleven tests) and standups/ (three fictional stand-up notes for the batch chapter).skills/: extract-minutes-actions, the skill measured in the book, ready to copy to your project’s .opencode/skills/ folder.corpus/: The exact test file from the book, so you can repeat the test yourself: fictional meeting minutes and the expected output.
The ZIP also includes a README.md with the requirements and the order of use. Unzip it into a folder of your choice; the book says which folder it expects.
Free guides from this book
- OpenCode with Ollama not working: how to fix it on Windows
- OpenCode with a local model: tool calls run but the results are wrong
Readers of this book also use
- Ollama on Windows When It Breaks: GPU Not Used, 500 Errors, Cut-Off Context, Connection Failures and Empty Replies: Measured Causes, Tested Fixes and What Fits in 8, 12 or 16 GB See it on Amazon: Ollama on Windows When It Breaks (opens Amazon.com in a new tab)
- Which Local AI Model Fits Your GPU: How Much VRAM You Really Have, Which Models and Quantizations Fit, and What Speed to Expect with Ollama and LM Studio on Windows See it on Amazon: Which Local AI Model Fits Your GPU (opens Amazon.com in a new tab)
- Chat With Your PDFs Locally: Private AI with Ollama That Answers With File and Page Citations, Checks Its Own Quotes, and Keeps Your Documents Off the Cloud See it on Amazon: Chat With Your PDFs Locally (opens Amazon.com in a new tab)
- Local AI on Windows Without the Hype: Build a Private, Offline Document Assistant with Ollama, and Measure Its Speed, Quality and Network Traffic Before You Trust It See it on Amazon: Local AI on Windows Without the Hype (opens Amazon.com in a new tab)
For personal use, under the same license as the book. © 2026 Parra Capital LLC. BeautyThings is a trademark of Parra Capital LLC. Problems with a file? Write to [email protected].