gsd-mempalace-curator

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

An automated session-keeping worker for MemPalace, a system that stores project memories and relationships. It records a session diary, updates the memory graph, and removes outdated entries within the current project area.

In plain words
What is it for?
Use it after a session to save learnings, connect related project memories, and prune old entries when the required MemPalace tools or command-line interface are available.
Why use it?
It keeps project history organized after work is finished while respecting whether MemPalace is enabled and which storage mode it uses.

Agent for Claude Code

Written for Claude Code: a Claude Code subagent (agents/*.md).

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

Good fit Use it after a session to save learnings, connect related project memories, and prune old entries when the required MemPalace tools or command-line interface are available.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/open-gsd/gsd-core/gsd-mempalace-curator
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 · 9,278 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, 35 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/github.svg)](https://agentmods.dev/agents/open-gsd/gsd-core/gsd-mempalace-curator)
Your own site
<a href="https://agentmods.dev/agents/open-gsd/gsd-core/gsd-mempalace-curator"><img src="https://agentmods.dev/badge/agents/open-gsd/gsd-core/gsd-mempalace-curator/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"><img src="https://agentmods.dev/badge/agents/open-gsd/gsd-core/gsd-mempalace-curator.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 1,160 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.01160
Opus 5 $0.00030 $0.00580
Sonnet 5 $0.00012 $0.00232
Haiku 4.5 $0.00006 $0.00116

Measured 10d ago against content hash 38bcde1a5007, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, 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 10d 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.

Origin

Copies of this mod

2 near-identical copies found in the catalogue:

agents/gsd-mempalace-curator.md · 50 lines

How it starts

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

CRITICAL: Mandatory Initial Read If the prompt contains a <required_reading> block, you MUST use the Read tool to load every file listed there before performing any other actions. This is your primary context.

Gate

If mempalace.enabled !== true, do nothing and report MemPalace disabled — curation skipped. This is the hard gate; respect it before any other work.

Wing / mode / transport

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

Tasks (each independently best-effort)

  1. Diary entry (unless mempalace.diary_journal !== false — registry default is true, an absent key means enabled). Write one concise per-agent diary entry summarising the phase outcome: mempalace_diary_write(agent_name=<project>/<role>, entry=<summary>, topic="phase-ship", wing=<wing>) (CLI: mempalace hook run / the diary CLI). Namespace agent_name by repo+role so diaries don't collide across projects. Idempotency: before writing, mempalace_diary_read (or list) for an existing entry keyed by (wing, agent_name, topic, phase-id); if one exists for this phase, update it in place rather than appending a second.

Read the full file on GitHub · 50 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. 10d ago First seen · 50 lines · 59 tokens per session scan A 38bcde1a5007

Subscribe to this mod's changes

gsd-mempalace-curator is an agent published in the GitHub repository open-gsd/gsd-core (9,278 stars, last pushed today), licensed MIT. It adds 59 tokens to every session and 1,160 once invoked, about $0.0003 per session on Opus 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-30.