antfly-memory

antfly-memory is a skill for Claude Code, Codex from antflydb/antfly. It costs 0 tokens per session (590 once invoked), scanned A, original, Apache-2.0.

A guide for keeping durable, evidence-backed memory in Antfly between sessions. It covers remembering preferences, decisions, useful procedures, and corrections in named spaces.

In plain words
What is it for?
Use it to recall relevant history, record observations and outcomes, explain why a memory was used, and correct or remove outdated facts.
Why use it?
It prevents important context from being lost between conversations and provides ways to review, correct, or forget stored information.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to recall relevant history, record observations and outcomes, explain why a memory was used, and correct or remove outdated facts.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/antflydb/antfly/antfly-memory
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.

Any agent
npx skills add antflydb/antfly --skill antfly-memory
Clone the repo
git clone --depth 1 https://github.com/antflydb/antfly

Made for: Claude Code, Codex.

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/antflydb/antfly/antfly-memory/github.svg)](https://agentmods.dev/skills/antflydb/antfly/antfly-memory)
Your own site
<a href="https://agentmods.dev/skills/antflydb/antfly/antfly-memory"><img src="https://agentmods.dev/badge/skills/antflydb/antfly/antfly-memory/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 antfly-memory

Your own site · 80×15
<a href="https://agentmods.dev/skills/antflydb/antfly/antfly-memory"><img src="https://agentmods.dev/badge/skills/antflydb/antfly/antfly-memory.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 590 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.00000 $0.00590
Opus 5.5 $0.00000 $0.00236
Sonnet 5.5 $0.00000 $0.00118
Haiku 4.5 $0.00000 $0.00059

Measured yesterday against content hash d8e3e99ecb11, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

antfly-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 yesterday.

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.

zig/pkg/antfly/src/api/mcp_skills/antfly-memory/SKILL.md · 41 lines

How it starts

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

Antfly Memory

Use this skill when an agent keeps durable, evidence-backed memory in Antfly across sessions: what the user prefers, decisions and their rationale, procedures that worked, and facts that later turn out to be wrong.

Endpoints

  • /memory/v1/mcp/agent is the small agent toolset: memory_brief, memory_recall, memory_observe, memory_correct, memory_forget, memory_outcome, memory_get and memory_explain. Prefer it inside a task. Mutating tools accept an omitted idempotency_key; an identical retry replays the first receipt.
  • /memory/v1/mcp is the full catalog (configuration, curation, consolidation, evaluation). Use it for administration, not for routine recall. Mutations there require idempotency_key.

Every call names a space; database and namespace default to default and public. Arguments carry the action's typed body, for example:

{"name": "memory_recall", "arguments": {"space": "team", "body": {"query": "deployment guidance", "token_budget": 2048}}}

Working loop

  1. Start with a brief. memory_brief returns at most 64 compact items that fit token_budget (default 1024): pinned items first, then constraints, preferences and procedures. Inject it as context.
  2. Recall on demand. memory_recall with a focused query when the task needs more than the brief. Keep token_budget small; recall ranks and truncates to fit it.
  3. Observe evidence, not conclusions. memory_observe records what actually happened or what the user said. Antfly derives claims from evidence and keeps provenance, so record the source text, not your paraphrase of it.
  4. Correct and forget explicitly. When the user says a memory is wrong, call memory_correct with the replacement; when they ask you to forget, call memory_forget. Do not silently ignore stale memories.
  5. Report outcomes. After you used memories to complete a task, memory_outcome with the ids you used and whether it worked. Outcome utility reorders future recall.
  6. Explain when asked. memory_explain shows why a memory exists and which evidence supports it.

Read the full file on GitHub · 41 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. yesterday First seen · 41 lines · 0 tokens per session scan A d8e3e99ecb11

Subscribe to this mod's changes

antfly-memory is a skill published in the GitHub repository antflydb/antfly (535 stars, last pushed today), licensed Apache-2.0. It costs nothing until one of its globs matches a file; then it loads 590 tokens. 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-12-03.

Related

antfly-memory compared with skills from other repositories

antfly-memory next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
antfly-memoryantflydb/antflySkill535todayApache-2.0A0Claude Code, Codex
pixelbrowseStarTrail-org/PixelRAGSkill11kyesterdayApache-2.0A90Claude Code
xerjxerj-org/xerjSkill24ktodayApache-2.0A38Claude Code, Codex
decisionbibinprathap/VeritasGraphSkill3285d agoMITA55Claude Code
memvid-ragfa-ina-tic/memvid-ragSkill33mo agononeA45Claude Code
mem0-climem0ai/mem0Skill70k7d agoApache-2.0A177Claude Code, Codex
mem0-vercel-ai-sdkmem0ai/mem0Skill70k7d agoApache-2.0A146Claude Code, Codex