# Agentic Algorithm Engineering: a skill that speeds up code by testing hypotheses

> AAE is an agent skill for Claude Code and Codex that runs an algorithm-engineering loop on an existing code base, keeping only changes that are faster and still correct.

- Project: An agent skill that optimizes code with falsifiable hypotheses by 0x23
- List: Built for AI
- Kind: skill
- Works with: Claude Code, Codex
- Noticed: 102 points on Hacker News (when we found it)
- Added: 2026-11-26T06:08:00+00:00
- Web page: https://ai-news.ikangai.com/built/an-agent-skill-that-optimizes-code-with-falsifiable-hypotheses/

Agentic Algorithm Engineering (AAE) is a skill for Claude Code and Codex from the Algorithm Engineering Group at Heidelberg University. According to the README, the agent writes a falsifiable hypothesis, such as "changing X will improve the metric by roughly Z," predicts the effect, and makes a minimal change committed to Git. It then runs the benchmark and keeps the change only if it is better and still correct. Otherwise, it reverts.

Each accepted change becomes a numbered Git patch in patches/, recorded with its hypothesis. A PDF report shows the metric's trajectory and includes one page per hypothesis. The README reports 3.9x faster for KaHIP kaffpa over a session of 122 experiments, 69 hypotheses and 41 patches. It also reports 8.9x faster for VieCut with every cut unchanged, and 2.2% smaller cuts for KaHIP ultra. During setup, the user and agent agree on the benchmark, metric, correctness assertions and budget.

To install it, use /plugin install in Claude Code, or run scripts/install_codex_skill.py for Codex and call $aae. Other agents can follow AAE.md. The code is MIT licensed, and sessions share lessons in a knowledge base. The README cites a DIMACS 2027 paper that is still to appear, with an arXiv preprint. The results are the authors' own runs on established codes. The README does not say what a session costs to run.

## In the author's words

> Agents that optimize your code like an algorithm engineer: a falsifiable hypothesis before every experiment, correctness checked after every change, one reviewable patch per accepted change, and a PDF report of the whole session.

## When to reach for it

Write a predicted effect before each change. Keep a change only when the benchmark improves and the agreed correctness checks still pass. One patch per accepted change makes the result easy to review.

## See it

- [An agent skill that optimizes code with falsifiable hypotheses](https://chszlab.github.io/AgenticAlgorithmEngineering/)
- [Discussion on Hacker News](https://news.ycombinator.com/item?id=50611593)

---

AI wrote this entry from the project's own README or its author's post. What the project does, and that AI built it where the entry says so, are the author's statements, quoted here. Nobody at IKANGAI ran or tested it.
