Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By Malek1414v0.1.0Apache-2.0In 1 marketplace
Point it at a repo and a goal. heartgold researches how the best people solve that problem, tries several implementations in isolated git worktrees, and keeps only the changes it can prove are better.
You run one by typing its /name in Claude Code.
No risk signals detected
Nothing flagged in this plugin's hooks, MCP servers or commands. Other components are not analyzed.
Static checks of hooks, mods, MCP servers and commands. Not a security audit.
1 marketplace, most starred first
optimization, performance, benchmarking, research, code-improvement, tdd
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Coding agents that have to prove it.
Point it at a repo and a goal. It researches how the best people solve that problem, races several coding agents in
isolated git worktrees, and keeps only the changes it can prove are better.
| Result | Checked on unseen inputs | |
|---|---|---|
| 🦀 Rust, prime counting | 405x faster for $2.73 | 2,406 cases identical, 606x at an unseen size |
| 🟨 JavaScript, LCS | 62x faster for $0.87 | 3,004 cases identical, 80x on a new input distribution |
| 🐹 Go, SemVer 2.0.0 | built from an empty stub for $1.17 | passes 153 hidden checks |
| 🐍 Python, speed suite | beats a plain claude -p prompt on every fixture average | hidden benchmarks, sandboxed |
Wrong-but-fast code is never kept: every candidate must return exactly what the original returned, pass every original test, and win on benchmarks it never saw.
In Claude Code:
/plugin marketplace add Malek1414/heartgold
/plugin install heartgold@heartgold
/heartgold . --goal "Make parse_rows as fast as possible without changing its results"
Or from the command line (Python 3.11+, no third-party dependencies, needs the claude CLI):
git clone https://github.com/Malek1414/heartgold && cd heartgold
python -m heartgold run path/to/repo --goal "Make lcs_length as fast as possible without changing its results"
python -m heartgold run path/to/repo --goal "Make lcs_length as fast as possible without changing its results"
A goal compiler (one cheap agent call, with a keyword fallback) reads the goal and the code and picks the mode, and
the function the goal is about. --mode speed|bug|spec skips it.
Speed mode (make code faster without changing what it returns). If the repo has no benchmark, heartgold writes
one first, built from how the code is really used (inputs like those in the tests, README and call sites), and keeps
it in .heartgold/ where no attempt can edit it.
bench.py.searchify CLI, when installed) and GitHub code search
(gh search code) for the fastest known algorithms, and turns the results into ranked ideas with sources.Close wins (under 1.5x) are re-timed against the current best, interleaved (old, new, old, new...), and kept only if the bootstrap 95 % interval of the time ratio is entirely below 1. The final report gives the speedup with that interval.
Bug mode (a wrong result, a crash, a bug report): it first writes reproduction tests and accepts them only if they run and fail on the original code. The reproduction alone isn't trusted: it must fail first, then pass after the fix (fail-to-pass). Then candidates, differential testing and a judge as in spec mode; a fix is kept only if the reproduction passes and every original test still does.
Spec mode (build or fix behaviour to a written specification): it researches the requirements with verbatim-quote citation checks, fetches the full specification text, writes tests from it, builds several candidates, finds inputs where they disagree, and has a spec-reading judge settle each disagreement into an exact-value test (DiffSpec-style).
Built from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
npx claudepluginhub malek1414/heartgold --plugin heartgoldPlugins from other owners that cover similar ground