Skip to content

v0.1.0 — Progressive Skill Disclosure & Context Compaction Engine

Choose a tag to compare

@Ritual-Dev-Git Ritual-Dev-Git released this 14 Oct 18:18
· 84 commits to main since this release

⚡ SkillPrism v0.1.0: Progressive Skill Disclosure & Context Compaction Engine

We are excited to announce the initial release of SkillPrism (@ritualdev-lab/skillprism), a high-performance progressive skill disclosure and context compaction runtime engineered for autonomous AI coding agents (Claude Code, Cursor, Windsurf, Codex, Antigravity).

Preloading hundreds of enterprise API and MCP schemas dilutes model attention, causes instruction drift, and inflates context token costs. SkillPrism replaces static prompt bloat with dynamic Just-In-Time (JIT) skill discovery and ephemeral schema injection.


🚀 Key Highlights & Capabilities

1. 🗂️ Out-of-Context BM25 & Semantic Skill Catalog (Phase 1)

  • Fast local BM25 indexing engine with configurable $k_1$ and $b$ scoring parameters.
  • Converts massive MCP JSON schemas into lightweight, zero-state disclosure summaries (~15 tokens each).
  • Direct MCP schema importer for transparent ingestion of standard tools/list payloads.

2. ⚡ Just-In-Time (JIT) Meta-Tool Harness (Phase 2)

  • Replaces hundreds of preloaded tool schemas with a minimal 2-tool zero state: search_skills and load_skill.
  • Zero-state context footprint reduced to < 180 tokens total (a 96.7% prompt token reduction).
  • Automatic TTL and Least-Recently-Used (LRU) skill schema eviction to prevent context bloat over extended multi-turn sessions.

3. 🔌 MCP Protocol Interceptor & Ephemeral Injection (Phase 3)

  • Drop-in Stdio proxy that sits seamlessly between your IDE/Agent and any MCP server.
  • Intercepts tools/list handshakes, exposing only meta-tools until specific tools are requested.
  • Ephemerally injects full type definitions into the active turn context and proxies upstream execution cleanly.

4. 🧹 Dynamic Context Compactor & Semantic Receipt GC (Phase 4)

  • Intercepts large command/tool outputs (> 512 bytes) and collapses them into compact, indexed semantic receipts (receipt_id).
  • Provides on-demand drill-down via inspect_receipt so agents only read the subfields they actually need.
  • Sub-millisecond garbage collection of transient execution traces.

5. 📊 Benchmarking Engine & Live DevShelf Sync (Phase 5)

  • Automated benchmarking suite measuring token savings, retrieval recall, and latency.
  • Live catalog integration with DevShelf for zero-config developer tool discovery.
  • Fully typed CLI (skillprism benchmark, skillprism sync, skillprism serve).

📦 Installation & Quick Start

Run via npx

npx @ritualdev-lab/skillprism --help