Skip to main content

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.

Metadata

Release files for workstate-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)

Source distribution for workstate-codex-bridge 0.2.0
File Size Uploaded
workstate_codex_bridge-0.2.0.tar.gz 11.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for workstate-codex-bridge 0.2.0
File Interpreter ABI Platform
workstate_codex_bridge-0.2.0-py3-none-any.whl Python 3 none any Details

Total release size: 18.3 kB

Release files / workstate_codex_bridge-0.2.0.tar.gz

Download URL workstate_codex_bridge-0.2.0.tar.gz
Size 11.2 kB
Tags Source
SHA-256 checksum
How to use checksums
233e5c10483f69b9d91c5914327cc8aa24e7e60329b0b30e3c7c60c4a64dc6d6
BLAKE2b-256 checksum
How to use checksums
3e8fd5cd66eaa7af26da6d157a1acb676cd916d70428e2d968bf7797806170ed
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jun 12, 2026.

Transparency log

Release files / workstate_codex_bridge-0.2.0-py3-none-any.whl

Download URL workstate_codex_bridge-0.2.0-py3-none-any.whl
Size 7.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
dba4111ff6f84a31617df51bd34feebabf946d1ec7051c0a14cf0ebdf3a277c2
BLAKE2b-256 checksum
How to use checksums
44546f84cbc1cd64b7a51d7032de517f989621282fbb19fd8538f240d97c8593
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jun 12, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page