rlm-cleanup-agent

rlm-cleanup-agent is an agent for coding agents from richfrem/agent-plugins-skills. It costs 138 tokens per session (190 once invoked), scanned A, original, MIT.

An agent that cleans an RLM summary cache by finding summaries whose source files no longer exist. An RLM cache is a stored collection of condensed file descriptions.

In plain words
What is it for?
Use it to find and prune summaries for files that were removed from disk.
Why use it?
It removes references to deleted files so the cache does not point to information that is no longer available.

Agent

Part of the agent-memory plugin — 13 skills, 2 commands, 9 agents shipped together

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.

agentmods
npx agentmods add agents/richfrem/agent-plugins-skills/rlm-cleanup-agent
Clone the repo
git clone --depth 1 https://github.com/richfrem/agent-plugins-skills

Or install agent-memory, the plugin that ships this one along with the rest of its 13 skills, 2 commands, 9 agents.

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 rlm-cleanup-agent

README.md
[![agentmods](https://agentmods.dev/badge/agents/richfrem/agent-plugins-skills/rlm-cleanup-agent.svg)](https://agentmods.dev/agents/richfrem/agent-plugins-skills/rlm-cleanup-agent)
Your own site
<a href="https://agentmods.dev/agents/richfrem/agent-plugins-skills/rlm-cleanup-agent"><img src="https://agentmods.dev/badge/agents/richfrem/agent-plugins-skills/rlm-cleanup-agent.svg" alt="Measured on agentmods" height="20"></a>
Per session 138 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 190 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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.00138 $0.00190
Opus 5 $0.00069 $0.00095
Sonnet 5 $0.00028 $0.00038
Haiku 4.5 $0.00014 $0.00019

Measured 5d ago against content hash 15f1acba65ae, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-05, from the pricing page.

Security

Grade A, and why

rlm-cleanup-agent 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 5d 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.

plugins/agent-memory/agents/rlm-cleanup-agent.md · 23 lines

What it actually says

Please run the rlm-cleanup-agent skill immediately.

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. 5d ago First seen · 23 lines · 138 tokens per session scan A 15f1acba65ae

Subscribe to this mod's changes

rlm-cleanup-agent is an agent published in the GitHub repository richfrem/agent-plugins-skills (6 stars, last pushed yesterday), licensed MIT. It adds 138 tokens to every session and 190 once invoked, about $0.0007 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-08-31.

Related

Other agents, from other repositories

problem-explorer

Deepens understanding of extracted problems by discovering sub-problems, implied problems, ambiguities, contradictions, and factors — producing enriched problem definitions that support reliable decomposition.

nestharus/agent-implementation-skill · 32 tokens

scaffolder

Creates foundational stub files with correct interfaces and TODO blocks so that dependent sections can proceed with implementation. Does NOT implement business logic.

nestharus/agent-implementation-skill · 25 tokens

scan-module-explorer

Explores a single module or subsystem in depth, producing a detailed routing fragment that covers internal structure, key files, interfaces, and relationships.

nestharus/agent-implementation-skill · 28 tokens

loop-engineer-memory-keeper

Makes the loop smarter over time by capturing what was learned. Runs after each auditor pass.

vibhasdutta/loop-engineer · 25 tokens

code-reviewer

審查程式碼品質、正確性和專案慣例遵循情況。發現錯誤、提供改進建議, 並確保程式碼符合專案標準。 使用時機範例: "審查這個新功能的程式碼品質" "檢查是否有潛在的錯誤或問題" "確認程式碼遵循專案慣例" "提供改進建議".

DennisLiuCk/claude-plugin-marketplace · 111 tokens

code-explorer

深入分析現有程式碼庫功能,透過追蹤執行路徑、映射架構層次、理解模式和抽象化,以及記錄相依性。 使用時機範例: "分析使用者驗證功能的實作方式" "了解支付處理流程如何運作" "探索 API 路由系統的架構" "追蹤資料庫查詢的執行路徑".

DennisLiuCk/claude-plugin-marketplace · 108 tokens