> ## Documentation Index
> Fetch the complete documentation index at: https://docs.avibe.bot/llms.txt
> Use this file to discover all available pages before exploring further.

# Thread 会话

> 把聊天 thread 用作隔离、可恢复的 Agent 会话。

# Thread 会话

在 Avibe 里，一个聊天范围可以映射到一个 Agent 会话。

实用规则是：

```text theme={null}
Thread = session
```

开五个 thread，跑五个独立任务，并让它们的上下文保持隔离。

## 为什么可行

聊天 thread 是天然的工作单元：

* 一个生产事故。
* 一个 feature branch。
* 一个重构。
* 一次调查。
* 一次后续 review。

Agent 不需要一个自定义 dashboard 才能理解对话边界。聊天 App 已经给了它一个边界。

## 随处恢复

一个会话不止活在当下。在电脑上开一条 thread，几小时后用手机回复，agent 接着同一份上下文往下走——thread 本身就是记忆。[Workbench](/zh/concepts/workbench) 的 Inbox 里，是你从聊天访问的同一批会话。

## 路由与切换

会话和 agent 路由是组合在一起的。把不同的频道或项目指给不同的 agent——`#frontend` 给 OpenCode、`#backend` 给 Claude Code——每条 thread 就跑你映射的那个 agent。你也可以在 thread 中途用 agent 名做前缀来切换，而不丢掉会话的上下文。路由在 [Workbench](/zh/concepts/workbench) 里配。

## 最佳实践

* 为新任务开启新 thread。
* 在同一个 thread 里回复以继续同一个任务。
* 使用简短、明确的验收标准。
* 停止或归档不再有用的会话。

## 示例

顶层消息：

```text theme={null}
Fix the login redirect bug. Reproduce it first, then patch the smallest root cause and run the relevant tests.
```

Thread 回复：

```text theme={null}
Good. Also check whether the same redirect path affects signup.
```
