agentusecases.aiAll 2,365 use cases
Software & DevOps

Optimize code through an automated falsifiable-hypothesis loop

An agent skill profiles code, proposes and tests optimization hypotheses in a loop, keeps verified improvements in version control, and writes a PDF report; it sped up KaHIP 3.9x and VieCut 8.9x. · Nov 23, 2026

Done withCCClaude Code

What they did
The skill runs in Claude Code or Codex. During setup you and the agent agree on the benchmark, the metric, the correctness assertions and the budget, and then it works alone. For each idea it writes a falsifiable hypothesis with a predicted effect, makes a minimal Git commit, and runs the benchmark. It keeps the change only if it is faster and still correct, and otherwise reverts it.
How it went
On KaHIP kaffpa, one session ran 122 experiments across 69 hypotheses and kept 41 patches, for 3.9x overall. VieCut got 8.9x with every cut unchanged. Each kept change was checked against the original output.
Worth knowing
You define the correctness assertions up front, such as bit-identical output, and the agent checks only those. A 10-minute quick-start example is provided if you want to try it first.

Try it yourself with Claude Code

In my repository at [path or repo], profile [program or benchmark command] and find the biggest performance bottlenecks. Then loop: state a falsifiable hypothesis for a speedup, implement it, run [test command] to confirm correctness and re-run the benchmark, and commit only changes that are verified faster, reverting the rest. Stop after [number] hypotheses or when gains flatten, then write a short PDF report with the baseline, each hypothesis and its result, and the final speedup. Do not push to any remote or delete branches without showing me first.

Want help getting this working? Join the Vibe Coding Academy ↗ Run by Alex Finn, who also runs this site.

Read the original ↗

Discussion on HN · Nov 23, 2026

Related use cases

  • CC

    Turn tickets into merged pull requests

    Pulls tasks from GitHub Issues or Linear, then runs Claude Code or Codex in isolated Kubernetes pods to carry each one through to a PR.

    Claude CodeCodex

  • CC

    Create social media visuals with Canva MCP

    The poster tried Canva MCP in Claude Code to produce app marketing visuals and found it a disaster.

    Claude Code

  • CC

    Optimize a PC by removing background services with Claude Code

    A user had Claude Code remove about 30 background services and startup programs, change BIOS settings at the boot screen, and work through GUI-only apps using screenshots and click instructions.

    Claude Code

  • CL

    Build a C compiler with a team of parallel agents

    Anthropic's engineering write-up on tasking Opus 4.6 agent teams with building a C compiler.

    Claude

  • RA

    Build a book donation app and demo video in a buildathon

    A user used Replit Agent to build the GiveABook app and its demo video within a 24-hour buildathon.

    Replit Agent

  • MA

    Generate large amounts of code with Manus

    A user had Manus produce a lot of code quickly for software projects, but lost work a couple of times and had to add extra checkpointing.

    Manus

Keep browsing

All 348 Claude Code use casesAll 445 Software & DevOps use cases

Get 5 like this every morning

The best things people got an AI agent to do, each with the prompt to try it.

All use casesAgentsTopicsJobsNewRSSAboutContactSponsorPrivacy
Sponsors
VCVibe Coding Academy: Master AI and automate your lifeS/Ship/It Weekly: #1 AI newsletter on planet Earth+Your logo here: sponsor usVCVibe Coding Academy: Master AI and automate your lifeS/Ship/It Weekly: #1 AI newsletter on planet Earth+Your logo here: sponsor usVCVibe Coding Academy: Master AI and automate your lifeS/Ship/It Weekly: #1 AI newsletter on planet Earth+Your logo here: sponsor usVCVibe Coding Academy: Master AI and automate your lifeS/Ship/It Weekly: #1 AI newsletter on planet Earth+Your logo here: sponsor usVCVibe Coding Academy: Master AI and automate your lifeS/Ship/It Weekly: #1 AI newsletter on planet Earth+Your logo here: sponsor us
VCVibe Coding Academy: Master AI and automate your lifeS/Ship/It Weekly: #1 AI newsletter on planet Earth+Your logo here: sponsor usVCVibe Coding Academy: Master AI and automate your lifeS/Ship/It Weekly: #1 AI newsletter on planet Earth+Your logo here: sponsor usVCVibe Coding Academy: Master AI and automate your lifeS/Ship/It Weekly: #1 AI newsletter on planet Earth+Your logo here: sponsor usVCVibe Coding Academy: Master AI and automate your lifeS/Ship/It Weekly: #1 AI newsletter on planet Earth+Your logo here: sponsor usVCVibe Coding Academy: Master AI and automate your lifeS/Ship/It Weekly: #1 AI newsletter on planet Earth+Your logo here: sponsor us