pcompass: a sub-10ms local router that declutters coding agents' context and scrubs injections

HackyHarish · reddit · 2026-10-21

Tired of 20+ MCP servers clogging agent context windows, a developer open-sourced Prompt Compass (pcompass), a fully local tool router and security gate for AI coding agents.

Problems it solves: dozens of MCP configs burn thousands of tokens per prompt and confuse tool selection; skills configured in .cursor/ don't carry over to Claude Code or Gemini CLI; third-party skills can leak env secrets or hide prompt-injection strings.

What it does:

Pure Python standard library, no Torch dependency; benchmarked on 65 golden prompts with sub-6ms p95 latency and 100% top-3 recall. MIT/Apache-compatible open source.

Related event: pcompass: Open-Source Local Router Trims Agent Context Bloat(2 posts)→

Original post →

More from coding & agent

coding & agent channel →