harness-test-writer
Skill8.6k starsChanged 2 months agoApache-2.0View on GitHub
Add regression test cases to the Bifrost provider harness (the Postman collection run via `make run-provider-harness-test`) based on a merged PR or a GitHub issue. Fetches the PR/issue, traces the affected wire path in the codebase, checks existing harness coverage, designs cases following harness conventions, inserts them into tests/e2e/api/collections/provider-harness.json without reformatting the file, and validates via the augment and filter scripts. Invoked with /harness-test-writer <PR# | issue# | URL> or /harness-test-writer (prompts for a reference).
Trending
Quiet since October.about the whole repository
Who's talking about maximhq/bifrost
- @ponceto91.bsky.social“permettant d'unifier l'accès à plusieurs fournisseurs avec une API compatible OpenAI ⬇️ …”Bluesky · Jan 25, 2026 · 26 likes
- A Hacker News story“Bitfrost – LLM gateway 90x faster than Litellm at p99”Hacker News · Aug 7, 2025 · 8 points
- A Hacker News story“50× faster than LiteLLM: Bifrost is a Go-based LLM gateway built for scale.”Hacker News · Dec 8, 2025 · 5 points
- A Hacker News story“I Found One Interesting Open Source GitHub Gem”Hacker News · Sep 16, 2026 · 3 points
- A Hacker News story“Show HN: Changed how I use agent harnesses”Hacker News · Aug 3, 2026 · 3 points
The biggest 5 of 54 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 54
Talked about on GitHub, Hacker News and Bluesky (54 times).
On GitHub · 35
- Jul 22, 2026feat: dispatch binding tiers — post-merge audit + production wiring 5/5 + real Bifrost SDK — KooshaPari/OmniRoute2 reactions · 7 comments
- Oct 5, 2026deps: Bump the "all-dependencies" group with 1 update across multiple ecosystems — cynative/cynative1 reaction · 2 comments
- Sep 30, 2026Add verified Bifrost CLI 0.10.6 to Zeus — rcamarda390/my-docker-images1 reaction
- Sep 17, 2026chore(main): release 1.12.2 — cynative/cynative1 reaction · 2 comments
- Sep 16, 2026[Bug] openai_compatible 渠道的 Responses→Chat 转换会静默丢弃工具调用(同 chunk 并行调用只剩第一个 / 无 id 的调用整块丢失) — tbphp/gpt-load1 reaction · 1 comment
30 more on GitHub
- Sep 15, 2026deps: Bump the "all-dependencies" group with 2 updates across multiple ecosystems — cynative/cynative1 reaction · 2 comments
- Sep 11, 2026deps: Bump the "all-dependencies" group with 1 update across multiple ecosystems — cynative/cynative1 reaction · 2 comments
- Sep 7, 2026Assistant: support for OpenCode Go provider — posit-dev/positron1 reaction · 3 comments
- Sep 7, 2026Bifrost Gemini chat completions drops inlineData image/audio parts — Atharva-Kanherkar/kairo1 reaction
- Sep 3, 2026chore(deps): remediate PROD-5181 non-critical findings — pluralsh/console1 reaction · 5 comments
- Sep 3, 2026chore(deps): remediate PROD-5181 dependencies — pluralsh/console1 reaction · 5 comments
- Sep 3, 2026fix(deps): remediate Nexus and agent image CVEs — pluralsh/console1 reaction · 3 comments
- Sep 3, 2026feat(search): add Search1API as a search provider — BerriAI/litellm1 reaction · 7 comments
- Sep 2, 2026fix(nexus): remediate Go dependency vulnerabilities — pluralsh/console1 reaction · 3 comments
- Sep 1, 2026fix(nexus): remediate Bifrost and x/crypto vulnerabilities — pluralsh/console1 reaction · 3 comments
- Aug 31, 2026deps: Bump the "all-dependencies" group with 2 updates across multiple ecosystems — cynative/cynative1 reaction · 1 comment
- Aug 28, 2026chore(main): release 1.10.2 — cynative/cynative1 reaction · 1 comment
- Aug 25, 2026docs: add Bifrost to Deployment and observability — owainlewis/awesome-artificial-intelligence1 reaction · 3 comments
- Aug 24, 2026deps: Bump the "all-dependencies" group with 2 updates across multiple ecosystems — cynative/cynative1 reaction
- Aug 21, 2026deps: Bump the "all-dependencies" group with 1 update across multiple ecosystems — cynative/cynative1 reaction · 3 comments
- Aug 19, 2026chore(main): release 1.10.0 — cynative/cynative1 reaction · 1 comment
- Aug 18, 2026chore(main): release 1.9.4 — cynative/cynative1 reaction · 1 comment
- Aug 17, 2026deps: Bump the "all-dependencies" group with 1 update across multiple ecosystems — cynative/cynative1 reaction
- Aug 17, 2026deps: Bump the "all-dependencies" group with 2 updates across multiple ecosystems — cynative/cynative1 reaction
- Aug 14, 2026chore(main): release 1.9.3 — cynative/cynative1 reaction · 1 comment
- Aug 14, 2026deps: Bump the "all-dependencies" group with 1 update across multiple ecosystems — cynative/cynative1 reaction
- Aug 10, 2026deps: Bump the "all-dependencies" group with 1 update across multiple ecosystems — cynative/cynative1 reaction
- Jul 30, 2026deps: Bump the "all-dependencies" group with 2 updates across multiple ecosystems — cynative/cynative1 reaction
- Jul 29, 2026chore(main): release 1.9.0 — cynative/cynative1 reaction · 1 comment
- Jul 27, 2026deps: Bump the "all-dependencies" group with 1 update across multiple ecosystems — cynative/cynative1 reaction
- Jul 18, 2026fix(argis): restore full Go suite after Bifrost schema/API drift — KooshaPari/OmniRoute1 reaction · 2 comments
- Jul 9, 2026Enterprise-grade audit: docs, prompts, examples — luminik-io/alfred1 reaction · 4 comments
- Apr 30, 2026MM-68606: Support Claude Opus 4.7 — mattermost/mattermost-plugin-agents1 reaction · 2 comments
- Mar 5, 2026Add structured output support and update bifrost to v1.4.6 — mattermost/mattermost-plugin-agents1 reaction · 4 comments
- Feb 2, 2026[Feature] - Support Bifrost — kaitranntt/ccs1 reaction · 2 comments
On Hacker News · 15
- Aug 7, 2025Bitfrost – LLM gateway 90x faster than Litellm at p99says it tested it8 points · 1 comment
- Dec 8, 202550× faster than LiteLLM: Bifrost is a Go-based LLM gateway built for scale.5 points
- Sep 16, 2026I Found One Interesting Open Source GitHub Gem3 points
- Aug 3, 2026Show HN: Changed how I use agent harnesses3 points
- Dec 9, 2025Show HN: Bifrost – open-source LLM Gateway (50x lower latency than LiteLLM)3 points
10 more on Hacker News
- Aug 7, 2026Show HN: A model router should also provide a MCP gateway2 points
- Jul 2, 2026Show HN: Fastest Enterprise AI Gateway2 points
- Jan 30, 2026Show HN: Fastest LLM gateway (50x faster than LiteLLM)says it tested it2 points
- Dec 10, 2025Every LLM gateway we tested failed at scale – ended up building Bifrostsays it tested it2 points · 1 comment
- Aug 11, 2026The worst part of using multiple LLM providers is not the API differences1 point
- Aug 10, 2026I thought an LLM gateway was unnecessary. Then we added a second model provider1 point · 1 comment
- Aug 5, 2026Show HN: Bifrost: Enterprise MCP Gateway with Built-In Security: OAuth 2.0, RBAC1 point
- Aug 3, 2026Is Hermes Agent unusable without a model router?1 point · 1 comment
- Mar 19, 2026Bifrost CLI and Codex CLI: One Command to Set Up OpenAI Agent with Any Model1 point
- Feb 13, 2026Show HN: Bifrost: Fastest enterprise AI gateway1 point
On Bluesky · 4
- Jan 25, 2026permettant d'unifier l'accès à plusieurs fournisseurs avec une API compatible OpenAI ⬇️ github.com/maximhq/bifr... — @ponceto91.bsky.social26 likes and reposts
- Oct 29, 2025https://github.com/maximhq/bifrost/ — @tom-doerr.bsky.social1 likes and repost
- Jun 11, 2025An open-source middleware that serves as a unified gateway to various AI model providers, enabling seamless integration and fallback… — @golangch.bsky.social1 likes and repost
- Jun 8, 2025Bifrost seems interesting at least. An LLM proxy that claims to be 40x faster than LiteLLM, production oriented (ie handling high… — @pedromadruga.comsays it tested it1 likes and repost
In this repository15 other files it gives its agents.
- AGENTS.mdAGENTS.md
- add-pricing-fieldSkill
- api-validatorSkill
- changelog-writerSkill
- docs-writerSkill
- e2e-testSkill
- helm-updateSkill
- investigate-issueSkill
- release-checklistSkill
- resolve-pr-commentsSkill
- resolve-pr-comments-stackSkill
- review-prSkill
- security-auditSkill
- split-commit-into-stackSkill
- stack-absorbSkill
The file
We split this skill into the rules it gives an agent
10 rules. About 0 are common, 5 are distinctive, and 5 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈5
Distinctive · estimate
This author's own choices. Worth a look.
5
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 25
No argument at all => ask the user for the PR/issue reference.
- Distinctive: line 70
Search the collection for the feature's keywords before writing anything:
- Distinctive: line 88
If coverage already exists, report where and stop - do not add duplicates.
- Very specific: line 98
Case names: must contain the provider keyword and model so runners/filter-collection.mjs PROVIDER filtering catches them - check …
- Very specific: line 112
Never skip any error status code.
- Distinctive: line 114
every unexpected status (auth failure, rate limit, 5xx) must fail the case loudly instead of silently passing it.
- Very specific: line 120
Variables: use {{baseUrl}} for the gateway.
- Very specific: line 123
Keep request bodies minimal and cheap (small max_tokens/max_output_tokens, gpt-4o-mini-class models) - the harness runs as a paid live …
- Very specific: line 135
Use a Node script that appends the new folder textually before the closing ] of the top-level item array:
- Distinctive: line 168
Do NOT auto-run the live suite: it starts a gateway and makes paid provider calls.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Provider Harness Test Writer
Turn a PR or GitHub issue into regression coverage in the provider harness: the Postman
collection at tests/e2e/api/collections/provider-harness.json, executed by newman via
make run-provider-harness-test.
This is NOT the Go test harness in core/internal/llmtests/ (that one is run via
make test-core PROVIDER=...). If the user seems to want Go-level scenario tests,
confirm before proceeding.
Step 1 - Resolve the reference
The argument may be a PR number, an issue number, or a GitHub URL.
- URL containing
/pull/=> PR. URL containing/issues/=> issue. - A bare number is ambiguous: try
gh pr view <N> --repo maximhq/bifrostfirst; if it 404s, trygh issue view <N>. If BOTH exist and refer to different things, ask the user which one they mean with AskUserQuestion. - No argument at all => ask the user for the PR/issue reference.
Fetch full context:
gh pr view <N> --repo maximhq/bifrost --json title,body,state,files,baseRefName
gh pr diff <N> --repo maximhq/bifrost
# or
gh issue view <N> --repo maximhq/bifrost --json title,body,state,labels,commentsFor a PR, also note any Closes #X issue and fetch that issue too - the issue usually
contains the client-visible reproduction (exact request shapes, error bodies, status
codes) that the harness case must mirror.
Step 2 - Understand the wire-level behavior to pin
The harness tests Bifrost from the outside: HTTP requests against gateway routes, with assertions on status codes and response/SSE bodies. Translate the PR/issue into that frame:
- Which route(s)? (
/v1/chat/completions,/v1/responses, drop-ins like/openai,/anthropic,/bedrock,/genai, passthrough routes, ...) - Which provider(s) and model(s)?
- What request shape triggers the bug/feature? Reconstruct it from the issue repro or from the code path in the diff (read the changed functions and their callers).
- What is the observable failure signature before the fix (status code, error body substring) and the expected behavior after?
Trace the chain in code with Grep/Read until you can state it in one sentence, e.g.:
"x-bf-compat header -> compat plugin marks ChangeRequestType=ResponsesRequest ->
ToResponsesRequest() -> ToOpenAIResponsesRequest strips role -> OpenAI 200".
Useful switches the harness relies on:
x-bf-compatheader:trueenables all compat features; a JSON array like["convert_chat_to_responses"]enables only specific ones (parsed intransports/bifrost-http/lib/ctx.go, consumed byplugins/compat/main.go). Prefer the targeted array form in regression cases so only the feature under test is active. Note: when the suite runs withCOMPAT=on, a collection-level prerequest script upsertsx-bf-compat: trueover any per-request value - the targeted form matters forCOMPAT=offruns, which is exactly when a forced-conversion case needs it.x-bf-passthrough-extra-params: truefor passthrough extra-param cases.
Step 3 - Check existing coverage
Search the collection for the feature's keywords before writing anything:
cd tests/e2e/api
grep -c '<keyword>' collections/provider-harness.json
node -e "
const c = require('./collections/provider-harness.json');
function walk(items, path) { for (const it of items) {
if (it.item) walk(it.item, path + '/' + it.name);
else if (JSON.stringify(it).includes('<keyword>')) console.log(path + ' :: ' + it.name);
} }
walk(c.item, '');"Also skim HARNESS_COVERAGE_BACKLOG.md - if the gap is listed there as [ ], flip it
to [x] as part of the change (and if you find adjacent gaps worth noting, leave them,
do not scope-creep).
If coverage already exists, report where and stop - do not add duplicates.
Step 4 - Design the cases
Conventions (match the existing collection exactly):
- Folder: issue-pinned regressions get their own top-level folder named
<N>. <Short Title> (#<issue> / PR #<pr>)where<N>is the next unused top-level number (folders 17, 18, 19 are prior examples). Give the folder adescriptionexplaining the bug, the production path, and what each case pins. - Case names must contain the provider keyword and model so
runners/filter-collection.mjsPROVIDER filtering catches them - checkPROVIDER_KEYWORDSin that file (e.g. openai matches "openai", "gpt-"). Suffix each name with- #<issue>. - Coverage shape: typically 2-3 cases - the real production route (non-streaming),
a streaming variant if the route streams, and where applicable a second route that
pins the same invariant independently (e.g. native
/v1/responsesalongside the converted/v1/chat/completionspath). - Non-200 expectations: the collection-level test script asserts HTTP 200 on every
request unless the request NAME carries a status tag:
[EXPECT-4XX](any 4xx, for "the field reached the provider and it rejected it" pins) or an exact[EXPECT-<code>]such as[EXPECT-422]. Put the tag in the name of every case that expects a non-200 reply, or the run fails on the injected "Status code is 200" assertion. - Test scripts (Postman
event[].script.exec, plain ES5 JavaScript):- Never skip any error status code. Do NOT open the script with an early-return
guard like
if ([401, 403, 429, 500, 502, 503, 504].indexOf(pm.response.code) !== -1) { return; }- every unexpected status (auth failure, rate limit, 5xx) must fail the case loudly instead of silently passing it. Assert the exact status the case expects.
- Assert the specific failure signature is absent (error substring, param name) AND that the happy path succeeded (status below 400, expected fields present).
- Include the response text in failure messages:
pm.expect(pm.response.code, 'failed: ' + pm.response.text()).to.be.below(400);
- Never skip any error status code. Do NOT open the script with an early-return
guard like
- Variables: use
{{baseUrl}}for the gateway. Inlineprovider/modelstrings (e.g.openai/gpt-4o-mini) like the cross-cut folders do; only use variables such as{{bedrockModel}},{{genaiModel}},{{vertexModel}}where existing folders do. - Keep request bodies minimal and cheap (small
max_tokens/max_output_tokens, gpt-4o-mini-class models) - the harness runs as a paid live sweep.
Present the designed cases (names, route, body, assertions) to the user for approval before editing the collection.
Step 5 - Insert without reformatting
CRITICAL: provider-harness.json is ~1.5MB and is NOT byte-stable under
JSON.stringify(JSON.parse(raw), null, 2) (escape differences). Never rewrite the
whole file - the diff must contain only your added lines.
Use a Node script that appends the new folder textually before the closing ] of the
top-level item array:
const raw = fs.readFileSync(PATH, 'utf8');
const before = JSON.parse(raw);
// abort if the folder already exists (idempotence)
const indented = JSON.stringify(folder, null, 2).split('\n').map(l => ' ' + l).join('\n');
const tail = '\n ]\n}';
if (!raw.endsWith(tail)) throw new Error('unexpected file tail');
const out = raw.slice(0, -tail.length) + ',\n' + indented + tail;
const after = JSON.parse(out); // must parse; item count must be before + 1
fs.writeFileSync(PATH, out);Adding cases INSIDE an existing folder is harder to do textually; if that is truly the right placement, locate the folder's closing bracket precisely and verify the diff is additions-only afterward. Default to a new top-level folder for issue regressions.
Step 6 - Validate
All from tests/e2e/api/:
git diff --stat # must show only additions in provider-harness.json (+ backlog md if touched)
node runners/augment-provider-harness.mjs --source collections/provider-harness.json --out /tmp/aug.json
node runners/filter-collection.mjs --source /tmp/aug.json --out /tmp/filtered.json --provider <provider>
node -e "const c=require('/tmp/filtered.json'); const f=c.item.find(i=>i.name.startsWith('<N>.')); console.log('kept:', !!f, f && f.item.length);"The augment script only regenerates its own "(generated)" folders, so a new top-level folder passes through untouched - but run it anyway to catch parse breakage.
Do NOT auto-run the live suite: it starts a gateway and makes paid provider calls. Report the run command and offer to execute it. The keyword is descriptive text from the case or folder names, never an issue number, and the gateway port is explicit because worktrees run side by side (avoid 8080 and 8090, the harness viewer's port, unless free):
make dev PORT=<port> APP_DIR=$(pwd)/tests/integrations/python
make run-provider-harness-test PROVIDER=<provider> FEATURE="<distinctive keyword from your case names>" BASE_URL=http://localhost:<port>Step 7 - Report
Summarize: what the PR/issue changed, the coverage gap found (cite evidence, e.g. "tool_call_id appeared zero times in the collection"), each added case and what it pins, validation results, and the run command. Leave the change unstaged - never commit.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

