DEDUPED Hot AI repos. Real use cases. What people build. Get the Monday 5

How to add a new model provider with a wire capture with Opengrok

Probe a provider's API, attach the capture to a pull request, and pass the repo's contract tests.

Short answer: Run python tools/wire-probe.py --base https://api.example.com/v1 --model their-model --key-env THEIR_API_KEY against the provider; then read CONTRIBUTING.md for the contract and attach the capture to your pull request; run node tools/test-provider-maps.cjs for Contract A. All steps.

Reverse engineering. 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.

Who it is forA contributor who wants to add a provider not yet in the repo, triggered by needing a model that Opengrok does not support today.

The problemA provider mapped without evidence can silently ignore thinking or effort settings, so the repo requires a capture before any map is merged.

The outcomeA verified wire map for the new provider, backed by a capture and passing both provider-map contract suites.

What you need first

  • A working Grok Bot desktop install
  • Python 3.9+ and Node 18+
  • API keys for each provider you plan to bind

Steps

  1. Run python tools/wire-probe.py --base https://api.example.com/v1 --model their-model --key-env THEIR_API_KEY against the provider.
  2. Read CONTRIBUTING.md for the contract and attach the capture to your pull request.
  3. Run node tools/test-provider-maps.cjs for Contract A.
  4. Run node tools/test-provider-maps-hop.cjs for Contract B.
  5. Run python tools/qa.py for the leak scan, reference integrity, and suites.

Prompt for your agent

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.

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.

Use this in your AI agent

Ask your agent

Using the Deduped MCP, get the setup steps for OnlyTerp/opengrok and "Add a new model provider with a wire capture"

Add Deduped to Claude Code once

claude mcp add --transport http deduped https://dedupedai.com/mcp

Cursor, ChatGPT, others

Share: X LinkedIn Hacker News Email Copy link

Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer