feat(v1): add MiniMax Code harness - #2393
Open
hetaoBackend wants to merge 1 commit into
Open
Conversation
hetaoBackend
force-pushed
the
feat/mcode-headless-harness
branch
from
August 19, 2026 00:59
17de049 to
bcf6f24
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
mcodeharness backed bymcode exec@minimax-ai/codeto0.1.4and reuse the shared Node.js installerread,write,edit,bash,grep, andglobtools in an isolated per-rollout data directoryInterception and isolation
MiniMax Code 0.1.4 requires a literal custom-provider key in its config. The harness keeps only a harmless placeholder there and uses a Node preload to:
0600one-use interception credential before the CLI module loadsNODE_OPTIONSfrom the process environment before model-directed tools can runThe harness also uses a rollout-local
MINIMAX_DATA_DIRand disables persona, memory, external skills, delegation, web search, and other unrelated product features.Scope
This integration intentionally uses headless
mcode execrather than ACP because the current ACP server performs an additional conversation-title model call. MCP URLs and cross-segment resume are not advertised by this harness.Validation
uv run --frozen ruff check verifiers/v1/harnesses/mcode verifiers/v1/harnesses/__init__.py tests/v1/conftest.py tests/v1/test_e2e.pyuv run --frozen pytest --collect-only -q tests/v1/test_e2e.py -m mcodeuv run --frozen pytest -q tests/v1 -m 'not e2e'(70 passed)mcodeharnessbashtool callVF_MCODE_*/NODE_OPTIONSunsetThe live model-backed Docker E2E was not run locally because
PRIME_API_KEYis not configured.Note
Add MiniMax Code harness for headless agent execution
MCodeHarnessandMCodeHarnessConfigin harness.py, implementing theHarnessinterface for running MiniMax Code CLI in headless mode against a custom OpenAI-compatible endpoint with bearer auth.@minimax-ai/codenpm package at a pinned version (0.1.4) on first use, guarded by a lockfile; subsequent runs reuse the installation.fetch, reads a one-use on-disk secret, and scrubs related env vars.mcodepytest marker and a docker-based e2e parameterization entry inAGENTIC_PLACEMENTS.Macroscope summarized bcf6f24.