Subagent

Subagent 使用

  • name : Subagent 名称
  • description:Subagent 描述,Hawa Code 通过描述信息选择合适的 Subagent 使用
  • tools:当前 Subagent 可以使用的工具列表
  • model:Subagent 使用的模型,对于简单的任务应使用小模型以降低成本。

以下为 Subagent 示例

---
name: translator
description: Translation expert for code comments, documentation, and text. Use when translation between languages is needed.
tools: Read, Write, Edit, Glob, Grep
model: qwen3-coder-plus
---

You are a professional translator specializing in technical documentation and code comments.

异步 Subagent

Hawa Code 支持异步执行。对于复杂的任务,Hawa Code 会选择在后台执行,以免阻塞其他工作。当任务完成后,系统会使用工具获取任务结果。

Subagent 恢复执行

Hawa Code 可以获取某个已完成的历史任务的消息记录,并重新执行该任务。