Skip to content

Conversation

@bborn
Copy link
Owner

@bborn bborn commented Jan 30, 2026

Summary

  • Add OpenClaw (https://openclaw.ai) as a pluggable task executor
  • Supports session resumption via --session-id flag (like Claude)
  • Full tmux integration with existing executor patterns
  • Configurable thinking depth and dangerous mode

Changes

  • New file: internal/executor/openclaw_executor.go - OpenClaw executor implementation
  • Modified: internal/db/tasks.go - Added ExecutorOpenClaw constant
  • Modified: internal/executor/executor.go - Registered OpenClaw executor in factory
  • Modified: README.md - Updated documentation with OpenClaw info

Test plan

  • Code compiles: go build ./...
  • All tests pass: go test ./...
  • Manual test: Create a task with openclaw executor and verify it runs

Environment Variables

Variable Description Default
OPENCLAW_THINKING Thinking depth level (low/medium/high) high
OPENCLAW_DANGEROUS_ARGS Custom flags for dangerous mode --local

🤖 Generated with Claude Code

bborn and others added 5 commits January 30, 2026 11:28
Add support for OpenClaw (https://openclaw.ai) as a pluggable task executor,
enabling users to delegate complex workflows and AI-powered tasks through
the platform.

Key features:
- Uses `openclaw agent --message` to pass prompts
- Supports session resumption via `--session-id` flag
- Configurable thinking depth via OPENCLAW_THINKING env var
- Dangerous/auto-approve mode via OPENCLAW_DANGEROUS_ARGS env var
- Full tmux integration matching existing executors

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Add OpenClaw to the list of available executors in:
- Task creation form
- Task edit form
- Executor display name helpers

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
The `openclaw agent` command is a one-shot API call that returns immediately,
which doesn't work with our tmux-based polling architecture. Switch to
`openclaw tui` which is an interactive terminal UI that stays running.

Changes:
- Use `openclaw tui` instead of `openclaw agent`
- Use `--session <key>` instead of `--session-id <id>`
- Remove unused dangerous mode flag (tui doesn't have it)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
OpenClaw uses its own workspace by default. Add explicit working directory
instructions to the prompt so it knows to work in the task's worktree instead.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@bborn bborn merged commit cf83845 into main Jan 30, 2026
3 checks passed
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