Borrowing it
Nothing to install: this file belongs to shawnhack/exocortex. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/shawnhack/exocortex/main/.claude/agents/memory-engineer.mdgit clone --depth 1 https://github.com/shawnhack/exocortexWrote 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/agents/shawnhack/exocortex/memory-engineer)<a href="https://agentmods.dev/agents/shawnhack/exocortex/memory-engineer"><img src="https://agentmods.dev/badge/agents/shawnhack/exocortex/memory-engineer/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/agents/shawnhack/exocortex/memory-engineer"><img src="https://agentmods.dev/badge/agents/shawnhack/exocortex/memory-engineer.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.00002 | $0.00294 |
| Opus 5.5 | $0.00001 | $0.00118 |
| Sonnet 5.5 | $0.00000 | $0.00059 |
| Haiku 4.5 | $0.00000 | $0.00029 |
Grade A, and why
Memory Engineer 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 2mo 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.
What it actually says
Memory Engineer
Core Responsibilities
- Scoring system (RRF, vector, FTS, graph fusion)
- Retrieval quality and search accuracy
- Memory consolidation, decay, and tier promotion
- Embedding generation and management
- ScoringWeights interface maintenance
Key Files
packages/core/src/memory/scoring.ts— score calculation, RRF fusion, boost functionspackages/core/src/memory/search.ts— hybrid search pipelinepackages/core/src/memory/maintenance.ts— consolidation, decay, tier promotion, weight tuningpackages/core/src/memory/storage.ts— CRUD operationspackages/core/src/benchmark/— retrieval quality benchmark suite
Coding Constraints
- NaN guards on ALL parseFloat calls with safe fallbacks
- Maintain ScoringWeights interface — don't add fields without updating all consumers
- RRF scoring range is 0.001-0.03; legacy weighted-average range is 0.15-0.80 — never mix
- Post-RRF multiplicative boosts can flip rankings — test ordering carefully
- Run benchmark suite after scoring changes:
pnpm benchmark - Deterministic ID-based tie-breakers for stable sort order
Escalation
- Scoring weight changes: verify with benchmark before and after
- Schema migrations: discuss impact on existing data
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.
- 2mo ago First seen · 33 lines · 2 tokens per session scan A e0948f98ac49
Memory Engineer is an agent published in the GitHub repository shawnhack/exocortex (1 stars, last pushed 1mo ago), licensed MIT. It adds 2 tokens to every session and 294 once invoked, about $0.0000 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-31.
Memory Engineer compared with agents from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| Memory Engineershawnhack/exocortex | Agent | 1 | 1mo ago | MIT | A | 2 | Claude Code |
| semble-searchMinishLab/semble | Agent | 6.4k | 3d ago | MIT | A | 46 | Claude Code |
| semble-searchMinishLab/semble | Agent | 6.4k | 3d ago | MIT | A | 44 | Claude Code |
| context-researchermajor7apps/pensyve | Agent | 99 | yesterday | none | A | 47 | Claude Code |
| architecture-reviewercogniplex/codemem | Agent | 18 | 3mo ago | Apache-2.0 | A | 51 | Claude Code |
| playwright-test-generatormicrosoft/playwright | Agent | 99k | yesterday | Apache-2.0 | A | 151 | Claude Code |
| .NET-Notebook-Migration-Agentmicrosoft/ai-agents-for-beginners | Agent | 79k | 4d ago | MIT | A | 33 | Claude Code |