memory-loop

memory-loop is a skill for Claude Code, Codex from jscott3201/aionforge-memory. It costs 47 tokens per session (704 once invoked), scanned A, original, Apache-2.0.

A task workflow that uses Aionforge Memory, an external service for saving and retrieving project context, decisions, and work items.

In plain words
What is it for?
Implementation, debugging, code review, releases, incident response, planning, handoffs, and other multi-step work where durable context matters.
Why use it?
It helps coding sessions continue from earlier decisions and unfinished work instead of starting with no context after each handoff or interruption.

Skill for Claude CodeCodex

Written for Claude Code and Codex: shipped in a Claude Code plugin, but also agents/openai.yaml present.

Part of the aionforge-memory plugin — 7 skills, 3 commands, 1 hook shipped together

Good fit Implementation, debugging, code review, releases, incident response, planning, handoffs, and other multi-step work where durable context matters.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/jscott3201/aionforge-memory/memory-loop
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 jscott3201/aionforge-memory --skill memory-loop
Clone the repo
git clone --depth 1 https://github.com/jscott3201/aionforge-memory

Made for: Claude Code, Codex.

Or install aionforge-memory, the plugin that ships this one along with the rest of its 7 skills, 3 commands, 1 hook.

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-loop

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/jscott3201/aionforge-memory/memory-loop"><img src="https://agentmods.dev/badge/skills/jscott3201/aionforge-memory/memory-loop.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 47 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 704 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.00047 $0.00704
Opus 5.5 $0.00019 $0.00282
Sonnet 5.5 $0.00009 $0.00141
Haiku 4.5 $0.00005 $0.00070

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

Security

Grade A, and why

memory-loop 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.

plugins/aionforge-memory/skills/memory-loop/SKILL.md · 37 lines

How it starts

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

Memory Loop

Requires an enabled Aionforge Memory MCP server.

Use this skill to make memory part of the task loop, not a final afterthought.

Procedure

  1. Start with memory-recall. Search broadly enough to find prior decisions, preferences, blockers, release state, and failed attempts. Also recall open work with work_query / work_tree so you continue the backlog instead of re-deriving it. On every read path — search, read_memory, session_manifest, work_query — assert the teams you belong to (e.g. teams: ["aionforge-memory-team"]); read authorization is per-call, so team memory and team work items are out of scope unless you assert the team on that call. A by-id read_memory of a team memory needs that team asserted in the same call (parity with search) — it never auto-widens.
  2. Work from current evidence. Recalled memory can guide attention, but repo state, tool output, and user instructions win.
  3. Capture along the way the moment a durable fact lands: decision made, blocker found, fix verified, release changed, user preference learned, or approach rejected. Do not save these for the end — a context compaction can discard them first.
  4. Track the work as it moves. When a task, blocker, or TODO appears, work_create a work item (see the work-tracking skill); work_advance its status as it progresses. Tasks are work items, not memory episodes — and there is no "note" to store directly.
  5. Be generous with memory. Aionforge can handle large memory sets; several precise records are better than one vague end note.
  6. At natural checkpoints, search again if new terms, file paths, ids, or failures appear.
  7. Before ending, capture a handoff when future agents would benefit: branch, PR, commits, tests, CI, remaining work, and caveats. Leave the remaining work as work items so the next agent can work_query it. When the handoff is directed at a specific agent or teammate — not just left for whoever comes next — also message_send them a brief so they actually receive it (see the agent-messaging skill): the capture and work items make it durable, the message delivers it.
  8. Run consolidation_status; run consolidate only when the approval policy permits mutating derived memory.

Read the full file on GitHub · 37 lines

Files

What ships with it

1 file 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. 1mo ago First seen · 37 lines · 47 tokens per session scan A f799a430fce1

Subscribe to this mod's changes

memory-loop is a skill published in the GitHub repository jscott3201/aionforge-memory (11 stars, last pushed 3mo ago), licensed Apache-2.0. It adds 47 tokens to every session and 704 once invoked, about $0.0002 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-08-31.

Related

Other skills, from other repositories

brain-write

How to write to the INITE Brain knowledge graph from an agent loop — recordfact (with the conversationId / evidence[] grounding inputs), ingestdocument, linkentities, retractfact, recordfeedback, and the detectcontradiction preflight. Covers confidence picking, claim grounding, retract vs forget semantics, identityof…

inite-ai/inite-brain-service · 97 tokens

brain-conflict

How to detect and resolve conflicting beliefs in the INITE Brain knowledge graph — the COMPETING fact status, getcompetingfacts, detectcontradiction preflight, and the human-in-the-loop adjudication workflow. Use when the timeline shows two facts disagreeing on the same predicate, or when an agent needs to decide what…

inite-ai/inite-brain-service · 78 tokens

brain-recall

Recall everything brain knows about one specific entity — current profile, full bitemporal timeline, graph neighbours, and unresolved disagreements. Use when the user names a person/company/thing and asks "tell me about them", "what's their history", or "what do we still disagree about?". For a single-shot LLM…

inite-ai/inite-brain-service · 81 tokens

brain-bitemporal

How to query the INITE Brain knowledge graph across time — the asOf parameter, validFrom/validUntil semantics, reading retracted facts, and the memorydiff "what changed between two cursors" surface. Use when the user's question has a temporal dimension ("on X date", "before Y", "what's new since last conversation").

inite-ai/inite-brain-service · 74 tokens

memory-review

Memory hygiene audit -- finds stale facts, contradictions, low-confidence entries, and consolidation candidates in Pensyve memory. Use periodically to maintain memory quality.

major7apps/pensyve · 33 tokens

session-memory

End-of-session memory capture -- classifies session signals using a tiered taxonomy and stores confirmed items via Pensyve. Use when ending a work session or when the user wants to capture what was learned.

major7apps/pensyve · 44 tokens