MCPcopy Index your code
hub / github.com/Compresr-ai/Context-Gateway

github.com/Compresr-ai/Context-Gateway @v0.5.3

Chat with this repo
repository ↗ · DeepWiki ↗ · release v0.5.3 ↗ · + Follow
3,935 symbols 16,841 edges 324 files 2,347 documented · 60%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

Compresr

Instant history compaction and context optimization for AI agents

WebsiteDocsDiscord


Context Gateway

Compresr is a YC-backed company building LLM prompt compression and context optimization.

Context Gateway sits between your AI agent (Claude Code, Cursor, etc.) and the LLM API. When your conversation gets too long, it compresses history in the background so you never wait for compaction.

Quick Start

# Install gateway binary
curl -fsSL https://compresr.ai/api/install | sh

# Then select an agent (opens interactive TUI wizard)
context-gateway

The TUI wizard will help you: - Choose an agent (claude_code, cursor, openclaw, or custom) - Create/edit configuration: - Summarizer model and api key - enable slack notifications if needed - Set trigger threshold for compression (default: 75%)

Supported agents: - claude_code: Claude Code IDE integration - cursor: Cursor IDE integration
- openclaw: Open-source Claude Code alternative - custom: Bring your own agent configuration

What you'll notice

  • No more waiting when conversation hits context limits
  • Compaction happens instantly (summary was pre-computed in background)
  • Check logs/history_compaction.jsonl to see what's happening

Contributing

We welcome contributions! Please join our Discord to contribute.

Extension points exported contracts — how you extend this code

Core symbols most depended-on inside this repo

Shape

Function 2,580
Method 898
Struct 389
Interface 45
TypeAlias 17
Class 4
FuncType 2

Languages

Go82%
TypeScript18%

Modules by API surface

cmd/dashboard_dist/assets/index-B7sIOu7D.js593 symbols
internal/tui/status_bar.go42 symbols
internal/gateway/search_tool_handler.go41 symbols
internal/store/store.go40 symbols
tests/tool_discovery/unit/pipe_test.go39 symbols
internal/monitoring/trajectory.go36 symbols
tests/anthropic/unit/hard_edge_cases_test.go35 symbols
internal/gateway/gateway.go35 symbols
internal/monitoring/aggregator.go34 symbols
tests/preemptive/unit/summarizer_api_test.go31 symbols
tests/gemini/unit/adapter_test.go31 symbols
internal/monitoring/savings.go31 symbols

Datastores touched

productionDatabase · 1 repos

For agents

$ claude mcp add Context-Gateway \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page