Skip to content

feat: OpenClaw integration — session isolation, adapter support, and bug fixes - #88

Open
dtzp555-max wants to merge 8 commits into
HKUDS:mainfrom
dtzp555-max:openclaw-integration
Open

feat: OpenClaw integration — session isolation, adapter support, and bug fixes#88
dtzp555-max wants to merge 8 commits into
HKUDS:mainfrom
dtzp555-max:openclaw-integration

Conversation

@dtzp555-max

Copy link
Copy Markdown

Summary

Adds first-class OpenClaw support to ClawTeam, including:

  • OpenClaw adapter in adapters.py — auto-inserts tui/agent subcommands, --local flag, and --session-id for session isolation
  • OpenClaw skill for agent integration
  • DATA_DIR propagation to spawned agents (fixes env leakage)
  • Task owner filtering and inbox CLI ergonomics improvements
  • Exec approval configuration in install script to prevent permission blocks during agent spawning

Changes

Commit Description
feat: add OpenClaw skill Skill file for OpenClaw agent integration
fix: exec approvals Configure install script to prevent permission blocks
feat: session isolation OpenClaw adapter with tui/agent subcommand routing + session ID
docs: fork identity Notes for openclaw integration context
docs: acknowledgement Credit win4r/ClawTeam-OpenClaw contribution
fix: task owner + inbox Task owner filtering, inbox CLI, briefing path preflight
fix: DATA_DIR Propagate DATA_DIR to spawned agents
docs: dispatch rules Model assignment and worker count documentation

Test plan

  • Rebased on latest main (v0.2.0), all conflicts resolved
  • Existing tests pass, new OpenClaw adapter tests added
  • Manual test: clawteam launch with OpenClaw as backend

🤖 Generated with Claude Code

win4r and others added 8 commits March 24, 2026 20:16
Add SKILL.md for OpenClaw workspace integration so that OpenClaw agents
can discover and use ClawTeam via natural language. The skill teaches
agents the full ClawTeam CLI command set, workflow patterns, and
trigger phrases (team, swarm, multi-agent, spawn agents, etc.).

Installation: copy skills/openclaw/SKILL.md to
~/.openclaw/workspace/skills/clawteam/SKILL.md

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
(cherry picked from commit 51a0593)
… blocks

Spawned OpenClaw TUI agents were getting stuck on interactive permission
prompts when running clawteam CLI commands. The install script now:

- Changes exec-approvals security from "full" to "allowlist" so
  pre-approved commands don't require interactive confirmation
- Adds */clawteam to the exec allowlist for all agents

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
(cherry picked from commit 27c7383)
Spawned OpenClaw agents were sharing sessions, causing interference.
Each agent now gets a unique session key (clawteam-{team}-{agent})
injected via the adapter pattern. Also adds command override warning
to the skill doc to prevent agents from using 'claude' instead of
'openclaw'.

Adapted from win4r commits 5346540 and ffbbc92 to fit the canonical
adapter architecture instead of hardcoding into backends.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
…eflight

- Make task owner filtering case-insensitive with whitespace normalization
- Add validation for empty content and invalid message types in inbox send/broadcast
- Add InboxTyperGroup with helpful hint when inbox subcommand is missing
- Add path reference extraction and preflight warnings in agent prompt builder
- Add comprehensive tests for all three fixes (346 tests pass)

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
When the leader resolves data_dir via config (not env var), spawned
workers couldn't find task/inbox storage. Now both subprocess and tmux
backends call get_data_dir() and set CLAWTEAM_DATA_DIR in the spawn
environment so all agents share the same resolved path.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Help leaders make better decisions when spawning workers:
- Model selection based on task complexity (haiku/sonnet/opus)
- Worker count based on task independence (1-5, never more)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
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.

3 participants