Skip to content

Commit 70d80e6

Browse files
author
linyuan.yang
committed
修改 doc
1 parent e2e991a commit 70d80e6

23 files changed

Lines changed: 166 additions & 94 deletions

‎packages/docs-site/guide/agenda.md‎

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,13 @@ An **Agenda Profile** is the store + optional auto-sync. Sidebar → **Agenda Pr
2525
| Field | Description |
2626
|-------|-------------|
2727
| Name | Display name for this profile |
28+
| Enabled | Pause the profile without deleting it |
2829
| Sync Model | Optional. The model that auto-syncs agenda items from the conversation after each turn (leave empty to disable sync) |
2930
| Sync Prompt | Optional. Prompt file controlling sync behavior (defaults to `agenda/sync/default.txt`) |
3031

3132
Then, in an agent → **Agenda** section, toggle Agenda on and pick the profile. Enabling it registers the agenda tools; with a sync model, items are reconciled from the conversation automatically each turn.
3233

33-
From the Agenda Profiles page → **View** you can browse stored items, filter by pending/done, manually **Complete** / **Cancel**, or fire a trigger manually for testing.
34+
From the Agenda Profiles page → **View** you can browse stored items, filter by pending/done, manually **Complete** / **Cancel**, add/edit/disable/reopen/delete triggers, fire a trigger manually for testing, and inspect each trigger's fire history.
3435

3536
## Agent Tools
3637

@@ -46,10 +47,10 @@ Once enabled, the agent gets these tools:
4647
| `agenda_trigger` | Fire / manage a trigger |
4748
| `agenda_wiki` | In-tool reference for edge cases (multi-trigger, dueAt vs trigger, action choice) |
4849

49-
## Agenda vs Heartbeat vs Scheduler
50+
## Agenda vs Heartbeat
5051

