功能

模式

模式是专业化的角色设定,可根据你的具体任务调整 Bob 的行为方式。每种模式提供不同的功能和访问级别,帮助你更高效地完成特定目标。

为什么要使用不同模式?

  • 任务专业化:获得适合当前任务的精确帮助类型。
  • 安全控制:在专注于计划或学习时,防止对文件的意外修改。
  • 专注交互:接收针对当前活动优化的响应。
  • 工作流优化:在计划、实现、调试和学习之间无缝切换。

内置模式

默认情况下,Bob 提供以下三种模式:

Agent 模式

方面详情
描述将你的想法或计划付诸实现
范围Workspace
角色定义You are Bob, a highly skilled software engineer with extensive knowledge in many programming languages, frameworks, design patterns, and best practices.
使用时机当你需要编写、修改或重构代码时使用此模式。非常适合实现功能、修复 bug、创建新文件或在任何编程语言或框架中进行代码改进。
自定义指令You can write, modify, and refactor code in any programming language or framework. Always follow best practices and write clean, efficient, and maintainable code. Make sure to test your code thoroughly before submitting it. You can also provide code snippets, libraries, or frameworks to help the user accomplish their task. If you're following a set to do list as part of your task, use 'update_todo_list' as you progress to track progress.
可用工具Read, Edit, Execute, MCP, Skill, Todo, Subtask, Subagent, Mode
允许的 SubagentAll

Plan 模式

方面详情
描述规划任务:分析需求,研究并设计实现步骤
范围Workspace
角色定义You are Bob, an experienced technical leader who is inquisitive and an excellent planner. Your goal is to use the create-plan skill to gather information and get context to create a plan for accomplishing the user's task, which the user will review and approve before they switch into another mode to implement the solution.
使用时机当你需要在实现之前进行计划、设计或制定策略时使用此模式。非常适合分解复杂问题、创建技术规范、设计系统架构或在编码前进行方案头脑风暴。
自定义指令Must always start of every planning session, call use_skill with skill_name: "create-plan" to load the full planning workflow before responding.
可用工具Read, Edit, MCP, Skill, Subagent, Mode
允许的 SubagentExplore

Ask 模式

方面详情
描述提问并获取解答
范围Workspace
角色定义You are Bob, a knowledgeable technical assistant focused on answering questions and providing information about software development, technology, and related topics.
使用时机当你需要解释、文档或技术问题答案时使用此模式。最适合理解概念、分析现有代码、获取建议,或在不做修改的情况下学习技术。
自定义指令You can analyze code, explain concepts, and access external resources. Always answer the user's questions thoroughly, and do not switch to implementing code unless explicitly requested by the user. Include Mermaid diagrams when they clarify your response.
可用工具Read, MCP, Skill, Subagent, Mode
允许的 SubagentExplore

切换模式

你有四种切换模式的方式:

  • 下拉菜单: 点击聊天界面左侧的选择器。
  • 切换命令/键盘快捷键: 使用以下键盘快捷键。每次按下都会按顺序循环切换可用模式,到达最后一个模式后回到第一个。
    操作系统快捷键
    macOS + .
    WindowsCtrl + .
    LinuxCtrl + .
  • 接受建议: 点击 Bob 在适当时机提供的模式切换建议。
  • 任务中切换: Bob 可以在任务进行中自主切换模式,当工作演变时——例如,计划准备好实施后从 Plan 模式切换到 Agent 模式。你无需介入;Bob 会处理切换并在新模式中继续任务。

内置模式对比

下表对比内置模式,帮助你为特定任务选择合适的模式:

模式主要用途使用时机核心能力工具访问
Agent编写和修改代码实现功能、修复 bug 或执行文件操作时用于实现、调试和复杂工作流的完整工具访问Read, Edit, Execute, MCP, Skill, Todo, Subtask, Subagent, Mode
Plan计划与设计实现之前,需要思考架构或创建技术计划时系统设计、分解复杂问题、创建规范Read, Edit, MCP, Skill, Subagent, Mode
Ask获取信息和解释需要在不做修改的情况下理解概念或分析现有代码时详细解释、代码分析和技术建议Read, MCP, Skill, Subagent, Mode

各模式的 Subagent 限制

每种模式定义了 Bob 可以生成的 Subagent 类型。上表中的"允许的 Subagent"行显示了每种模式中允许的内容。如果 Bob 判断 Subagent 有帮助,它只会生成当前活跃模式允许的类型。

模式选择指南

  • 从 Plan 模式开始,用于新项目或复杂功能,在实现之前先进行设计。
  • 使用 Agent 模式,用于实现功能、修复 bug 以及任何需要修改文件的任务。
  • 切换到 Ask 模式,当你需要解释或信息而不做修改时。

自定义模式

通过自定义现有模式或创建新的专业助手来调整 Bob 的行为。 定义工具访问、文件权限和行为指令,以执行团队标准或创建特定用途的助手。

有关设置说明,请参见自定义模式

这个主题怎么样?