Skip to content

feat: add OpenClaw agent integration#297

Open
egorkaBurkenya wants to merge 2 commits intoentireio:mainfrom
egorkaBurkenya:feature/openclaw-agent
Open

feat: add OpenClaw agent integration#297
egorkaBurkenya wants to merge 2 commits intoentireio:mainfrom
egorkaBurkenya:feature/openclaw-agent

Conversation

@egorkaBurkenya
Copy link

@egorkaBurkenya egorkaBurkenya commented Feb 12, 2026

Summary

Adds OpenClaw as a supported agent for Entire Checkpoints.

OpenClaw is an AI agent runtime that manages coding assistants via Telegram, Discord, and other channels. It stores session transcripts as JSONL files, similar to Claude Code.

Changes

New files

• cmd/entire/cli/agent/openclaw/openclaw.go — Full Agent interface implementation with TranscriptAnalyzer and TranscriptChunker support
• cmd/entire/cli/agent/openclaw/hooks.go — HookHandler + HookSupport interfaces (4 hooks)
• cmd/entire/cli/agent/openclaw/openclaw_test.go — 11 unit tests
• cmd/entire/cli/hooks_openclaw_handlers.go — Hook handler implementations
Modified files

• cmd/entire/cli/agent/registry.go — Added AgentNameOpenClaw / AgentTypeOpenClaw constants
• cmd/entire/cli/hook_registry.go — Registered OpenClaw hook handlers
• cmd/entire/cli/hooks_cmd.go — Blank import for agent registration
How it works

OpenClaw invokes entire hooks openclaw <verb> externally at lifecycle moments:

OpenClaw Event Entire CLI Verb
gateway:startup session-start
command:new / command:reset stop → session-end
command:stop stop

OpenClaw-side integration

A companion hook (entire-checkpoints) for OpenClaw is being submitted as a separate PR to openclaw/openclaw.

Testing

• ✅ go build ./...
• ✅ 11/11 unit tests
• ✅ Manual E2E: entire enable --agent openclaw → hook calls → checkpoint creation

Add OpenClaw as a new supported coding agent alongside Claude Code and Gemini CLI.

New files:
- cmd/entire/cli/agent/openclaw/openclaw.go - Agent interface implementation
- cmd/entire/cli/agent/openclaw/hooks.go - Hook handler interface (4 hooks)
- cmd/entire/cli/agent/openclaw/openclaw_test.go - Unit tests (11 tests)
- cmd/entire/cli/hooks_openclaw_handlers.go - Hook handler implementations

Modified files:
- cmd/entire/cli/agent/registry.go - Added AgentNameOpenClaw/AgentTypeOpenClaw constants
- cmd/entire/cli/hook_registry.go - Registered OpenClaw hook handlers
- cmd/entire/cli/hooks_cmd.go - Import openclaw package for init() registration
@egorkaBurkenya egorkaBurkenya requested a review from a team as a code owner February 12, 2026 08:54
enable command requires HookSupport (InstallHooks/UninstallHooks/
AreHooksInstalled/GetSupportedHooks). For OpenClaw these are no-ops
since hooks are invoked externally by the OpenClaw runtime via
'entire hooks openclaw <verb>'.
egorkaBurkenya pushed a commit to egorkaBurkenya/openclaw that referenced this pull request Feb 12, 2026
Integrates OpenClaw with Entire CLI (entire.io) to automatically track
AI coding session checkpoints. Maps OpenClaw lifecycle events to Entire
agent hook verbs:

- gateway:startup → session-start
- command:new/reset → stop + session-end
- command:stop → stop

Companion to entireio/cli#297 which adds OpenClaw agent support to Entire.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant