Automated Claude Code Pipeline Cuts Token Usage from 78k to 15k Per Feature

What This Pipeline Does
This is an automated pipeline for Claude Code that addresses three common problems: Claude rebuilding existing code, high token costs (50-80k tokens for complex features), and excessive manual oversight. The pipeline runs through 12 phases automatically with one command: /auto-pipeline "add user dashboard with activity feed".
Key Features and Phases
- Pre-check phase: Searches your codebase and package.json before building anything. Example: When you request "Add authentication," it detects existing
next-authinstallations and recommendsEXTEND_EXISTINGinstead of building from scratch. - Requirements extraction: Minimal Q&A to determine actual needs
- Design phase: Creates technical specifications with citations
- Adversarial review: Attacks the design from three angles
- Planning phase: Creates deterministic steps with exact BEFORE/AFTER code
- Build phase: Executes the plan step-by-step
- QA pipeline: Runs linting, type checking, tests, documentation generation, and security scanning
Three Operational Profiles
--profile=yolo: Fast prototyping, skips most checks (~18k tokens)--profile=standard: Balanced approach with warnings on issues (~35k tokens)--profile=paranoid: Full oversight for production code (~50k tokens)
Token Savings Breakdown
A feature that previously cost ~78k tokens now runs in ~15k tokens with the yolo profile. Optimization strategies include:
- Slim agents (60-80% smaller prompts): 40-60% savings
- Caching (security scans, patterns, QA rules): 15-25% savings
- Phase skipping (yolo mode): 30-40% savings
Output-Based Validation System
Instead of relying on Claude's self-reported confidence scores, the pipeline uses objective grep-based validators. For example, in Phase 3 (Adversarial):
has_verdict→ grep "APPROVED|REVISE"no_high_severity→ ! grep "| HIGH |"no_consensus→ no issues from 2+ critics
The creator notes: "Can't game what you can't self-report."
Technical Details and Current Status
The pipeline is built for Next.js/TypeScript but structured to work with any stack. There's a full-workflow-legacy branch available for those who prefer the original manual pipeline with human checkpoints at every step. Caching currently includes security scans by lockfile hash, design patterns, and QA rules.
📖 Read the full source: r/ClaudeAI
👀 See Also

LystBot: An MCP Server for Claude to Manage Lists and Tasks
LystBot is a list management app with a native MCP server that allows Claude to directly interact with grocery lists, todos, and packing lists. Built primarily with Claude Code, it includes a Flutter mobile app, REST API, CLI, and open-source Node.js MCP server.

RTX 5060 Ti 16GB Local LLM Benchmarks: 30B Models Still Lead for Coding
Benchmarks on an RTX 5060 Ti 16GB show Unsloth Qwen3-Coder-30B UD-Q3_K_XL achieving 76.3 tok/s on Ubuntu with quality score 8.14, making it the recommended default coding model. The Unsloth Qwen3.5-35B UD-Q2_K_XL hits 80.1 tok/s but with lower quality scores.

Detrix MCP Server Adds Runtime Debugging to AI Coding Agents
Detrix is a free, open-source MCP server that enables MCP-compatible agents to observe live variables in running code without restarts or code changes. It supports Python, Go, and Rust applications running locally or in Docker.

Free Model Alert: Tencent Hy3 Available on OpenRouter for 2 Weeks — Try It Now
Tencent Hy3 is free on OpenRouter for 2 weeks. Use it in OpenClaw via openrouter/tencent/hy3:free. Full details from r/openclaw.