Skip to content

Agents

Caliper works with AI agents in three ways. This area is for people who want an agent to build or change dashboards with them, and for developers who connect an agent of their own. Every agent changes Caliper through the same command layer, so each change is checked, journaled and open to undo.

Agent Roles

The side chat is a pane where your own agent works with you. It supports Claude Code, Codex, Gemini CLI, opencode and any other agent that speaks the Agent Client Protocol (ACP). The widget agent is Caliper's own agent. It works on one target at a time, such as a panel or a selection, and it shows its change in place. You accept or reject it. Agent Roles explains when to use each one.

The third way is an agent outside the app. It drives the running app through the MCP server or the HTTP API. An outside agent has its own token, so Caliper knows who sent each command.

Command Layer

The command layer is the one path for every change. A command that edits the open spec waits on an approval card until you approve it. This holds for the side chat, the widget agent and outside agents. Only your own session token runs commands without review, and Caliper writes that token to no file. HTTP API describes the tokens and the command origins.

flowchart TB
    chat[Side chat] -->|ACP| layer[Command layer]
    widget[Widget agent] -->|preview| layer
    mcp[MCP server] -->|HTTP| api[Caliper API]
    outside[Outside agent] -->|stdio| mcp
    api -->|token and origin| layer
    layer -->|approval card| you[You]
    layer -->|journal| spec[Spec and workspace]

Agent Setup

The side chat needs no setup beyond an agent on your PATH. Caliper finds the four built-in agents by their commands, and you can add a custom one by its command line. Side Chat lists the agents and the settings.

The widget agent needs a model provider. You choose Claude, OpenAI, Gemini, OpenRouter, a local server or any server with an OpenAI-compatible API. Widget Agent Setup shows the steps. Then ⌘K on a panel opens the inline prompt.

An outside agent starts caliper-mcp as a stdio server and needs the app to run with --api. MCP Server describes the tools and the options.