Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add randomittin/heimdall --skill self-improvegit clone --depth 1 https://github.com/randomittin/heimdallWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/randomittin/heimdall/self-improve)<a href="https://agentmods.dev/skills/randomittin/heimdall/self-improve"><img src="https://agentmods.dev/badge/skills/randomittin/heimdall/self-improve/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/randomittin/heimdall/self-improve"><img src="https://agentmods.dev/badge/skills/randomittin/heimdall/self-improve.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector pass
What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00000 | $0.02483 |
| Opus 5.5 | $0.00000 | $0.00993 |
| Sonnet 5.5 | $0.00000 | $0.00497 |
| Haiku 4.5 | $0.00000 | $0.00248 |
Grade A, and why
self-improve scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3mo ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 178 lines — stays where its author put it; the contents beside it link to each section on GitHub.
self-improve — improve the improver
The maintainer loop (/hmd:maintain-check) fixes issues. This skill makes the maintainer
get better at fixing issues over time. It is karpathy/autoresearch
applied to Heimdall's own routing and planning — see
docs/analysis/autoresearch-distilled.md for the
distilled mechanics this is built on.
autoresearch's one non-negotiable rule, imported wholesale: an improvement persists only with a
measured delta over a baseline — never because it seemed better. The mechanical parts
(aggregation, hypothesis generation, override apply/rollback, experiment logging) live in
bin/heimdall-self-improve; your job is the judgement of which hypothesis is worth an experiment.
Where this DEPARTS from autoresearch, on purpose. autoresearch runs one 5-minute training run
per experiment and compares val_bpb — a low-variance continuous scalar, where n=1 is a usable
measurement. It has no sample-size rule at all. Heimdall's scalar is a proportion (first-try
acceptance pass-rate), which is far noisier: at 3 samples, a routing variant that is genuinely no
better still clears a 0.10 delta about 73% of the time. So the sample-size floor is Heimdall's
own addition, not something inherited — and it is load-bearing. Do not describe it as autoresearch's
discipline; autoresearch simply never needed one.
When this runs
- On demand: the user runs
/hmd:self-improveor asks Heimdall to improve/tune itself. One experiment per invocation. - Between maintainer fix batches.
/hmd:maintain-checkdocuments this as a step you run yourself. There is no automatic every-Nth-cycle trigger —self_improveis not a keyheimdall-state initcreates, nothing inbin/ hooks/ sentinels/ modules/reads it, and nothing counts cycles toward it. See Not implemented: the automatic every-Nth-cycle trigger incommands/maintain-check.md. - Overnight (
/dream): the/dreamcommand wraps this loop for an off-hours run and leaves a morning report (.planning/dream/YYYY-MM-DD.md) — seecommands/dream.md. It reuses this exact keep-gate (surface-first; only measured, reversible wins persist).
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 3mo ago First seen · 178 lines · 0 tokens per session scan A 24f3cc78c093
self-improve is a skill published in the GitHub repository randomittin/heimdall (5 stars, last pushed 3d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 2,483 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
self-improve compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| self-improverandomittin/heimdall | Skill | 5 | 3d ago | MIT | A | 0 | Claude Code |
| symbiote-impactMohmmedAshraf/symbiote | Skill | 6 | 8mo ago | MIT | A | 64 | Claude Code, Codex |
| autofix-prQwenLM/qwen-code | Skill | 31k | today | Apache-2.0 | A | 142 | Claude Code |
| issue-creationGentleman-Programming/gentle-ai | Skill | 9.7k | yesterday | MIT | A | 30 | Claude Code, Codex |
| work-unit-commitsGentleman-Programming/gentle-ai | Skill | 9.7k | yesterday | MIT | A | 31 | Claude Code, Codex |
| systemic-issue-triageGentleman-Programming/gentle-ai | Skill | 9.7k | yesterday | MIT | A | 57 | Claude Code, Codex |
| skill-improverGentleman-Programming/gentle-ai | Skill | 9.7k | yesterday | MIT | A | 29 | Claude Code, Codex |