Skip to content

Local Models in the Side Chat

An agent whose model runs on the same machine can be marked as a local model in the side chat, which then warns when the model and a training run share the GPU.

Field Value
ID AGT-04
Status Shipped
Scope Supporting
Pillar Agents and Automation
Sprint None
Depends On Side Chat (AGT-03)
Widget Agent (AGT-05)
Unblocks Context Compaction for Local Models (AGT-28)
Docs Side Chat, Local Models
Branches None
Design ACP integration, Local models in the side chat

Coverage Ledger

  • Branch sprint3-int-models, 0 commits that main lacks (232 ahead of the merge base). Work on the setup guide to the built settings and models, which reached main through a pull request (patch ids and subjects match).
  • design/acp-integration.md, under opencode. opencode as a detected agent, usable with a local model through Ollama.
  • design/acp-integration.md, under Local models in the side chat. The side chat runs any ACP agent on any model, local models included, with no Caliper code; opencode on Ollama is the worked example, with a Local model mark per agent.
  • design/acp-integration.md, under Local models in the side chat. A measured run of caliper-agent in its general role on the Ollama preset in the hidden app, 7 model requests in about 80 seconds.
  • design/acp-integration.md, under Local models in the side chat. Not verified: whether opencode passes a stdio MCP server's env as Caliper sends it, whether a small local model uses 35 tools well, and the whole path on Windows.
  • design/acp-integration.md, under The side chat as built. The Local model picker setting and the Shared GPU note in the header while a live session is attached.
  • design/acp-integration.md, under Decisions. Decisions of the side chat: version 1 first, declined capabilities, chat events through the client's queue, any agent on any model, four detected agents plus custom, one card per change, the chat starts the API visibly, the origin is the token's, and a per-agent local-model mark.
  • design/builder-overview.md, under What is built. The side chat on the spec and live pages, with a Local model marking and Shared GPU header.
  • design/builder-overview.md, under The integration order after sprint 2. Item 8: the side chat with four detected agents; the packaging of caliper-mcp with the app is moved to sprint 5.
  • design/builder-overview.md, under The integration order after sprint 2. Item 19: the GPU contention note, Shared GPU.
  • design/builder-overview.md, under Acceptance. Acceptance: drop Parquet and safetensors, build the dashboard four ways, save as a spec applet, open in the browser viewer, entropy from the side chat on a live stream, both roles on local models.
  • design/builder-overview.md, under Decisions. Cross-cutting decisions: everything built is data; text is the source of truth; one command table; two roles; Claude native API and others through OpenAI-compatible API; local models; keys; nothing bundled; loopback only.
  • design/byok-agent.md, under Ollama's own chat API and the context length. The Ollama preset uses Ollama's native chat API with a context length of 16,384 tokens for the widget role and 32,768 for the general role, no silent truncation and a context cache note.
  • design/byok-agent.md, under The manual check in the app. The manual check in the app with a real Claude key and with a local Ollama model, covering settings, probe, address warnings, Shared GPU and command-K.
  • design/widget-agent.md, under Presets. The Ollama and LM Studio presets use loopback addresses and need no key.
  • design/widget-agent.md, under GPU contention. The Shared GPU note appears in the widget agent's settings and prompt row while a live session is attached and the base URL is loopback, and in the side chat for a marked local agent.
  • design/windows-parity.md, under 9. The builder's agents. Local model servers: Ollama on Windows needs no preset change; opencode binaries exist; GPU contention note applies.
  • Side Chat, Local Models. Local models in the side chat warn when a model and a run share the GPU.
  • Widget Agent Setup. Set up the widget agent with a provider, a key, a model and a local model.
  • Pull request #18. Pull request 18 (merged) delivers the widget agent settings in the app, three more entry points for the widget agent prompt (a selection on a panel, a dropped file, a property), and the Shared GPU note.
  • Pull request #19. Pull request 19 (merged) delivers the build-a-dashboard walk-through on a real training run, local models for the widget agent and the side chat (Ollama preset, context lengths), launches that carry the caller's origin, unsaved-changes prompts, a live session that stays attached, and Open in browser.
  • Orchestrators' notes, _notes/HANDOFF-sprint3.md. The note on GPU contention while a live run is attached was deferred from pull request 1, then built as the Shared GPU note in the settings and on the prompt row, and later in the side chat.
  • Orchestrators' notes, _notes/HANDOFF-sprint3.md. The Ollama context fix: a translating transport to Ollama's native chat API with num_ctx and keep_alive, a warning in the settings for a large cache, and the user's allowed fallback alias for the demo only.
  • Orchestrators' notes, _notes/HANDOFF-sprint3.md. Side chat's Local model setting, the Shared GPU note in the chat and cmd-K on a source's properties were the three small items of sprint 3.
  • Orchestrators' notes, sprint3-integration/PR.md. The side chat runs the person's own ACP agent as a subprocess on its own login and hands it caliper-mcp; local models work through any ACP agent.
  • Orchestrators' notes, sprint3-integration/PR2.md. The Shared GPU note in the settings and on the prompt row.
  • Orchestrators' notes, sprint3-integration/PR3.md. The Ollama preset talks to Ollama's own chat API with context per role (16,384 for cmd-K, 32,768 for the side chat), keep_alive on every request, and caliper-agent can be the side chat's agent.
  • Orchestrators' notes, sprint3-integration/PR3.md. No silent truncation of the model context, a budget of six model requests for cmd-K, and a changed context length applies like other settings.
  • Orchestrators' notes, s3-chat/demo/readme-section.md. README section for step 4: the side chat with caliper-agent as the custom command on a local model through chat-agent.sh, with a 32,768 token context.

Roadmap Graph Feature in Graph