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 agentmods add commands/randomittin/heimdall/dreamgit clone --depth 1 https://github.com/randomittin/heimdallWhat 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 | $0.00047 | $0.01896 |
| Opus 5 | $0.00023 | $0.00948 |
| Sonnet 5 | $0.00009 | $0.00379 |
| Haiku 4.5 | $0.00005 | $0.00190 |
Grade A, and why
dream 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 2d 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 — 151 lines — stays where its author put it; the contents beside it link to each section on GitHub.
/dream — sleep on it, wake to a report
/dream is Heimdall's OVERNIGHT self-improvement + maintainer pass. It does the deep
work while you're away and leaves a morning report (a dream journal) to review —
it does not auto-apply risky changes. Think of it as "sleep on the codebase and
tell me what you learned." (There is no /sleep command — /dream is the canonical
name. The underlying capability stays available as /hmd:self-improve.)
The heavy lifting is delegated to the deterministic orchestrator bin/heimdall-dream,
which REUSES the existing pieces — it invents no new keep/rollback logic:
- autoresearch / self-improve (
bin/heimdall-self-improve) — form routing/planning hypotheses from real metrics + queue evidence, and TEST them with the falsifiable keep-or-rollback gate. An improvement persists ONLY on a measured delta over baseline. - maintainer sweep (seeker) — raise issues found (recurring dead-reason clusters + the live issue queue) WITH proposed fixes, as candidates for a human.
Invariants (never weakened)
- Shadow-first — routing/planning suggestions are SURFACED for morning review, not auto-applied. Only the self-improve keep-gate (safe, measured, reversible) may persist a change overnight; everything else is a suggestion.
- Agent-never-pushes —
/dreamruns nogit push, nogh pr, no merge. It writes a local report; you review and apply in the morning. - Real, not fabricated — every line of the report is sourced from actual self-improve
output + real queue state. With NO evidence yet (empty
metrics.jsonl) the report says "Nothing to suggest" honestly rather than inventing work.
Run it
On-demand (runs the loop now, writes today's report):
# surface-only (default) — shadow-first: suggest routing changes, don't apply them.
heimdall-dream --repo . run --json
# also START one bounded, reversible experiment (safe per the keep-gate: unvalidated,
# snapshotted, auto-rolled-back next cycle if it does not beat baseline):
heimdall-dream --repo . run --overnight --start-experiment --json
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.
- 2d ago First seen · 151 lines · 0 tokens per session scan A 514575e6f807
dream is a command published in the GitHub repository randomittin/heimdall (5 stars, last pushed 12d ago), licensed MIT. It adds 47 tokens to every session and 1,896 once invoked, about $0.0002 per session on Opus 5. 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.
Other commands, from other repositories
autocode
Fully autonomous development pipeline. Give it a feature description or PRD file and it will plan, write tests, implement code, run tests, and verify — all automatically with zero human intervention.
autocode-new
Scan current project and generate a project-specific autocode development pipeline (agents, commands, rules, hooks). Interactive setup wizard.
analyze-repo
Analyze an existing repository's structure, conventions, and guardrails.
doctor
Run IJFW health check (files, MCP server, hooks, memory, caps, framing).
dispatcher
Pick the next-best repo to work on across the portfolio — rank free repos, recommend one, claim its lease atomically, and route to the entry command.
standup
Show a daily standup summary with completed, in-progress, and blocked tasks across all active epics.