# opencode 1.19.4: our test log

Canonical: https://theagenticweekly.com/tests/opencode · Last verified: 2026-10-25 · Published: 2026-10-25 · Author: Agentic Weekly (operated independently from Texas, US) · Evidence: Tested by us on 2026-10-25. Local open-weight model, not the vendor's hosted models. A smoke test on a CPU-only box, not a benchmark.

> opencode 1.19.4 edited calc.py on the second headless run with a local 3B model; the first run tried the wrong path (src/calc.py) and failed.

## Result at a glance

Table: opencode test record

| Field | Value |
|---|---|
| Result | Partly worked |
| Version tested | 1.19.4 |
| Date and time | 2026-10-25, 17:42 to 17:43 CDT (America/Chicago) |
| Task | In a throwaway folder, give the tool a small bug and ask a local model to fix it through the tool's own editing. calc.py contained `def add(a,b): return a-b`. Pass means the file ended as `return a+b` after the tool's own edit. |
| Model used | Qwen2.5-3B-Instruct (Q4_K_M) through Ollama 0.40.11 |
| Hardware | Linux x86_64 virtual machine (Debian 13), 8 vCPU (Intel Xeon, 1 thread per core), 15 GiB RAM, no GPU |
| Runs | 2 (first failed, second edited the file) |
| Version | 1.19.4 (npm opencode-ai) |

## What we found

- The run that stated the exact path worked; the vaguer first run guessed a wrong path and a wrong old string.
- The final file in the test folder reads `return a+b`.
- opencode kept its own session log and database, which is where the numbers and errors above come from.

## What we ran, step by step

Table: Commands run, wall-clock time and exit code

| Step | Wall time | Exit code | Notes |
|---|---|---|---|
| npm install (shared command, cold) | 15 s | 0 | One command installed four tools: added 12 packages in 15 s. This is the time for all four together, not for one tool. npm warned that three install scripts were not approved (including claude-code 2.1.197 and opencode-ai 1.19.4). |
| Run 1 | n/a | n/a | The edit tool was called on src/calc.py with oldString `return a*b`; error: "File /workspace/tests/proj-oc/src/calc.py not found". The model then replied "File not found. Please check the file path and try again." 6,453 then 6,494 tokens. |
| Run 2 (path stated) | n/a | n/a | The edit tool ran on calc.py: "Edit applied successfully." The diff shows `-    return a-b` and `+    return a+b`. |

Exact commands (paths shortened)

```
# npm install (shared command, cold)
npm i @anthropic-ai/claude-code @openai/codex @google/gemini-cli opencode-ai

# Run 1
opencode run "Fix the bug in calc.py so add returns a+b. Use your edit tool."  # custom provider ollama, model qwen2.5-3b

# Run 2 (path stated)
opencode run "The file calc.py is in the current directory (path: calc.py, there is no src folder). Its add function returns a-b. Use the edit tool to change it to return a+b."
```

## Raw output (excerpts)

Provider config used (a local Ollama model, nothing hosted)

```
{
  "provider": {
    "ollama": {
      "npm": "@ai-sdk/openai-compatible",
      "name": "Ollama local",
      "options": { "baseURL": "http://127.0.0.1:11434/v1" },
      "models": { "qwen2.5-3b": { "name": "Qwen2.5 3B local", "tools": true } }
    }
  }
}
```

Run 1 edit error (from opencode's own session database)

```
tool: edit  status: error
input: {"oldString":"return a*b","newString":"return a+b","filePath":"src/calc.py"}
error: File /workspace/tests/proj-oc/src/calc.py not found
```

Run 2 edit result (from the session database)

```
tool: edit  status: completed
input: {"filePath":"calc.py","oldString":"return a-b","newString":"return a+b"}
output: Edit applied successfully.
```

## Gotchas and things that broke

- This tested the npm package opencode-ai 1.19.4, not a newer installer or package name the project's README may describe.

## What we did not test

- The README's v2 installer or @opencode/cli 2.x package, the desktop app and the Bun security fixes.
- Any hosted model.
- Reliability: two runs, so this is an existence proof, not a pass rate.

## Reproduce it

Versions change. These commands install whatever is latest on the day you run them unless a version is pinned, so expect different results later. The version we measured is in the table above.

```
npm i opencode-ai
# write opencode.json with the ollama provider shown above, create calc.py with `return a-b`, then:
opencode run "The file calc.py is in the current directory. Its add function returns a-b. Use the edit tool to change it to return a+b."
```

## How to read this test

Every number on this page was measured on this one machine, which also ran other jobs, so timings are indicative and vary run to run. A pass means our small task worked once or as stated, a fail means it did not work as we ran it; neither says how the tool behaves with a vendor's frontier model, on a GPU, or at scale. Where a tool could not run without an account or a GPU, we say so instead of guessing.

See the [testing rig](https://theagenticweekly.com/methodology#testing-rig) for the hardware, the local model and the rules we follow, and the [test hub](https://theagenticweekly.com/tests) for every other test.

## FAQ

### Can opencode edit files with a local model?

In our run it did on the second attempt, once the prompt stated the path. The first attempt used a wrong path and failed.

## Sources

- [opencode v1.19.4 release](https://github.com/anomalyco/opencode/releases/tag/v1.19.4) (fetched 2026-10-25)

## Related

- [All test logs](https://theagenticweekly.com/tests)
- [Methodology and testing rig](https://theagenticweekly.com/methodology#testing-rig)
- [Study: install size and first-task results across 16 frameworks](https://theagenticweekly.com/research/agent-framework-install-and-first-task)
- [opencode facts and sources](https://theagenticweekly.com/tools/opencode)

## How to cite

Agentic Weekly, "opencode 1.19.4: our test log", last updated 2026-10-25, https://theagenticweekly.com/tests/opencode
