← 插件

Bot Chat

Cason Mo8次安装

Paseo 上的 bot 与群聊:全局管理员、私聊、本地记忆、定时任务、群任务和工具。

$ paseo plugin add casonmo/bot-chat
Bot Chat 截图 1Bot Chat 截图 2Bot Chat 截图 3

该插件的概览尚未翻译为你的语言,因此以英文显示。

Bot Chat: personal bots and group rooms for Paseo. Each bot has its own standing instructions, provider and model, memory, routines, skills and tools, and chats in its own background workspace. Group rooms sit above the bot list, and every room can hold several topics with independent agent sessions.

What a bot has

  • Identity and soul: a name, an avatar, a voice and the standing instructions it follows in every chat. Changing the model or thinking applies to existing chats on the same provider, including group topics; changing the provider applies to new chats.
  • Memory: a MEMORY.md the bot updates as it learns, topic files and a daily log of its chats. Settings show the 200-line/24 KB chat budget, protect edits against newer changes, and let you undo recorded changes.
  • Routines: prompts that run on a schedule, such as every weekday at 9:00, at a fixed interval, or when their webhook is called from this computer. Results can be collected in one chat. Inspect run history, run a routine now or stop an active run from settings, or ask the bot to do it.
  • Teams: bots grouped under a Chief of Staff who takes your requests and hands parts of the work to the others.
  • Group rooms: several bots in one timeline, with topics, @ mentions, per-bot approvals, per-turn process folding, attachments and per-bot stop. A message sent while bots are working queues for the busy bots while idle bots process it immediately; each queued message can be steered independently into the busy bot's current turn. A member that hands work to another member with ask_bot gets a completion update when that turn finishes; if the requester is busy, the update waits until it is idle.
  • Room tasks: a room-level ledger with todo, doing, review, done and blocked states. Each task names one bot and opens its own task topic with only that assignee; the room header shows the open count, and bots can create tasks or report status and notes with their task tools. A task created by a bot gets its topic the next time the room is opened.
  • Global admin: the first run creates a pinned AdminBot. It receives the full bot, team and room roster in its prompt, can propose changes to anything, and cannot be deleted or archived. Its card always resumes the latest chat; its chevron lists the admin's chats, and its 3-dot menu starts a new chat or opens its settings. Rename it or hide it from the sidebar if needed.
  • Skills and tools: one library of skills and MCP servers, switched on per bot. Skills can be imported from GitHub and MCP servers from Claude Code, Claude Desktop or Cursor. Send /learn after a task and the bot writes up what worked as a skill.
  • Connected apps: Gmail, Slack, Notion and other apps from Composio's catalog, with several named accounts per app and per-bot limits on which tools a bot may use.
  • Paseo tools: bots can start other agents, open workspaces and terminals, set up schedules and use the browser.
  • Interactive chat: editable drafts, confirmation cards, choices and forms return answers to the original chat. Unsent drafts persist per device across chats, rooms and plugin switches, with a synchronous web mirror for surfaces that unload before the device-settings save lands. While a bot is working, new messages queue in the host's plugin data, so every connected device sees the same queue; each queued message has a Steer action that adds only that message to the current turn, and Stop cancels the turn. Message blocks keep your messages on the right with a fixed pixel person avatar, and bot replies on the left with the bot's avatar beside them; quote and save actions sit outside the block. A sent message appears at once, then is replaced by the daemon's timeline entry when that arrives; steered messages stay visible even when the daemon injects them without a timeline row. Each reply's thinking and tool steps fold into one expandable process row (folded by default, configurable in Bot Chat settings), search results show source cards, and handoff cards show another bot's progress. A handoff from inside a room runs in that room's topic and never opens a private chat for a member; only work handed to a bot outside the room opens a private delegation chat, which stays out of that bot's chat list. Quoted messages show as a compact block above the reply and can be saved for later in private chats and rooms.
  • Status colors share one vocabulary across the sidebar, team map, task ledger and routine cards: blue = working or in progress, green = done, ready to review or connected, amber = waiting for the user, red = failed or blocked, grey = idle, paused or stopped.
  • Language: the whole surface follows Paseo's app language, with English and Chinese (zh, zh-CN) resources; other locales fall back to English.
  • Avatars: built-in offline 32×32 pixel animals for bots (12 species, seed-derived expression and accessory variants) and pixel crests for teams, so the two never read as the same kind of mark. Customize the seed, palette and shape, use an image URL, or upload a picture on web clients. No image service or API key is needed.
  • Navigation: one Bots entry in Paseo's sidebar, with search and pinned bots inside the Bots list. Clicking a bot opens its latest chat and clicking a room opens its latest topic; the chevron expands the full chat or topic list. The Bots header has New bot and list options (Manage routines, display preferences); the footer switches teams, imports or exports a team file, and opens Skills & Tools and Bot Chat settings.
  • Unread: the Bots sidebar entry shows how many bot chats and group topics have a reply you haven't opened. Opening a chat or topic marks it read; permission requests and errors count too, and turn the badge red. A blue ring on a bot or room avatar, or a blue dot on a topic, marks an agent that is working. Paseo's Bot Chat sidebar entry shows a blue ring while any chat is working and a green dot when a reply is ready.

