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 Arasz/ai-raccoon --skill ai-raccoon-memorygit clone --depth 1 https://github.com/Arasz/ai-raccoonWrote 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/arasz/ai-raccoon/ai-raccoon-memory)<a href="https://agentmods.dev/skills/arasz/ai-raccoon/ai-raccoon-memory"><img src="https://agentmods.dev/badge/skills/arasz/ai-raccoon/ai-raccoon-memory/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/arasz/ai-raccoon/ai-raccoon-memory"><img src="https://agentmods.dev/badge/skills/arasz/ai-raccoon/ai-raccoon-memory.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.00040 | $0.04569 |
| Opus 5.5 | $0.00016 | $0.01828 |
| Sonnet 5.5 | $0.00008 | $0.00914 |
| Haiku 4.5 | $0.00004 | $0.00457 |
Grade A, and why
ai-raccoon-memory 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 yesterday.
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 — 261 lines — stays where its author put it; the contents beside it link to each section on GitHub.
AiRaccoon Memory
When NOT to Use
- A one-off lookup ("have we seen X before?") — run
queryand be done, no watch ritual, no write-back - No docs directory to watch and no durable fact to write — the ritual adds ceremony, not value
- The memory-grade hook when you only need one answer — it is opt-in by env var; don't enable it for a single search
1. Watch-on-docs ritual (do this first)
On session start, run get_watch_status(projectId) for this project. If the docs directory
is not in the watched list, run add_watch(projectId, <absolute path to docs>) to mirror
it into memory. The watch starts scanning and settles to healthy; an already-watched path is
a no-op.
CLI prerequisite (only when the watch errors): watching-disabled or path-outside-scope
means the one-time per-install setup is missing (quote the * so the shell does not expand it):
ai-raccoon watch scope add '<project-id|*>' <path>, then
ai-raccoon watch enable '<project-id|*>' true. If the memory_watch_* tools are not listed at
all (older tool build on another machine), update the tool: dotnet tool update -g arasz.ai-raccoon.
2. Search-first workflow
Always pass projectId and sessionId. Pass your session id on every search. The server rejects a blank one and stores the value verbatim on the search row. Before web search, code search, or asking the user, run query(projectId, sessionId, scope=all) with 2-3 formulations. Try the exact phrase first, then keywords, then a plain restatement. Entries carry source paths. Cite them as evidence. Every reply carries meta.correlationId. Keep that id. You need it to grade the search or to record that you opened one of its files.
3. Escalation by result
- Decisive hit → use it; cite the source path.
- Partial hit → one targeted external search, then reconcile.
- No hit → search externally, then write the finding back with
add_memory(source path included).
4. Write discipline
Durable facts only, one per entry, source included. Plain writes land in committed project
memory (project:<id>). For in-progress notes use workspace isolation:
initialize_workspace → get_workspace_status → close_workspace(keep=[...])
(or ["all"] to promote everything; discard_workspace to drop). Promote durable
cross-project facts with share_memory — never automatically. trigger_memory_cleanup removes old
low-rated entries; shared entries are exempt.
What ships with it
12 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
- scripts/badger_store.py 117 KB runs code
- scripts/memory_broker_hook.py 2.5 KB runs code
- scripts/memory_broker.py 22 KB runs code
- scripts/memory_context_hook.py 5.9 KB runs code
- scripts/memory_context.py 36 KB runs code
- scripts/memory_first_gate_hook.py 2.7 KB runs code
- scripts/memory_first_gate_post_hook.py 2.3 KB runs code
- scripts/memory_first_gate.py 35 KB runs code
- scripts/memory_grade_hook.py 12 KB runs code
- scripts/openrouter_client.py 25 KB runs code
- scripts/query_pipeline.py 28 KB runs code
- scripts/shell_parser.py 21 KB runs code
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.
- yesterday First seen · 261 lines · 40 tokens per session scan A 223e4539ace4
ai-raccoon-memory is a skill published in the GitHub repository Arasz/ai-raccoon (7 stars, last pushed today), licensed MIT. It adds 40 tokens to every session and 4,569 once invoked, about $0.0002 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-12-05.
ai-raccoon-memory compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| ai-raccoon-memoryArasz/ai-raccoon | Skill | 7 | today | MIT | A | 40 | Claude Code |
| prolongalexisfox7/PRO-LONG | Skill | 466 | 1mo ago | MIT | A | 55 | Codex |
| cartographer-kb-createBeppeTemp/cartographer | Skill | 74 | yesterday | Apache-2.0 | A | 53 | Claude Code, Codex |
| cartographer-kb-importBeppeTemp/cartographer | Skill | 74 | yesterday | Apache-2.0 | A | 51 | Claude Code, Codex |
| lemmalogJordyZomer/lemmalog | Skill | 355 | 2mo ago | MIT | A | 105 | Claude Code, Codex |
| cartographer-kb-doctorBeppeTemp/cartographer | Skill | 74 | yesterday | Apache-2.0 | A | 91 | Claude Code, Codex |
| causal-memoryJingxuanC/causal-memory | Skill | 112 | 1mo ago | Apache-2.0 | A | 88 | Claude Code |