memoryClaw: Agent for Claude Code

.claude/agents/sprint-0.md

sprint-0 is an agent for Claude Code from tostechbr/memoryClaw. It costs 47 tokens per session (1,102 once invoked), scanned A, original, MIT.

A coding agent for adding separate user workspaces to Akashic Context, an MCP server that gives AI agents persistent memory.

In plain words
What is it for?
Use it to add user IDs to memory tools, create per-user folders and databases, support working memory in context.json files, and add the memory context tool.
Why use it?
It prevents one user's memories and working notes from being mixed with another user's data.

Agent for Claude Code

Written for Claude Code: installed under .claude/. Also seen: model in frontmatter.

This is tostechbr/memoryClaw's own configuration. It tells Claude Code how to work on memoryClaw itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything memoryClaw configures →

Reuse

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.

Copy the file
curl -O https://raw.githubusercontent.com/tostechbr/memoryClaw/main/.claude/agents/sprint-0.md
Clone the repo
git clone --depth 1 https://github.com/tostechbr/memoryClaw

Made for: Claude Code.

Wrote 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.

agentmods badge for sprint-0

README.md
[![agentmods](https://agentmods.dev/badge/agents/tostechbr/memoryclaw/sprint-0/github.svg)](https://agentmods.dev/agents/tostechbr/memoryclaw/sprint-0)
Your own site
<a href="https://agentmods.dev/agents/tostechbr/memoryclaw/sprint-0"><img src="https://agentmods.dev/badge/agents/tostechbr/memoryclaw/sprint-0/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.

agentmods 80×15 button for sprint-0

Your own site · 80×15
<a href="https://agentmods.dev/agents/tostechbr/memoryclaw/sprint-0"><img src="https://agentmods.dev/badge/agents/tostechbr/memoryclaw/sprint-0.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 47 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,102 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5.1 $0.00047 $0.01102
Opus 5.5 $0.00019 $0.00441
Sonnet 5.5 $0.00009 $0.00220
Haiku 4.5 $0.00005 $0.00110

Measured 2mo ago against content hash 305b2f8c96a2, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

sprint-0 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.

.claude/agents/sprint-0.md · 117 lines

How it starts

The opening of the file, as written. The whole thing — 117 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Sprint 0 Agent — Multi-User Isolation

You are a senior TypeScript engineer implementing Sprint 0 of Akashic Context.

Project Context

Akashic Context is an open-source MCP server that gives AI agents persistent memory. It stores memories as Markdown files + SQLite + FTS5 keyword search.

Stack: TypeScript ESM, Node 18+, better-sqlite3, Vitest, MCP Protocol Package manager: pnpm (monorepo) Test command: pnpm test -- --run Build command: pnpm build

Current State (what already exists)

packages/core/src/memory/manager.ts — MemoryManagerConfig already has userId: string field (uncommitted) packages/core/src/memory/storage.ts — StorageConfig already has userId field (uncommitted) packages/mcp-server/src/index.ts — still hardcodes userId: "mcp-user" (NOT done)

The MCP tools do NOT yet expose userId as a parameter to callers. The per-user workspace path ({dataDir}/users/{userId}/) is NOT yet implemented.

Sprint 0 Deliverables

1. userId in all 4 MCP tools

File: packages/mcp-server/src/index.ts

  • Add optional userId?: string param to: memory_search, memory_get, memory_store, memory_delete
  • If not provided, default to "default" (backward compatible)
  • Pass userId when constructing MemoryManager

2. Per-user workspace

File: packages/core/src/memory/manager.ts

  • Workspace changes from {workspaceDir}/ to {workspaceDir}/users/{userId}/
  • MEMORY.md and memory/*.md isolated per user
  • Auto-create user workspace directory on first use

3. Per-user database

File: packages/core/src/memory/storage.ts

  • DB path changes from {dataDir}/memory.db to {dataDir}/users/{userId}/memory.db
  • Full isolation — zero cross-user leakage

4. Working Memory (context.json per user)

New file: packages/core/src/memory/working-memory.ts

  • Each user has {workspaceDir}/users/{userId}/context.json
  • Interface: { session_id, active_topic, last_interaction, pending_decisions, entities_seen, updated_at }
  • Read/write functions: getWorkingMemory(userId), setWorkingMemory(userId, data)

Read the full file on GitHub · 117 lines

Changes

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.

  1. 2mo ago First seen · 117 lines · 47 tokens per session scan A 305b2f8c96a2

Subscribe to this mod's changes

sprint-0 is an agent published in the GitHub repository tostechbr/memoryClaw (8 stars, last pushed 8mo ago), licensed MIT. It adds 47 tokens to every session and 1,102 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.

Related

sprint-0 compared with agents from other repositories

sprint-0 next to 6 agents from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
sprint-0tostechbr/memoryClawAgent88mo agoMITA47Claude Code
Agent Prompt: Dream memory consolidationopenonion/connectonionAgent1.5kyesterdayApache-2.0A45Claude Code
Agent Prompt: Conversation summarizationopenonion/connectonionAgent1.5kyesterdayApache-2.0C14Claude Code
context-builderjulymetodiev/post-cortexAgent2017d agoMITA45Claude Code
memory-curatorjulymetodiev/post-cortexAgent2017d agoMITA41Claude Code
timps_memory_agentSandeeprdy1729/timps-swarmAgent12mo agoMITA45Claude Code
memory-consolidatorbaodq97/tencentdb-agent-memoryAgent122mo agononeA60Claude Code