5152
| Need | Use |
5253
|------|-----|
5354
| Stateful todos / reminders / schedules, auto-synced from conversation | **Agenda** |
55+
| One-shot, interval, or cron triggers with delivery audit history | **Agenda** |
5456
| Run a fixed prompt every N seconds/minutes against an agent | [Heartbeat](./heartbeat) |
55-
| Low-level cron primitive the agent calls itself for a one-off | [Scheduler tool](./tools#scheduler) |

‎packages/docs-site/guide/agents.md‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,12 @@ Each dispatched sub-task can inherit context from the parent conversation (`none
2424

2525
Pick a multimodal model for mixed text + image content generation.
2626

27+
### ACP
28+
29+
Run an external Agent Client Protocol process as the agent. Presets are available for Claude Code, Codex, OpenCode, Cline, and Qwen Code; you can also provide a custom command, args, environment variables, session mode, and initialization timeout.
30+
31+
Use **Persistent** mode to keep the external process alive across turns, or **Transient** mode to close the session after each turn.
32+
2733
## Configuration
2834

2935
| Section | Purpose |
@@ -37,6 +43,7 @@ Pick a multimodal model for mixed text + image content generation.
3743
| Memory | Per-agent long-term memory via background MemoryLLM — see [Memory](./memory) |
3844
| Agenda | Per-agent reminders / schedules, optionally synced from the conversation — see [Agenda](./agenda) |
3945
| Heartbeat | Periodic self-activation — see [Heartbeat](./heartbeat) |
46+
| ACP command | External ACP process command, args, env, session mode, and init timeout for ACP agents |
4047

4148
## Pre-Built Agents
4249

‎packages/docs-site/guide/channels.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Select the channel type and fill in the credentials, then assign agent + saver +
88

99
| Type | Required fields |
1010
|------|----------------|
11-
| Lark / Feishu | App ID, App Secret |
11+
| Lark / Feishu | Deployment domain, App ID, App Secret |
1212
| Slack | Bot Token (`xoxb-...`), App Token (`xapp-...`) |
1313
| WeCom | Bot ID, Secret |
1414
| WeChat | QR code login (credentials auto-populated) |
@@ -57,7 +57,7 @@ Select the channel type and fill in the credentials, then assign agent + saver +
5757
:::
5858

5959
4. Under **Events & Callbacks**, set the subscription mode to **Long Connection**
60-
5. In Web UI → **Channels**, create a Lark channel and fill in **App ID** and **App Secret**
60+
5. In Web UI → **Channels**, create a Lark channel, choose the deployment domain, and fill in **App ID** and **App Secret**
6161

6262
Supports event deduplication, interactive cards, per-user context isolation, and file/image send and receive.
6363

‎packages/docs-site/guide/features.md‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,16 @@
66
- **Multiple LLM providers** — OpenAI, Anthropic Claude, Google Gemini, xAI Grok, Ollama, and any OpenAI-compatible API (Azure OpenAI, Groq, Mistral, DeepSeek, etc.); automatic retry with exponential backoff on transient failures
77
- **Multi-agent orchestration** — Single, ReAct (recursive task decomposition), and Generative (multimodal) modes; agents can be nested and composed
88
- **ACP agent support** — Agent Client Protocol integration with persistent and transient agent modes
9-
- **Knowledge base** — Built-in wiki with hybrid keyword + semantic search, referenced by agents during conversations
9+
- **Knowledge base** — Pluggable wiki data sources (local files, Google Drive, and third-party providers) with keyword + optional semantic search
1010
- **Long-term memory** — Vector-embedding semantic search for persistent context recall (OpenAI, Google, Ollama, Cohere, VoyageAI)
1111
- **Conversation compaction** — Automatic conversation summarization when token usage exceeds threshold, preserving continuity while reducing consumption
1212
- **Memory** — Per-agent automatic long-term memory: a background MemoryLLM extracts durable knowledge after each conversation idles; the agent reads it back via `search_memory` / `read_memory`, with consolidate/reconcile maintenance
1313
- **Agenda** — Conversation-driven reminders, schedules, and routines with absolute / interval / cron triggers; optionally synced from the conversation after every turn and delivered to any session or channel
1414
- **Heartbeat** — Configurable periodic self-activation lets agents run scheduled prompts proactively across any channel
1515
- **MCP tools** — Standard MCP protocol (stdio/SSE), connect to any MCP tool ecosystem; per-agent and global servers with auto-restart
1616
- **Multiple channels** — Web UI, CLI, Lark/Feishu, Slack, WeCom, WeChat, DingTalk, QQ (official bot), OneBot (QQ), XiaoAI, REST API, WebSocket
17-
- **Built-in tools** — Shell execution, file system, archive operations, media file read, Python/PowerShell inline execution, web fetch/download, cron scheduler, todo, ask
17+
- **Built-in tools** — Shell execution, file system, archive operations, media file read, Python/PowerShell inline execution, web fetch/download, sleep, session search, and cross-channel messaging
18+
- **Built-in MCP presets** — Playwright, Markitdown, and Exa can be enabled from the MCP tool list alongside custom MCP servers
1819
- **Skills** — Installable prompt modules with remote install from Clawhub, skills.sh, and skillhub.cn
1920
- **Agent Store** — Browse and install pre-packaged agents (model + prompt + tools + skills + MCP servers) from configurable sources
2021
- **Token usage tracking** — Per-model consumption statistics, model response caching with hit/miss metrics

‎packages/docs-site/guide/heartbeat.md‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,15 @@ Sidebar → **Heartbeats** → New
44

55
Heartbeat lets an agent wake itself up on a fixed interval and run a prompt without any user message — useful for monitoring, daily summaries, scheduled outreach, or any "check in periodically and do X" workflow.
66

7-
## When to Use Heartbeat vs Scheduler
7+
## When to Use Heartbeat vs Agenda
88

99
| Need | Use |
1010
|------|-----|
1111
| Run a fixed prompt every N seconds/minutes | **Heartbeat** |
12-
| Run on cron (e.g. weekdays at 9am) | [Scheduler tool](./tools#scheduler) |
13-
| One-off reminder | [Scheduler tool](./tools#scheduler) |
12+
| Track reminders, routines, or one-off tasks from conversation content | [Agenda](./agenda) |
13+
| Run on cron (e.g. weekdays at 9am) with item state and fire history | [Agenda](./agenda) |
1414

15-
Heartbeat is a higher-level loop attached to an agent + target; the Scheduler tool is a lower-level cron primitive the agent can call itself.
15+
Heartbeat is a fixed-interval loop attached to an agent + target. Agenda is the stateful scheduler for reminders, routines, and cron-style triggers.
1616

1717
## Configuration
1818

‎packages/docs-site/guide/mcp.md‎

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,23 +2,27 @@
22

33
Sidebar → **Tools** → New
44

5-
[Model Context Protocol (MCP)](https://modelcontextprotocol.io/) lets agents call external tools through a standard protocol. sbot supports both stdio and SSE transports, with global servers shared across all agents and per-agent overrides.
5+
[Model Context Protocol (MCP)](https://modelcontextprotocol.io/) lets agents call external tools through a standard protocol. sbot supports stdio, HTTP, and SSE transports, with built-in presets, global servers shared across agents, and per-agent servers.
66

77
## Adding a Server
88

99
- **stdio** — command + args (e.g. `npx -y some-mcp-package`); environment variables can be configured per server
10+
- **http** — remote MCP endpoint URL + optional headers
1011
- **sse** — remote URL + optional headers (for hosted MCP services)
1112

1213
## Configuration
1314

15+
- **Built-in presets** — Playwright, Markitdown, Exa, and local built-in tool groups are listed from the same MCP screen
1416
- **Global servers** — shared across every agent
15-
- **Per-agent overrides** — open an agent → MCP tab → enable specific servers
17+
- **Per-agent servers** — open an agent → MCP tab to enable global providers or add agent-only MCP servers
1618
- **Auto-restart** — failed stdio servers are automatically respawned
1719
- **Lazy start** — servers boot only when an agent that uses them runs
20+
- **Tool timeout** — override the per-call timeout for slow tools
21+
- **Prompt / Resource tools** — optionally expose MCP prompts and resources through generated helper tools
1822

1923
## Usage
2024

21-
Once attached to an agent, MCP tools are advertised to the model on every turn. The agent discovers available tools and calls them automatically; tool results are fed back into the conversation.
25+
Once attached to an agent, MCP tools are advertised to the model on every turn. The Web UI can inspect a provider's tools, prompts, resources, and resource templates, and tool results are fed back into the conversation.
2226

2327
## Tips
2428

‎packages/docs-site/guide/memory.md‎

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,18 +24,19 @@ A **Memory Profile** defines how memories are extracted and read. Sidebar → **
2424
| Field | Description |
2525
|-------|-------------|
2626
| Name | Display name for this profile |
27+
| Enabled | Pause the profile without deleting it |
2728
| Writer Model | The MemoryLLM used to extract memories (a reasoning-capable model recommended) |
28-
| Writer System Prompt | Controls **what** gets extracted |
29-
| Read Path Template | How retrieved memories are formatted back into the prompt |
29+
| Writer Prompt | Controls **what** gets extracted |
30+
| Read Prompt | How retrieved memories are formatted back into the prompt |
3031

31-
Then, in an agent → **Memory** section, toggle Memory on and pick the profile. From the Memory Profiles page you can also **Run Now** (force extraction), **Consolidate**, **Reconcile**, and **View Memories**.
32+
Then, in an agent → **Memory** section, toggle Memory on and pick the profile. From the Memory Profiles page you can **View Memories**, inspect pending/failed background jobs, **Run Extract** to wake the queued extractor, **Consolidate** to queue cleanup, and **Reconcile** to rescan files and indexes.
3233

3334
## Memory vs Notes vs Wiki
3435

3536
| | Who writes? | When written? |
3637
|---|-------------|---------------|
3738
| [Memory](./memory) | Background MemoryLLM | After the conversation idles, automatically |
38-
| [Notes](./note) | The active agent | Mid-turn, via tool call when relevant |
39-
| [Wiki](./wiki) | Humans (mostly) + agent | Curated; agent can also create/edit |
39+
| [Notes](./note) | Humans / operators | Manually, then recalled automatically or via `note_search` |
40+
| [Wiki](./wiki) | Humans / wiki source plugins | Curated pages, then searched/read by agents |
4041

4142
Memory is the most "set and forget" of the three.

‎packages/docs-site/guide/models.md‎

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,11 @@ Fill in provider, API key, base URL, and model name. The same connection can be
88

99
| Provider | Notes |
1010
|----------|-------|
11-
| OpenAI | GPT-4o, GPT-4.1, o-series, etc. |
11+
| OpenAI | Chat Completions-compatible OpenAI models |
12+
| OpenAI Responses | OpenAI Responses API models |
1213
| Anthropic | Claude 4.x, 3.x series |
1314
| Google Gemini | Gemini 2.0 / 2.5 Pro, Flash |
15+
| Gemini Image | Gemini image-generation models |
1416
| Ollama | Local models via Ollama runtime |
1517
| OpenAI-compatible | Azure OpenAI, Groq, Mistral, DeepSeek, Qwen, Together, etc. |
1618

@@ -22,6 +24,14 @@ Any endpoint that implements the OpenAI chat completions API can be used as a pr
2224
- Optional response caching with hit/miss metrics for repeated identical prompts
2325
- Per-model token usage tracking visible in the **Token Usage** page
2426

27+
## Advanced Options
28+
29+
- **Context window / max tokens** — override model limits when the provider does not report them clearly
30+
- **Max tools** — cap how many tools are sent to the model
31+
- **Anthropic thinking** — choose none, adaptive, or always-on thinking, with an optional budget
32+
- **Anthropic prompt caching** — enable provider-side prompt cache hints
33+
- **Gemini API version** — override the Gemini API version when needed
34+
2535
## Embedding Models
2636

2737
Sidebar → **Embedding Models** → New

‎packages/docs-site/guide/note.md‎

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
Sidebar → **Notes** → New
44

5-
A note repository is the agent's long-term memory: a vector store the agent can write to and search via tool calls. Use it to recall facts across conversations — user preferences, project context, prior decisions — without bloating the system prompt.
5+
A note repository is a manually managed recall store for agents. Add durable facts in the Web UI, assign the note repository to sessions/channels, and sbot injects relevant notes into the agent context while also exposing a `note_search` tool for explicit lookup.
66

77
## Prerequisites
88

@@ -17,10 +17,11 @@ An embedding model is required first: sidebar → **Embedding Models** → New.
1717

1818
## How It Works
1919

20-
1. **Add** — The agent inserts text via the `note_add` tool, or you add chunks manually in the UI
21-
2. **Embed** — Each chunk is converted to a vector
22-
3. **Search** — On retrieval, relevant notes are ranked by semantic similarity with **time-decay weighting** (recent entries score higher)
23-
4. **Dedup** — Near-duplicate inserts are auto-merged so the store doesn't bloat
20+
1. **Add** — You add chunks from the Notes page in the Web UI; long content can be split automatically
21+
2. **Index** — Each chunk is indexed with the selected embedding model, or BM25 keyword search when no embedding is configured
22+
3. **Recall** — Relevant notes are injected before each turn and can also be searched with `note_search`
23+
4. **Rank** — Results combine semantic/keyword score with time-decay and access-count weighting
24+
5. **Dedup** — Near-duplicate inserts are auto-merged when an embedding model is configured
2425

2526
## Assignment
2627

@@ -34,6 +35,6 @@ Notes can be assigned at multiple scopes (most specific wins):
3435

3536
| Concept | Owner | Best for |
3637
|---------|-------|----------|
37-
| [Notes](./note) | Agent (auto-write) | Free-form facts the agent recalls semantically |
38-
| [Wiki](./wiki) | Human-curated (with optional embeddings) | Structured knowledge pages with titles + tags |
38+
| [Notes](./note) | Humans / operators | Free-form facts the agent recalls semantically or by keyword |
39+
| [Wiki](./wiki) | Humans / wiki source plugins | Structured knowledge pages with titles + tags |
3940
| [Memory](./memory) | Background MemoryLLM | Distilled long-term knowledge from past conversations |

‎packages/docs-site/guide/skills.md‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,11 @@ Skill files live in `~/.sbot/skills/`. Each skill is a `SKILL.md` file with fron
1010

1111
## Installation
1212

13-
Three ways to add skills:
13+
Ways to add skills:
1414

1515
- **Search & install from a hub** — built-in registries: Clawhub, skills.sh, skillhub.cn
16-
- **Custom registries** — add additional URLs in **Settings**
16+
- **Install by URL** — paste a supported skill URL from a hub
17+
- **Install from ZIP** — upload one or more `.zip` files that contain `SKILL.md`
1718
- **Manual** — drop `SKILL.md` files into `~/.sbot/skills/` directly
1819

1920
## Assignment

0 commit comments

Comments
 (0)