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.
git clone --depth 1 https://github.com/oyi77/1ai-skillsnpx agentmods add skills/oyi77/1ai-skills/memory-gatewayWrote 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.
[](https://agentmods.dev/skills/oyi77/1ai-skills/memory-gateway)<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.
<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>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.
| Model | Per session | Once 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 |
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.
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
papercliportodo. - 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. |
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.
- 1mo ago First seen · 177 lines · 65 tokens per session scan A a7c67df42473
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.
memory-gateway compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| memory-gatewayoyi77/1ai-skills | Skill | 19 | today | MIT | A | 65 | Claude Code |
| agent-ops-statemajiayu000/claude-skill-registry-data | Skill | 32 | yesterday | none | A | 37 | Claude Code, Codex |
| task-handoffsutongwuyanzu/TaskHandoff | Skill | 1 | 3mo ago | MIT | A | 89 | Claude Code |
| project-onboardingArchieIndian/openclaw-superpowers | Skill | 75 | 7mo ago | none | A | 32 | Claude Code, Codex |
| knowledge-orgbojieli/ai-agent-book | Skill | 61k | 2d ago | Apache-2.0 | A | 96 | Claude Code, Codex |
| peer-reviewsynthetic-sciences/openscience | Skill | 4.5k | yesterday | Apache-2.0 | A | 110 | Claude Code |
| aatmf-t04-memory-manipulationPurpleAILAB/Decepticon | Skill | 6.9k | 14d ago | Apache-2.0 | A | 39 | Claude Code, Codex |