Skip to content

feat: add Codex and Claude Code components#5090

Open
dkozlov wants to merge 1 commit into
superplanehq:mainfrom
dkozlov:feat/codex-claude-code-components
Open

feat: add Codex and Claude Code components#5090
dkozlov wants to merge 1 commit into
superplanehq:mainfrom
dkozlov:feat/codex-claude-code-components

Conversation

@dkozlov
Copy link
Copy Markdown

@dkozlov dkozlov commented May 30, 2026

Summary

Adds local coding-agent components for OpenAI Codex CLI and Claude Code:

  • Adds openai.runCodexAgent to run Codex CLI non-interactively from the SuperPlane app container.
  • Adds claude.runClaudeCode to run Claude Code non-interactively from the SuperPlane app container.
  • Adds a shared agentcli runner for CLI execution, timeout handling, stdout/stderr capture, and exit-code reporting.
  • Installs @openai/codex and @anthropic-ai/claude-code in the dev app image.
  • Registers Workflow v2 mappers/state handling for both components.
  • Updates generated component docs for OpenAI and Claude.
  • Adds unit tests for config validation, command construction, success routing, and failure routing.

Demo

A local demo canvas was created and run for Codex:

  • Canvas: Codex CLI Repo Reviewer
  • URL: http://10.8.0.2:8000/067def26-347b-4285-83fa-5e8af95f89e8/canvases/75c55881-0d9e-4d4e-aab2-ae721f92d8aa

The canvas triggers openai.runCodexAgent from a Start node and routes success/failure to Display nodes. The test run reached the Codex CLI component; execution failed with Quota exceeded, confirming the component path and failure routing while the local OpenAI API account lacks paid quota.

Testing

  • make format.go
  • make format.js
  • make test PKG_TEST_PACKAGES="./pkg/integrations/openai ./pkg/integrations/claude ./pkg/integrations/agentcli"
  • make lint
  • make check.build.app
  • make check.build.ui

@superplanehq-integration
Copy link
Copy Markdown

👋 Commands for maintainers:

  • /sp start - Start an ephemeral machine (takes ~30s)
  • /sp stop - Stop a running machine (auto-executed on pr close)

Signed-off-by: Dmitry Kozlov <dmitry.f.kozlov@gmail.com>
@dkozlov dkozlov force-pushed the feat/codex-claude-code-components branch from 611d14a to bdfe27a Compare May 30, 2026 23:40
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.

1 participant