Side Chat¶
The side chat is a pane where the person's own agent works over the Agent Client Protocol, with caliper-mcp handed to it, so it can read and edit the open spec with each change reviewed.
| Field | Value |
|---|---|
| ID | AGT-03 |
| Status | Shipped |
| Scope | Supporting |
| Pillar | Agents and Automation |
| Sprint | None |
| Depends On | MCP Server (AGT-02) |
| Unblocks | Local Models in the Side Chat (AGT-04)Permission Modes ( AGT-06)Cloud Agents End to End ( AGT-09)Ask in Chat ( AGT-18)ACP Version 2 ( AGT-22)Checks of an Agent's Own Spec Edits ( AGT-24)More ACP Features in the Side Chat ( AGT-25)ACP Agent Registry ( AGT-26)Side Chat on Every Page ( AGT-27)Builder Agents on Windows ( PLT-13) |
| Docs | Side Chat |
| Branches | None |
| Design | ACP integration |
Coverage Ledger¶
- Branch
sprint3, 0 commits that main lacks (82 ahead of the merge base). Work on the sprint 3 integration of the builder, side chat and widget agent, which reached main through a pull request (patch ids and subjects match). - Branch
sprint3-acp, 0 commits that main lacks (7 ahead of the merge base). Work on caliper-acp-harness, one headless ACP session, which reached main through a pull request (patch ids and subjects match). - Branch
sprint3-int-cards, 0 commits that main lacks (188 ahead of the merge base). Work on approval cards in the ACP integration, which reached main through a pull request (patch ids and subjects match). - Branch
sprint3-int-chat, 0 commits that main lacks (219 ahead of the merge base). Work on the side chat rows and approvals, which reached main through a pull request (patch ids and subjects match). - Branch
sprint3-integration-pre-rebase, 0 commits that main lacks (226 ahead of the merge base). Work on the sprint 3 integration before a rebase, which reached main through a pull request (patch ids and subjects match). - Branch
sprint3-roles, 0 commits that main lacks (73 ahead of the merge base). Work on naming the side chat and the widget agent, which reached main through a pull request (patch ids and subjects match). - design/acp-integration.md, under The protocol on 15 November 2026. Section heading for the facts about ACP read on 15 November 2026.
- design/acp-integration.md, under Versions. Caliper speaks ACP version 1 first and adds version 2 beside it once it is stable.
- design/acp-integration.md, under The methods a client needs. The methods a client needs in ACP: initialize, session/new, prompt, cancel and permission requests.
- design/acp-integration.md, under Session updates. The session update kinds the side chat reads.
- design/acp-integration.md, under MCP servers in session/new. How an MCP server is handed to an agent in session/new, which the side chat uses to give the agent caliper-mcp.
- design/acp-integration.md, under Tool calls, diffs and permission. Tool calls, diffs and permission requests of the protocol that the side chat shows as cards.
- design/acp-integration.md, under Transport. Transport of ACP: JSON lines over standard input and output.
- design/acp-integration.md, under The agents on 15 November 2026. Section heading for the four agents Caliper detects and their findings.
- design/acp-integration.md, under Claude Code. Claude Code through its ACP adapter as a detected agent of the side chat.
- design/acp-integration.md, under Codex. Codex through its ACP adapter as a detected agent of the side chat.
- design/acp-integration.md, under Gemini CLI. Gemini CLI, native ACP, as a detected agent of the side chat.
- design/acp-integration.md, under opencode. opencode as a detected agent, usable with a local model through Ollama.
- design/acp-integration.md, under What the findings mean for Caliper. Summary of what the four agents share and where they differ.
- design/acp-integration.md, under The design of the side chat. Section heading for the design of the side chat pane.
- design/acp-integration.md, under One client for both roles. One AcpClient drives both the person's own agent in the side chat and the widget agent's sidecar, with the key only in the environment.
- design/acp-integration.md, under Processes and threads. AcpClient runs one agent in its own process group with reader, writer and stderr threads, and chat events reach the UI through the client's queue.
- design/acp-integration.md, under Turns, permission prompts and spec diffs. Two kinds of approval show a change the same way: the agent's own permission requests as cards in the chat, and command approvals from the command layer.
- design/acp-integration.md, under Turns, permission prompts and spec diffs. A spec change is shown as a diff of the canonical TOML before it is applied; commands are preferred to file edits.
- design/acp-integration.md, under Approvals and diffs for every agent. One card for one change: caliper-agent reads review.status once per turn and asks through ACP only for what Caliper does not review itself.
- design/acp-integration.md, under Cancellation. Cancel sends session/cancel, withdraws open permission cards, and offers Restart after 10 seconds without an end.
- design/acp-integration.md, under Crashes and hangs. Crash and hang handling: exit status, STALLED after two minutes of silence, a FAULTS chip for bad messages, bounded limits and ordered shutdown.
- design/acp-integration.md, under The working folder and the declined capabilities. The agent starts in the workspace folder, and Caliper declines the file system, terminal, auth and elicitation capabilities.
- design/acp-integration.md, under Configuring an agent. Four detected agents by their own commands on PATH and a custom agent by command line, kept in the app's settings and never in a workspace.
- design/acp-integration.md, under The side chat as built. The side chat pane as built: states with header tags, a conversation with streamed text, thoughts, tool call rows, plans and permission cards, Login, No agent, input and agent picker.
- design/acp-integration.md, under The side chat as built. Consecutive calls of one command fold into one row with a count and outcome.
- design/acp-integration.md, under The side chat as built. The opening context asks the agent to use the Caliper tools and not to ask before a Caliper command; the agent starts with the first message.
- design/acp-integration.md, under The side chat as built. The environment of the agent's PATH comes from the app, and reading the login shell's environment for a Finder-launched app is not built.
- design/acp-integration.md, under The side chat as built. caliper-chat-shot and the stub agent for captures and tests.
- design/acp-integration.md, under The side chat in the app. The side chat on the spec page and live page with the Chat toggle, a viewport side bar column, and side-chat.json settings that never hold a key.
- design/acp-integration.md, under The side chat in the app. The side chat starts Caliper API on loopback when the app runs without --api, visibly, with a per-session agent token, and stops it when the agent ends unless Open in browser gave out a link.
- design/acp-integration.md, under The side chat in the app. Tests caliper_chat_pane and caliper_side_chat_app, including a mode walk-through.
- design/acp-integration.md, under The manual check with a real agent. The manual check is a user script with caliper-acp-harness for Claude Code, Codex, Gemini CLI and opencode; it was not run on this branch.
- design/acp-integration.md, under What is built and what waits. What is built: the subprocess helper, JSON-RPC peer, AcpClient, presets, harness, review of spec edits, approval cards and the side chat with its tests.
- design/acp-integration.md, under What is built and what waits. Waits: a warning when a workspace holds an opencode configuration.
- design/acp-integration.md, under What is built and what waits. Waits: the environment of a GUI app, since an app started from the Finder does not inherit the shell PATH.
- 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/acp-integration.md, under Risks. Risks: pace of adapter change, edits outside Caliper's control in permission-skipping modes, the folder not being a sandbox, server name clashes, adapter issues, workspace opencode configuration, and local model variation.
- design/acp-integration.md, under Risks. Planned mitigation: the side chat warns when the workspace holds opencode.json, opencode.jsonc or an .opencode folder.
- design/acp-integration.md, under Notes on the contracts. Notes: an agent's MCP call should wait for the user's answer with a time limit, and Codex also speaks ACP through an adapter.
- design/applet-builder.md, under What would need to change. 6. The agent: command layer over MCP first, then ACP, then a built-in agent only if needed.
- design/applet-builder.md, under How a session would feel. Five-step walk-through: ask, catalog search, spec and preview, adjust, save as an applet.
- design/applet-builder.md, under Agent integration. MCP, ACP and BYOK answer three questions; the builder needs MCP in every case.
- design/applet-builder.md, under The options. Comparison table: MCP only, ACP client in Caliper, built-in agent (BYOK).
- design/applet-builder.md, under How the ACP client would work. Caliper spawns the chosen agent, calls initialize and session/new with caliper mcp --connect <port>; the pane shows messages, tool calls and permission requests; the agent keeps its own login.
- design/applet-builder.md, under Caveats. Adapter maturity varies, MCP passing in session/new is uneven, the protocol is changing (v2), agents expect file and terminal access, MCP over ACP may remove the bridge.
- design/applet-builder.md, under Order. Order: MCP first, ACP second as the main in-app path, a built-in BYOK agent only if needed.
- design/applet-builder.md, under Open decisions. Which agents to support first through ACP: decided, Claude Code, Codex, Gemini CLI and opencode detected.
- design/builder-overview.md, under Builder overview. The map of the builder: drop data, make loaders, build visuals by hand, with the side chat, the widget agent or an outside agent; everything built is data.
- design/builder-overview.md, under The parts. Parts diagram and table: spec format, loaders, catalog, command layer, session, caliper-mcp, side chat, widget agent, caliper-agent.
- design/builder-overview.md, under The parts. The side chat and widget agent are two roles over one AcpClient, and Ask in chat hands a widget request to the side chat.
- design/builder-overview.md, under What is built. The ACP client drives a session against a stub agent; caliper-acp-harness runs one headless.
- 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 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/builder-pane.md, under The regions. With the side chat open in build mode, the chat keeps its column width and Properties takes 45 percent of the column above it.
- design/mcp-server.md, under The app's side chat. The side chat hands caliper-mcp to its agent in session/new with the agent origin and the session's own API file and token.
- design/roadmap.md, under Phase 3: agent-built panels. Drop data in, make loaders, build visuals by hand in a builder pane, with the side chat, the widget agent, or an outside agent over MCP; everything built is data.
- design/roadmap.md, under Phase 3: agent-built panels. The parts: command layer, loaders, catalog, spec format with seven primitives, spec applet kind, caliper-mcp, side chat, widget agent.
- design/widget-agent.md, under One journal, one history, one queue. Both roles reach the command layer through one queue, one journal under the agent origin with widget- groups, and one undo history.
- design/widget-agent.md, under How it stays an ACP agent. The widget agent is the same caliper-agent over the same AcpClient, with _meta.caliper.widget on session/new carrying the target, scope and preview, and session/close.
- Side Chat, Side Chat Access. The side chat opens on the spec page and the live page.
- Side Chat, Agents. The agents the side chat runs: Claude Code, Codex, Gemini CLI, opencode or any ACP agent.
- Widget Agent Startup, Agent Startup. What Caliper starts and hands to the agent.
- Side Chat, Pane. The side chat pane.
- Side Chat, Ask in Chat Action. Ask in chat hands a request from the inline prompt to the side chat.
- Side Chat. caliper-chat-shot is a development tool that draws the side chat with a stub agent and writes a PNG per state.
- Widget Agent, Side Chat Use. A widget session continues in the side chat.
- Agent Roles. Explains when to use the side chat and when the widget agent.
- Pull request #17. Pull request 17 (merged) delivers sprint 3: the builder libraries, spec format, loaders, catalog, command layer and session, caliper-mcp, the side chat, the widget agent, command endpoints of Caliper API, the spec runtime and applets, the builder pane, drag and drop, approval cards and the first slice of the browser spec page.
- 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. Pull request 1 of sprint 3 (the builder libraries, caliper-mcp, the side chat, the widget agent, the builder pane) was pushed as PR 17 and merged into main. - Orchestrators' notes,
_notes/HANDOFF-sprint3.md. Deferred review items for the chat: the life cycle of the API the chat starts, and a second app overwriting api.json. - Orchestrators' notes,
_notes/HANDOFF-sprint3.md. The walk-through examples/build_a_dashboard with six steps, a dry run per step and run_all.py, built by four builders on separate branches. - 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/PR3.md. The walk-through examples/build_a_dashboard with six steps and dry runs. - Orchestrators' notes,
sprint3-integration/PR3.md. The side chat's agent never falls back to api.json, and a permission card is labelled with the agent's own title. - Orchestrators' notes,
sprint3-integration/DEMO-BRIEF.md. The walk-through's six steps: stream a training run, drop files and build by hand, cmd-K on a local model, the side chat, an outside agent over caliper-mcp, and save, reopen and the browser. - 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.