子 Agent
這是什麼
由主對話協調的專業 agent,用於有限範圍的研究、編碼、寫作或驗證任務。
白話解釋
想像把一卷底片送到照相館而不是自己沖洗:你交出需要的東西,照相館在自己的空間裡處理,回來的是一張張完成的照片——而不是每個化學藥浴的記錄。這就是 Hermes 的子 agent:一個任務被交給一個子 agent,它在自己的空間中工作,只回報最終結果,而不是背後的反覆嘗試。
為什麼重要
將有限範圍的工作——研究、編碼、寫作、驗證——委派給專門的 agent 執行個體,而不是試圖在一個連續上下文中完成所有事情,這就是子 agent 的用途。這是 agent 團隊委派作為工作流程模式的背後機制:協調者將任務拆解並分配給子 agent,然後整合回傳的結果。每個子 agent 通常會獲得自己的對話,因此對話提供的隔離正是防止探索性的子 agent 工作污染協調者自身上下文的關鍵。
How it works
A delegate_task call spawns a child agent with a completely fresh conversation, its own task_id-scoped terminal session, and a restricted toolset — delegate_task, clarify, memory, send_message, and error-handling tools are typically included, while heavy tools like browser or computer-use are excluded unless the parent explicitly passes them (agent/delegate.py). The child streams its progress back to the parent through structured -O- and -C- markers in send_message payloads, and its final output becomes a persistent artifact linked to the parent session rather than vanishing when the child exits.