wire-memory CLAUDE.md

Instructions for a Claude Code add-on that gives an AI agent persistent memory stored in Wire containers. Wire is the external service used to save, search, browse, and manage that memory.

In plain words
What is it for?
Use it to connect an agent to a Wire memory container, save and search project context, and guide when the agent should check its stored memory.
Why use it?
It helps the agent retain useful information between sessions and prompts instead of relying only on the current conversation.

Instructions file

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 instructions/usewire/wire-memory/claude-md
Clone the repo
git clone --depth 1 https://github.com/usewire/wire-memory
Per session 480 This file is loaded in full into every session.
When invoked 480 The same file — it is already loaded in full.
Security scan A 1 finding. 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.00480 $0.00480
Opus 5 $0.00240 $0.00240
Sonnet 5 $0.00096 $0.00096
Haiku 4.5 $0.00048 $0.00048

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

Security

Grade A, and why

wire-memory CLAUDE.md scanned grade A with 1 finding 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.

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.

Runs shell commandslowCapability

Expected in a hook, worth knowing in a rule or an instructions file.

The scripts use only Node.js built-ins (crypto, fs, path, os, child_process).
CLAUDE.md · 48 lines

How it starts

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

wire-memory

Claude Code plugin that gives AI agents persistent memory via Wire containers.

How it works

This is a native Claude Code plugin — no build step, no dependencies, no CLI.

  1. User runs /wire-memory:connect — opens browser, authenticates via Wire's nonce flow, selects a container
  2. Connect script saves MCP endpoint + API key to ~/.wire-memory/config.json (owner-only permissions)
  3. Connect script writes real values directly into .mcp.json and marks it --skip-worktree to prevent accidental commits
  4. After restart, agent has native access to wire_write, wire_search, wire_explore, wire_navigate, wire_delete
  5. The skills/memory/SKILL.md teaches the agent when and how to use these tools for persistent memory
  6. The hooks/hooks.json registers a UserPromptSubmit eval hook that prompts the agent to check memory on every prompt

Plugin structure

wire-memory/
├── .claude-plugin/plugin.json   # Plugin manifest
├── .mcp.json                    # MCP server config (placeholder until connected)
├── skills/memory/SKILL.md       # Behavioral instructions for memory usage
├── hooks/hooks.json             # UserPromptSubmit eval hook registration
├── commands/connect.md          # /wire-memory:connect
├── commands/status.md           # /wire-memory:status
├── commands/disconnect.md       # /wire-memory:disconnect
├── scripts/connect.mjs          # Nonce flow (Node.js, zero deps)
├── scripts/eval-hook.mjs        # Eval hook — prompts agent to use memory tools
├── scripts/status.mjs           # Show connection info
├── scripts/disconnect.mjs       # Clean up config
├── package.json                 # @usewire/memory
└── LICENSE                      # MIT, Superloops LLC

Development

Test locally:

claude --plugin-dir .

Then run /wire-memory:connect to test the flow.

No build step

Everything is plain .mjs and markdown. No TypeScript, no bundler, no dependencies. The scripts use only Node.js built-ins (crypto, fs, path, os, child_process).

Read the full file on GitHub · 48 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. 2d ago First seen · 48 lines · 480 tokens per session scan A a04998e22f43

Subscribe to this mod's changes

wire-memory CLAUDE.md is an instructions file published in the GitHub repository usewire/wire-memory (10 stars, last pushed 3mo ago), licensed MIT. It adds 480 tokens to every session, about $0.0024 per session on Opus 5. A static security scan graded it A with 1 finding (runs shell commands). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other instructions, from other repositories

neo AGENTS.md

Instructions for neomjs/neo, covering ai agent per-turn operational mandates, §corevalues, §identitypromptfirewall, §criticalgates and §precommitgates.

neomjs/neo · 5,647 tokens

atomicmemory AGENTS.md

AGENTS.md instructions for atomicstrata/atomicmemory, covering agents.md, repository shape, working rules, engineering standards and size limits (typescript and javascript).

atomicstrata/atomicmemory · 2,372 tokens

atomicmemory CLAUDE.md

Claude Code instructions for atomicstrata/atomicmemory, a project described as: Portable semantic memory for AI agents: core engine, TypeScript SDK, framework adapters, MCP server, CLI, and host plugins.

atomicstrata/atomicmemory · 10 tokens

atomicmemory GEMINI.md

Gemini CLI instructions for atomicstrata/atomicmemory, a project described as: Portable semantic memory for AI agents: core engine, TypeScript SDK, framework adapters, MCP server, CLI, and host plugins.

atomicstrata/atomicmemory · 10 tokens

nemori CLAUDE.md

Instructions for nemori-ai/nemori: 本次开发只能在feat/hypergraph上开发 尽可能使用subagent team来完成复杂任务,且必须使用opus 4.6作为驱动所有subagents的模型.

nemori-ai/nemori · 39 tokens

aidimag AGENTS.md

AGENTS.md instructions for AiDimag/aidimag: Treat the items below as the project's verified beliefs. Respect every Guardrail: 🚫 NEVER = refuse and explain why · ✅ ALWAYS = do it without asking · 🤚 ASK FIRST = check with the user first.

AiDimag/aidimag · 117 tokens