gsd-mempalace-capture

gsd-mempalace-capture is a command for Claude Code from mrmyothet/zach-hair-studio. It costs 25 tokens per session (1,019 once invoked), scanned A, original, MIT.

A command that files a completed planning artifact into MemPalace and mirrors its decision facts into a temporal knowledge graph, which records facts and how they change over time. It first checks whether this capture feature is enabled.

In plain words
What is it for?
It is for recording artifacts from discussion, planning, or verification stages and keeping their decision facts available in MemPalace.
Why use it?
It preserves important phase decisions for later retrieval while allowing disabled capture to be skipped without stopping the project workflow.

Command for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Good fit It is for recording artifacts from discussion, planning, or verification stages and keeping their decision facts available in MemPalace.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/mrmyothet/zach-hair-studio/gsd-mempalace-capture
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/mrmyothet/zach-hair-studio

Made for: Claude Code.

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

README.md
[![agentmods](https://agentmods.dev/badge/commands/mrmyothet/zach-hair-studio/gsd-mempalace-capture/github.svg)](https://agentmods.dev/commands/mrmyothet/zach-hair-studio/gsd-mempalace-capture)
Your own site
<a href="https://agentmods.dev/commands/mrmyothet/zach-hair-studio/gsd-mempalace-capture"><img src="https://agentmods.dev/badge/commands/mrmyothet/zach-hair-studio/gsd-mempalace-capture/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-capture

Your own site · 80×15
<a href="https://agentmods.dev/commands/mrmyothet/zach-hair-studio/gsd-mempalace-capture"><img src="https://agentmods.dev/badge/commands/mrmyothet/zach-hair-studio/gsd-mempalace-capture.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 25 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,019 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.00025 $0.01019
Opus 5 $0.00013 $0.00509
Sonnet 5 $0.00005 $0.00204
Haiku 4.5 $0.00003 $0.00102

Measured 9d ago against content hash 0ed85bc08a02, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

gsd-mempalace-capture 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 9d 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.

landing-page/.claude/commands/gsd-mempalace-capture.md · 72 lines

How it starts

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

STOP -- DO NOT READ THIS FILE. You are already reading it. This prompt was injected into your context by the command system. Using the Read tool on this file wastes tokens. Begin executing Step 0 immediately.

Step 0 -- Banner

Before ANY tool calls, display this banner:

GSD > MEMPALACE CAPTURE

Then proceed to Step 1.

Step 1 -- Config Gate

Check whether the MemPalace capability is enabled by reading .planning/config.json directly with the Read tool.

  1. Read .planning/config.json with the Read tool.
  2. If the file does not exist, or config.mempalace is absent, or config.mempalace.enabled !== true, or config.mempalace.capture_artifacts !== true: display the disabled message and STOP.
  3. Otherwise proceed to Step 2.

Disabled message:

GSD > MEMPALACE CAPTURE

MemPalace capture is disabled (mempalace.enabled / mempalace.capture_artifacts).
Nothing was filed; the loop proceeds normally.

This step is onError: skip at discuss:post / plan:post / verify:post -- capture never fails a phase.

Step 2 -- Resolve target

  1. Artifact. Take the artifact from $ARGUMENTS. If absent, infer from the loop point: discuss:postCONTEXT.md, plan:postPLAN.md, verify:postSUMMARY.md.
  2. Room. Map artifact → room:
    • CONTEXT.mddecisions
    • PLAN.mdplanning
    • SUMMARY.mdmilestones (Confirmed problem→fix pairs go to problems — see the capture-problems fragment used at execute:wave:post.)
  3. Wing. config.mempalace.wing if non-empty, else config.project_code, else the repo directory name.
  4. Mode / transport. Read config.mempalace.memory_mode. Prefer MCP (mempalace_*) when your MemPalace MCP server is registered and your runtime permits those tools; otherwise use the mempalace CLI (covered by this skill's Bash allow-tool), as in mempalace-recall.

Step 3 -- File verbatim (idempotent)

On any error or timeout, stop and let the phase continue -- capture is best-effort.

Read the full file on GitHub · 72 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. 9d ago First seen · 72 lines · 25 tokens per session scan A 0ed85bc08a02

Subscribe to this mod's changes

gsd-mempalace-capture is a command published in the GitHub repository mrmyothet/zach-hair-studio (11 stars, last pushed 28d ago), licensed MIT. It adds 25 tokens to every session and 1,019 once invoked, about $0.0001 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-09-03.