Bifrost is an AI gateway that gives applications one OpenAI-compatible API for accessing models from more than 23 providers. It is used to route model requests, handle provider failover and load balancing, and apply features such as caching, guardrails, and MCP gateway support.
Borrowing it
Nothing to install: this file belongs to maximhq/bifrost. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/maximhq/bifrost/dev/.claude/skills/semantic-cache-wiring/SKILL.mdgit clone --depth 1 https://github.com/maximhq/bifrostWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/maximhq/bifrost/semantic-cache-wiring)<a href="https://agentmods.dev/skills/maximhq/bifrost/semantic-cache-wiring"><img src="https://agentmods.dev/badge/skills/maximhq/bifrost/semantic-cache-wiring/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/maximhq/bifrost/semantic-cache-wiring"><img src="https://agentmods.dev/badge/skills/maximhq/bifrost/semantic-cache-wiring.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00150 | $0.05192 |
| Opus 5.5 | $0.00060 | $0.02077 |
| Sonnet 5.5 | $0.00030 | $0.01038 |
| Haiku 4.5 | $0.00015 | $0.00519 |
Grade A, and why
semantic-cache-wiring scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 5d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 152 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Semantic cache wiring suite
Every end-to-end semantic cache case lives in the semantic cache wiring suite: tests/e2e/api/runners/build-semantic-cache-wiring.mjs generates tests/e2e/api/collections/bifrost-semantic-cache-wiring.postman_collection.json, which is committed. Edit the generator, regenerate, and commit both; never hand-edit the JSON. The generator embeds the assertion library (tests/e2e/api/runners/lib/semantic-cache-wiring.mjs) in the collection as scw_lib, so a library change needs a regenerate too. tests/e2e/api/runners/individual/run-newman-semantic-cache-wiring-tests.sh boots one clean Bifrost per vector store (Redis and Weaviate, concurrently by default) on its own SQLite config and logs stores, and runs the collection against each; CI runs it from .github/workflows/scripts/test-api-integrations.sh. The run is live and paid (OpenAI, Anthropic, Gemini, Cohere, OpenRouter and Bedrock): run the offline checks in section 5 yourself and hand the live commands to the user.
Read AGENTS.md "Every semantic cache change ships with semantic cache wiring cases" first. Cite names, not line numbers: the helpers below are names in the generator and in tests/e2e/api/runners/lib/semantic-cache-wiring.mjs on dev.
1. What goes where
| What changed | Test it in |
|---|---|
Semantic cache behaviour a client can observe: whether a request is written, hits or misses, what a hit replays, cache_debug, the x-bifrost-cache-* headers, the plugin and cache admin API, the cache fields on log rows |
this suite, plus Go unit tests |
| A function's logic, a race, an error path no request can reach | Go unit tests beside the code: plugins/semanticcache/*_test.go, written against its fake stores (such as vectorRequiringStore and panickingAddStore in plugin_paths_test.go) so they run with no key and no store (section 5); transports/bifrost-http/lib/semantic_cache_config_test.go, transports/bifrost-http/handlers/cache_test.go and plugins_test.go |
| A vector store's own behaviour (search, scores, filters, delete, namespaces, dimensions) | framework/vectorstore/<store>_test.go against tests/docker-compose.yml (AGENTS.md gotcha 19), plus this suite on Redis and Weaviate |
| The suite's assertion library | tests/e2e/api/runners/lib/semantic-cache-wiring.test.mjs |
| The dashboard's caching settings | Playwright (tests/e2e/features/config/config-caching.spec.ts) |
| How a provider converts a request or response the cache does not answer | the provider harness (.claude/skills/harness-test-writer/SKILL.md) |
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 5d ago First seen · 152 lines · 150 tokens per session scan A 36f7fa302374
semantic-cache-wiring is a skill published in the GitHub repository maximhq/bifrost (10,145 stars, last pushed today), licensed Apache-2.0. It adds 150 tokens to every session and 5,192 once invoked, about $0.0006 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-11-27.
semantic-cache-wiring compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| semantic-cache-wiringmaximhq/bifrost | Skill | 10k | today | Apache-2.0 | A | 150 | Claude Code |
| Browser Agent QA TestingPramodDutta/qaskills | Skill | 253 | 29d ago | MIT | A | 33 | Claude Code, Codex |
| unrelated-toolsunrelated-ai/mcp-gateway | Skill | 27 | yesterday | MIT | A | 64 | Codex |
| unified-ai-gatewayhappy520ai/unified-ai-system | Skill | 10 | 4d ago | Apache-2.0 | A | 35 | Codex |
| test-sweepsrnichols/plan-forge | Skill | 6 | 28d ago | MIT | A | 38 | Claude Code |
| audit-loopsrnichols/plan-forge | Skill | 6 | 28d ago | MIT | A | 100 | Claude Code |
| verifystudioKjm/ai-harness-template | Skill | 46 | 1mo ago | MIT | A | 79 | Claude Code |