codex-subagent-bridge
Optional bridge module that satisfies the codex_subagent_bridge.run_subagent(...) contract used by the orchestration layer.
It launches codex app-server --listen stdio://, drives one structured turn, and returns the final payload as a Python dict.
Installation
From the package root:
python -m pip install -e ".[dev]"
Current monorepo checkout:
cd /path/to/context-alt-text-monorepo/packages/codex-subagent-bridge
python -m pip install -e ".[dev]"
If you do not want to install it, add src to PYTHONPATH or inject codex_subagent_bridge into sys.modules from the host process.
Development
Run package-local commands from the package root:
make lint-bridge
make fix-lint-bridge
make format-bridge
make mypy-bridge
make test-bridge
make check-bridge
Direct commands also work:
PYTHONPATH=src python -m ruff check src tests
PYTHONPATH=src python -m mypy src
PYTHONPATH=src python -m pytest tests -q
Runtime Behavior
- The bridge keeps the existing seam:
prompt + schema + cwd + optional env -> dict envvalues are treated as local runtime hints only and become subprocess or session context forcodex app-serverCODEX_REASONING_EFFORTorREASONING_EFFORTmap toturn/start.effortwhen set tolow,medium,high, orxhigh- MCP endpoints and credentials are not forwarded through the bridge
- Build and test commands must still come from the worktree instruction surface or the rendered prompt
run_subagent()is concurrency-safe because each default call launches and tears down its own app-server processCODEX_SUBAGENT_BRIDGE_SESSION_MODE=sharedopts into a reusable app-server process for compatible calls in the samecwd
Integration Note
This package is intentionally small. It provides the bridge seam only; higher-level orchestration policy belongs in the caller.
Metadata
Release files for codex-subagent-bridge 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| codex_subagent_bridge-0.1.0.tar.gz | 11.7 kB | Without provenance | Details for codex_subagent_bridge-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| codex_subagent_bridge-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for codex_subagent_bridge-0.1.0-py3-none-any.whl |
Total release size: 19.1 kB
Release files / codex_subagent_bridge-0.1.0.tar.gz
| Download URL | codex_subagent_bridge-0.1.0.tar.gz |
|---|---|
| Size | 11.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6a9c400d37a726f926d5584721354bbdcac4f5c290308537b2f473651fb284b3
|
|
BLAKE2b-256 checksum How to use checksums |
5d28894fefc6673ec618920ca8544f796cc1868fdad6eb231e1a4b1a48dd9796
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.4
|
Release files / codex_subagent_bridge-0.1.0-py3-none-any.whl
| Download URL | codex_subagent_bridge-0.1.0-py3-none-any.whl |
|---|---|
| Size | 7.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
064a5fecf76dc3d18d57b7cb4ac07edc5a0bfe832e7403c9779f65b352c69cea
|
|
BLAKE2b-256 checksum How to use checksums |
cae2ac597653858934696624ded0f108e8697caca16462de721e7e16370350ac
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.4
|
Security for codex-subagent-bridge 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.