{"slug": "show-hn-an-agent-skill-that-optimizes-code-with-falsifiable-hypotheses", "title": "Show HN: An agent skill that optimizes code with falsifiable hypotheses", "summary": "The Algorithm Engineering Group at Heidelberg University released AAE, an agent skill for Claude Code and Codex that requires a falsifiable hypothesis before each optimization experiment and checks correctness after every change. In published results, AAE produced an 8.9x speedup on the VieCut exact minimum-cut solver with every cut unchanged, a 3.9x speedup on KaHIP's kaffpa graph partitioner with partition quality unchanged, and a 2.2% cut-size reduction on KaHIP ultra, alongside 3.0x, 1.82x, 1.61x and 1.24x speedups on Hochbaum's pseudoflow, FREIGHT, ParHIP and ScalableCorrelationClustering respectively. The skill installs via `/plugin install aae --marketplace CHSZLab/AgenticAlgorithmEngineering` in Claude Code or `scripts/install_codex_skill.py` in Codex, and emits one reviewable patch per accepted change plus a PDF report of the session.", "body_md": "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.\n\nA skill for Claude Code and Codex, from the Algorithm Engineering Group at Heidelberg University.\n\nEvery kept change was checked against the original output.\n\n| Code | Problem | Result | Correctness | Details | \n|---|---|---|---|---|\n| [VieCut](https://github.com/KaHIP/VieCut) | exact minimum cut | 8.9x faster | every cut unchanged | [v2.0](https://github.com/KaHIP/VieCut/releases/tag/v2.0) ,[paper](https://arxiv.org/abs/2609.07204) | \n| [KaHIP](https://github.com/KaHIP/KaHIP)`kaffpa` | graph partitioning | 3.9x faster | partition quality unchanged | [v3.26](https://github.com/KaHIP/KaHIP/releases/tag/v3.26) ,[report](https://github.com/CHSZLab/AgenticAlgorithmEngineering/blob/main/examples/reports/kahip_kaffpa_speed_report.pdf) | \n| KaHIP `ultra` | graph partitioning quality | 2.2% smaller cuts | same balance rule as `strong` | [v3.28](https://github.com/KaHIP/KaHIP/releases/tag/v3.28) | \n| Hochbaum's pseudoflow | maximum flow | 3.0x faster | flow value verified on 164 instances | [KB 039](https://github.com/CHSZLab/AgenticAlgorithmEngineering/blob/main/knowledge-base/039-pseudoflow-solve-direction.md) | \n| [FREIGHT](https://github.com/KaHIP/FREIGHT) | streaming hypergraph partitioning | 1.82x faster | bit-identical output | [KB 035](https://github.com/CHSZLab/AgenticAlgorithmEngineering/blob/main/knowledge-base/035-streaming-hypergraph-multipass-eval.md) | \n| [ParHIP](https://github.com/KaHIP/KaHIP) | distributed graph partitioning (MPI) | 1.61x faster | byte-identical partitions | [KB 040](https://github.com/CHSZLab/AgenticAlgorithmEngineering/blob/main/knowledge-base/040-parhip-bit-identical-speedup.md) | \n| [ScalableCorrelationClustering](https://github.com/KaHIP/ScalableCorrelationClustering) | correlation clustering | 1.24x faster | identical solution quality | [v1.2](https://github.com/KaHIP/ScalableCorrelationClustering/releases/tag/v1.2) | \n\nAlgorithm Engineering is a cycle of design, analysis, implementation and experiment, driven by falsifiable hypotheses. AAE hands this cycle to an autonomous agent. During setup you agree with the agent on the benchmark, the metric, the correctness assertions and the budget; then it runs on its own.\n\nA falsifiable hypothesis: \"changing X will improve the metric by roughly Z, because ...\"\n\nPredict direction and size of the effect before measuring, from profiling and analysis.\n\nA minimal change, committed to Git, with the correctness assertions checked.\n\nRun the benchmark; keep the change only if it is better and still correct, otherwise revert.\n\n`patches/`, each with its hypothesis, easy to review and apply.\nIn Claude Code:\n\n```\n/plugin install aae --marketplace CHSZLab/AgenticAlgorithmEngineering\n/aae:aae make the solver in src/ faster on the graphs in data/\n```\n\nIn Codex, install the skill with `scripts/install_codex_skill.py` and call it with `$aae`; any other agent can follow [AAE.md](https://github.com/CHSZLab/AgenticAlgorithmEngineering/blob/main/AAE.md). To try it first, run the [10-minute quick-start example](https://github.com/CHSZLab/AgenticAlgorithmEngineering/tree/main/examples/quickstart): a slow but correct shortest-path program with a benchmark and a correctness check.\n\n|  | autoresearch | AlphaEvolve, OpenEvolve, ShinkaEvolve | AAE | \n|---|---|---|---|\n| Works on | one training script | code blocks scored by an evaluator | any existing code base and language | \n| Search | one agent, keep or discard | language-model mutations and an evolutionary population | one agent following the Algorithm Engineering cycle | \n| Before each experiment | the agent's next idea | a proposed mutation | a falsifiable hypothesis with its predicted effect | \n| Correctness | the metric | the evaluator score | assertions agreed with you, checked after every change | \n| What you get | improved script and log | best program and population | one patch per change, a PDF report, lessons in a shared knowledge base | \n\nSessions share what they learned: the [knowledge base](https://github.com/CHSZLab/AgenticAlgorithmEngineering/tree/main/knowledge-base) collects optimization techniques and experiment results, and agents read it before they start. Contributions from your own sessions are welcome.\n\nDavid A. Bader, Adil Chhabra, Ernestine Großmann, Monika Henzinger, Alexander Noe, and Christian Schulz. *Agentic Algorithm Engineering: Improving Shared-Memory Exact Minimum Cuts.* In 13th DIMACS Implementation Challenge Workshop: Network Flows 2.0, OASIcs, 2027. To appear. Preprint: [arXiv:2609.07204](https://arxiv.org/abs/2609.07204).\n\n```\n@inproceedings{bader2027agenticalgorithmengineering,\n  title         = {Agentic Algorithm Engineering: Improving Shared-Memory Exact Minimum Cuts},\n  author        = {David A. Bader and Adil Chhabra and Ernestine Gro{\\ss}mann and Monika Henzinger and Alexander Noe and Christian Schulz},\n  booktitle     = {13th DIMACS Implementation Challenge Workshop: Network Flows 2.0},\n  series        = {OASIcs},\n  publisher     = {Schloss Dagstuhl -- Leibniz-Zentrum f{\\\"u}r Informatik},\n  year          = {2027},\n  note          = {To appear},\n  eprint        = {2609.07204},\n  archivePrefix = {arXiv},\n  url           = {https://arxiv.org/abs/2609.07204}\n}\n```\n\n", "url": "https://wpnews.pro/news/show-hn-an-agent-skill-that-optimizes-code-with-falsifiable-hypotheses", "canonical_source": "https://chszlab.github.io/AgenticAlgorithmEngineering/", "published_at": "2026-11-23 14:02:15+00:00", "updated_at": "2026-11-23 14:14:41.111015+00:00", "lang": "en", "topics": ["ai-agents", "ai-tools", "developer-tools", "ai-research"], "entities": ["Heidelberg University", "Algorithm Engineering Group", "AAE", "Claude Code", "Codex", "VieCut", "KaHIP", "ParHIP"], "also_reported_by": [], "takeaway": "AAE requires a falsifiable hypothesis with a predicted effect size before each experiment and reverts any change that fails the agreed correctness assertions, which yielded an 8.9x speedup on VieCut with every cut unchanged and a 3.9x speedup on KaHIP kaffpa with partition quality unchanged.", "recommendation": null, "alternates": {"html": "https://wpnews.pro/news/show-hn-an-agent-skill-that-optimizes-code-with-falsifiable-hypotheses", "markdown": "https://wpnews.pro/news/show-hn-an-agent-skill-that-optimizes-code-with-falsifiable-hypotheses.md", "text": "https://wpnews.pro/news/show-hn-an-agent-skill-that-optimizes-code-with-falsifiable-hypotheses.txt", "jsonld": "https://wpnews.pro/news/show-hn-an-agent-skill-that-optimizes-code-with-falsifiable-hypotheses.jsonld"}}