workbay-codex-bridge
Component of the
workbaystack. You usually installworkbay, not this package directly.
Optional bridge module that satisfies the workbay_codex_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/workbay/packages/workbay-codex-bridge
python -m pip install -e ".[dev]"
If you do not want to install it, add src to PYTHONPATH or inject workbay_codex_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 workbay-codex-bridge 0.2.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 | |
|---|---|---|---|
| workbay_codex_bridge-0.2.0.tar.gz | 11.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| workbay_codex_bridge-0.2.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 18.7 kB
Release files / workbay_codex_bridge-0.2.0.tar.gz
| Download URL | workbay_codex_bridge-0.2.0.tar.gz |
|---|---|
| Size | 11.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
da11b3b59b433e801e753e951a99caebf8b83905cb4e6121abe3b714b2ae984d
|
|
BLAKE2b-256 checksum How to use checksums |
fe1d084e51b5b19a999d7228c10a7b312810f67deb15e99bf07ed90c41281878
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.13
|
Release files / workbay_codex_bridge-0.2.0-py3-none-any.whl
| Download URL | workbay_codex_bridge-0.2.0-py3-none-any.whl |
|---|---|
| Size | 7.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
3876ec23d028797deeeba83602dbb6cbfa908f5a646d6d60c91264ac8aa60f80
|
|
BLAKE2b-256 checksum How to use checksums |
4de54e86648e392e39e036da241856dfd0cc704804e267fe57fa1864a5958fd8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.13
|