anthropics / anthropics/claude-code

Recurring report task: model orchestration got slower and more token-hungry than previous cycles

Open
#95,736 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

area:agents area:cost area:model bug
Dominant language
TypeScript
Stars
147k
Forks
24k
PR merge metrics
PR metrics pending

Description

Summary

A routine recurring deliverable (a bi-weekly status report the same setup has produced many times) took noticeably longer and burned far more tokens than the previous cycle, because of how the model orchestrated subagents — not because the task grew.

Numbers

  • This cycle: session start 03:38 local, first draft visible 04:03, second draft 04:10, fact-check subagents still running past 04:30.
  • Previous cycle (2026-09-04, same repo, from git history): draft committed 12:16, fact-check fixes applied by 13:04, full finishing rotation done by 13:50.
  • One drafting subagent alone: ~239k tokens, 75 tool calls, 22 minutes.

What the orchestration did wrong

  • The data-gathering subagent ran 15+ slow CLI/DB queries strictly serially instead of batching or trimming to the load-bearing ones.
  • Drafting subagents forked further subtasks of their own; one fork never reported back and its work was silently redone by the parent, doubling that cost.
  • No timeboxing: nothing constrained the drafters until the user complained 15 minutes in, at which point cutting scope immediately worked (draft landed within minutes).

User's words

"以前的周报不会写这么久 你连你的 harness 都忘了 这不是进步 是浪费 token" ("earlier weeklies never took this long — you've forgotten your own harness; this isn't progress, it's wasted tokens")

Ask

  • Model behavior: for recurring tasks, reuse the prior cycle's known-good query set instead of rediscovering it; batch slow external calls; timebox delegated drafts by default and cut scope proactively.
  • Product: surface per-subagent token/wall-clock live so runaway orchestration is visible before the user has to complain.

Related: #95730 (same session, visibility angle).

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The issue names no implementation files, tests, or entry points. Start by reviewing related issue #95730 and the repository areas responsible for subagent orchestration and live metrics. Done would require an agreed scope covering prior-cycle reuse, batched calls, default timeboxing, and per-subagent token and wall-clock visibility.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
ai, tooling
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Active
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.