Claude Code Routines Tunes CLI Performance 2.4x in 20+ PRs

Claude Code's Routines feature can be used for continuous autonomous optimization. A developer (u/yamadashy) set it up on a 2-hour cron schedule to tune their open-source CLI tool Repomix. Over 20+ PRs, the runtime improved by 2.4x.
Key Components
- Automated Tuning via Routines: A prompt defines performance goals; Claude Code's Routines run every 2 hours, generates changes and opens PRs.
- Benchmark Workflow (GitHub Actions): A custom workflow runs multi-OS measurements to validate each AI-suggested change before merging.
- Merge Flow: AI suggestions are picked up and merged into main after passing benchmarks.
The exact prompt used is shared in the article, along with all configuration files. Everything is open source — no paid tiers required. Repomix is the CLI that was optimized; Claude Code Routines and the benchmark workflow are also free to try.
For developers using AI coding agents, this demonstrates a practical CI loop: let AI continuously propose optimizations, validate against real benchmarks, and merge only improvements.
📖 Read the full source: r/ClaudeAI
👀 See Also

The Companies Cutting Headcount for AI Will Lose to the Ones Who Didn't
AI headcount cuts trade long-term institutional knowledge for short-term savings. Retaining teams and using AI to amplify their capability is the winning strategy.

A/B Test Results: oh-my-claudecode Hooks Show Minimal Impact on Claude Code Performance
A developer spent 7% of their weekly Max20 tokens testing oh-my-claudecode hooks with Claude Sonnet 4.6, finding no meaningful improvement in code quality or cost for a single-session coding task.

HomeButler: MCP Server for Managing Homelab Servers from Claude Without API Keys
HomeButler is an MCP server that lets Claude install, monitor, and manage self-hosted apps on homelab servers without requiring API keys. It runs locally, keeps everything on your network, and was built with Claude Code.

Claude Command Center v5.0.0 Adds Day-One Support for Fable 5 with Mid-Session Switching
Claude Command Center v5.0.0 adds first-class support for Anthropic's new Fable 5 tier, including mid-session model switching, a redesigned model picker, and a fix for versioned alias CLI errors.