Skip to main content

Optional Codex app-server bridge for daemon subagent execution.

Project description

workstate-codex-bridge

Optional bridge module that satisfies the workstate_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/workstate/packages/workstate-codex-bridge
python -m pip install -e ".[dev]"

If you do not want to install it, add src to PYTHONPATH or inject workstate_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

workstate_codex_bridge-0.1.2.tar.gz (11.1 kB view details)

Uploaded Source

Built Distribution

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

workstate_codex_bridge-0.1.2-py3-none-any.whl (7.1 kB view details)

Uploaded Python 3

File details

Details for the file workstate_codex_bridge-0.1.2.tar.gz.

File metadata

  • Download URL: workstate_codex_bridge-0.1.2.tar.gz
  • Upload date:
  • Size: 11.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for workstate_codex_bridge-0.1.2.tar.gz
Algorithm Hash digest
SHA256 c3490712b30183688d7d7d8f0c1965566c338793358608e4067e3c7aff8d374b
MD5 946af9c07b490efb30c295da5744c8de
BLAKE2b-256 53a92f69cf540105dbef123a997938ec5a68114674666ca5ca0f9aedf4cd4ab0

See more details on using hashes here.

Provenance

The following attestation bundles were made for workstate_codex_bridge-0.1.2.tar.gz:

Publisher: release-publish.yml on darce/workstate

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file workstate_codex_bridge-0.1.2-py3-none-any.whl.

File metadata

File hashes

Hashes for workstate_codex_bridge-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 df654196ea2c6bde77f3507af41d04cda2385b67193a0cf3b68b5bcc13cc1a37
MD5 622f699dcf6bd3a1a99e4c220b462893
BLAKE2b-256 1803568b765feee88a2d58c611e869a7c0646c76f1a326c22314e2c9e8103981

See more details on using hashes here.

Provenance

The following attestation bundles were made for workstate_codex_bridge-0.1.2-py3-none-any.whl:

Publisher: release-publish.yml on darce/workstate

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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