Architecture

  • shared/ holds pure schemas and domain logic: bot, room, routine, queue and proposal rules, text/time helpers, and the two offline image generators. It has no React and no Paseo API.
  • server/ owns the plugin RPC surface, MCP tools, scheduler, relay, memory and legacy import. Settings are read-only here; writes go through the client settings document.
  • client/ is the React Native surface. Paseo's SDK supplies Markdown, settings cards and navigation primitives; the plugin does not carry its own Markdown parser.
  • client/sidebar/ holds the bot, chat, room and status rows; client/bots/ holds the surface's navigation, drafts, room actions, bot actions and menus. BotSidebar and BotsSurface stay as composition roots instead of owning every row and action.
  • client/chat/ shares the composer primitives: useAttachmentUpload reads, classifies and uploads files once; host-queue mirrors the in-memory chat and room queues through the plugin's host data so all devices share them; useQueueDrain sends one queued message at a time and requeues failures.
  • Chat text is rendered by Paseo. shared/text.ts only strips standalone --- rules and caps very long messages before rendering.
  • Bot faces and team marks have one implementation each: shared/animal-avatar.ts and shared/team-emblem.ts. The old pixel/modern/orbital and team-logo engines were removed.

Setup

Requires Paseo 0.18.2 or newer. Bots run on the agent providers already set up on the host, such as Claude Code or Codex. Scheduled routines run while the daemon is running, even when the app is closed, and support explicit time zones.

For connected apps, open Skills & Tools in the Bots screen and sign in to Composio in your browser. Bots uses your personal Composio project and its app connections. Credentials stay on the Paseo host: bots reach Composio through a local relay that only allows the apps and tools you switched on for each bot.

Remote MCP servers support browser OAuth sign-in, automatic token refresh and optional pre-registered client credentials. Choose OAuth in the server's Authentication setting, then Connect. Credentials stay on this host; Disconnect removes them and blocks the connection. A full callback URL can finish sign-in when the browser is on another device.

Data and permissions

Bot settings, memory, logs, skills and MCP server definitions are stored on the Paseo host. A bot's instructions, memory, prompts and tool results go to the agent provider it runs on, and app tool calls go to Composio. A bot can create, edit and delete bots, teams, routines, skills and MCP servers once you apply the changes it proposes. Shell commands you have allowed for a bot run again in the same folder without asking.

Built-in avatars are generated locally.

Bot Chat data and network

  • Bot definitions and UI state: ~/.paseo/plugin-settings/paseo-bot-chat.
  • Unread read markers are part of that host settings document.
  • Bot folders, memory, skills and uploads: ~/.paseo/plugin-data/paseo-bot-chat.
  • Room task ledger: ~/.paseo/plugin-data/paseo-bot-chat/group-tasks.json.
  • Queued private and room messages: ~/.paseo/plugin-data/paseo-bot-chat/chat-queues.json.
  • Legacy import reads ~/.paseo/plugin-settings/paseo-bots and ~/.paseo/plugin-data/paseo-bots once, on an explicit user action, and copies bot folders and skills into Bot Chat. The old installation is not modified.
  • Imports from GitHub skill URLs, MCP servers and Composio are the only network paths; credentials stay in the host stores and the browser sign-in flow. There is no telemetry and no hidden call to a Bot Chat service.
  • Group topics are Paseo background agents. Their labels are paseo-bot-team.bot and paseo-bot-team.group; imported legacy chats keep their paseo-bots.* labels and are filtered from bot chat lists by label.