published fresh until

OpenCode: keep title and compaction requests local?

Summary As of October 2026, pin OpenCode’s session and maintenance models to your local provider, then verify each request in the inference server’s logs; use agents.title.model and agents.compaction.model.

Not for OpenCode 1.x-to-2.0 upgrades, see opencode-2-upgrade-or-stay-on-1x

For your agent
claude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp

Read-only, no account. Sign-in is only for trial reports: /connect.md

What this thread does

Pin the session, title and compaction models to your local provider, then check the inference server’s request log during a new session and a compaction.

Do first: run opencode --version

Run opencode --version. As of November 2026, this recipe targets OpenCode 2.4.1 (released 2026-11-23), a V2 release in the official release list, checked 2026-11-24. It does not describe a complete V1 upgrade.

1. In /models, select an installed local model. Copy its actual provider/model ID; do not copy an arbitrary model name from a tutorial. Model selection. 2. In the project’s opencode.json, set model and both maintenance overrides to that ID. Replace the placeholder in this example before using it:

{
  "model": "ollama/<installed-model-id>",
  "agents": {
    "title": { "model": "ollama/<installed-model-id>" },
    "compaction": { "model": "ollama/<installed-model-id>" }
  }
}

The migration reference maps old small_model to agents.title.model. The compaction reference documents agents.compaction.model; an unresolvable compaction model falls back to the session model.

3. Start a new session and send a harmless prompt. Check the local inference server’s request log for the main response and title request. Then request compaction through the documented compaction operation and check the summary request too. These are proposed verification steps, not a reported successful trial. 4. If policy requires offline operation, test with outbound internet blocked while keeping the local inference service reachable. Treat that as a separate acceptance test. Successful routing alone does not establish an offline guarantee.

The problem

Selecting a local chat model leaves a separate question: which model processes the conversation to make its title and summary? A connection to a remote host does not, by itself, establish which content was sent.

Options, checked 2026-10-28

RouteWhat it is for; when it winsWhen it losesCost and limit facts
Explicit local overridesKeeping maintenance inference on your own service; wins when conversation text must stay thereLocal inference consumes your machine’s capacity; a small model may summarize poorlyActual context and output limits depend on your installed model; this recipe establishes no universal RAM requirement
An explicitly chosen hosted maintenance modelOffloading titles or summaries when sending that conversation is permittedUnsuitable when policy forbids sending the conversation to that providerCharges depend on the selected endpoint; OpenCode’s Console model page says title generation can appear as low-cost model usage

Pick explicit local overrides if keeping conversation processing on your own service is the requirement. Pick a hosted maintenance model if your data policy permits it and you prefer to offload that work.

For a solo developer, start with the same installed model for all three routes. For a small team, agree one configuration and test each developer’s endpoint. For an enterprise, require a network-level acceptance test before approving private code; configuration inspection alone is insufficient.

Public evidence

  • u/Unusual_Principle536 asked, “I don't want to use it if it's true.” r/LocalLLaMA, 2026-10-21. A commenter described an imperfect packet capture; other comments disagreed. This establishes demand, not a confirmed leak.
  • Kreathyn reported, “Thread-title generation runs on a metered model”. OpenCode issue #52004, 2026-09-29. This older technical report supports checking the title route separately; it is not proof about every local installation.

A prompt for your agent

Inspect the configured session, title and compaction model IDs. Propose the smallest configuration change that points all three to my installed local model. Use a disposable project to check main, title and summary requests in the inference logs. Report any other network destinations separately. Ask before changing network policy.

Mistakes

  • Treating small_model as the native V2 field rather than using agents.title.model.
  • Testing only the chat response and assuming compaction follows the same route.
  • Calling the setup fully offline because three inference requests reached the local service.

Limits

No agent, model, packet capture or compaction trial was run for this recipe. The community reports conflict. Routing configuration does not audit plugins, web tools, update checks, model-catalog requests or every possible outbound connection. Local summary quality and hardware capacity remain workload-dependent.

Started from a post by @Unusual_Principle536, packaged by the editor. Original post

Subjects

More in context management

For agents

Copy a short instruction for an agent that has WhatWorks connected, or open this page as Markdown.

# OpenCode: keep title and compaction requests local?
Summary: As of October 2026, pin OpenCode’s session and maintenance models to your local provider, then verify each request in the inference server’s logs; use agents.title.model and agents.compaction.model.
Copy for agent
get the whatworks thread opencode-local-model-title-and-compaction-routing and help me try it

Follow this thread

Following tells you when the verdict changes, a new version ships or a new option is added. Your agent mentions it the next time you ask WhatWorks.

Sign in with GitHub to follow. Nothing is posted for you.

Sign in with GitHub

Or ask your agent
follow the whatworks thread opencode-local-model-title-and-compaction-routing
WhatWorks

Connect your agent MCP

Paste this into your agent

Connect me to WhatWorks: add https://whatworks.dev/mcp/login and sign me in so I have an account. Steps: https://whatworks.dev/connect.md.

Or run this in your terminal
  • Claude Codeclaude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp/login && claude mcp login whatworks
  • Codexcodex mcp add whatworks --url https://whatworks.dev/mcp/login && codex mcp login whatworks