vecfs-memory

A skill that gives an agent long-term memory stored in a local file of sparse vectors, which are compact numerical representations of text. It can recall earlier context, decisions, errors, and feedback.

In plain words
What is it for?
Use it for projects that span sessions, tasks involving recall or learning, repeated errors, and conversations where past context or feedback matters.
Why use it?
It helps an agent keep useful information across conversations and avoid repeating mistakes or forgetting decisions made in earlier sessions.

Skill for Claude CodeCodex

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/wazzamo/vecfs/vecfs-memory
Any agent
npx skills add WazzaMo/vecfs --skill vecfs-memory
Clone the repo
git clone --depth 1 https://github.com/WazzaMo/vecfs

Made for: Claude Code, Codex.

Per session 54 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,239 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.00054 $0.01239
Opus 5 $0.00027 $0.00620
Sonnet 5 $0.00011 $0.00248
Haiku 4.5 $0.00005 $0.00124

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

Security

Grade A, and why

vecfs-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 2d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/validate-store.sh), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

vecfs-memory/SKILL.md · 150 lines

How it starts

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

When to Activate

Activate this skill when any of the following apply:

  • The user's task is non-trivial and could benefit from prior context.
  • The user explicitly mentions remembering, recalling, or learning.
  • The agent encounters a repeated error or pattern it has seen before.
  • The conversation involves a project that spans multiple sessions.
  • The conversation or a markdown file indicates that a decision has been made.

Generating Embeddings

The VecFS MCP server accepts pre-computed sparse vectors. Use the bundled embedding script to convert text into a sparse vector before calling the server tools.

echo "your search text" | python -m vecfs_embed --mode query

Embed a Document (for memorisation)

python -m vecfs_embed --mode document "key lesson or fact to remember"

The script outputs JSON with a vector field that can be passed directly to the search or memorize tools.

See references/vector-encoding.md for details on how embeddings are converted to sparse vectors.

Context Sweep (Proactive Recall)

At the start of any non-trivial task, perform a Context Sweep:

  1. Extract keywords and concepts from the current user prompt.
  2. Generate a sparse vector by running the embedding script in query mode.
  3. Call the search tool with that vector.
  4. If results are returned with high similarity, incorporate them into your reasoning (including any stored decisions). Mention to the user that you found relevant history.
  5. If results have low similarity or no results are returned, proceed without historical context. Do not force irrelevant recall.

Memorisation (Reflective Learning)

After completing a task or achieving a milestone:

  1. Identify key lessons, corrections, decisions, or facts worth retaining.
  2. Filter for long-term value: avoid storing transient details like one-time commands or session-specific paths.
  3. Summarise the lesson as a short, clear text (one to three sentences).
  4. Generate a sparse vector by running the embedding script in document mode.
  5. Call the memorize tool with:
    • A descriptive id (e.g., lesson-react-useeffect-cleanup).
    • The text content.
    • The sparse vector.
    • Optional metadata tags (e.g., {"topic": "react", "type": "correction"}).

Read the full file on GitHub · 150 lines

Files

What ships with it

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

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. 2d ago First seen · 150 lines · 54 tokens per session scan A 2c44fd15cc17

Subscribe to this mod's changes

vecfs-memory is a skill published in the GitHub repository WazzaMo/vecfs (9 stars, last pushed 5mo ago), licensed Apache-2.0. It adds 54 tokens to every session and 1,239 once invoked, about $0.0003 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

kapso-whatsapp

How to interact with Kapso WhatsApp from the swarm — read inbound webhook payloads (text AND media), fetch message history, send free-form messages within the 24h session window (and template messages outside it), mark-as-read, show the typing indicator, send reactions, download media, verify webhook signatures, and…

desplega-ai/agent-swarm · 156 tokens

srt-whiteboard-animation

将 SRT 字幕做成暖米黄纸张底的白板手绘动画:读字幕→输出配图策略→确认后生成统一风格线稿→按叙事语义标注分区→预览台调整→渲染 MP4。编排沿用分区遮罩揭示(annotation.json / sequence / startMs / protectedRegions),但每个区域内的落墨换成 stream 的连续笔迹(骨架/网格 ink→color)。当用户提供 SRT 字幕并要求"字幕做成白板手绘/流式笔迹视频""SRT 生成白板动画""按字幕分镜画手绘"时触发。.

geeklee/srt-whiteboard-animation · 156 tokens

composio

Use Composio from Agent Swarm through the agent-swarm x composio CLI route, the swarmx MCP tool, or a registered ctx.api.composio script connection. Trigger when a task needs connected third-party app tools such as Gmail, Google Calendar, Google Docs, Google Drive, GitHub, Slack, Notion, or HubSpot through Tool Router…

desplega-ai/agent-swarm · 128 tokens

user-management

How to manage the user registry — creating users for new Slack/GitHub/GitLab/Linear identities, managing aliases, resolving users across platforms. Use when a new human interacts with the swarm or when user identity needs updating.

desplega-ai/agent-swarm · 49 tokens

review-offered-task

Review a task that has been offered to you and decide whether to accept or reject it.

desplega-ai/agent-swarm · 22 tokens

close-issue

Close a GitHub or GitLab issue with a summary comment.

desplega-ai/agent-swarm · 16 tokens