⚡ High-performance linter, cache-layout optimizer, and garbage collector for AI agent instruction files (AGENTS.md, CLAUDE.md, .cursorrules) in Rust.
The Linter, Cache-Layout Optimizer & Generational Garbage Collector for AI Agent Instructions
Audit, clean, and deduplicate your AI instructions. Detects dead file paths, resolves contradictory rules, and eliminates prompt-cache-busting bloat. Built for CLAUDE.md (Claude Code), AGENTS.md (Hermes Agent / OpenCode), .cursorrules (Cursor), and long-term memory files.
🎯 The Problem: Instruction Rot & Cache Invalidation
As developers collaborate with AI coding agents, project instructions degrade over weeks into unmaintainable technical debt: 1. Dead File Path References (30%+): Referenced paths (src/utils/auth.ts, scripts/build.sh) were deleted or renamed weeks ago, triggering agent hallucination loops. 2. Semantic Contradictions: Conflicting rules added across separate turns ("Keep components synchronous" vs "Use async server actions everywhere"). 3. Prompt Cache Destruction: Putting volatile dates, timestamps, or session IDs at the top of instruction files breaks Anthropic and OpenAI KV-cache prefix hits, doubling agent API token bills. 4. Context Bloat: Accumulates transient debugging notes and duplicated rules that waste 400–1,500 tokens on every turn.
agent-memgc delivers a compiler-grade static analysis engine in pure Rust that audits, fixes, and compacts agent instructions in < 15ms.
1. Installation Install directly via Cargo:
🔌 Model Context Protocol (MCP) Integration
agent-memgc runs as a native stdio Model Context Protocol (MCP) server for Claude Desktop, Cursor, and Hermes Agent.
From the project README.
Add the radar badge to your README — it shows your project was picked up by MCP Radar and links to this page:
[](https://mcp.liqiwa.com/s/ronitgupta138--Agent-MemGC.html)
Keep the signal. Cut the noise. Local CLI + MCP — fold verbose tool output for Claude Code, Codex, Cursor & Desktop.
monaa-research/monaa-guardStop Claude Code, Cursor & AI agents from burning $20 reading node_modules or leaking .env — 27µs Pure-Rust MCP firewall & 17.8x token compactor (Apache-2.0)
tokensafe-dev/tokensafeReduce your AI bills by up to 99%. Your agents read only needed code, keep prompt caches intact across turns, and keep secrets out of git.
alperensarikavak/slimcpCut MCP tool token usage by 90%+. Audit how much context your MCP servers eat and slim it down with a smart proxy — Claude Desktop, Claude Code, Cursor, VS Code, Windsurf, Gemini CLI, Codex.
00200200/tokencutKeep the signal. Cut the noise. Local CLI + MCP — fold verbose tool output for Claude Code, Codex, Cursor & Desktop.
webmcpx/webmcpxMake your site agent-ready: one script tag gives every page WebMCP tools; one MCP server gives your agent WebMCP on every site. Linter, site scanner, and a public benchmark: up to 62× fewer tokens (be
The top new MCP servers of the week, every Monday. No spam, unsubscribe anytime.