r/ClaudeWorkflows • • 5d ago

Selected Workflow [Workflow] Lead–worker Claude Code development with independent verification

Lead–worker Claude Code development with independent verification

Workflow value: 78/100
Status: active · Freshness: 70/100 · Confidence: 0.94 · Level: advanced
Categories: Quality Control, Token Saving, Debugging, Shipping, Hooks, Subagents, Multi-Agent
Original source: r/ClaudeCode post/comment

What problem this solves

Agent-written code can pass its own tests while still failing in real use, and benchmarks can be contaminated by unrelated plugins.

Summary

Use a lead Claude Code session to delegate changes to a worker, independently verify the results, and add adversarial review and real-environment checks before release.

Why it is useful

It combines a repeatable delegation pattern with independent test reruns, real-user checks, and concrete examples of defects and benchmark contamination that automated results alone missed.

Workflow

  1. Run a worker session in tmux and have a separate lead session write a task file for each change.
  2. Let the worker implement the change, then have the lead independently rerun typechecking and both test suites.
  3. Try the feature in a real terminal, including a fresh first-run experience, rather than relying on automated tests alone.
  4. Request independent reviews, including reviewers defending and attacking the implementation and a security review of untrusted inputs; turn findings into fixes.
  5. For prompt benchmarks, isolate settings sources and record individual runs; the author used --setting-sources project to exclude user settings.
  6. Bump the plugin version for each release so installed copies can receive updates.

Tools / artifacts

  • Claude Code sessions
  • tmux
  • Task files
  • Typechecker and test suites
  • Review agents
  • Real-terminal first-run check
  • --setting-sources project
  • bench/RESULTS.md

Validation signals

  • The author reports that a broken first-run redraw escaped passing tests and was discovered while recording a README demonstration.
  • The author reports that lead-session reruns and human screenshot inspection caught defects.
  • The author describes a benchmark with eight runs per arm after discovering that user-configured plugins contaminated earlier runs.

Cautions

  • Treat downloaded assets and other external inputs as untrusted during security review.
  • Use an isolated test environment for first-run checks rather than deleting existing user data.
  • Disclose model usage and any data sent externally before enabling such features.

Limitations

  • The post promotes its own plugin, although it provides a reusable development process.
  • It does not provide the task-file template, exact delegation commands, or review prompts.
  • Results are author-reported and lack independent community confirmation.
  • The benchmark finding is limited to the described task and settings; the isolated project configuration should still be inspected.

Rate this workflow

Upvote this post if the workflow is useful, reproducible, or worth recommending.

Downvote if it is vague, outdated, unsafe, overhyped, or not reproducible.

Reply if it worked for you, failed, is outdated, or has a better alternative.


This post was generated automatically from the workflow library database.

2 Upvotes

1 comment sorted by