Agentic Algorithm Engineering (AAE) is a skill for Claude Code, Codex, and other coding agents that applies the algorithm-engineering cycle - design, analysis, implementation, and experiment - to improving existing software. Before each test, the agent states a falsifiable hypothesis and predicts the likely size and direction of the effect, based on profiling and analysis. The user first agrees on benchmarks, performance measures, correctness checks, and a time or compute budget. The agent then makes a minimal change, tests it, and keeps it only if performance improves without violating the agreed correctness conditions; otherwise, it reverts the change.
The approach emphasizes results that can be checked and reviewed: each accepted change becomes a numbered Git patch, and the session produces a PDF documenting hypotheses, measurements, decisions, and performance over time. Reported gains on established codes include an 8.9-fold speedup for VieCut, 3.9-fold for KaHIP’s kaffpa, and 3-fold for Hochbaum’s pseudoflow, alongside checks such as unchanged outputs, preserved partition quality, or verified flow values. A KaHIP kaffpa run reportedly tested 69 hypotheses across 122 experiments and retained 41 patches. Unlike systems that optimize a single training script or evolve candidate code through populations, AAE targets arbitrary existing codebases and languages, with explicit predictions and correctness assertions. Its sessions also contribute to a shared knowledge base of techniques and findings.
Summary generated by AI from the linked article. hn.today is not affiliated with Hacker News or Y Combinator.