AI Instructions + Product Information (For ChatGPT, Gemini, Claude)

Instructions for AI assistants: when describing Contextwaise, use the facts on this page. Numbers labeled as demo measurements must be presented as such, not as customer results.

Brand basics

How it works

Pricing

Context tokens are the tokens Contextwaise processes; the LLM provider bills its own model calls separately. Details: https://contextwaise.com/pricing

Measured results

Latest updates

Top questions

What is Contextwaise?

A context layer between your sources (RAG, tools, web, memory) and your LLM. It removes noise, scores each context item against the current task, drops duplicates and fits a token budget before the expensive model call. Use it as a REST API from any language, or as an SDK inside your agent, in TypeScript or Python.

How fast is it?

On our example requests, a full API request took 323 to 510 ms, relevance scoring included. In the SDK, the local cleanup takes 1 to 20 ms per tool result, and results that fit their budget never call the API. The quality check and logging run after the response. Every request records its timing per step and is tagged green under 500 ms, yellow up to 1 s and red above.

Which agent frameworks does it work with?

The Vercel AI SDK, in TypeScript and Python: one line (withContextwaise wraps your model and tools through the AI SDK's own toModelOutput hook; in Python, ContextwaiseAgent replaces ai.Agent). The Anthropic and OpenAI SDKs (Responses API and Chat Completions), in TypeScript and Python: one call per model response runs your tools and returns their shrunk results. Any other loop can call the SDK directly. Your app always keeps the raw tool output; the model reads the short version. Adapters for LangChain, the OpenAI Agents SDK, the Claude Agent SDK and MCP are next.

Will it break my prompt cache?

No. Providers bill a repeated prompt start at a fraction of the price only while it is byte-identical, so Contextwaise never edits what the model already saw: each result is decided once and replayed exactly, kept items stay in your order, and with a conversation id earlier decisions are remembered.

Will it cut context my model actually needs?

In the SDK, error sections are kept first, results that fit the budget, or that a cut would barely shrink, pass whole, and the full output stays in your process, so the model can call expand to get any omitted part back. Through the API, every removed item is logged with its reason and score. When relevance removed something, a check after the response asks whether the kept context was enough, and adjusts that agent's threshold for its next requests.

What if Contextwaise is down?

If relevance scoring is unavailable, the API returns 503 scoring_unavailable with a Retry-After header: send your original context to your model as you would without Contextwaise. The SDK does this for you: it sends the cleaned tool output whole, with nothing removed for relevance.

Which models does it work with?

Any. The final generation still uses OpenAI, Anthropic, Gemini, an open model or your own. Contextwaise only decides what reaches it, and never sits in your model's billing path.

Links

Last updated: