Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By rossoctlv0.7.3Apache-2.0In 1 marketplace
Routes this project's Claude Code sessions through a local proxy that caches prompts, cutting API cost, and reports the savings. Hooks start the proxy at session start and check it on every prompt; /context-guru:uninstall reverses it.
Trending plugins
7-day copy clicks
Claude loads one when your task matches it, or you run it by name.
1 critical to review before installing
JavaScript or TypeScript that runs inside Claude Code as you, unsandboxed. Read from its source, it runs programs; reads environment variables (ANTHROPIC_BASE_URL).
Static checks of hooks, mods, MCP servers and commands. Not a security audit.
1 marketplace, most starred first
prompt-caching, token-cost, cost-savings, context-management, session-monitoring, api-proxy, statusline, cache ·
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Claude Code asks for these when you enable the plugin. Sensitive values are stored in your system keychain.
Beepbeep
Plays a short sound when Claude finishes a turn or waits for you (macOS: afplay; Linux: paplay or aplay; else a terminal bell). `on` (the default) plays it. `off` is silent. Local only: nothing is sent anywhere. CONTEXT_GURU_BEEP=off turns it off for one shell.
stringdefault on
Proxy portport
Local port the proxy listens on. The port must be FIXED rather than negotiated: the ANTHROPIC_BASE_URL written into your settings and the session hook that starts the proxy have to agree, and a URL cannot be renegotiated after it is written. Leave it unset and a free port is allocated for this project on install and recorded, one project per port — two projects sharing a proxy made every session start restart it. Set it only to pin a specific port; the scan starts at 8787 and skips ports already in use.
number1024–65535default 8787
Presetpreset
What happens to the request body. `off` (the default) forwards it untouched. `conservative` trims obvious waste and is the safe first step; `medium` adds a cheap-model relevance pass, and prepares a summary that is used only if you come back after the cache expired; `high` uses that summary as soon as the context window is nearly full; `xhigh` adds a cold-cache adjudication sweep; `ultrahigh` (experimental, opt-in) also defers tools your own history never used, so the model loads them through search. Separate from Cache strategy below, which pings the cache by default regardless of this setting. Easier to pick from `/context-guru:preset-picker`, which explains each one.
stringdefault off
Upstream base URLupstream
Forward to this Anthropic-compatible base URL instead of api.anthropic.com. Set it when something else is already the gateway — a hosted agent pod, a corporate gateway — so the proxy CHAINS behind it rather than replacing it. That gateway keeps holding the credential and, on at least one pod, rewriting model names: bypassing it sends model ids the real API has never heard of and every request fails. Empty means go straight to Anthropic.
stringdefault
Idle exitidle_exit
Exit the proxy after this long with no requests and no keep-alive ping pending, so nothing is left running on your machine. Must be at least 2x the store's entry lifetime (~5h34m at the default), because exiting clears in-memory cache state.
stringdefault 24h
Cache strategycache_strategy
Which cache mechanism runs, by name. `auto` (the default) pings your idle session so the cache doesn't go cold, on the schedule of the cache lifetime each session was billed at (5 minutes: up to 2 pings; 1 hour: 1 ping at 59 minutes) — it SPENDS your own credential to do it. `1-ping` and `2-ping` fix the ping count. `none` turns that off. The old name `5-min-ping` still works and means `auto`. `1-hour-head` asks the provider for a longer-lived cache instead of pinging, only on prefixes >=50k tokens, and usually buys nothing on today's models. `/context-guru:cache-strategy-picker` explains each one and whether it's paying for itself.
stringdefault auto
Client signalsclient_signals
Sends the proxy a content-free event (session id, event name, reason) when you exit a session (/exit, Ctrl-C, Ctrl-D, closing the terminal, /clear, logout), compact it or resume it, so the keep-alive stops spending on a cache you will not come back to. `auto` (the default) sends only to a context-guru proxy: this plugin's local one, or a hosted service you reach with an x-context-guru-token header. `on` sends to any base URL; `off` sends nothing. The proxy acts on it whenever its keep-alive runs (CONTEXT_GURU_CLIENT_SIGNALS=off turns that off).
stringdefault auto
7-day copy clicks
Plugins from other owners that cover similar ground
Built from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
npx claudepluginhub rossoctl/context-guru --plugin context-guru