[FEATURE] Log reasoning effort level in JSONL transcripts

Open 💬 2 comments Opened Jun 26, 2026 by TJesionowski

Preflight Checklist

  • [x] I have searched existing requests and this feature hasn't been requested yet
  • [x] This is a single feature request (not multiple features)

Problem Statement

Workflow scripts can set per-agent effort levels via agent(prompt, {effort: 'low'}), and the main session's effort can be changed with /effort. But the effort level used for each API call is never written to the JSONL transcript — it's a request-side parameter that gets discarded. This makes it impossible to analyze the cost/quality impact of effort tiering after the fact, whether through custom indexing tools or simple jq queries over transcripts.

Proposed Solution

Add an "effort" field (e.g. "low", "medium", "high") to the assistant record in the JSONL transcript, at the same level as "model" and the "usage" block. The value is already known at serialization time — it just needs to be persisted alongside the response.

Use Case Example:

Additional Context:

---

Want me to write this to a file so you can copy-paste, or are you good grabbing it from here?

Alternative Solutions

Hooks don't expose request-side parameters (effort, model, temperature), so there's no way to capture this from outside the harness. The Anthropic API response also doesn't echo back the effort level, so it can't be reconstructed from response data alone.

Priority

Medium - Would be very helpful

Feature Category

API and model interactions

Use Case Example

  1. I run multi-agent workflows with tiered effort levels — Haiku/low for binary verdicts, Sonnet/medium for reviews, Opus/high for complex coding
  2. I index transcripts with a local tool to track per-subagent costs by model, effort, and turn count
  3. Without the effort field in transcripts, I can't distinguish a $0.06 Haiku/low agent from a $0.06 Haiku/high agent, so I can't validate whether lower effort actually saves tokens or degrades quality
  4. With the field present, I can query cost --by model,effort and refine my tiering guidance empirically

Additional Context

The usage.speed field (fast vs standard) is already logged — effort is the analogous missing dimension. Adding it would complete the picture for users who tune workflow agent parameters for cost efficiency.

  • Feedback ID: aecab372-c204-4fe2-8e32-5df5423ed3e9

View original on GitHub ↗

This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