Skip to content

Plugin: add autonomous Codex worker tools#102

Draft
Yehonal wants to merge 10 commits into
pwrdrvr:mainfrom
Yehonal:pr/autonomous-codex-worker-tools-standalone
Draft

Plugin: add autonomous Codex worker tools#102
Yehonal wants to merge 10 commits into
pwrdrvr:mainfrom
Yehonal:pr/autonomous-codex-worker-tools-standalone

Conversation

@Yehonal
Copy link
Copy Markdown

@Yehonal Yehonal commented Apr 18, 2026

Summary

Add experimental agent-callable worker tools on top of the Codex app-server plugin so OpenClaw can orchestrate a configured Codex worker without relying on manual /cas_* interaction.

What this adds

  • codex_workers_describe_endpoints
  • codex_workers_list_threads
  • codex_workers_run_task
  • codex_workers_read_thread_context

Why

The current /cas_* flow is still useful for humans, but OpenClaw also benefits from a tool-callable surface for autonomous orchestration.

This PR keeps the manual CAS UX intact while exposing a separate agent-oriented interface.

Scope

This version is intentionally standalone against main:

  • it works with the current single-endpoint plugin configuration
  • it does not require multi-endpoint support to be useful
  • multi-endpoint support would make the feature more powerful, but is not a prerequisite for this PR

Notes

  • The new tools talk directly to the configured Codex app-server transport.
  • /cas_* commands are unchanged and remain the human-facing/manual fallback.
  • Docs added in docs/autonomous-worker-tools.md.
  • The feature is still marked experimental.

Validation

  • npx tsc -p tsconfig.json
  • npx vitest run index.test.ts src/client.test.ts src/format.test.ts

@Yehonal Yehonal force-pushed the pr/autonomous-codex-worker-tools-standalone branch 3 times, most recently from 165eb0c to e2d966d Compare April 24, 2026 14:08
@Yehonal
Copy link
Copy Markdown
Author

Yehonal commented Apr 30, 2026

Superseded by integration/yehonal-cas-stack reconciliation; closing this PR to avoid duplicate history.

@Yehonal Yehonal closed this Apr 30, 2026
@Yehonal Yehonal deleted the pr/autonomous-codex-worker-tools-standalone branch April 30, 2026 05:49
@Yehonal Yehonal restored the pr/autonomous-codex-worker-tools-standalone branch April 30, 2026 15:53
@Yehonal Yehonal reopened this Apr 30, 2026
@Yehonal Yehonal force-pushed the pr/autonomous-codex-worker-tools-standalone branch from e2d966d to edf5a9b Compare April 30, 2026 22:31
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.

2 participants