feat: add OpenClaw agent integration#297
Open
egorkaBurkenya wants to merge 2 commits intoentireio:mainfrom
Open
feat: add OpenClaw agent integration#297egorkaBurkenya wants to merge 2 commits intoentireio:mainfrom
egorkaBurkenya wants to merge 2 commits intoentireio:mainfrom
Conversation
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
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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-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