Agentic Algorithm Engineering (AAE)
Turns Claude Code or Codex into a performance engineer that optimizes existing code through falsifiable hypotheses, benchmarked changes and numbered patches.
- Source repo
- CHSZLab/AgenticAlgorithmEngineering
- Stars
- ★ 176
- Last updated
- 3d ago
- FARS reviewed
- Nov 29, 2026
- License
- MIT
- Primary language
- Python
- FA score
- 53/100 · Major gaps
At a glance
- Works with
- Portable with changesCodex · Claude Code
- You'll need
- Typical use
- Algorithm researchers speeding up an exact minimum-cut or graph-partitioning solver while every result must stay identical to the original
- Main limitation
- No standalone runtime: it depends on Claude Code or Codex and their model quota, so the operating cost follows the host subscription or API usage
- Website
- chszlab.github.io ↗ set on GitHub
- Maintenance
- Commits in the last 30 dayslast commit 2026-11-27
- Source review
- 53/100 · Major gaps 2 safety controls not found
What does this agent do, and when should you use it?
Agentic Algorithm Engineering (AAE) hands the Algorithm Engineering cycle — design, analysis, implementation, experimental evaluation — to an autonomous agent, distributed as a Claude Code plugin and a Codex skill backed by an AAE.md program definition. A session starts by agreeing with the user on target files, benchmark command, metric and direction, correctness assertions and an experiment budget; the agent then loops on its own, writing a falsifiable hypothesis with a predicted effect before each change, running the benchmark, comparing measurements against the baseline, and keeping or discarding. Every accepted change becomes a numbered Git patch in patches/, and the session ends with a PDF report in report/ containing the metric trajectory and one page per tested hypothesis (intuition, prediction, code change, measurements, verdict). It works on any existing code base, in any language and for any metric, and offers a multi-component mode that tests several hypotheses inside one shared benchmark run, committing each component separately so it can be reverted on its own. The repository also ships a community knowledge base and published results on open-source codes, such as 3.9x total speedup for KaHIP kaffpa and 8.9x for VieCut, with outputs verified unchanged.
AAE runs a constrained experiment loop inside a host agent (Claude Code or Codex). Setup fixes four things with the user: the target files, the benchmark command, the metric and its direction, the correctness assertions, and an experiment count or time budget. Each iteration then consists of forming a falsifiable hypothesis grounded in profiling and analysis with an explicit predicted effect, implementing the change, running the benchmark, comparing measurements to the baseline, and recording a verdict of keep or discard; correctness assertions run after every change (for example identical cut values or bit-identical output). A session produces auditable artifacts: results.tsv with the experiment data, one numbered Git patch per accepted change in patches/, and a PDF in report/ with a trajectory of the metric and one page per tested hypothesis. The multi-component mode instruments the target code, evaluates several component hypotheses in a single shared benchmark run, gives each component change its own commit (with shared instrumentation in a separate commit) so any of them can be reverted via git revert, and validates the retained combination against the overall metric and correctness assertions. Lessons captured during sessions go into knowledge-base/. The PDF needs Python 3 and LaTeX with latexmk; without LaTeX the session still runs and keeps the patches, only skipping the PDF.
- Algorithm researchers speeding up an exact minimum-cut or graph-partitioning solver while every result must stay identical to the original
- HPC and C++ teams optimizing a large existing code base where each change must be individually reviewable and revertable
- Researchers who need reproducible experiment records (metric trajectory plus one page per hypothesis) for a paper or technical report
- Engineers already running Claude Code or Codex who want repetitive tuning trials executed by an agent instead of by hand
- Projects with long-running benchmarks over several independently optimizable components, where several hypotheses should be validated in one shared run
- Anyone wanting a cheap trial first: the 10-minute example in examples/quickstart/ is a slow but correct shortest-path program
Key setup facts
Pulled from the install and usage notes below. The project README has the current values.
- Config files
~/.claude/skills/aae
How do you install or deploy this agent?
AAE is not a standalone program: it installs as a plugin or skill inside Claude Code or Codex.
Claude Code, via the plugin marketplace:
/plugin install aae --marketplace CHSZLab/AgenticAlgorithmEngineeringOn Claude Code versions before 2.1.275, add the marketplace first:
/plugin marketplace add CHSZLab/AgenticAlgorithmEngineering
/plugin install aae@aaeWithout the plugin system, a plain clone works (the skill is then called /aae):
git clone https://github.com/CHSZLab/AgenticAlgorithmEngineering ~/.claude/skills/aaeCodex, from a terminal checkout:
git clone https://github.com/CHSZLab/AgenticAlgorithmEngineering.git
cd AgenticAlgorithmEngineering
python3 scripts/install_codex_skill.pyProject-local Codex install:
python3 scripts/install_codex_skill.py --dest /path/to/project/.agents/skillsThe installer copies a self-contained skill to ${CODEX_HOME:-~/.codex}/skills/aae and refuses to overwrite an existing installation; to update, pull the checkout and install to a new destination, or move the old aae directory aside first. The PDF report needs Python 3 and LaTeX (TeX Live with latexmk); without LaTeX the session still runs and keeps the patches, only the PDF is skipped.
How do you use this agent?
Agree on scope before the loop starts: target files, benchmark command, metric and direction, correctness assertions, and an experiment budget.
In Claude Code:
/aae:aae make the solver in src/ faster on the graphs in data/In Codex, invoking the skill:
$aae make the solver in src/ faster on the graphs in data/; run at most 20 experimentsUnattended Codex runs use YOLO mode, which the README restricts to a trusted, externally isolated container or VM:
codex --yoloTo keep the loop alive in Claude Code, either set up a manager/executor Agent Team (after export CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS=1) or nudge the agent on a timer:
/loop 30m continue the AAE loopTo try it before touching your own code, run the 10-minute example in examples/quickstart/. Every session leaves results.tsv, numbered patches in patches/, and report sources in report/ (plus a PDF when LaTeX is available).
Safety boundaries, hardening & integrations
Operational blast radius, source-verified safety controls, and first-run hardening steps before connecting this agent to real workspaces.
Declared capability surface (blast radius)
Can run terminal commands; pair with approval gates or container/OS sandboxing.
Modifies local files; work on a clean Git branch or dedicated worktree.
Makes outbound requests; verify telemetry settings and model data routing on private repos.
FARS trust-control audit
- sensitive-data handling — Use dedicated, low-privilege, revocable API keys — never production credentials — and keep secrets out of logs.
- dependency security — Pin versions and run a dependency audit (npm audit, pip-audit) before installing; prefer running it in a container.
What are this agent's strengths and limitations?
- Forces a falsifiable hypothesis with a predicted effect before every experiment, so each trial is motivated by profiling and analysis rather than blind keep-or-discard
- Correctness assertions are checked after every change, and the published cases all preserve output (every VieCut cut unchanged, bit-identical FREIGHT output)
- One numbered Git patch per accepted change plus a PDF report with the metric trajectory and one page per hypothesis gives a reviewable, reproducible trail
- Language- and metric-agnostic: it works on any existing code base, not just a single training script or evaluator-scored code blocks
- Multi-component mode tests several component hypotheses in one shared benchmark run, with one commit per component so a bad change can be reverted individually
- Externally checkable results are already published: 3.9x total speedup for KaHIP kaffpa, 3.0x for Hochbaum's pseudoflow, 1.61x for ParHIP partitioning
- No standalone runtime: it depends on Claude Code or Codex and their model quota, so the operating cost follows the host subscription or API usage
- The PDF report requires Python 3 and LaTeX (TeX Live with latexmk); without them you only get patches and report sources
- Truly unattended operation needs
--dangerously-skip-permissionsor--yolo, i.e. skipping approvals and disabling the sandbox, so it is only safe in an isolated environment - Even with permissions bypassed the agent may still stop and ask for input, requiring Agent Teams or
/loopnudges to continue - Benchmark command, metric and correctness assertions must be supplied by the user; poor choices there directly limit how meaningful the verdicts are
- The published speedup evidence comes from C++ shared-memory and MPI graph codes; other domains are not demonstrated
How does this agent compare with similar options?
Key facts side by side with the most closely related agents.
| Agent | Source review | Form / cost | Stars | Updated | Language | Full support on |
|---|---|---|---|---|---|---|
| Agentic Algorithm Engineering (AAE) This agent | 53 · Major gaps | — | ★ 176 | 3d ago | Python | Codex · Claude Code |
| Elephant-Goldfish Model (EGM) | 76 · Good | Agent plugin / skillFree + model costs | ★ 24k | 1d ago | Python | Codex · Claude Code |
| Temporal Development Skill | 72 · Some gaps | Agent plugin / skillFree + model costs | ★ 243 | 6d ago | — | Codex · Claude Code |
| Ponytail | 64 · Some gaps | Agent plugin / skillFree + model costs | ★ 201k | 8d ago | JavaScript | Codex · Claude Code |
How does FollowAgents rate this agent?
Why each dimension lost points
The README explicitly recommends running the autonomous loop with --dangerously-bypass-approvals-and-sandbox and --dangerously-skip-permissions, and suggests Agent Teams to keep it unattended; this contradicts least privilege. A caveat about using an isolated container/VM exists, but the default path still disables sandboxing and approvals. Setup requires agreeing on benchmark, metric, correctness assertions, and budget, which is a one-time user confirmation, but the loop then runs without per-change confirmation. Data-flow transparency and sensitive-data handling are essentially absent; dependencies are unpinned and unaudited; external effects (code edits, branches, commits) are described but thinly safeguarded. Rollback is better handled: session branch, per-component commits, git revert, and numbered patches. Source attribution cites Sanders, the paper, the Zenodo DOI, and the author. Deductions: permission advice, missing sensitive-data guidance, missing dependency security.
Multiple SKILL.md copies (root, skills/aae, claude-plugin/skills/aae) are largely consistent, and CI uses build_claude_plugin.py --check to verify claude-plugin matches AAE.md, the knowledge base, and templates, showing self-consistency. Dependencies (Python 3, optional LaTeX, Claude Code/Codex) are documented, and patches are kept when LaTeX is missing, so dependency availability is adequate. However, versions are not pinned, and there is no evidence of failure-message or error-handling design (the skill is a prompt, not a program with error handling), so failure_messages is 0.
Aimed at performance engineers and researchers, supporting any codebase/language; the README compares scenarios with autoresearch, AlphaEvolve, etc., so audience and scenarios are clear. Capability boundaries are mostly clear (optimize a metric, correctness assertions, budget), but there is no explicit 'what it does not do' list. Trigger description is precise (frontmatter states when to use it), and it fits both Claude Code and Codex with separate installation paths. Overall adaptability is good; the deduction is for limited explicitness of boundaries and limitations.
The README is well structured, and installation notes are thorough (Claude Code plugin/clone, Codex installer, manual install, per-project install, update), so information architecture and install notes score well. Naming is stable (aae), and the MIT license file matches plugin.json. There is a quick-start example, an example results table, and an example report PDF, but no FAQ. Known limitations are only mentioned in passing (optional LaTeX, component interactions, agent may pause), with no dedicated section. Version 1.0.0 and a Zenodo DOI exist, but there is no CHANGELOG. Maintenance responsibility names the author and research group and includes contribution guidance, but publisher identity is unverified.
Outputs are usable: numbered patches, a PDF report (one page per hypothesis), results.tsv, and knowledge-base entries, which are easy to review and reuse. Marginal value over autoresearch/AlphaEvolve is clear: falsifiable hypotheses, correctness assertions, patches, and a report. However, cost-benefit is not quantified, and recommending YOLO/skipping approvals amplifies risk and uncontrolled cost; the budget mechanism is only 'agreed with the user', so cost_benefit is 1.
Performance claims (8.9x, 3.9x, etc.) link to releases, the paper, knowledge-base entries, and report PDFs, so traceability is good; the paper, releases, reports, and KB can cross-corroborate. The report structure separates hypothesis, prediction, measurement, and verdict, so fact and inference are reasonably separated. But some claims (e.g. 'every cut unchanged') rely on external releases and the paper, and the repository does not provide raw measurement data or reproduction scripts, so full marks are not given.
- Not found in source: sensitive-data handlingUse dedicated, low-privilege, revocable API keys — never production credentials — and keep secrets out of logs.
- Not found in source: dependency securityPin versions and run a dependency audit (npm audit, pip-audit) before installing; prefer running it in a container.
- The README recommends --dangerously-bypass-approvals-and-sandbox / --dangerously-skip-permissions with Agent Teams for unattended operation, which disables sandboxing and approvals; use only in an isolated container/VM and ensure external backups and rollback.
- Sensitive-data handling is not addressed: the agent reads target code, runs benchmarks, and generates reports, potentially writing code/logs into patches and PDFs; avoid running directly on repositories containing secrets or sensitive data.
- Dependencies are unpinned, and the installer plus LaTeX/Python environment may change with upstream; pin versions in a controlled environment.
- Publisher identity is unverified; maintenance responsibility and update paths should be independently confirmed.
Thanks — we use this to improve the page.
Subscribe to the FollowAgents RSS feed, or save this agent to your browser shortlist to compare on your next visit.