Twitter/X

Claude Code's dynamic workflows replace the default plan+execute single-context…

Brief

Claude Code's dynamic workflows replace the default plan+execute single-context harness to solve agentic laziness, self-preferential bias, and goal drift by generating custom JS harnesses that spawn isolated, resumable sub-agents with selectable models. The post (2026-06-03, @code_rams) gives concrete tasks—50-run flaky-test debugging, extracting rules from 50 sessions, ranking 80 resumes—and warns workflows consume more tokens; Thariq (@trq212) calls this the biggest upgrade since skills/subagents.

Source evidence

Problem Claude Code solves with Dynamic Workflows:
Default harness = plan + execute in same context window. Works for coding but breaks for long, complex, parallel tasks.

3 specific failure modes it fixes:

  1. Agentic laziness - Claude stops at 20/50 items and calls it done
  2. Self-preferential bias - Claude prefers its own output when asked to verify itself
  3. Goal drift - Long sessions + compaction = original constraints get lost

How workflows fix it:
- Claude writes a custom JS harness on the fly for the specific task
- Spawns separate agents, each with their own context window + focused goal
- Can choose which model each sub-agent uses
- Can run agents in isolated worktrees
- If interrupted → resumes from where it left off

Examples from the article:
- Mine flaky test root causes (run 50 times, form + test theories)
- Extract CLAUDE.md rules from 50 past sessions
- Find recurring Slack bugs with no tickets filed
- Tear apart business plan from investor/customer/competitor POV
- Rank 80 resumes + interview you for a rubric
- Rename a model across entire codebase

Key line: "Dynamic workflows often use more tokens - think carefully about when and how to use them."

Thariq (@trq212)

Workflows are the biggest upgrade to Claude Code’s capabilities since skills and subagents.

I dove deep into it with @sidbid to figure out best practices, examples and more.  I’m particularly excited about the non-technical tasks it enables for Claude Code.

— https://nitter.net/trq212/status/2061907538741006796#m