anthropics / anthropics/claude-code

Workflow traces: record per-agent `model` and `effort` (override + resolved) in the per-agent progress records

オープン
#92,990 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
area:agents enhancement
主要言語
Python
スター
145k
フォーク
23.1k
PR マージ指標
PR 指標を取得中

説明

## Feature request

The Workflow tool's `agent(prompt, opts)` accepts per-call `model` and `effort` overrides, but the persisted run trace's per-agent records (`workflowProgress[]` / the run's `wf_.json`) do not record either — neither the override passed nor the resolved value the agent actually ran with.

**Measured motivation** (one team's adjudication harness, 2026-09-02 → 09-07 window): 91 orchestration scripts pinned `effort: 'high'` per agent and 718 agent runs executed; 0 of 718 trace records carry the effort or model the agent ran with. The only model attribution available is (a) session-level metadata, which breaks on per-agent overrides and on `model_refusal_fallback` substitutions, and (b) label-string conventions baked into prompts — we are currently running a paired verify-model A/B where the arm key is a `verify:A:` / `verify:B:` label prefix, which any label edit silently breaks.

**Ask:** per agent record, persist

- `model`: the resolved model id the agent ran on (post-fallback, so a `model_refusal_fallback` substitution is visible per agent), and
- `effort`: the resolved reasoning effort,
- optionally a flag or the raw override value distinguishing "inherited from session" from "overridden by the script".

This makes per-agent cost/latency attribution and model A/Bs first-class trace reads instead of label archaeology.

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

調査の方向性

Start by finding where Workflow agent(prompt, opts) builds workflowProgress[] and writes wf_.json, then trace where per-call model/effort overrides are resolved and where model_refusal_fallback may substitute the model. Done means each per-agent progress record persists the resolved model and effort, with an optional inherited/override signal, and existing trace readers/tests still pass.

索引モデルが issue の本文から書いたものです。

評価

領域
ai-infra-agents, cli, observability
issue の種類
機能追加
難易度
4/5
見積もり時間
3〜5日
活発さ
活発
明瞭さ
おおむね明確
初心者へのやさしさ
52/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。