dynamic-memory-cli

dynamic-memory-cli is a skill for Codex from XiaoLuoLYG/GOD. It costs 78 tokens per session (739 once invoked), scanned A, original, Apache-2.0.

A command-line memory store for coding-agent conversations. It keeps proposed and built memory entries, supports searching and history tracking, and validates published memory before it is built.

In plain words
What is it for?
Use it to publish pending memory, search pending and built entries, freeze a stable batch for review, build approved entries, and migrate memory while preserving exact content.
Why use it?
It separates temporary memory proposals from validated memory, reducing the risk of exposing an agent's unreviewed scratch notes. It also lets foreground work continue while memory is extracted asynchronously.

Skill for Codex

Written for Codex: agents/openai.yaml present.

Good fit Use it to publish pending memory, search pending and built entries, freeze a stable batch for review, build approved entries, and migrate memory while preserving exact content.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/xiaoluolyg/god/dynamic-memory-cli
About the project

GOD is a control room for observing and directing societies of language-model agents running in simulated worlds. It lets researchers inspect replays, question individual agents, alter future events, reset simulations, and export experiments for reuse. The catalogue entries are skills and agents for operating and investigating these simulations.

XiaoLuoLYG/GOD · 1,292 stars · on GitHub · xiaoluolyg.github.io

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 XiaoLuoLYG/GOD --skill dynamic-memory-cli
Clone the repo
git clone --depth 1 https://github.com/XiaoLuoLYG/GOD

Made for: 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 dynamic-memory-cli

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/xiaoluolyg/god/dynamic-memory-cli"><img src="https://agentmods.dev/badge/skills/xiaoluolyg/god/dynamic-memory-cli.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 78 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 739 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.00078 $0.00739
Opus 5.5 $0.00031 $0.00296
Sonnet 5.5 $0.00016 $0.00148
Haiku 4.5 $0.00008 $0.00074

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

Security

Grade A, and why

dynamic-memory-cli 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 17d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/dynamic_memory_cli.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

jiuwenclaw/jiuwenswarm/resources/agent/workspace/skills/dynamic-memory-cli/SKILL.md · 55 lines

How it starts

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

Dynamic Memory CLI

Use scripts/dynamic_memory_cli.py as the deterministic boundary between a conversation Harness and its memory state. Keep semantic selection in the extraction Agent; keep validation, revisions, cursors, publication, search, and migration in this CLI.

Required workflow

  1. Run init --path <session-memory-dir> once.
  2. Let the extraction Agent read the old Snapshot, frozen Working Memory, published UTs, and Raw History evidence.
  3. Submit one proposal with publish-pending --file <proposal.json>. Never expose an Agent's scratch buffer directly.
  4. Use search immediately. Published Pending UTs participate through lexical matching and are marked pending in results.
  5. Run freeze-pending --output <batch.json> for a stable exact-content batch.
  6. Let the builder Agent review that batch, then run build-pending --file <batch.json>.
  7. Treat a successful build as an atomic representation migration. It does not advance semantic memory revision, Snapshot revision, or history cursor.

Read references/dynamic-memory-contract.md before creating proposals or integrating a Harness.

Command contract

Run from the memory project directory unless init --path is used:

python scripts/dynamic_memory_cli.py init --path <dir>
python scripts/dynamic_memory_cli.py search <query> [query...]
python scripts/dynamic_memory_cli.py list [--full]
python scripts/dynamic_memory_cli.py show <id>
python scripts/dynamic_memory_cli.py check-conflicts --file <candidate.json>
python scripts/dynamic_memory_cli.py add --file <ut.json> [--force]
python scripts/dynamic_memory_cli.py update <id> --file <updates.json>
python scripts/dynamic_memory_cli.py retire <id> [--reason <text>]
python scripts/dynamic_memory_cli.py get-state
python scripts/dynamic_memory_cli.py publish-pending --file <proposal.json>
python scripts/dynamic_memory_cli.py freeze-pending --output <batch.json>
python scripts/dynamic_memory_cli.py build-pending --file <batch.json>
python scripts/dynamic_memory_cli.py test [--built-only]
python scripts/dynamic_memory_cli.py bench

Read the full file on GitHub · 55 lines

Files

What ships with it

4 files 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. 17d ago First seen · 55 lines · 78 tokens per session scan A c99ba78abe2b

Subscribe to this mod's changes

dynamic-memory-cli is a skill published in the GitHub repository XiaoLuoLYG/GOD (1,292 stars, last pushed 5d ago), licensed Apache-2.0. It adds 78 tokens to every session and 739 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-13.

Related

dynamic-memory-cli compared with skills from other repositories

dynamic-memory-cli next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
dynamic-memory-cliXiaoLuoLYG/GODSkill1.3k5d agoApache-2.0A78Codex
meta-harnessstanford-iris-lab/meta-harnessSkill1.8kyesterdayMITA27Claude Code
prolongalexisfox7/PRO-LONGSkill46527d agoMITA55Codex
cartographer-kb-createBeppeTemp/cartographerSkill69yesterdayApache-2.0A53Claude Code, Codex
cartographer-kb-importBeppeTemp/cartographerSkill69yesterdayApache-2.0A51Claude Code, Codex
stripe-directorystripe/aiSkill2.1k5d agoMITC212Claude Code
knowledge-organizingShy2593666979/AgentChatSkill9391mo agoMITA41Claude Code, Codex