← Plugins

Live Chinese Commentary

lml2493installs

Translates and summarizes recent Paseo agent steps into plain Chinese in real time via any OpenAI-compatible API.

$ paseo plugin add lml249/live-zh
Live Chinese Commentary screenshot 1Live Chinese Commentary screenshot 2

What the plugin does

Live Chinese Commentary monitors non-background, unarchived Paseo agents across all workspaces on this daemon (such as Claude, Codex/GPT, Antigravity/Gemini, and DeepSeek) and uses a user-configured OpenAI-compatible Chat Completions API to translate and summarize recent execution steps into plain Simplified Chinese.

While server hooks track active non-background agents daemon-wide, the UI surfaces summaries for the currently open workspace in two places:

  • Composer pill: a compact status pill above the message input showing what the active agent is doing now.
  • Commentary panel: a dedicated side panel in the desktop Explorer or Workspace area, or a bottom sheet on mobile opened by tapping the composer pill.

How it works

  • Subscribes to agent turn, permission, archive, and close lifecycle events (agent.turn.before, agent.turn.after, agent.permission.before, agent.permission.after, agent.archive.after, and agent.close.after) for non-background agents across all workspaces on this daemon.
  • While an agent is running, polls its recent timeline at the configured interval and computes a SHA-1 fingerprint of the extracted digest. After a digest is successfully summarized, repeated polls with the same fingerprint are skipped; if a request fails, subsequent polls can retry.
  • Generates a complete end-of-turn summary when a turn finishes, and records summaries produced by end-of-turn and manual refresh runs in up to 5 in-memory history entries per agent.
  • Coalesces concurrent requests per agent automatically, prioritizing end-of-turn and manual refresh requests over periodic live updates.

Setup

  • Requires Paseo >= 0.16.0.
  • Requires an OpenAI-compatible Chat Completions API endpoint (Base URL, API key, and model name). For local services bound to localhost, 127.0.0.1, or [::1], the API key can be left empty.
  • Built-in presets are included for OpenCode Go, DeepSeek official API, and local oMLX / Ollama endpoints, along with a one-click connection test in the plugin settings screen.

Capabilities, settings, data access, permissions, and limitations

Capabilities and settings

  • Capabilities: live composer pill, commentary panel and mobile bottom sheet, permission and error alerts, up to 5 recent in-memory history summaries per agent (from end-of-turn and manual refreshes), one-click copy of the current summary, pause/resume toggle for live tracking, and Command Center entries to open the panel or settings.
  • Settings: global enable toggle, live follow toggle with polling interval options (4, 6, 10, or 15 seconds), automatic end-of-turn summary toggle, recent step count (5, 8, 12, or 16), skip mostly-Chinese conversations toggle (applies to automatic summaries—both live follow and automatic end-of-turn summaries—skipping them when recent assistant messages and reasoning text are mostly Chinese with no tool calls and no pending permission; manual refreshes are not skipped by this setting), disable deep thinking toggle (with automatic fallback if the endpoint rejects the parameter), and optional extra commentary style instructions.

Data access and network

  • Server hooks observe all non-background, unarchived agents across all workspaces on this Paseo daemon. Even if the client UI is currently viewing a different workspace, any running or finishing non-background agent will be summarized and sent to the configured endpoint whenever the plugin is enabled, configured, and not paused.
  • For each tracked agent, the plugin reads its status, pending permission details, and recent timeline digest. The digest includes user messages, assistant message excerpts, reasoning text, tool call arguments and truncated outputs, to-do items, errors, and notifications.
  • Each /chat/completions request body sends model, temperature, max_tokens, and messages (plus optional thinking: { type: "disabled" } when "Disable deep thinking" is enabled and supported by the endpoint). For agent summaries, messages includes the agent title, provider, current status, summary phase (live, turn_end, or manual), pending permission description (when present), the extracted timeline digest, and any custom commentary prompt configured by the user.
  • Clicking the connection test button in plugin settings sends only a fixed connectivity-check system prompt and a "ping" user message (with model, temperature, max_tokens, and optional thinking: { type: "disabled" }), without any agent timeline data.
  • Unless the Base URL points to a local loopback address (localhost, 127.0.0.1, or [::1]), this data leaves the local machine and is sent to the configured third-party model provider.
  • When the configured Base URL string contains opencode.ai (case-insensitive), requests include x-opencode-session (paseo-live-zh-<agentId> for agent summaries, or paseo-live-zh-connection-test for connection tests) and x-opencode-client: paseo-live-zh.
  • The API key is stored in Paseo host plugin settings and sent only in the Authorization: Bearer header to the configured endpoint. The plugin does not log the API key and redacts the configured API key as well as Bearer tokens from request/response error messages before throwing or logging errors.

Permissions and software installation

  • Does not read or write files in user workspaces.
  • Does not spawn local child processes.
  • Does not download or install any external software at runtime.

Limitations

  • Recent summaries (from end-of-turn and manual refreshes) are stored only in plugin process memory (up to 5 entries per agent) and are cleared when the plugin reloads or Paseo restarts.
  • Background agents and archived agents are not tracked.
  • Availability, latency, and rate limits depend on the configured API endpoint and account quota.

Related plugins

Browse all plugins →