Help us improve
Share bugs, ideas, or general feedback.
npx claudepluginhub mistakeknot/interagency-marketplace --plugin intermemHow this skill is triggered — by the user, by Claude, or both
Slash command
/intermem:tidyThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Structural housekeeping for auto-memory files. Extracts oversized sections from MEMORY.md into linked topic files and detects stale point-in-time counts.
Organizes, extracts, prunes, and verifies Claude Code persistent memory files: MEMORY.md index, topic extraction, staleness detection, accuracy checks. Use near 200-line limit, after insights, or project changes.
Manages persistent project memory using MEMORY.md index, .oma/memory topic files, and .oma/rules packages. Audits memory, activates matching rules, reports outdated entries for long sessions with context drift.
Reviews, consolidates, and prunes Claude Code memory files. Run after major refactors or every 5+ sessions to maintain memory quality.
Share bugs, ideas, or general feedback.
Structural housekeeping for auto-memory files. Extracts oversized sections from MEMORY.md into linked topic files and detects stale point-in-time counts.
Find the intermem plugin install path and run the tidy subcommand:
INTERMEM_DIR="$(find ~/.claude/plugins/cache -path '*/intermem/*/pyproject.toml' -not -path '*/tests/*' -printf '%h\n' 2>/dev/null | sort -V | tail -1)"
cd "$INTERMEM_DIR" && uv run python -m intermem tidy --project-dir /path/to/project --json
Replace /path/to/project with the actual project directory.
--apply to execute the extractions# Dry-run
cd "$INTERMEM_DIR" && uv run python -m intermem tidy --project-dir /path/to/project
# Apply after review
cd "$INTERMEM_DIR" && uv run python -m intermem tidy --project-dir /path/to/project --apply
--budget N — Maximum MEMORY.md line count (default: 120). Sections are extracted until under budget.--section-threshold N — Minimum section size to consider for extraction (default: 15 lines). Smaller sections stay inline.--apply — Execute changes. Without this flag, only shows a preview.--json — Output results as JSON for programmatic consumption.Section extraction:
## headings--section-threshold lines<slug>.md topic files in the same directory## Topic Files section## Quick Reference or ## Topic Files (protected)Stale count detection:
48 plugins, 94 tests, 15 skillsinterverse/), checks actual count"48 Interverse plugins" → actual: 52 (drift: +4)[?]/intermem:synthesize — a tidy source produces better promotions