Bi

工作区

用工作区限定智能体可以操作的范围。

Markdown 原文Raw markdown

工作区是智能体可以操作的边界。选定工作区后,所有文件操作都被限制在它的范围内。

为什么要设定边界

没有边界的智能体可能顺着相对路径走到项目之外,误改无关文件。限定一个工作区,就把影响控制在你明确选择的范围内。这层保护独立于权限设置,无法通过自动放行放宽。

切换工作区

不同项目使用不同的工作区。切换后,新建的会话以新的范围为准;已有会话保留各自的路径。

查看项目结构

智能体只会展开工作区内的目录,帮助你和它自己快速了解项目结构。

项目设置

选好项目目录后,输入框旁「项目目录」胶囊右侧会出现一个齿轮。点开可以为这个项目单独设置:

  • 提示词:项目系统提示词,保存后追加在全局提示词之后,写入项目目录下的 .bi/agent.md。输入框实时显示字节数,超过 64KB 会禁止保存。
  • 插件:默认全部启用;取消勾选的插件只在本项目中不可用,全局不受影响。
  • 技能:勾选声明了 pin: true 的技能作为项目级常驻技能,该项目下所有会话每轮自动注入。

三个 tab 的改动在点「保存」时一并落盘;切换 tab 只切换视图,不会丢改动。未选择工作区的会话不显示此入口。

相关

Workspace

Use a workspace to bound what the agent can touch.

Markdown 原文Raw markdown

The workspace is the boundary the agent may operate within. Pick a workspace and every file operation is confined to it.

Why the boundary exists

Without one, an agent can follow a relative path out of the project and change unrelated files. A workspace keeps the impact inside a directory you explicitly chose. This layer is independent of approval settings and cannot be relaxed by auto-approval.

Switching workspaces

Different projects use different workspaces. After switching, new sessions use the new workspace; existing sessions keep their own paths.

Inspecting the project

The agent only expands directories inside the workspace, which lets both you and the agent get oriented quickly.

Project settings

Once a workspace is selected, a gear appears next to the “project directory” pill beside the input box. It configures this project:

  • Prompt: a project system prompt, appended after the global prompt and written to .bi/agent.md inside the project. The field shows the byte count live and refuses to save beyond 64 KB.
  • Plugins: all enabled by default; unchecking a plugin disables it for this project only, leaving the global setting untouched.
  • Skills: skills declaring pin: true can be pinned as project-level always-on skills, injected into every session under this project.

Changes across the three tabs are saved together when you press Save; switching tabs only changes the view. The entry is hidden when no workspace is selected.