weill-labs/hgm

Clean-room reimplementation of the Huxley-Gödel Machine (arXiv:2510.21614): a self-improving coding agent with CMP + Thompson-Sampling tree search, validated in $0 simulation and live on SWE-bench (mini-swe-agent + gpt-5.4).

5 files for Claude Code, Codex and OpenCode: PreCompact, SessionStart, hgm, hgm AGENTS.md and 1 more — 1,526 tokens loaded in every session.

2Stars on the repository
5Files it configures its agents with
1,526Tokens loaded in every session
3Agents configured

Instructions

Settings

Hooks

These files are weill-labs/hgm's own configuration — they tell Claude Code, Codex and OpenCode how to work on this repository, so they are not mods to install elsewhere. Copy one as a starting point and replace the parts that are about this project.