📡 MCP Radar

ronitgupta138/Agent-MemGC

⚡ High-performance linter, cache-layout optimizer, and garbage collector for AI agent instruction files (AGENTS.md, CLAUDE.md, .cursorrules) in Rust.

⭐ 4 stars
⑂ 0 forks
Rust
momentum ▲ 8.0
created 2026-10-17
on radar since 2026-10-19
star trend 3 → 4 since 2026-10-19
agentsai-agentsanthropicclaudeclaude-codecodexcontext-windowcursordeveloper-toolsdevtoolsgarbage-collectionlinterllmmcpmcp-serverprompt-cachingprompt-engineeringruststatic-analysistoken-optimization
View on GitHub ↗

About Agent-MemGC

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.

Maintaining this server?

Add the radar badge to your README — it shows your project was picked up by MCP Radar and links to this page:

[![On MCP Radar](https://mcp.liqiwa.com/badge.svg)](https://mcp.liqiwa.com/s/ronitgupta138--Agent-MemGC.html)

Related MCP servers

00200200/usagetrim

Keep the signal. Cut the noise. Local CLI + MCP — fold verbose tool output for Claude Code, Codex, Cursor & Desktop.

⭐ 11Python
monaa-research/monaa-guard

Stop 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)

⭐ 4Rust
tokensafe-dev/tokensafe

Reduce 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.

⭐ 41Python
alperensarikavak/slimcp

Cut 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.

⭐ 3TypeScript
00200200/tokencut

Keep the signal. Cut the noise. Local CLI + MCP — fold verbose tool output for Claude Code, Codex, Cursor & Desktop.

⭐ 10Python
webmcpx/webmcpx

Make 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

⭐ 5TypeScript

📬 Get the weekly radar in your inbox

The top new MCP servers of the week, every Monday. No spam, unsubscribe anytime.