memory-gateway

memory-gateway is a skill for Claude Code from oyi77/1ai-skills. It costs 65 tokens per session (1,514 once invoked), scanned A, original, MIT.

A portable way to save durable context as plain Markdown files so different coding agents or later sessions can read it. It supports handoffs, resuming work, and checking links and identifiers in shared memories.

In plain words
What is it for?
Use it to save and search task context, hand work between agents, resume previous decisions, and diagnose malformed shared memories.
Why use it?
Agents often lose decisions and lessons when a session ends or work moves to another tool. This provides a readable format without depending on one vendor's storage system.

Skill for Claude Code

Written for Claude Code: argument-hint in frontmatter. Also seen: mentions Claude Code; mentions Codex; mentions OpenCode.

Needs its repository: it reads a path above its own folder, which exists only inside the repository. The line is - ../../docs/adr/0007-hmac-v2.md.

Part of the 1ai-skills plugin — 250 skills, 4 commands shipped together

Good fit Use it to save and search task context, hand work between agents, resume previous decisions, and diagnose malformed shared memories.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/oyi77/1ai-skills
agentmods
npx agentmods add skills/oyi77/1ai-skills/memory-gateway

Made for: Claude Code.

Or install 1ai-skills, the plugin that ships this one along with the rest of its 250 skills, 4 commands.

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/oyi77/1ai-skills/memory-gateway"><img src="https://agentmods.dev/badge/skills/oyi77/1ai-skills/memory-gateway.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 65 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,514 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.00065 $0.01514
Opus 5.5 $0.00026 $0.00606
Sonnet 5.5 $0.00013 $0.00303
Haiku 4.5 $0.00006 $0.00151

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

Security

Grade A, and why

memory-gateway 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 1mo 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.

core/memory-gateway/SKILL.md · 177 lines

How it starts

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

Memory Gateway

Overview

Portable cross-harness memory contract. Stores durable context as plain Markdown documents that any agent (OMP, Claude Code, OpenCode, Cursor, Codex) can read and write without vendor binaries. Inspired by ECC's unified-memory vault architecture, adapted to filesystem-native operations.

The problem it solves: agents lose context across sessions and harnesses. Transcript dumps are too large and harness-specific. The gateway defines a small, inspectable document format with scopes, IDs, and link integrity rules.

When to Use

Trigger phrases:

  • "shared memory", "cross-agent memory", "memory gateway"
  • "handoff context", "resume task", "persist memory"

Use directly when:

  • Saving durable context another agent or later session needs.
  • Handing work between harnesses mid-task.
  • Resuming a task and searching for prior decisions, facts, or lessons.
  • Diagnosing malformed memories, broken links, or duplicate IDs.

When NOT to Use

  • As a task tracker → use paperclip or todo.
  • As a secret store → use env files or Vault skills.
  • As a substitute for governed project documentation (README, ADR, CHANGELOG).
  • For ephemeral scratch notes within a single session → use context_notes.

Anti-Rationalization Table

Rationalization Reality
"I'll paste the whole transcript for the next agent." Transcripts are megabytes of noise. A 20-line memory doc carries the decision and its constraints.
"Memory files will rot and nobody reads them." Scoped, dated, linked memories with explicit status fields are greppable and expire visibly. Rot is a governance problem, not a format problem.
"Each harness has its own memory system, why unify?" Cross-harness handoffs break when formats diverge. Plain Markdown is the lowest common denominator every agent can parse.
"I'll store it in the database instead." DB rows are opaque to agents reading files. Markdown lives in the repo/workspace where grep, read, and diff work natively.

Read the full file on GitHub · 177 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. 1mo ago First seen · 177 lines · 65 tokens per session scan A a7c67df42473

Subscribe to this mod's changes

memory-gateway is a skill published in the GitHub repository oyi77/1ai-skills (19 stars, last pushed today), licensed MIT. It adds 65 tokens to every session and 1,514 once invoked, about $0.0003 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-11-04.

Related

memory-gateway compared with skills from other repositories

memory-gateway next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
memory-gatewayoyi77/1ai-skillsSkill19todayMITA65Claude Code
agent-ops-statemajiayu000/claude-skill-registry-dataSkill32yesterdaynoneA37Claude Code, Codex
task-handoffsutongwuyanzu/TaskHandoffSkill13mo agoMITA89Claude Code
project-onboardingArchieIndian/openclaw-superpowersSkill757mo agononeA32Claude Code, Codex
knowledge-orgbojieli/ai-agent-bookSkill61k2d agoApache-2.0A96Claude Code, Codex
peer-reviewsynthetic-sciences/openscienceSkill4.5kyesterdayApache-2.0A110Claude Code
aatmf-t04-memory-manipulationPurpleAILAB/DecepticonSkill6.9k14d agoApache-2.0A39Claude Code, Codex