con un clic
redact
Remove all agent-memory references to a session, mechanism, or identifier
Instalar con Codex o Claude Copia este prompt, pégalo en Codex, Claude u otro asistente, y deja que revise la página de la skill y la instale por ti.
Menú
Remove all agent-memory references to a session, mechanism, or identifier
Instalar con Codex o Claude Copia este prompt, pégalo en Codex, Claude u otro asistente, y deja que revise la página de la skill y la instale por ti.
Basado en la clasificación ocupacional SOC
Structural review of a proof or derivation -- checks step justification, variable definitions, limiting cases, dimensional consistency, and canonical-source traceability
Quick symbolic/exact computation via the Sage MCP -- factor, simplify, symbolic eigenvalues, exact integrals. Use when float answers are not good enough
Classify a framework event, observable, or object as PROPAGATION (c-bounded, lives on g_M), SUBSTRATE DYNAMICS (not c-bounded, IS the substrate), MIXED, or CONTRADICTION -- walks a 6-step deterministic algorithm for emergent-metric / analog-gravity frameworks
Quick-access LaTeX typesetting expertise -- journal preambles, project macros, notation reference, document review, arxiv checklist
TikZ-based Penrose / Carter-Penrose diagram authoring -- preamble, pattern library, worked templates for Schwarzschild, Kerr, dS, CCC, dynamical compactification, and the M4 x SU(3)(tau) modulus-space transit. Use whenever a causal-structure diagram is needed.
Index the project's open conjectures/propositions -- scans sessions + open-question registers, tabulates with priority (EVOI), origin, related tests, and status
| name | redact |
| description | Remove all agent-memory references to a session, mechanism, or identifier |
| argument-hint | <identifier> [--dry-run] [--keep <file>] [--keep-all-detail] |
Remove all references to a given identifier (session ID, mechanism name, etc.) from agent memory files. Project files (sessions/, tier0-computation/, constraint-map) are preserved — only .claude/agent-memory/ is touched.
/redact 29Ac # Remove all memory references to "29Ac"
/redact 29Ac --dry-run # Show what would be removed, don't edit
/redact "rolling quintessence" # Remove references to a mechanism name
/redact 21b --keep constraint-map.md # Skip constraint-map (already default)
/redact 29Ac --keep-all-detail # Only touch MEMORY.md files, skip detail files
<identifier> — the first argument (or quoted multi-word string).--dry-run: Preview only, no edits.--keep <file>: Skip files whose basename matches <file>. Multiple --keep flags allowed.--keep-all-detail: Only edit files named MEMORY.md. Skip all other .md files in agent-memory dirs.Use the Grep tool to search for <identifier> (case-insensitive) across all files matching the glob .claude/agent-memory/**/*.md.
Collect all matching files and their line numbers. Use output_mode: "content" with line numbers enabled to see exact matches.
If zero matches found, report:
=== REDACT: "<identifier>" ===
Scanned: .claude/agent-memory/**/*.md
Matches: 0
Nothing to redact.
Stop here.
Remove from the match list:
constraint-map.md (default preserve — constraint-map is reference data that survives redaction).--keep <file> argument (basename comparison).--keep-all-detail: any file NOT named MEMORY.md.Track kept files separately — they will appear in the final report as "KEPT".
For each remaining file with matches, read the full file using the Read tool. Classify each match into one of:
a) Section removal: If the match falls inside a section (delimited by ## or ### headers) where ALL or MOST content is about the identifier, mark the entire section (header through to next header or EOF) for removal.
b) Line removal: If the match is a single line within a larger section that covers multiple topics, mark just that line for removal. This includes:
- ...)1. ...)c) Table row removal: If the match is inside a markdown table (| ... |), mark just that row for removal. Never remove the header row or separator row.
d) Multi-reference line — FLAG: If a line contains BOTH the identifier AND other substantive, unrelated content (e.g., mentions both 29Ac and 29Ab with distinct information about each), do NOT remove it. Flag it for manual review in the report.
Key rules:
sessions/session-XX/, sXX_*.py, sXX_*.npz, sXX_*.png, sXX_gate_verdicts.txt where XX maps to the identifier.# title header.Build a summary table showing what will be changed:
=== REDACT: "<identifier>" ===
Scanned: N agent memory files across M agents
Matches: X references in Y files
agent/MEMORY.md ................. remove §Section Name (K lines)
agent/detail-file.md ............ remove 2 lines from §Other Section
agent2/MEMORY.md ................ remove 1 table row (1 line)
agent3/MEMORY.md ................ FLAG: line N contains mixed refs (manual review)
constraint-map.md ............... KEPT (default preserve)
If --dry-run, display this summary and stop. Do not make any edits.
For each file with removals:
Use the Grep tool to re-scan for <identifier> across all .claude/agent-memory/**/*.md files.
Show the final summary:
Before: NNNN lines across N files
After: NNNN lines across N files
Removed: NN lines (N.N%)
Remaining: N references in kept/flagged files
If any files were flagged for manual review, list them with line numbers:
Manual review needed:
agent/MEMORY.md:42 — mentions both "29Ac" and "29Ab"
.claude/agent-memory/ — sessions/, tier0-computation/, researchers/, tools/ are untouchable.--no-preserve-constraint-map (not a standard flag — they'd need to explicitly ask).# title after redaction. If redaction would empty a file entirely, leave the title and a single line: <!-- Redacted: all content referenced <identifier> -->..claude/agent-memory/ directory doesn't exist: report error and stop.--keep file doesn't exist in the match list: silently ignore (it just means there were no matches in that file).