provider-mock-e2e
provider-mock-e2e runs unmodified coding agent CLIs installed by lminstall against a checksum-verified loopback lmmock server with zero vendor credentials.
Quick reference
Prepare the verified lmmock loopback fixture, run the end-to-end probe for any of the 13 qualified coding agent CLIs in an isolated temporary HOME, and verify the exact reply and request audit.
npm install --prefix /tmp/compiler --no-audit --no-fund @lmctl-ai/lmctl@0.2.448
export LMSCRIPT_JS=/tmp/compiler/node_modules/@lmctl-ai/lmctl/bin/lmscript
python3 scripts/prepare.py
python3 scripts/run.py claude --settings /tmp/provider-mock-tools/settings.json --out build/claude-result
python3 scripts/run.py miniplayer --settings /tmp/provider-mock-tools/settings.json --out build/miniplayer-result
python3 scripts/run.py lmplayer --settings /tmp/provider-mock-tools/settings.json --out build/lmplayer-result
| Script or provider | Wire API on loopback lmmock | Purpose |
|---|---|---|
| scripts/prepare.py | lmmock + llm-api.lms fixture | Verify lmmock release checksum and compile the no-forced-tool smoke policy alongside the stock handler. |
| scripts/run.py <provider> | lminstall status <provider> --json | Resolve the lminstall-owned provider binary (never falling back to global PATH) and invoke probe.py. |
| scripts/probe.py | Isolated HOME + LMMOCK_URL | Configure the provider, send the exact prompt, assert exit 0 and PROVIDER_MOCK_OK_129, and run the wrong-reply control. |
| claude, dsh | POST /v1/messages (Anthropic Messages SSE) | Qualify Claude Code (--bare -p) and DeepSeek Harness (dsh headless) over loopback HTTP. |
| codex, miniplayer | POST /v1/responses (OpenAI Responses) | Qualify Codex (exec --skip-git-repo-check --json) and Miniplayer (run --model openai/mock-agent). |
| gemini, agy | POST /v1beta/models/*:streamGenerateContent?alt=sse | Qualify Gemini CLI (gemini-2.5-flash) and Antigravity CLI (gemini-3.8-flash) with GOOGLE_GEMINI_BASE_URL. |
| copilot, opencode, kimi, qwen, pi, lmplayer, hermes | POST /v1/chat/completions | Qualify OpenAI Chat Completions coding tools in isolated HOME directories with cleanup-hermes.py PID reaping. |
Runnable probe workflow verifying an installed provider binary against the loopback lmmock that scripts/probe.py starts itself:
lminstall status miniplayer --json
python3 scripts/run.py miniplayer --settings /tmp/provider-mock-tools/settings.json --out build/out
Documentation pages
- Skill — LLM agent authoring rules, hermetic HOME configuration, oracle assertions, and verification steps.
- Guide — Complete 13-provider routing matrix, batch-wrapper bypass on Windows, and Hermes gateway reaping.
- Reference — Provider configuration table, scripts and flags, environment isolation keys, and exit codes.