記事一覧へ
ANTHROPICがCLAUDE CODEに/workflowsを密かに搭載した
そしてその背景にある原則こそが刺さった
旧パターン → LLM一つがすべてをオーケストレートする。サブエージェントを生成し、すべての結果を保持し、次のステップを計画する
問題は...?サブエージェントの結果がオーケストレーターのコンテキストに毎回戻ってくる。10エージェントを起動すると、メインセッションが「トークン税」を払うことになり、ウィンドウが埋まるにつれてどんどんずさんになっていく。
/workflowsはLLMオーケストレーターをコードで置き換える
workflow.jsファイルを定義する。制御フローはコードが担う。モデルは各ステップ内の判断だけを担当する
コードが得意なことにはコードを使う
モデルが得意なことにはモデルを使う
これが全てのアイデアだ

claude-workflowagent-opsharness-designclaude-code
Anthropicが密かにリリースしたClaude Codeの/workflows — LLMオーケストレーターをコードで置き換える設計
♥ 810↻ 64
原文を表示 / Show original
ANTHROPIC QUIETLY SHIPPED /workflows IN CLAUDE CODE
and the principle behind it is what got me
old pattern → one LLM orchestrates everything. spawns sub-agents, holds every result, plans the next step
the problem...? every sub-agent result re-enters the orchestrator's context spin up 10 agents and your main session pays a "token tax" getting sloppier as the window fills.
/workflows replaces the LLM orchestrator with code
you define a workflow.js file. code handles the control flow. the model only handles judgment inside each step
use code for what code is good at
use models for what models are good at
that's the whole idea