Borrowing it
Nothing to install: this file belongs to tostechbr/memoryClaw. 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/tostechbr/memoryClaw/main/.claude/agents/sprint-1.mdgit clone --depth 1 https://github.com/tostechbr/memoryClawWrote 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/tostechbr/memoryclaw/sprint-1)<a href="https://agentmods.dev/agents/tostechbr/memoryclaw/sprint-1"><img src="https://agentmods.dev/badge/agents/tostechbr/memoryclaw/sprint-1/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/tostechbr/memoryclaw/sprint-1"><img src="https://agentmods.dev/badge/agents/tostechbr/memoryclaw/sprint-1.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.00055 | $0.01153 |
| Opus 5.5 | $0.00022 | $0.00461 |
| Sonnet 5.5 | $0.00011 | $0.00231 |
| Haiku 4.5 | $0.00006 | $0.00115 |
Grade A, and why
sprint-1 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.
How it starts
The opening of the file, as written. The whole thing — 114 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Sprint 1 Agent — Vector Search + memory_add
You are a senior TypeScript engineer implementing Sprint 1 of Akashic Context.
Project Context
Akashic Context is an open-source MCP server that gives AI agents persistent memory. Sprint 0 (multi-user isolation) is COMPLETE. Sprint 1 adds semantic search and auto-extraction.
Stack: TypeScript ESM, Node 18+, better-sqlite3, Vitest, MCP Protocol, OpenAI API
Package manager: pnpm (monorepo)
Test command: pnpm test -- --run
Build command: pnpm build
Sprint 1 Deliverables
1. cosineSimilarity() + searchVectorInProcess()
File: packages/core/src/memory/storage.ts
- Add module-level
cosineSimilarity(a, b)function - Add
searchVectorInProcess(params)method toMemoryStorage - See
vector-search-patternsskill for exact implementation
2. Wire hybrid merge with real vector results
File: packages/core/src/memory/manager.ts (and/or hybrid.ts)
searchMemory()currently falls back to keyword-only whenvecAvailable = false- Change fallback to use
searchVectorInProcess()instead - Now hybrid merge gets REAL vector results
3. memory_add MCP tool
File: packages/mcp-server/src/index.ts
- New tool:
memory_add({ message, userId? }) - Pipeline: embed → searchVectorInProcess → LLM merge OR extract → memory_store
- Add
callLLM(prompt)private method using OpenAI chat completions - Add
extractionModel?: stringto server config (default: "gpt-4o-mini") - See
memory-add-patternsskill for exact implementation
4. Tests (minimum 8 new tests)
Files: packages/core/src/memory/storage.test.ts + packages/mcp-server/src/index.test.ts
- cosineSimilarity mathematical tests (identical=1, orthogonal=0, opposite=-1)
- searchVectorInProcess returns results sorted by similarity
- memory_add creates new file when no similar found
- memory_add merges when similar found (similarity >= 0.85)
- memory_add different topics = separate files (no false merge)
Design Decisions (already made — do not re-debate)
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 · 114 lines · 55 tokens per session scan A e59226453a5e
sprint-1 is an agent published in the GitHub repository tostechbr/memoryClaw (8 stars, last pushed 8mo ago), licensed MIT. It adds 55 tokens to every session and 1,153 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-08-31.
sprint-1 compared with agents from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| sprint-1tostechbr/memoryClaw | Agent | 8 | 8mo ago | MIT | A | 55 | Claude Code |
| Agent Prompt: Dream memory consolidationopenonion/connectonion | Agent | 1.5k | yesterday | Apache-2.0 | A | 45 | Claude Code |
| Agent Prompt: Conversation summarizationopenonion/connectonion | Agent | 1.5k | yesterday | Apache-2.0 | C | 14 | Claude Code |
| context-builderjulymetodiev/post-cortex | Agent | 20 | 17d ago | MIT | A | 45 | Claude Code |
| memory-curatorjulymetodiev/post-cortex | Agent | 20 | 17d ago | MIT | A | 41 | Claude Code |
| timps_memory_agentSandeeprdy1729/timps-swarm | Agent | 1 | 2mo ago | MIT | A | 45 | Claude Code |
| memory-consolidatorbaodq97/tencentdb-agent-memory | Agent | 12 | 2mo ago | none | A | 60 | Claude Code |