Your lightweight open-source personal agent.
Python agent-frameworkai-agentai-agentschatbotchatopsdiscord-botllm-agentsllmslocal-llmmcpmodel-context-protocolmulti-agentopenai-compatibleopenclawpersonal-ai-assistantpythonself-hostedtelegram-bot-ai-assistantwebuiworkflow-automation
docs: refresh README with current WebUI feature gallery (#5684)
chengyongru7ed79fe309cc
diff --git a/README.md b/README.mdindex 244ee0fcf..599cd24df 100644--- a/README.md+++ b/README.md@@ -212,6 +212,8 @@ nanobotThis opens the native terminal client with the launch directory as its workspace. It shares saved conversations and the local gateway with the WebUI. The explicit `nanobot agent` form remains available for compatibility.- Type `/` to discover commands, `/sessions` to switch conversations, or `@` to mention an app, MCP server, or saved session.+- Paste clipboard images with `Ctrl+V` or `Alt+V`, and use `$` to complete skill references.+- Use `/diff` to inspect file changes, `/context` to inspect session context, or `/branch` to continue from a completed reply in a new session.- Press `Enter` to send. While nanobot is working, `Enter` sends now and `Tab` sends after the current response. Press `Shift+Enter` to add a newline (`Ctrl+J` works in terminals that cannot distinguish modified Enter keys).- Use `/detach` to leave the current task running, or start with `nanobot gateway --background` when nanobot should stay online after all local clients exit.@@ -254,10 +256,14 @@ Prefer your own infrastructure? Follow the [deployment guide](./docs/deployment.## ๐ WebUI-The WebUI ships **inside the published wheel** with no separate frontend build. It is the browser workbench for persistent topics, temporary chats, visible agent activity, workspace controls, Apps, Skills, Automations, and settings.+The WebUI ships **inside the published wheel** with no separate frontend build. It is the browser workbench for persistent topics, temporary chats, visible agent activity, workspace controls, Apps, Skills, Automations, and settings. Start it with `nanobot webui`.++The screenshots below use example conversations, illustrative token counts, and paused schedules.<p align="center">- <img src="images/nanobot_webui.png" alt="nanobot webui preview" width="900">+ <a href="./images/nanobot_webui-source.png">+ <img src="./images/nanobot_webui.png" alt="nanobot WebUI preview with model, project, Apps, Skills, and Automations controls" width="900">+ </a></p>Use it to:@@ -268,9 +274,51 @@ Use it to:- switch models and workspaces without leaving the conversation;- configure providers and chat channels, connect Apps, discover Skills, and manage Automations from one place.+### Keep related work side by side++Group up to four conversations and arrange them in columns, rows, a grid, or a main pane with supporting panes. Each topic keeps its own history. Select another topic from the `@` menu, or drag it into the composer, to let the agent read its context and coordinate work across sessions.++<p align="center">+ <img src="./images/nanobot-workbench.png" alt="Three conversations in one workbench: a release plan beside quick-start work and documentation review" width="900">+</p>++Choose a project, access mode, and model for each task. Attach documents or images, then send follow-ups immediately or queue them for the next response. [Explore topics and panes โ](./docs/webui.md#conversation-groups-and-panes)++### Inspect the work and its context++Expand agent activity to see reasoning, tool calls, and file changes. Switch **Settings โ Appearance โ File edit display** to **Diff** for inline patches. The composer's context indicator shows the current context size, input tokens by round, and cache reuse when the provider reports it.++<p align="center">+ <img src="./images/nanobot-context.png" alt="An expanded file-edit diff above the context usage chart, with input tokens and cache reuse shown across four rounds" width="900">+</p>++Context compaction also appears in the conversation timeline. [Explore activity and context โ](./docs/webui.md#activity-and-context-usage)++### Bring your tools into the conversation++Use Apps to connect MCP servers, enable Agent Plugins, and manage local CLI App adapters. Add a preset or a custom server, then attach an available tool with `@`. Skills provide reusable instructions; Settings holds model, voice, image, web, and chat-channel setup.++<p align="center">+ <img src="./images/nanobot-apps.png" alt="The Apps MCP catalog with integration presets and controls to add or import a custom MCP server" width="900">+</p>++[Explore Apps โ](./docs/webui.md#apps) ยท [Discover Skills โ](./docs/webui.md#skills) ยท [Connect chat apps โ](./docs/chat-apps.md)++### Let recurring work run on a schedule++Ask for an automation from the topic that should receive its results. Review the message, schedule, linked chat, and run history in Automations; pause or edit it as your needs change. Local triggers let a script start a saved task on demand.++<p align="center">+ <img src="./images/nanobot-automations.png" alt="The Automations view with example recurring tasks, a selected daily brief, its schedule, linked chat, and management controls" width="900">+</p>++Keep the gateway running for scheduled delivery. [Explore Automations โ](./docs/automations.md)++For a conversation that should stay out of saved topic history and long-term memory, use [Temporary chat](./docs/webui.md#temporary-chats) from the header. Temporary chats end when the connection closes and use the default workspace in Restricted mode.+See the [WebUI guide](./docs/webui.md) for LAN access, background operation, workspace controls, and the full feature tour. Working on the frontend itself? Use [`webui/README.md`](./webui/README.md).-## ๐๏ธ Architecture+## Architecture<p align="center"><img src="images/nanobot_arch.png" alt="nanobot architecture" width="800">@@ -278,7 +326,7 @@ See the [WebUI guide](./docs/webui.md) for LAN access, background operation, wor๐ nanobot stays lightweight by centering everything around a small agent loop: messages come in from chat apps, the LLM decides when tools are needed, and memory or skills are pulled in only as context instead of becoming a heavy orchestration layer. That keeps the core path readable and easy to extend, while still letting you add channels, tools, memory, and deployment options without turning the system into a monolith.-## ๐ Docs+## DocsBrowse the [repo docs](./docs/README.md) for the latest features and GitHub development version, or visit [nanobot.wiki](https://nanobot.wiki/docs/latest/getting-started/nanobot-overview) for the stable release documentation.@@ -311,11 +359,12 @@ The Agency Release turns nanobot from a durable workbench into an agent runtime## Recent Updates-- **2026-07-24** Guided first-run setup, inline subagents, and model switching from the composer.-- **2026-07-23** Grok OAuth with hosted X Search, live image settings, and clearer fallback models.-- **2026-07-22** Parallel Search, live configuration reloads, richer app discovery, and a smoother mobile WebUI.-- **2026-07-21** Codex fast mode, visible skill references, safer configuration saves, and sturdier task cleanup.-- **2026-07-20** Cleaner code blocks and copy actions, self-contained channels, and steadier QQ reconnects.+- **2026-09-05** ๐ง Visible context-compaction progress in the WebUI, terminal, and chat channels.+- **2026-09-04** ๐ WebUI context usage and cache reuse shown by conversation round.+- **2026-08-29** ๐ฅ๏ธ `nanobot` opens the native terminal agent by default.+- **2026-08-27** ๐ Clipboard image attachments in the native terminal.+- **2026-08-19** ๐ Session mentions let agents read and message other saved conversations.+- **2026-08-12** ๐ฅ๏ธ A WebUI workbench with grouped conversation panes and adjustable layouts.For older updates, see the [release archive](./docs/release-archive.md) or [GitHub releases](https://github.com/HKUDS/nanobot/releases).diff --git a/docs/release-archive.md b/docs/release-archive.mdindex d17a78acb..2caf7ec9d 100644--- a/docs/release-archive.md+++ b/docs/release-archive.md@@ -6,6 +6,50 @@ For tagged releases, see [GitHub Releases](https://github.com/HKUDS/nanobot/rele## Highlights+- **2026-09-07** ๐ WeCom media uploads use the SDK API; CI runs tests in parallel and skips unrelated jobs.+- **2026-09-06** ๐ Context-window usage in the terminal footer and consistent runtime notifications across clients.+- **2026-09-05** ๐ง Visible context-compaction progress in the WebUI, terminal, and chat channels.+- **2026-09-04** ๐ WebUI context usage and cache reuse shown by conversation round.+- **2026-09-03** ๐ Matrix SAS verification fixes, fallback handling for raised provider errors, and recovery from stale WebUI stream state after reconnects.+- **2026-09-02** ๐ง First-run model setup in the WebUI, improved preset creation and activation, and cleanup of unsaved pane sessions.+- **2026-09-01** ๐ Terminal drafts typed after submission are preserved; Dream avoids duplicate profile context and gateway listener checks handle platform differences.+- **2026-08-31** ๐ฌ Rich Telegram streaming previews, cumulative memory summaries, and simpler terminal headers.+- **2026-08-30** ๐ฌ Email fetches headers before message bodies, DingTalk drains inbound work on shutdown, and reasoning streams close on cancellation.+- **2026-08-29** ๐ฅ๏ธ The `nanobot` command opens the native terminal agent; OAuth model catalogs are discovered online, with Grok 4.6 subscription support.+- **2026-08-28** ๐ฅ๏ธ The full terminal UI remains available inside Herdr panes.+- **2026-08-27** ๐ Clipboard image attachments in the native terminal, smoother paged history, and a model-picker shortcut to settings.+- **2026-08-26** ๐ MCP readiness retries before turns, stable Codex prompt-cache routing, and detection of rapid same-size file rewrites.+- **2026-08-25** ๐งฐ Skill-reference completion in the terminal, document retrieval on demand, and waiting for shell sessions without repeated polling.+- **2026-08-24** ๐ Visible session activity and recovery controls in the terminal, preserved shell state after Ctrl+C, and ordered WebUI follow-ups.+- **2026-08-23** ๐ฅ๏ธ Named nanobot processes, separate WebUI answer and reasoning sections, and refreshed maintainer and contributor credits.+- **2026-08-22** ๐ฌ Unified WebUI turn activity, LaTeX rendered as Unicode in the terminal, and retirement of disabled Dream and heartbeat jobs.+- **2026-08-21** ๐ง DeepSeek V4 vision, terminal `/detach` to keep work running, and retries before switching to a fallback provider.+- **2026-08-20** ๐ฅ๏ธ New terminal chats use the launch workspace, exit prints a resume command, and standard SOCKS5 proxies are supported.+- **2026-08-19** ๐ Session mentions let agents read and message other saved conversations, with fixes for transcript retention and invalid compaction summaries.+- **2026-08-18** โก Faster terminal startup, refreshed expired gateway credentials, and recovery from stalled Telegram polling.+- **2026-08-17** ๐ฅ๏ธ Native terminal UI with a shared gateway, session navigation, slash commands, and queued follow-ups.+- **2026-08-16** ๐ OrcaRouter gateway support, atomic model-preset renames, and ordered WebUI mutation replay after reconnects.+- **2026-08-15** โฐ Cron persistence-failure recovery and replay guards, grouped-tab range selection, and clearer model-preset names.+- **2026-08-14** ๐๏ธ Dragging topics into and out of pane groups, a native workspace folder picker, and session-file concurrency fixes.+- **2026-08-13** ๐ DeepSeek V4 Pro Responses support, Gemini tool-history compatibility across model switches, and persisted Weixin QR-login credentials.+- **2026-08-12** ๐ฅ๏ธ A WebUI workbench with grouped conversation panes and adjustable layouts.+- **2026-08-11** ๐ฑ Mobile home-screen installation through PWA support, portable Agent Plugins, and visible MCP connection failures.+- **2026-08-10** ๐ Browser OAuth for remote MCP servers, forced Weixin QR-login fixes, and improved WebUI recovery states.+- **2026-08-09** ๐๏ธ WebUI guidance for voice input's HTTPS requirement and expanded user-path test coverage.+- **2026-08-08** โณ Temporary chats in the WebUI, with explicit expiry guidance and cleanup of session-owned shell processes.+- **2026-08-07** ๐๏ธ Responsive model-preset details, clearer preset deletion controls, and Weixin login and streaming fixes.+- **2026-08-06** ๐ Drag sessions into composer mentions, save sidebar ordering, and load the WebUI with a smaller initial payload.+- **2026-08-05** โ๏ธ Provider-native request switches, separate Mattermost thread/channel policies, and outbound WhatsApp media detection.+- **2026-08-04** ๐ Trusted-proxy authentication, public WebSocket URL configuration, and linked session references.+- **2026-08-03** ๐ Eden AI gateway support, faster saved-session loading, and fixes for IME input and local-trigger message display.+- **2026-08-01** ๐ DeepSeek Responses API support, Weixin recovery after session expiry, and explicit provider namespace handling.+- **2026-07-31** ๐ฌ Slack thread opener isolation, WebUI scroll-position preservation, and timezone data on all platforms.+- **2026-07-30** ๐งฉ Skills marketplace with SkillHub, remote Codex OAuth login, and preserved reasoning state for Responses providers.+- **2026-07-29** ๐ฌ WebUI message-delivery status, media references in memory consolidation, and UTF-8 input handling on PowerShell 5.+- **2026-07-28** ๐งฐ Actionable startup diagnostics and WebUI recovery, SDK host integration hooks, and improved streaming scroll behavior.+- **2026-07-27** ๐ง Dream model preset overrides and history-integrity fixes; DingTalk sender mentions and an option to disable private chats.+- **2026-07-26** ๐ฅ๏ธ Fresh desktop installs open the WebUI; channel tool hints are enabled by default, with mobile overflow and file-diff display fixes.+- **2026-07-25** ๐ Released [v0.3.0 โ The Agency Release](https://github.com/HKUDS/nanobot/releases/tag/v0.3.0), with guided WebUI setup, inline subagents, per-session model presets, and live configuration reloads.- **2026-07-24** ๐งญ Guided first-run setup, inline subagents, and model switching from the composer.- **2026-07-23** ๐ Grok OAuth with hosted X Search, live image settings, and clearer fallback models.- **2026-07-22** ๐ Parallel Search, live configuration reloads, richer app discovery, and a smoother mobile WebUI.@@ -35,6 +79,7 @@ For tagged releases, see [GitHub Releases](https://github.com/HKUDS/nanobot/rele- **2026-06-27** ๐ Collision-safe sessions, safer shells, Neonize WhatsApp.- **2026-06-25** ๐๏ธ Thinking controls, MiMo voice input, opt-in Telegram rich messages.- **2026-06-24** ๐ Kimi Coding and OpenCode, steadier reasoning and Anthropic tool calls.+- **2026-06-23** ๐ Added v0.2.2 release news and aligned release announcement dates.- **2026-06-22** ๐ Released **v0.2.2** โ **The Durability Release** makes nanobot sturdier for daily agent work: segmented WebUI transcripts, first-class Python SDK runtime controls, automation management, richer search/STT providers, and stronger gateway/session/provider reliability. Please see [release notes](https://github.com/HKUDS/nanobot/releases/tag/v0.2.2) for details.- **2026-06-21** ๐งฐ Python SDK runtime controls, optional Keenable key, cleaner run hooks.- **2026-06-20** ๐ฌ Telegram rich messages, safer SDK concurrency, smoother Quick Start.@@ -45,18 +90,19 @@ For tagged releases, see [GitHub Releases](https://github.com/HKUDS/nanobot/rele- **2026-06-15** ๐ฑ Mobile WebUI polish, optional file tools, real API usage.- **2026-06-14** ๐ผ๏ธ Themed cover, partner links, stronger Codex image streaming.- **2026-06-13** ๐๏ธ Session-bound automations, sturdier WhatsApp, faster WebUI startup.-- **2026-06-12** ๐ฌ Slack allowlisted channels can require mentions.- **2026-06-11** โ๏ธ Fenced-code message splitting.- **2026-06-10** ๐ Segmented transcripts, Exa/Bocha search, StepFun/SiliconFlow ASR.- **2026-06-09** ๐๏ธ Shared voice input, more STT providers, TeX and email polish.- **2026-06-08** ๐งฎ Token heatmap fix, safer MCP HTTP probing, docs cleanup.+- **2026-06-07** ๐ฌ WhatsApp recognizes group mentions that use LID identifiers.- **2026-06-06** ๐งฐ SDK MCP cleanup, removable OpenAI image defaults.- **2026-06-05** ๐ผ๏ธ Azure AAD, custom image providers, `/skill`, steadier pairing.- **2026-06-04** ๐ MCP reconnects, `uv pip` install fallback, QQ pairing.- **2026-06-03** ๐ง Hidden-history recovery, quieter email progress handling.- **2026-06-02** ๐ฌ Email attachments, Napcat QQ, Volcengine search, simpler Dream.- **2026-06-01** ๐ Released **v0.2.1** โ **The Workbench Release** turns the packaged WebUI into a daily agent workbench: clearer Thought/response timelines, live file-edit activity, project workspaces, model and context controls, steadier sustained goals, CLI Apps + MCP extensions, and broader provider/channel support. Please see [release notes](https://github.com/HKUDS/nanobot/releases/tag/v0.2.1) for details.+- **2026-05-31** โฐ Heartbeat skips empty or completed-only task lists; Matrix SAS verification and WebUI code-block language fallback fixes.- **2026-05-30** ๐ Safer Matrix verification, bounded media downloads, clearer WebUI model timeline.- **2026-05-29** ๐งฉ Extension registry, context-window tuning, document extraction controls.- **2026-05-28** ๐๏ธ Project workspaces, access controls, steadier goals and streaming.diff --git a/docs/webui.md b/docs/webui.mdindex 369791de6..745396949 100644--- a/docs/webui.md+++ b/docs/webui.md@@ -2,9 +2,14 @@<!-- Meta description: Run nanobot from a browser WebUI with persistent and temporary chats, visible tool activity, workspace controls, Apps, skill discovery, settings, and Automations. -->-The WebUI is nanobot's browser workbench for persistent topics, temporary-chats, visible agent activity, workspace controls, Apps, skill discovery,-settings, and Automations in one place.+The WebUI is nanobot's browser workbench for persistent topics, grouped+conversation panes, temporary chats, visible agent activity, workspace controls,+Apps, skill discovery, settings, and Automations in one place. It shares the+gateway and saved sessions with the native terminal client.++For a visual tour, see the [README feature gallery](../README.md#-webui).+This guide follows the current source tree; some features are newer than the+published release.The published `nanobot-ai` wheel already includes the WebUI bundle. You only needthe `webui/` source directory when you are changing the frontend itself.@@ -78,7 +83,9 @@ This path avoids hand-editing `config.json` for normal setup. Use the reference| Area | Use it for ||---|---|| Topics | Start persistent topics or temporary chats; switch, search, reorder, fork, or delete persistent topics |+| Conversation groups | Arrange up to four independent topics in one workbench with resizable panes || Agent activity | See thinking, tool calls, file edits with diffs, command output, and generated artifacts in context |+| Context usage | Inspect current context size, per-round token and cache usage, and compaction progress || Workspace | Pick the project workspace before asking for file or shell work || Access | Choose the access mode for local capabilities allowed by your gateway configuration || Composer | Send text, images, voice input, slash commands, and `@` mentions for topics, Apps, or MCP presets |@@ -99,19 +106,51 @@ Drag a topic within its current sidebar group to keep frequently used work inyour preferred order. Drag a topic from the sidebar into the composer when youwant to reference it in the next message instead of switching to it.-The message timeline shows both user-visible replies and agent activity. Long-tool or reasoning sections can be expanded when you need the details.+### Conversation groups and panes++Open a topic's sidebar action menu and choose **Create group** to turn it into+a conversation group. Use **Add pane** in the workbench header to start another+topic alongside it. A group holds up to four panes. To bring in an existing+topic, drag it onto the group or use **Move to** in its action menu.++Use **Pane layout** to choose columns, rows, a grid, BSP, or a main pane with a+stack. Drag a divider to resize panes. Each pane has its own conversation;+select one to direct the shared composer to that topic. Group membership and+layout persist across refreshes. Grouping topics does not merge their histories.++To bring another topic's work into a conversation, select it from the `@` menu+or drag it from the sidebar into the composer. The agent can read the selected+session and exchange messages with other saved sessions. See [Composer](#composer)+for the distinction between an attached reference and plain text.++### Activity and context usage++The message timeline shows replies and agent activity. Expand the **Worked for**+section to inspect the reasoning and tool activity for a completed turn.When the agent writes or edits files, the activity item shows the target path,-status, changed line counts, and, when available, a unified diff. Use **View-diff** to expand the change; large diffs may hide unchanged lines or truncate the-inline preview. Use **Open file** from a file edit to open the read-only file-preview panel.+status, and changed line counts. Choose **Settings โ Appearance โ File edit+display** to control the detail: **Summary** shows the change summary, **Diff**+shows available unified patches inline, and **Collapsed diff** lets you expand+them with **View diff**. Large diffs may hide unchanged lines or truncate the+inline preview. Select the filename in the activity row to open the read-only+file preview panel.File previews follow the active topic's access mode. Restricted workspace accesspreviews only files under the selected workspace. Full Access can preview filesoutside the workspace when that access mode is allowed by the gateway.+Open the context indicator beside the composer model badge to see how much of+the model's context window is in use. The **Recent rounds** chart shows input+tokens for each logical model round, including tool-call rounds. Hover or focus+a bar for input tokens, output tokens, generation time, and the KV cache hit+rate when reported. Provider usage may be estimated or unavailable; these+figures are not a billing statement.++When nanobot compacts context, the timeline shows its progress and outcome.+The compacted summary keeps earlier work available while recent messages remain+in context. See [Memory](./memory.md) for compaction and Dream consolidation.+## Temporary ChatsUse a temporary chat for a conversation that should not be added to nanobot'sdiff --git a/images/nanobot-apps.png b/images/nanobot-apps.pngnew file mode 100644index 000000000..c41b97557Binary files /dev/null and b/images/nanobot-apps.png differdiff --git a/images/nanobot-automations.png b/images/nanobot-automations.pngnew file mode 100644index 000000000..1e3f7f4e0Binary files /dev/null and b/images/nanobot-automations.png differdiff --git a/images/nanobot-context.png b/images/nanobot-context.pngnew file mode 100644index 000000000..1ff0b1725Binary files /dev/null and b/images/nanobot-context.png differdiff --git a/images/nanobot-workbench.png b/images/nanobot-workbench.pngnew file mode 100644index 000000000..69fff50f6Binary files /dev/null and b/images/nanobot-workbench.png differdiff --git a/images/nanobot_webui-source.png b/images/nanobot_webui-source.pngnew file mode 100644index 000000000..9ee721c3dBinary files /dev/null and b/images/nanobot_webui-source.png differdiff --git a/images/nanobot_webui.png b/images/nanobot_webui.pngindex 31ddf5bee..95cae46d4 100644Binary files a/images/nanobot_webui.png and b/images/nanobot_webui.png differ