gsd-mempalace-curator

gsd-mempalace-curator is an agent for Claude Code from open-gsd/gsd-core. It costs 59 tokens per session (985 once invoked), scanned A, original, MIT.

A release-time memory curation agent that records session notes and synchronizes project knowledge with MemPalace, a tool for storing and retrieving information across work sessions and projects.

In plain words
What is it for?
It writes a phase diary, mirrors extracted learning into a knowledge graph, proposes or creates links between projects, and prunes outdated scoped entries when enabled.
Why use it?
It preserves decisions and lessons from a completed phase and can keep related project knowledge organized without stopping the release process when the memory service is unavailable.

Agent for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the gsd-core plugin — 72 skills, 64 agents, 7 hooks shipped together

Good fit It writes a phase diary, mirrors extracted learning into a knowledge graph, proposes or creates links between projects, and prunes outdated scoped entries when enabled.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/open-gsd/gsd-core/gsd-mempalace-curator.compact
About the project

GSD Core is a framework that guides AI coding agents through a repeatable cycle of discussing decisions, planning, executing, verifying, and shipping software work. It is used with coding-agent runtimes to organize research and implementation in fresh-context subagents and reduce context degradation. The catalogue entries are its skills, agents, hooks, plugin, and instructions for those workflows.

open-gsd/gsd-core · 10,622 stars · on GitHub · opengsd.net

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.

Clone the repo
git clone --depth 1 https://github.com/open-gsd/gsd-core

Made for: Claude Code.

Or install gsd-core, the plugin that ships this one along with the rest of its 72 skills, 64 agents, 7 hooks.

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 gsd-mempalace-curator

README.md
[![agentmods](https://agentmods.dev/badge/agents/open-gsd/gsd-core/gsd-mempalace-curator.compact/github.svg)](https://agentmods.dev/agents/open-gsd/gsd-core/gsd-mempalace-curator.compact)
Your own site
<a href="https://agentmods.dev/agents/open-gsd/gsd-core/gsd-mempalace-curator.compact"><img src="https://agentmods.dev/badge/agents/open-gsd/gsd-core/gsd-mempalace-curator.compact/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 gsd-mempalace-curator

Your own site · 80×15
<a href="https://agentmods.dev/agents/open-gsd/gsd-core/gsd-mempalace-curator.compact"><img src="https://agentmods.dev/badge/agents/open-gsd/gsd-core/gsd-mempalace-curator.compact.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 59 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 985 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.00059 $0.00985
Opus 5.5 $0.00024 $0.00394
Sonnet 5.5 $0.00012 $0.00197
Haiku 4.5 $0.00006 $0.00098

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

Security

Grade A, and why

gsd-mempalace-curator 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.

agents/gsd-mempalace-curator.compact.md · 46 lines

How it starts

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

Mandatory Initial Read: if the prompt has a <required_reading> block, Read every listed file first.

Gate

mempalace.enabled !== true → do nothing, report MemPalace disabled — curation skipped. Check first.

Wing / mode / transport

  • Wing: mempalace.wing if non-empty, else project_code, else repo dir name. Every call is scoped to this one wing.
  • Mode (mempalace.memory_mode): augment → KG writes are additive mirror of .planning/graphs/. kg_backend/replace → palace KG is authoritative — still mirror every fact here as primary target; GSD's normal graphify keeps .planning/graphs/ current so an unreachable palace never loses history.
  • Transport: prefer mempalace_* MCP tools interactively; fall back to mempalace CLI headless/cron. Neither reachable → report unavailability and stop, do not error.

Tasks (each independently best-effort)

  1. Diary entry (unless mempalace.diary_journal === false; absent = enabled). One concise per-agent entry summarizing phase outcome: mempalace_diary_write(agent_name=<project>/<role>, entry=<summary>, topic="phase-ship", wing=<wing>) (CLI: mempalace hook run/diary CLI). Namespace agent_name by repo+role so diaries don't collide across projects. Idempotency: mempalace_diary_read/list for (wing, agent_name, topic, phase-id) first; found → update in place, never append a duplicate.

  2. extract-learnings → KG mirror (unless mempalace.mirror_kg === false; absent = enabled). Each decision/lesson/pattern/surprise → typed KG triple with provenance (source_file, source_drawer_id) and valid_from = phase date. Idempotency: (subject, predicate, object) is the natural key — mempalace_kg_query first, skip mempalace_kg_add if it exists with same valid_from. Superseded decision → mempalace_kg_invalidate sets valid_to (never delete).

Read the full file on GitHub · 46 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 · 46 lines · 59 tokens per session scan A 1c7a46e57c27

Subscribe to this mod's changes

gsd-mempalace-curator is an agent published in the GitHub repository open-gsd/gsd-core (10,622 stars, last pushed today), licensed MIT. It adds 59 tokens to every session and 985 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-09-10.