memory-tidy

memory-tidy is a command for Claude Code from tigu77/tiguclaw. It costs 34 tokens per session (550 once invoked), scanned A, original, Apache-2.0.

A command that reviews an assistant's memory index and proposes ways to merge duplicates, archive expired entries, and shorten descriptions. It does not automatically merge or permanently delete entries.

In plain words
What is it for?
Use it to measure the index, review a bounded set of cleanup candidates, prepare merge proposals, and request approval.
Why use it?
It reduces repeated and outdated memory while keeping a person in control of changes and preserving archived information for search and recovery.

Command for Claude Code

Written for Claude Code: argument-hint in frontmatter.

Good fit Use it to measure the index, review a bounded set of cleanup candidates, prepare merge proposals, and request approval.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/tigu77/tiguclaw/memory-tidy
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/tigu77/tiguclaw

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 memory-tidy

README.md
[![agentmods](https://agentmods.dev/badge/commands/tigu77/tiguclaw/memory-tidy/github.svg)](https://agentmods.dev/commands/tigu77/tiguclaw/memory-tidy)
Your own site
<a href="https://agentmods.dev/commands/tigu77/tiguclaw/memory-tidy"><img src="https://agentmods.dev/badge/commands/tigu77/tiguclaw/memory-tidy/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 memory-tidy

Your own site · 80×15
<a href="https://agentmods.dev/commands/tigu77/tiguclaw/memory-tidy"><img src="https://agentmods.dev/badge/commands/tigu77/tiguclaw/memory-tidy.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 34 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 550 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.00034 $0.00550
Opus 5.5 $0.00014 $0.00220
Sonnet 5.5 $0.00007 $0.00110
Haiku 4.5 $0.00003 $0.00055

Measured 1mo ago against content hash d7f843f68613, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

memory-tidy 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 1mo 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.

commands/memory-tidy.md · 28 lines

What it actually says

memory-tidy 스킬을 그대로 따라 메모리 인덱스를 정리하라.

범위: $ARGUMENTS

지켜야 할 것(스킬 §1 하드룰과 같다 — 여기 다시 적는 이유는 이 매크로만 읽고 시작할 수 있어야 하기 때문이다):

  • 지우지 마라. archive_memory 를 쓴다(인덱스에서만 내려가고 검색으로는 계속 찾히며 되돌릴 수 있다). delete_memory 는 이 작업에서 쓰지 않는다.
  • 자동으로 합치지 마라. 「이건 중복이다」가 틀리면 규칙이 조용히 사라진다 — 제안까지가 네 일이고 고르는 것은 사용자다.
  • 재고 나서 말하라. "많다"·"중복이다"는 바이트와 건수를 대고 하는 말이다.
  • 상시 규범은 이관·도달 확인 전에 내리지 마라. 분류와 목적지는 스킬 §4를 따른다. 아카이브된 사실도 검색만으로 인덱스에 복귀하지 않는다. 복구에는 명시적인 restore:true가 필요하다.
  • 자동 생성분(feedback_growth_*)은 손대지 마라 — self-growth 소유다. 개수·바이트만 보고.

★한 번에 하는 일을 바운드하라 — 전수로 훑지 마라. list_memories 로 재고 인덱스 바이트 상위 25건까지만 본다. 본문은 최종 후보 몇 건에만 읽는다(첫 판이 197건 본문을 읽다가 16분 넘게 돌았다). 반복 실행이 전제다 — 이번에 앞줄을 줄이면 다음엔 그다음 줄이다.

보고는 이 순서로: ①현재 크기(바이트·건수) ②부류별 후보(중복/만료/과거관측, 각 크기) ③병합안(합칠 것 · 남길 이름 · 합친 한 줄 · 잃는 문장 없음을 확인) ④승인 요청.

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. 1mo ago Changed · -2 lines d7f843f68613
  2. 2mo ago First seen · 30 lines · 34 tokens per session scan A 1f7d19876d11

Subscribe to this mod's changes

memory-tidy is a command published in the GitHub repository tigu77/tiguclaw (11 stars, last pushed yesterday), licensed Apache-2.0. It adds 34 tokens to every session and 550 once invoked, about $0.0001 per session on Opus 5.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-04.

Related

memory-tidy compared with commands from other repositories

memory-tidy next to 6 commands from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
memory-tidytigu77/tiguclawCommand11yesterdayApache-2.0A34Claude Code
save-to-mdjmagar/claude-homelabCommand871mo agoMITA9Claude Code
revise-claude-mdbearlike/AssistantCommand437d agoMITA11Claude Code
learnaffaan-m/ECCCommand298k5d agoMITA8Claude Code, OpenCode
mempalace-statusMemPalace/mempalaceCommand60kyesterdayMITA19Claude Code
rem_helpopenonion/connectonionCommand1.5kyesterdayApache-2.0B0Claude Code
memoryyonatangross/orchestkitCommand299yesterdayMITA36Claude Code, Cursor