Skip to main content

Optional Codex app-server bridge for daemon subagent execution.

Project description

workbay-codex-bridge

Component of the workbay stack. You usually install workbay, 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
  • env values are treated as local runtime hints only and become subprocess or session context for codex app-server
  • CODEX_REASONING_EFFORT or REASONING_EFFORT map to turn/start.effort when set to low, medium, high, or xhigh
  • 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 process
  • CODEX_SUBAGENT_BRIDGE_SESSION_MODE=shared opts into a reusable app-server process for compatible calls in the same cwd

Integration Note

This package is intentionally small. It provides the bridge seam only; higher-level orchestration policy belongs in the caller.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

workbay_codex_bridge-0.2.0.tar.gz (11.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

workbay_codex_bridge-0.2.0-py3-none-any.whl (7.3 kB view details)

Uploaded Python 3

File details

Details for the file workbay_codex_bridge-0.2.0.tar.gz.

File metadata

  • Download URL: workbay_codex_bridge-0.2.0.tar.gz
  • Upload date:
  • Size: 11.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.13

File hashes

Hashes for workbay_codex_bridge-0.2.0.tar.gz
Algorithm Hash digest
SHA256 da11b3b59b433e801e753e951a99caebf8b83905cb4e6121abe3b714b2ae984d
MD5 aae0904e8764d763d9b58297edf29c88
BLAKE2b-256 fe1d084e51b5b19a999d7228c10a7b312810f67deb15e99bf07ed90c41281878

See more details on using hashes here.

File details

Details for the file workbay_codex_bridge-0.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for workbay_codex_bridge-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3876ec23d028797deeeba83602dbb6cbfa908f5a646d6d60c91264ac8aa60f80
MD5 7264f5b2794a2277c060a164b2a16d1e
BLAKE2b-256 4de54e86648e392e39e036da241856dfd0cc704804e267fe57fa1864a5958fd8

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page