Repository navigation
Replies: 3 comments
|
Split out the other half of this into #3794: #3794 This thread is about the data bindings a side chat needs ( |
|
For Claude Code agents there is a shorter path than building this on |
|
Data point from building this as a plugin on 0.15.4, for Claude agents. It works today without new bindings: a composer pill with a popover, plus It answers from the full transcript, tool output included, also mid-turn, and the agent's session file is untouched. The catch is cost. The copy is a separate process with its own tool list and system prompt, so it can't read the agent's prompt cache, and the first question writes the whole conversation into a new cache. Claude Code's debug log on a 54k-token session: So the binding that would close the gap is the one suggested above: the daemon calling |
Uh oh!
There was an error while loading. Please reload this page.
What I'm trying to do
While an agent is mid-implementation, I want to ask a question about what it is doing — "why this API instead of the existing helper?", "what does this file do?" — get an answer that already knows the conversation, and have the main turn keep running and never see my question.
Codex has this as
/side/ Open Side Chat. Coming from the CLI it is the one interaction I keep reaching for in Paseo and not finding, and I'd rather build it as a plugin than ask for it in core.How I do it today
Three options, all worse than the question deserves:
The 0.5.0 primitives are genuinely close — Side panel with independent tabs, browser-style New tabs, mid-run fork, active-turn steering. What's missing is the one-keystroke path that combines them.
Where Paseo gets in the way
I went looking at whether the 0.5.0 plugin SDK can express this, since that seemed like the right home for it. It almost can. What blocks it is three daemon RPCs that already exist and ship in every build, but are not bound to the plugin-facing
PaseoApi.Evidence, all at
4f79618(main, 0.5.1):1.
agent.fork_contextis not onPaseoApi.This RPC returns the forked conversation as a single
TextAttachmentup to a boundary cursor — exactly the context a side chat needs, and what #2638 already uses.packages/protocol/src/messages.ts:1753-1759—agent.fork_context.request(agentId,boundaryCursor,boundaryMessageId)packages/protocol/src/messages.ts:4402-4413— response withattachment,itemCount,boundaryMessageIdpackages/client/src/daemon-client.ts:2997—DaemonClient.buildAgentForkContext()packages/client/src/index.ts:357-362—PaseoApiexposesworkspaces,agents,providers,config; no fork contextA plugin cannot reach around this: imports are restricted to the SDK specifiers (
packages/server/src/server/plugins/plugin-sdk-specifiers.ts:8-13), and the compiler'sexternallist is those plus react/react-native/zod/react-query (packages/server/src/server/plugins/compiler.ts:307-318), so@getpaseo/clientdoes not resolve. The workaround is to pagetimeline.refetch()and rebuild the context by hand — a worse copy of something the daemon already does correctly.2. There is no way to follow a turn the app isn't looking at.
agent_streamis delivered only for agents the connection subscribed to:packages/server/src/server/session.ts:1197-1203— selective delivery gatepackages/app/src/runtime/host-runtime.ts:482— the app advertisesselectiveAgentTimeline: truepackages/client/src/daemon-client.ts:2969—setAgentTimelineSubscription()exists, but is not onPaseoApiA plugin surface borrows the app's connection, so
agents.ref(id).timeline.subscribe()receives nothing for an agent the user isn't viewing — which is precisely the side chat. Plugin RPC is request/response only (packages/plugin/src/contracts.ts:180-187), so there is no push channel from the server contribution either. The only shape left is polling, and a chat that polls doesn't feel like a chat.3. A workspace panel can't tell which agent the user is looking at.
packages/plugin/src/client-state.tsx:6-10— client state reads by id only:getWorkspace(id),getAgent(id)packages/protocol/src/messages.ts:909-916—AgentDirectoryFilterSchemahaslabels,projectKeys,statuses,includeArchived,requiresAttention,thinkingOptionId— noworkspaceIdpackages/app/src/workspace-tabs/launcher/index.tsx:161—if (panel.context !== "workspace") continue;That last line is the bind. Only
context: "workspace"panels appear in the pane+menu and the empty Side panel launcher (packages/app/src/panels/new-tab-panel.tsx:122-125), and those panels receive onlyworkspaceId(packages/plugin/src/contracts.ts:72-81). An agent-context panel knows its agent but can only be opened from the Command Center. So a side chat that is reachable where you'd actually reach for it has to list every agent, filter byworkspaceIdclient-side, and guess the right one fromupdated_at. On a workspace with two agents it guesses wrong.For what it's worth, the parts that do work are clean:
agents.create({ parent, autoArchive })gives exactly the right lifecycle.parentmakes it a non-root agent, so it opens no tab (packages/app/src/subagents/workspace-root-policy.ts:10-16,packages/app/src/workspace-tabs/agent-visibility.ts:44-48), andautoArchiveretires it on terminal state (packages/server/src/server/agent/create-agent-lifecycle-dispatch.ts:76-89). The plumbing for ephemeral side conversations is already there.What the flow would look like
From a running agent: one action — Command Center item, or a row in the Side panel's empty launcher — opens a side chat beside the work. It starts already knowing the conversation up to that point. I ask, the answer streams in, the main turn never notices, and closing the panel retires it. Nothing about my question survives in the main transcript.
Concretely, three bindings of RPCs that already exist would let a plugin do all of that:
agents.ref(id).forkContext({ boundaryCursor })→buildAgentForkContextagents.ref(id).timeline.watch()→setAgentTimelineSubscription+ the existing streamfocusedAgentIdon workspace panel props, or letcontext: "agent"panels appear in the launcherNo new daemon behaviour, no new product surface, no opinion in core about what a side chat should be. It would also unblock a category wider than this one workflow — anything that wants to read a conversation and act alongside it: review passes, doc lookups, "explain this diff" panels.
Prior discussion
#2056 asked for
/btwas a core feature and was closed with a pointer here, correctly — it was framed as "build X". Nobody opened the discussion, so it's been dormant since July. I'm following through on it, but deliberately narrower: I'm not asking for side chat in core. I'm asking for the three bindings so it can be built as a plugin, and I'm happy to be the one who builds it.Happy to send the SDK-binding PRs if the direction is something you'd take. And if any of the above is wrong, say so — it's static reading of the source at
4f79618, not a runtime experiment.All reactions