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.
git clone --depth 1 https://github.com/solanabr/solana-ai-kitWrote 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/commands/solanabr/solana-ai-kit/dream)<a href="https://agentmods.dev/commands/solanabr/solana-ai-kit/dream"><img src="https://agentmods.dev/badge/commands/solanabr/solana-ai-kit/dream/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/commands/solanabr/solana-ai-kit/dream"><img src="https://agentmods.dev/badge/commands/solanabr/solana-ai-kit/dream.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.00017 | $0.01130 |
| Opus 5.5 | $0.00007 | $0.00452 |
| Sonnet 5.5 | $0.00003 | $0.00226 |
| Haiku 4.5 | $0.00002 | $0.00113 |
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 1mo 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 — 56 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Consolidate project memory. This pass adds no new knowledge: it merges duplicates, resolves contradictions, drops what is stale and strengthens what is proven. Edit only MEMORY.md and, after the user confirms, the ## Project Learnings section of CLAUDE.md. Never touch project code.
Entry schema
MEMORY.md sections: ## Patterns, ## Pitfalls, ## Preferences, ## Architecture, ## Tools. Work with each entry in this typed form (step 6 covers how it is written back):
### kebab-case-key
- **Insight:** One clear sentence
- **Confidence:** N/10
- **Source:** command/agent/session that produced it (e.g. debug-user-tx, manual)
- **Files:** relative/path.rs, other/path.ts (optional)
- **Date:** YYYY-MM-DD
Backfill missing fields: unknown source legacy, missing date today, missing confidence 5/10.
Pipeline
- Collect. Read
MEMORY.md; if it is missing, create it with the five section headers, report "fresh memory initialized" and skip to step 6. Read the## Project Learningssection ofCLAUDE.md(Recurring Issues, Fix Patterns, Config Conventions): it is always loaded and is the authoritative set for contradiction checks. Count entries per section and malformed entries. - Merge. Same key more than once: keep the latest-dated entry, fold extra detail from the older ones into its Insight, take the max confidence and delete the older ones (consolidation is the one place append-only history gets compacted). Different keys with the same meaning (compare the insights, not the strings): merge under the clearer key, noting the alias if useful.
- Resolve contradictions ("use X" vs "avoid X", inside MEMORY.md or against Project Learnings). Higher confidence plus newer date wins; if the referenced files show which one is true today, check the code; if it is still ambiguous, ask the user and show both entries. Delete the loser and add "supersedes: " to the winner.
- Prune. Auto-remove dead references (every listed file is gone, checked with Glob; if some survive, trim the Files list), transient leftovers (in-progress work, old branch state, one-off incidents that can't recur) and verbatim restatements of README or CLAUDE.md. For stale entries (confidence 4 or lower, older than 90 days, never re-confirmed) ask the user: remove, keep and re-date to today, or update the insight.
- Re-rank each section by confidence, then date, both descending.
- Write back under the cap.
MEMORY.mdloads at every session start, so it has a hard cap of 200 lines / 25KB and stays index-pointer style: one-line insights pointing at files, not essays. The typed fields are processing-only for steps 2-5; that metadata lives in the linked detail files, not in the index. If it is over the cap, compress insights to one line, drop obvious Files, then remove the lowest-confidence entries and tell the user what was cut. Show a before/after diff summary, not the whole file. - Export to CLAUDE.md (optional; confirm first). Promote an entry only when its confidence is 8/10 or higher, it survived an earlier consolidation (30+ days old or re-confirmed), it applies to the whole project rather than one file's quirk, and it fits one bullet:
- **key:** insight (N/10). On confirmation, append it under the matching Project Learnings subsection and delete it from MEMORY.md; CLAUDE.md is always loaded, so keeping both wastes tokens.
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.
- 1mo ago Changed · -56 lines · -14 tokens per session abd9c60ffbac
- 1mo ago First seen · 112 lines · 31 tokens per session scan A a12e2d1b5d2e
dream is a command published in the GitHub repository solanabr/solana-ai-kit (104 stars, last pushed 1mo ago), licensed MIT. It adds 17 tokens to every session and 1,130 once invoked, about $0.0001 per session on Opus 5.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-30.
Other commands, from other repositories
lessons-compact
Compact MEMORY/LESSON.md by deduplicating near-identical lessons, merging same-root-cause lessons, and pruning stale ones — without losing any unique signal. Delegates the analysis to the lessons-compactor agent.
lessons
View project lessons in MEMORY/LESSON.md (project root) and append a compact "never reproduce" lesson.
cleanup-context
Memory optimization - removes duplicates, consolidates knowledge, and cleans memory banks for better performance.
apex
APEX Methodology - The systematic Analyze-Plan-Execute-eLicit-eXamine approach for intelligent development. Reduces hallucination and defect risk through mandatory parallel research, self-review, and validation gates.
explain-architecture
Analyze and explain software architecture with ASCII diagrams and pattern detection. Creates visual representations of system design.
reflect
Capture learnings from the current conversation through guided reflection.