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.

Download the material (ZIP)

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

All free guides

Readers of this book also use

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].