Loading...
Loading...
Compare original and translation side by side
task({
description: "Brief task summary",
prompt: "Detailed instructions for the agent",
subagent_type: "general" // glm-5 is the default model
})task({
description: "Brief task summary",
prompt: "Detailed instructions for the agent",
subagent_type: "general" // glm-5 is the default model
})| Task Type | Recommended Model | Est. Cost |
|---|---|---|
| Simple search/explore | glm-5 (default) | Low |
| Code review | code-review-glm | Low |
| Complex architecture | oracle | Medium |
| Deep debugging | code-review-opus | Higher |
| 任务类型 | 推荐模型 | 预估成本 |
|---|---|---|
| 简单搜索/探索 | glm-5(默认) | 低 |
| 代码审查 | code-review-glm | 低 |
| 复杂架构设计 | oracle | 中 |
| 深度调试 | code-review-opus | 较高 |
task({
description: "Find auth-related files",
prompt: "Search the codebase for all files related to authentication. Return a list of file paths and brief descriptions of what each does.",
subagent_type: "general"
})task({
description: "Summarize API docs",
prompt: "Read docs/api.md and provide a 3-bullet summary of the main endpoints and their purposes.",
subagent_type: "general"
})// Delegate multiple independent tasks concurrently
const tasks = [
task({ description: "Analyze utils.ts", prompt: "...", subagent_type: "general" }),
task({ description: "Analyze helpers.ts", prompt: "...", subagent_type: "general" }),
task({ description: "Analyze constants.ts", prompt: "...", subagent_type: "general" })
];
await Promise.all(tasks);task({
description: "Find auth-related files",
prompt: "Search the codebase for all files related to authentication. Return a list of file paths and brief descriptions of what each does.",
subagent_type: "general"
})task({
description: "Summarize API docs",
prompt: "Read docs/api.md and provide a 3-bullet summary of the main endpoints and their purposes.",
subagent_type: "general"
})// Delegate multiple independent tasks concurrently
const tasks = [
task({ description: "Analyze utils.ts", prompt: "...", subagent_type: "general" }),
task({ description: "Analyze helpers.ts", prompt: "...", subagent_type: "general" }),
task({ description: "Analyze constants.ts", prompt: "...", subagent_type: "general" })
];
await Promise.all(tasks);oraclecode-review-opusoraclecode-review-opus