Memtag — Documentation skill for Claude Code
Markdown memory hygiene for agent wikis, trust decay, context packing, and archive gc.
How to install Memtag
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open cobusgreyling/memtag and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Memtag does
Markdown memory hygiene for agent wikis, trust decay, context packing, and archive gc.
Alternatives in Documentation
- 会话管理(Session Manager)需求文档(PRD / Markdown) — 目标:对 Codex / Claude Code 的本地会话记录进行可视化管理,并提供“一键复制 / 一键终端恢复”能力 31.7k ★
- Repo Recap — Generate a structured recap of the repository state: open PRs, open issues, recent releases, and executive sum 11.9k ★
- Ars Format Convert — ARS academic-paper format-convert mode — convert to LaTeX / DOCX / PDF / Markdown 4.5k ★
README
memtag
[](https://github.com/cobusgreyling/memtag/actions/workflows/ci.yml) [](https://pypi.org/project/memtag/) [](LICENSE)
**Keeps agent-written wikis trustworthy by tracking how memories decay, not just where they're stored.**
The next bottleneck in agent memory isn't storage or retrieval. It's **decay**. Notes rot: guesses expire, loops contradict each other, agent speculation gets laundered into fact. Retrieval tools make rot easier to find. memtag makes it visible and disposable.
memtag is a hygiene CLI + markdown convention for agent wikis: sense rot, select trusted context, sweep the vault.
Not an agent. Not a store.
memtag does **not** replace Grok, Cursor, Claude Code, or recollect.
It is a composable hygiene layer — pipe it between your vault and whatever CLI you run:
memtag pack ./vault --task "deploy API" --budget 8000 # select — the product
memtag lint ./vault --strict # sense — the sensor
memtag gc ./vault # sweep — the janitor
Pipe `pack` output into your agent harness. Store long-term semantic memory in **recollect**. Govern markdown wikis with **memtag**.
recollect search "deploy API" | memtag pack ./vault --stdin --task "deploy API" --budget 8000
Why memtag
**Declared trust is a prior. Derived trust is the product.**
Everyone else asks the agent "how confident are you?" and stores the number. That's circular — you're trusting an agent's self-report to decide which agent-writing to trust.
memtag treats declared `confidence` as a starting guess, then computes `trust` from behavior: provenance, expiry, supersedes chains, contradictions, human touch. **Trust isn't a field the agent writes. It's a score memtag computes.** `pack` and `gc` rank on deriv
Related Skills
Memory Triage
Dry-run triage of a Claude Code auto-memory directory. Produces a markdown table of proposed actions (delete /
Weekly Hygiene
Weekly light maintenance pass - WAKEUP/doc-overhead relocate-only trim, memory staleness scan, and session-sta
Observational Memory
Local-first shared memory for Claude Code, Codex, OpenCode, Kimi, Grok, Cowork, and Hermes, with bounded obser
Mem Changelog
Themed memory changelog (learned from supremor). Rolls up the memory repo's recent descriptive commits into a
Retention Decay
Skill for applying time-based confidence decay to wiki pages — knowledge fades unless reinforced, at rates tha
Doc Hygiene
Related Agents
Mark Epub Down
Use when a task involves converting an EPUB into Markdown for LLM knowledge bases, wikis, or ingestion workflo
Memory Distiller
Compresses memory-sessions.md older entries into a rolling archive to reduce context load. Safe to run monthly
Mb Codebase Mapper
Explores the codebase and writes structured Markdown documents into .memory-bank/codebase/. Invoked from /mb m