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

4-layer self-audit system for OpenClaw behavioral evolution
A developer built a 4-layer audit system where Gemini reviews Claude's blind spots weekly, catching patterns Claude missed in self-review. The system includes post-fix verification, pattern mining, external mirroring, and expectation vs reality checks.

Clawdwatch: Open-source OSINT tool for real-time flight tracking, news scraping, and alerts
Clawdwatch is a CLI tool that pulls live flight data from OpenSky Network, scrapes news from Al Jazeera and AP, and can send Telegram alerts for military aircraft or emergency squawks. It runs locally with npm install and tracks 204+ flights over the Middle East in real-time.

Marketing Wisdom MCP: Free Semantic Search for Startup Insights
A free MCP server provides semantic search across 6,700 insights from 1,040 episodes of My First Million and Starter Story podcasts. It offers four tools for querying founder wisdom on growth, marketing, and business strategies.

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.