AAE: An agent skill for hypothesis-driven code optimization
OtherPublished: Source: Hacker News (100+ points)
TL;DR:Agentic Algorithm Engineering (AAE), a skill from the Algorithm Engineering Group at Heidelberg University, lets Claude Code, Codex, and other agents optimize existing codebases through a structured engineering cycle.

Agentic Algorithm Engineering (AAE), a skill from the Algorithm Engineering Group at Heidelberg University, lets Claude Code, Codex, and other agents optimize existing codebases through a structured engineering cycle. Before each experiment, the agent states a falsifiable hypothesis and predicted effect; each accepted change is checked against agreed correctness assertions and delivered as a reviewable Git patch, with a PDF session report. The project reports speedups across seven open-source codes, including 8.9× for VieCut and 3.9× for KaHIP kaffpa.
Key points
- The agent agrees with the user on benchmarks, metrics, correctness checks, and an experiment budget before working autonomously.
- Every experiment starts with a falsifiable hypothesis and predicted effect; accepted changes are correctness-checked and kept as separate Git patches.
- The project reports 122 experiments, 69 hypotheses, and 41 patches in a KaHIP kaffpa session, yielding a total 3.9× speedup.
- Reported results include 8.9× faster VieCut and 3.0× faster Hochbaum's pseudoflow, with stated output or solution checks preserved.
- A 10-minute quick-start is available, with installation instructions for Claude Code and Codex.
Why it matters
Developers can delegate performance optimization without treating benchmark gains as sufficient proof: AAE pairs measured improvements with correctness checks and small reviewable patches. It offers a repeatable workflow for applying agents to existing codebases, though the reported gains are project results, not guarantees for other software.
Companies and models mentioned
- Agentic Algorithm Engineering (AAE)
- Algorithm Engineering Group, Heidelberg University
- Claude Code
- KaHIP
- Codex
- VieCut
- Hochbaum's pseudoflow
- FREIGHT
- ParHIP
- ScalableCorrelationClustering