任务间自动触发与数据流--功能请求
What feature would you like to be added or updated?
场景:我用两个任务分别做"执行"和"审核",目前需要手动复制消息。
希望支持:
任务完成后自动触发另一个任务 任务之间通过文件或 MCP 自动传递上下文 上下文达到阈值时自动新建任务并注入压缩后的 Handoff 提供任务编排 API(创建任务、发送消息、读取回复) 参考:Claude Code 的 Context Rotation、VNX Orchestration System
Why do you need this feature?
主要解决的痛难点有: 1.多任务并行但是独立; 2.任务文件不能共享 3.超长任务执行上下文坍缩 4.多任务间交互,采用不同模型执行任务,多任务交互进行 例如我的场景,我前期已经做了方案,现在执行中需要决策任务和执行任务交互,任务大,希望多个AI协作并有序执行。
Additional information that you believe is relevant to this feature request
Additional context:
My current workflow uses two separate Trae tasks/agents:
Executor agent:
- Implements code changes
- Runs commands/tests
- Produces execution results and handoff notes
Reviewer/decision agent:
- Reviews the executor's output
- Decides the next step
- Sends instructions back to the executor
Currently, I have to manually copy messages between these two task windows. This becomes inefficient and error-prone, especially for long-running tasks.
A practical implementation does not necessarily need full UI automation. Any of the following would be helpful:
- A task/session API to create a task, send a message, read the latest reply, and close/archive a task
- A project-level handoff file mechanism, for example
.ai/handoff.md - A way to automatically start a new task when context becomes too long
- A way to pass summarized context from one task to another
- MCP-based task orchestration support
- Hooks/events such as
onTaskComplete,onContextThresholdReached,onMessageGenerated
Related examples or inspiration:
- Claude Code context rotation / handoff workflows
- VNX Orchestration System
- Multi-agent workflows where one agent executes and another agent reviews or plans
Expected result:
Trae users should be able to build a semi-automated or fully automated multi-agent workflow without relying on fragile GUI automation, copy-paste scripts, or manual window switching.
Source: bytedance/trae-agent