Pi vs OpenCode vs Hermes on the same local model

Same Mac, same Gemma 4 31B, same four files. One agent took 22 minutes, one drew five rectangles, and one printed nothing until it was done.

0:00

This is Pi vs OpenCode vs Hermes on the same local model. We pointed all three at Gemma 4 31B on one Mac, gave them one brief, and ran each once. The model was the same, the files were the same, and the results were not.

Pi vs OpenCode vs Hermes: does the agent matter on the same local model?

It did here. The brief was to think of a picture for an article and draw it as SVG. All three reached the same kind of idea. They differed in how long they took, how much they drew and how well the drawing held together.

Agent Time Shapes Lines Script size
Pi 22 min 04 s 11 6 1387 bytes
OpenCode 15 min 13 s 5 0 727 bytes
Hermes 15 min 55 s 9 2 962 bytes

Which was fastest: Pi, OpenCode or Hermes?

OpenCode, at 15 min 13 s, with Hermes 42 seconds behind. Pi took 22 min 04 s. The quickest run was also the one that wrote the least: OpenCode’s script is 727 bytes, about half the size of Pi’s. Time here tracks how much the agent chose to do, not how fast the model writes, which was the same for all three.

Which made the best drawing?

Hermes. Its picture, a tall sheet of paper with scissors cutting across the top, was the only one that could be read at a glance. Pi drew more parts than anyone and stacked them on top of each other. OpenCode drew five rectangles. None was fit to publish, and the pictures are described in our account of the drawing test.

What went wrong in each run?

OpenCode’s first attempt to save its script failed: it called its file tool with the wrong name for the path, got an error, and saved the file correctly on the second try. In doing so it also changed the drawing, moving one strip of paper 95 units down. It then ran the script once and stopped, skipping the step that asked it to check its own work.

Hermes in one shot mode prints nothing until it has finished, so for 15 min 55 s there was no sign of life. It also has two ways to run code, and one of them, as ours is set up, waits for a person to approve it. We told it to use the other.

Pi ran without incident. In its print mode it shows only the final reply, so we cannot say which steps it took to get there.

Why would three agents get different results from one model?

Each wraps the model in its own instructions and its own tools. The model reads those before it reads the task, and they shape what it does. We ran Pi with its skills and context files switched off. OpenCode loaded its usual instructions, which we could not switch off from the command line, and Hermes ran with its own. So the three runs were not identical in everything but name, and part of the difference will come from that.

Which one should you use with a local model?

One run each does not settle it. On this task Hermes gave the best result and OpenCode the quickest, and Pi was the easiest to run cleanly. If the work matters, run your own task through all three, which takes one command each: see how to run one prompt through Pi, OpenCode and Hermes.

How many times did each agent call the model?

We counted the requests each run made to LM Studio’s server and how large they were.

Agent Calls to the model First large request Largest request
Pi 10 1,663 tokens 10,243 tokens
OpenCode 8 31,034 tokens 34,666 tokens
Hermes 8 24,388 tokens 30,030 tokens

Pi made the most calls and sent by far the least each time. OpenCode and Hermes made eight calls each, and every one carried tens of thousands of tokens of the agent’s own instructions and tool descriptions. That is the clearest difference between the three, and it does not show in what they drew. Other programs on this Mac use the same server, so the counts are close, not exact.

Why was the lightest agent the slowest?

Because it did more. Pi’s requests were small, but it made ten of them and wrote the longest script, 1,387 bytes against 727 and 962. The model writes at the same speed whoever is asking, about 11.7 tokens a second, so time follows the number of steps and the amount written. A light agent that takes more steps can still be the slow one.

What does a heavy agent cost on a local model?

Reading time, mostly. Our model reads at about 82 tokens a second. A first request of 31,034 tokens, as OpenCode sent, is about 6 minutes of reading before anything is written. Pi’s 1,663 tokens is about 20 seconds. The server keeps what it has read, so later calls do not pay the full price again. On a hosted model none of this is visible. On your own machine it is a large share of the wait.

Does a different local model change the result?

It changed everything, though not in a way that ranks the agents. We ran the same brief with Qwen 3.8 27B and got no drawing from any of them. Pi ran for 17 min 41 s and OpenCode for 25 min 33 s. Each ended on one turn of 8,192 tokens, the most the agent allows, with no file written. In a separate check, the same model spent a whole 1,200 token allowance thinking and answered nothing, so the likely cause is that it was still thinking when the agents cut it off. Hermes failed for a reason of our own making: a second copy of the model had loaded at too small a context, and Hermes refused to start. That run says nothing about Qwen or Hermes.

Which agent handled failure best?

Hermes, by saying so. It stopped with a plain message naming the problem and the figure it needed. Pi and OpenCode ended their failed runs quietly and reported success. On Gemma, OpenCode also recovered well from its own mistake, a failed attempt to save a file, by trying again correctly. An agent that tells you why it stopped is worth more on a local model, where more can go wrong, than one that is a few minutes quicker.

What would make this comparison fairer?

More runs, first of all. Each agent ran once, and the order could change on a second try. The three should also carry the same instructions, or none. We switched Pi’s off and could not do that for OpenCode from the command line. And the task should be one that can be marked right or wrong, not a drawing judged by eye.

OpenCode has moved to a new major version since this test, and plugins written for version 1 no longer run: OpenCode 2.0 is out.

How we tested

A Mac with an M4 Pro chip and 48 GB of memory, on macOS 27.0.1. Gemma 4 31B QAT in LM Studio at a context window of 65,536 tokens. Pi 0.99.1, OpenCode 1.18.31 and Hermes 0.21.5, each run once on 4 October 2026 in its own folder holding the same four files. Time is the clock time from starting the command to its exit. Shapes and lines are counted from the script each agent wrote.

Sources

  1. Google's Gemma 4 31B QAT model card
  2. Pi coding agent package page
Cite this page

Hill. "Pi vs OpenCode vs Hermes on the same local model". Onticpost, published 4 October 2026, updated 24 October 2026. https://onticpost.com/pi-vs-opencode-vs-hermes-same-local-model/

Updated 24 October 2026. This address stays the same when the piece is updated.

Share this

Subscribe to our newsletter

Checked: what AI can do for your business, checked by humans. Free, every Friday. One email a week, leave any time.

Free, every Friday. We send a link to confirm first. Our privacy policy says what we keep.