/btw --explore (#158593) and its Desktop side chat (#158643) belong in a
third-party plugin, but the plugin API could not host them: a fork lease came
only from post_llm_call, no core tool could ever be named for a plugin fork,
and a running fork reported nothing until it settled. Three generic extension
points close that, reusing the existing ctx.fork_session machinery (cache-parity
fork, dispatch whitelist, auto-denied approvals, next-turn cancellation):
- Slash-command handlers that name a `side_question_token` keyword get a lease
on the calling session's live agent (classic CLI, gateway-owned local
sessions and messaging, TUI sidecar). Same lease rules as the turn token; it
does not replace that token. Only a handler that names it pays for the
capture.
- `plugins.entries.<id>.fork_tools` lets the user grant ONE plugin's forks
named core tools (read_file, search_files, terminal, ...). Pre-registry
names (delegate_task, memory, connectors, Tool Search bridges) stay refused;
FORK_SAFE_CORE_TOOLS stays empty. Forks now bind the non-interactive secret
capture so a granted skill tool can never pop the turn's secret prompt.
- `ctx.fork_session(..., on_tool=cb)` hears each allowed tool call as it
starts (display-redacted args), for live progress via post_message / edit or
emit_to_session.
Desktop needs no SDK change: a plugin docks its side chat as a `panes`
contribution with placement right and sends its slash command for follow-ups.