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

Benchmark shows AI browser automation tools vary 2.6x in token costs despite identical accuracy
A benchmark of 4 CLI browser automation tools using Claude Sonnet 4.6 on 6 real-world tasks found all achieved 100% accuracy, but openbrowser-ai used 36,010 tokens while others used 77,123-94,130 tokens. Tool call count was the strongest predictor of token cost.

Scrapling integrated as OpenClaw's scraping backbone
Scrapling, an open-source library that learns page structure and adapts to changes, has been integrated into OpenClaw as its core scraping engine. It's 774x faster than BeautifulSoup with Lxml and supports multiple selector types with async sessions.

Cull: Open-Source Dataset Curation Engine for AI Image Pipelines
Cull scrapes images from 340+ sources including Civitai, X/Twitter, Reddit, Discord, and booru sites, classifies them with a vision-language model via local LM Studio or Groq, and sorts into category folders with SD prompts and audit records.

Zap Code: AI Code Generator That Teaches Kids Real HTML/CSS/JS
Zap Code generates working HTML, CSS, and JavaScript from plain English descriptions for kids ages 8-16. It offers three interaction modes and runs in a sandboxed iframe with a progressive complexity engine.