{
 "schema_version": 1,
 "generated": "2026-10-20",
 "id": "onlyterp-opengrok--add-a-new-provider-with-wire-evidence",
 "repo": "OnlyTerp/opengrok",
 "repo_url": "https://github.com/OnlyTerp/opengrok",
 "repo_slug": "onlyterp-opengrok",
 "title": "Add a new model provider with a wire capture",
 "page_title": "How to add a new model provider with a wire capture with Opengrok",
 "summary": "Probe a provider's API, attach the capture to a pull request, and pass the repo's contract tests.",
 "who": "A contributor who wants to add a provider not yet in the repo, triggered by needing a model that Opengrok does not support today.",
 "problem": "A provider mapped without evidence can silently ignore thinking or effort settings, so the repo requires a capture before any map is merged.",
 "outcome": "A verified wire map for the new provider, backed by a capture and passing both provider-map contract suites.",
 "steps": [
  "Run `python tools/wire-probe.py --base https://api.example.com/v1 --model their-model --key-env THEIR_API_KEY` against the provider.",
  "Read CONTRIBUTING.md for the contract and attach the capture to your pull request.",
  "Run `node tools/test-provider-maps.cjs` for Contract A.",
  "Run `node tools/test-provider-maps-hop.cjs` for Contract B.",
  "Run `python tools/qa.py` for the leak scan, reference integrity, and suites."
 ],
 "agent_prompt": "Using the OnlyTerp/opengrok repo, run `python tools/wire-probe.py` against <provider-base-url> with model <model-id> and key from the environment variable <KEY_ENV_NAME>. Report the verdict and the path of the saved capture. Verify both `node tools/test-provider-maps.cjs` and `node tools/test-provider-maps-hop.cjs` pass before reporting the map as ready.",
 "agents": [
  "any"
 ],
 "difficulty": "Advanced",
 "time": "60 minutes",
 "basis": "readme",
 "caveat": "The README says a provider is only listed as working after its capture is in the repo, so a new provider with no capture is not a supported route.",
 "category": "Software and DevOps",
 "tags": [
  "Software and DevOps"
 ],
 "lang": "javascript",
 "requirements": [
  "A working Grok Bot desktop install",
  "Python 3.9+ and Node 18+",
  "API keys for each provider you plan to bind"
 ],
 "risk": "sensitive",
 "seen_in_the_wild": false,
 "mentioned_publicly": false,
 "risks": [
  {
   "tag": "reverse-engineering",
   "notice": "Probing a provider's live API to record its wire behavior is a form of reverse engineering, so only probe services you are allowed to test."
  }
 ],
 "best": false,
 "score": 0.7,
 "evidence": [],
 "url": "https://dedupedai.com/use-cases/onlyterp-opengrok/add-a-new-provider-with-wire-evidence/",
 "md": "https://dedupedai.com/use-cases/onlyterp-opengrok/add-a-new-provider-with-wire-evidence/index.md",
 "disclaimer": "Deduped lists open-source repositories that belong to other people. We do not own, maintain, audit, or vouch for any of them, and a repo appearing here is not an endorsement or a safety check. The use cases, steps, and prompts are written by AI and may be incomplete, outdated, or just wrong. Where a use case is marked \"Seen in the wild\", we link to public posts where someone described something similar, but we have not verified those posts and the use case itself is still our AI's own write-up. Use all of this at your own risk. Only run code, commands, or agents on systems and accounts you are authorized to use, and read the code and every command before you run it, especially anything that touches credentials, files, or the network. Nothing here is professional, security, legal, or financial advice. All trademarks and project names belong to their respective owners, and their use here does not imply affiliation. Content is provided as is, without warranties of any kind. Found a mistake, a safety problem, or something you want removed? Email hello@dedupedai.com and we will look at it promptly.",
 "api": "https://dedupedai.com/api/v1/usecases/onlyterp-opengrok--add-a-new-provider-with-wire-evidence.json",
 "api_version": "v1"
}
