This release is a pre-release and may not be stable for production use.
Subagent MCP
Most agent setups ask one model inside one harness to plan, implement, and review the same work. That can leave the same assumptions in every role — closer to grading your own homework than getting an independent review.
Subagent MCP lets Codex remain the main agent and orchestrator while delegating work to external agent runtimes. An external agent runtime is a model paired with its native harness. Claude with Claude Code, a Cursor-supported model with Cursor's harness, and Qwen with its native harness are examples, not hard-coded branches: adapters connect each runtime through the same normalized lifecycle.
These runtimes supplement Codex's native subagent pool. Where a native harness supports subscription-backed use, work can draw on that provider's existing quota; actual concurrency and capabilities still depend on installed adapters and provider limits. Subagent MCP does not enable usage credits or overage, and managed provider work fails closed when no-overage evidence or required identity, model, workspace, or session data is missing.
The project and repository are named Subagent MCP. The Python distribution
and command are subagent-harness-mcp because the shorter package name was
already taken.
Preview:
0.1.0a6targets Windows. The local MCP, deterministic adapter, package, and localhost UI are usable. Live Claude Code work remains gated until the exact native-harness and no-overage canary passes.
Install
Install uv first if you do not already have it:
winget install --id=astral-sh.uv -e
Then install the pinned preview and connect it to Codex:
uv tool install subagent-harness-mcp==0.1.0a6
codex mcp add subagent-mcp -- subagent-harness-mcp serve
Start a new Codex task after registration. You can confirm the installation at any time:
subagent-harness-mcp --version
codex mcp list
If 0.1.0a6 has not reached PyPI yet, install the current checkout instead:
uv tool install .
Open the local UI
subagent-harness-mcp ui
This opens a temporary browser session on localhost for settings, health, and read-only activity. It is not an agent chat window, and the server stops when the command exits.
Use it from Codex
After registering the server and configuring a runtime, start a new Codex task and delegate in natural language. For example:
Use Subagent MCP to ask an external agent to review this change, then evaluate its findings independently.
Codex decides what to delegate, observes the result, and keeps the final judgment. Underneath, each adapter maps the same lifecycle to its native harness: spawn, inspect or wait, send follow-up input or interrupt, then close.
How it fits together
flowchart LR
C["Codex<br/>Main agent & orchestrator"]
M["Subagent MCP<br/>Gateway"]
UI["Localhost UI<br/>Settings & activity"]
C -->|"stdio MCP<br/>delegate · steer · observe"| M
UI --> M
subgraph E["External agent runtimes — adapter-driven"]
R1["Model<br/>+<br/>native harness"]
R2["Model<br/>+<br/>native harness"]
RN["More runtimes<br/>via future adapters"]
end
M -->|"normalized lifecycle"| R1
M -->|"normalized lifecycle"| R2
M -->|"normalized lifecycle"| RN
A runtime may be Claude with Claude Code, a Cursor-supported model with Cursor's harness, Qwen with its native harness, or another adapter. These are examples of the adapter shape, not special cases in the architecture.
Subagent MCP owns the normalized lifecycle, status, redaction, leases, and circuits. Each adapter translates that contract to its native harness without writing shared state directly. See the architecture for details.
What works in this preview
| Capability | Status |
|---|---|
| 13-tool normalized lifecycle over stdio | Works |
| Deterministic adapter for integration testing | Works without provider quota |
| Localhost settings and activity UI | Works |
| Windows install, update, rollback, registration, and conservative uninstall | Passed release-candidate lifecycle gates; fresh 0.1.0a6 public install follows publication |
| Claude Code native adapter | Implemented but remains needs_canary until its live no-overage gate passes |
| Provider model selection | Opaque native model IDs; no hard-coded model allowlist or silent fallback |
| Project-local Claude context and hooks | Disabled until canonical path and content-hash trust are enforced |
| macOS, Linux, visible-background handoff, and native client side-panel rows | Not supported in this preview |
Green deterministic tests prove the local contract; they do not prove that a live provider is ready.
Other MCP clients
Point any stdio-compatible MCP client at the installed command:
{
"command": "subagent-harness-mcp",
"args": ["serve"]
}
The MCP exposes versioned runtime, project-trust, agent-lifecycle, and workspace
tools. Public schemas live in schemas/.
Safety and billing
- Subagent MCP never enables usage credits or changes billing settings.
- Managed provider work fails closed on missing identity, model, workspace, session, or no-overage evidence; it does not silently choose a fallback.
- Provider model IDs and reasoning settings remain native, opaque values.
- Product data stays in explicit local config, state, and data roots. Optional client registration uses the client's official command and verifies the exact entry instead of directly rewriting unrelated configuration.
- Native transcripts remain owned by the native harness. Treat agent output as untrusted advice and verify it before applying changes.
Read the full threat model and report vulnerabilities privately as described in SECURITY.md.
Development
CONTRIBUTING.md contains the deterministic test workflow and adapter guidelines. Subagent MCP is released under the MIT License.
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file subagent_harness_mcp-0.1.0a6.tar.gz.
File metadata
- Download URL: subagent_harness_mcp-0.1.0a6.tar.gz
- Upload date:
- Size: 101.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fcfc10d3f098745ab2961649cc44299fb1626f9049492b6aa0267dcf96717511
|
|
| MD5 |
49b0ab9e79f058c7ba3efbf80048995d
|
|
| BLAKE2b-256 |
0713dbb272bcee1d322dc095fcc8086c69f0ada3b3dffba293fc58fdea89d2d3
|
Provenance
The following attestation bundles were made for subagent_harness_mcp-0.1.0a6.tar.gz:
Publisher:
release.yml on Thang1710/subagent-mcp
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
subagent_harness_mcp-0.1.0a6.tar.gz -
Subject digest:
fcfc10d3f098745ab2961649cc44299fb1626f9049492b6aa0267dcf96717511 - Sigstore transparency entry: 2546370905
- Sigstore integration time:
-
Permalink:
Thang1710/subagent-mcp@721f85b09ea676b588e1fea563c5a6fab381c760 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/Thang1710
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@721f85b09ea676b588e1fea563c5a6fab381c760 -
Trigger Event:
workflow_dispatch
-
Statement type:
File details
Details for the file subagent_harness_mcp-0.1.0a6-py3-none-any.whl.
File metadata
- Download URL: subagent_harness_mcp-0.1.0a6-py3-none-any.whl
- Upload date:
- Size: 107.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
41eef0229a83e07812b9947233ac958e3c6a69eface4fd5ec780eb2457ea1998
|
|
| MD5 |
598fc30d52ceb0d5948c6f22c60bf97f
|
|
| BLAKE2b-256 |
ab6eff7fa49dd6b0efded9c7d972e3014bfa05f72d1cddc6f2bb489c5b184561
|
Provenance
The following attestation bundles were made for subagent_harness_mcp-0.1.0a6-py3-none-any.whl:
Publisher:
release.yml on Thang1710/subagent-mcp
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
subagent_harness_mcp-0.1.0a6-py3-none-any.whl -
Subject digest:
41eef0229a83e07812b9947233ac958e3c6a69eface4fd5ec780eb2457ea1998 - Sigstore transparency entry: 2546371088
- Sigstore integration time:
-
Permalink:
Thang1710/subagent-mcp@721f85b09ea676b588e1fea563c5a6fab381c760 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/Thang1710
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@721f85b09ea676b588e1fea563c5a6fab381c760 -
Trigger Event:
workflow_dispatch
-
Statement type: