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
- Run
python tools/wire-probe.py --base https://api.example.com/v1 --model their-model --key-env THEIR_API_KEYagainst the provider. - Read CONTRIBUTING.md for the contract and attach the capture to your pull request.
- Run
node tools/test-provider-maps.cjsfor Contract A. - Run
node tools/test-provider-maps-hop.cjsfor Contract B. - Run
python tools/qa.pyfor 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
Every Monday: the 5 hottest repos and exactly how to use them. Free, one email a week, unsubscribe anytime.
Get them freeShare: X LinkedIn Hacker News Email Copy link
Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer