Skip to content

communicate: add Codex app-server adapter#805

Open
willwashburn wants to merge 2 commits intomainfrom
feature/issue-803-codex-adapter
Open

communicate: add Codex app-server adapter#805
willwashburn wants to merge 2 commits intomainfrom
feature/issue-803-codex-adapter

Conversation

@willwashburn
Copy link
Copy Markdown
Member

@willwashburn willwashburn commented Apr 29, 2026

Summary

  • Add a Codex communicate adapter backed by codex app-server stdio JSON-RPC.
  • Add a reusable JSON-RPC client, Codex handle APIs (ready, send, steer, interrupt, fork, close), relay inbox injection on item/completed / turn/completed, relaycast MCP registration, and a minimum Codex version probe.
  • Export onCodexRelay, add the framework: 'codex' discriminator in onRelay(), add the package subpath export, and document the PTY-vs-app-server tradeoff.

Fixes #803

Testing

  • npm --prefix packages/sdk run check
  • npx tsc -p packages/sdk/tsconfig.build.json --noEmit
  • npx tsc -p packages/sdk/tsconfig.build.json
  • npx vitest run src/__tests__/communicate/adapters/codex.test.ts src/__tests__/communicate/adapters/codex-jsonrpc.test.ts --config vitest.config.ts
  • npx vitest run src/__tests__/communicate --config vitest.config.ts
  • Real Codex app-server initialize probe against installed codex-cli 0.125.0

Note: npm --prefix packages/sdk run build is currently blocked before SDK compilation in the existing prebuild chain: packages/github-primitive cannot resolve @agent-relay/workflow-types because the workspace package is not linked in node_modules. The direct SDK build-config compile and declaration emit pass.


Open in Devin Review

chatgpt-codex-connector[bot]

This comment was marked as resolved.

devin-ai-integration[bot]

This comment was marked as resolved.

This comment was marked as resolved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

communicate: add codex adapter via app-server JSON-RPC (parity with claude-sdk)

2 participants