swarm-memory

swarm-memory is a skill for Claude Code, Codex from clawsouls/clawsouls-claude-code-plugin. It costs 29 tokens per session (312 once invoked), scanned A, original, Apache-2.0.

A system for storing an agent’s long-term and short-term knowledge in organized files tracked with Git, a tool for recording and syncing file changes.

In plain words
What is it for?
Use it to search memory files, sync them through Git, summarize older notes, promote important information, and resolve merge conflicts.
Why use it?
It helps preserve useful context between sessions and devices, while making it possible to search memories, update them, and handle conflicting edits.

Skill for Claude CodeCodex

Part of the clawsouls plugin — 5 skills, 6 commands, 1 agent, 4 hooks, 1 MCP server shipped together

Install

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.

agentmods
npx agentmods add skills/clawsouls/clawsouls-claude-code-plugin/swarm-memory
Any agent
npx skills add clawsouls/clawsouls-claude-code-plugin --skill swarm-memory
Clone the repo
git clone --depth 1 https://github.com/clawsouls/clawsouls-claude-code-plugin

Made for: Claude Code, Codex.

Or install clawsouls, the plugin that ships this one along with the rest of its 5 skills, 6 commands, 1 agent, 4 hooks, 1 MCP server.

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 swarm-memory

README.md
[![agentmods](https://agentmods.dev/badge/skills/clawsouls/clawsouls-claude-code-plugin/swarm-memory.svg)](https://agentmods.dev/skills/clawsouls/clawsouls-claude-code-plugin/swarm-memory)
Your own site
<a href="https://agentmods.dev/skills/clawsouls/clawsouls-claude-code-plugin/swarm-memory"><img src="https://agentmods.dev/badge/skills/clawsouls/clawsouls-claude-code-plugin/swarm-memory.svg" alt="Measured on agentmods" height="20"></a>
Per session 29 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 312 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00029 $0.00312
Opus 5 $0.00015 $0.00156
Sonnet 5 $0.00006 $0.00062
Haiku 4.5 $0.00003 $0.00031

Measured 4d ago against content hash caa2550a8b44, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

swarm-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 4d 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.

skills/swarm-memory/SKILL.md · 33 lines

What it actually says

Swarm Memory — Git-Based Memory Sync

Manage structured memory files that persist across sessions and sync across devices via Git.

When to activate

  • User asks about agent memory, knowledge, or recall
  • User mentions MEMORY.md, memory files, or daily logs
  • User wants to sync, search, or organize agent memories
  • Memory conflicts or merge issues arise

Memory architecture (4-Tier)

  • T0 (Identity): SOUL.md, IDENTITY.md — immutable core
  • T1 (Long-term): MEMORY.md — curated, promoted from T2
  • T2 (Short-term): memory/*.md — daily logs, topic files
  • T3 (Session): Current conversation context

Operations

  • Search: Grep across all memory files for relevant context
  • Sync: Git add/commit/push memory files to remote
  • Compact: Summarize old entries, promote to MEMORY.md
  • Resolve: Handle merge conflicts in memory files (prefer newer + human edits)

Best practices

  • Topic files: memory/topic-*.md (max 30 lines history, 50 lines decisions)
  • Daily logs: memory/YYYY-MM-DD.md
  • Always commit memory changes with descriptive messages
  • Search memory before answering questions about prior work
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. 4d ago First seen · 33 lines · 29 tokens per session scan A caa2550a8b44

Subscribe to this mod's changes

swarm-memory is a skill published in the GitHub repository clawsouls/clawsouls-claude-code-plugin (2 stars, last pushed 24d ago), licensed Apache-2.0. It adds 29 tokens to every session and 312 once invoked, about $0.0001 per session on Opus 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

Other skills, from other repositories

flow-next-audit

Audit .flow/memory/ entries against current code and keep, update, consolidate, replace, delete, or harden each. Use when asked to audit memory or graduate a recurring lesson into a gate.

gmickel/flow-next · 46 tokens

flow-next-audit

Audit .flow/memory/ entries against the current codebase and decide Keep / Update / Consolidate / Replace / Delete per entry. Triggers on /flow-next:audit, "audit memory", "review memory", "refresh learnings", "sweep stale memory", "consolidate overlapping memory entries". Optional mode:autofix token in arguments runs…

gmickel/flow-next · 112 tokens

flow-next-memory-migrate

Migrate legacy flat .flow/memory files to the categorized YAML schema. One-time ceremony. Use when asked to migrate flow memory.

gmickel/flow-next · 33 tokens

taiyi-compress

TaiyiForge 辅助 — Token 压缩编排:/taiyi:token compress + Superpowers subagent + ECC strategic-compact / handoff。OpenCode / Claude / Codex / Cursor 通用。.

Dong90/oh-my-taiyiforge · 51 tokens

create-ex

你是一个帮助用户重建前任数字人格的助手。 你的目标是通过对话引导 + 微信聊天记录分析,生成一个能真实复现前任沟通风格和情感模式的 Persona Skill。.

titanwings/ex-skill · 14 tokens

steer

Project-profile recalibration. Audits session calibration drift, presents per-cluster evidence for a user verdict, writes the updated project-profile rule, and inscribes a settled-direction clause.

jongwony/epistemic-protocols · 39 tokens