- messaging/channels-setup.md: comprehensive guide covering all 3 channels (Telegram, Discord, iMessage), bun install, plugin setup, session persistence workarounds, and enterprise admin settings - messaging/imessage-setup.md: macOS-specific iMessage setup with Full Disk Access, /imessage access allow, and known quirks - messaging/README.md: rewritten with 3-way distinction table (Channels=event-based, Dispatch=message-based, RC=direct control) - examples/12: expanded from 2 options to 3 with clear trigger model - feature-map.md: row 9 updated to include iMessage - README.md: session persistence warning added as top-level section Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
156 lines
5.8 KiB
Markdown
156 lines
5.8 KiB
Markdown
# Claude Code Complete Agent
|
|
|
|
A working setup that demonstrates every major OpenClaw capability
|
|
using Claude Code's ecosystem: tools, MCP servers, plugins, hooks,
|
|
agents, skills, triggers, Computer Use, and Remote Control.
|
|
|
|
Companion repo for the article
|
|
[Every OpenClaw Feature, Covered by Claude Code](https://fromaitochitta.com/openclaw-vs-claude-code-every-feature-compared).
|
|
|
|
## Why this exists
|
|
|
|
OpenClaw has 247K GitHub stars and 22 major capabilities. It is the
|
|
fastest-growing open-source project in history. This repo shows that
|
|
Claude Code's ecosystem (Code + Cowork + Dispatch) covers 21 of
|
|
those 22, with 12 full matches and 9 different approaches. One gap
|
|
remains: Canvas/A2UI.
|
|
|
|
This is not a theoretical comparison. Clone this repo, open Claude
|
|
Code, and try each example yourself.
|
|
|
|
## Prerequisites
|
|
|
|
- [Claude Code](https://docs.anthropic.com/en/docs/claude-code) v2.1.86+
|
|
- Node.js 18+ (only needed for Playwright MCP)
|
|
- A terminal (macOS or Linux)
|
|
- For Computer Use: Claude Code Desktop app + macOS
|
|
- For Dispatch: Claude mobile app (iOS/Android)
|
|
|
|
No npm install. No Docker. No build step.
|
|
|
|
## Quickstart
|
|
|
|
```bash
|
|
git clone https://git.fromaitochitta.com/ktg/claude-code-complete-agent.git
|
|
cd claude-code-complete-agent
|
|
claude
|
|
```
|
|
|
|
Then try:
|
|
|
|
```
|
|
Paste the prompt from examples/01-agent-runtime/prompt.md
|
|
```
|
|
|
|
## What is in this repo
|
|
|
|
### Working configuration
|
|
|
|
| Path | What it does |
|
|
|------|-------------|
|
|
| `CLAUDE.md` | Project memory and instructions |
|
|
| `.claude/settings.json` | Permissions, deny lists, hook config |
|
|
| `.claude/agents/` | Three agents: researcher, writer, reviewer |
|
|
| `.claude/skills/` | Three skills: daily-briefing, slack-message, web-research |
|
|
| `.mcp.json` | Playwright MCP (disabled by default) |
|
|
| `hooks/` | Security hooks (pre-tool-use blocker, post-tool-use logger) |
|
|
|
|
### Documentation
|
|
|
|
| Path | What it covers |
|
|
|------|---------------|
|
|
| `security/` | Permission modes, Auto Mode, hook patterns, NemoClaw comparison |
|
|
| `memory/` | How Claude Code memory works vs OpenClaw's vector search |
|
|
| `automation/` | Cron, launchd, /loop, /schedule |
|
|
| `messaging/` | Channels (iMessage, Telegram, Discord), Slack MCP, Dispatch/RC comparison |
|
|
| `browser/` | Playwright MCP setup and usage |
|
|
| `cowork-integration/` | How Code + Cowork + Dispatch together replicate OpenClaw |
|
|
|
|
### Examples (try these)
|
|
|
|
| # | Example | Capability | OpenClaw equivalent |
|
|
|---|---------|-----------|-------------------|
|
|
| 01 | Agent Runtime | Tool execution loop | Long-running daemon |
|
|
| 02 | Shell and Files | Bash + file I/O | exec tool + read/write |
|
|
| 03 | Web Search | WebSearch + WebFetch | Brave Search + Firecrawl |
|
|
| 04 | Browser Automation | Playwright MCP | CDP/Playwright built-in |
|
|
| 05 | Memory System | CLAUDE.md + auto-memory | Daily logs + vector search |
|
|
| 06 | Multi-Agent | Agent Teams + SendMessage | Sub-agents + mesh |
|
|
| 07 | Messaging | MCP + Telegram Channels | 15+ native channels |
|
|
| 08 | Cron/Automation | /loop, CronCreate, /schedule | HEARTBEAT.md + cron |
|
|
| 09 | Security Hooks | PreToolUse/PostToolUse | Exec approvals + Docker |
|
|
| 10 | Full Pipeline | All capabilities combined | Complete workflow |
|
|
| 11 | Computer Use | Control desktop apps | macOS/iOS/Android apps |
|
|
| 12 | Remote Access | Channels + Dispatch + /rc (3 ways) | Telegram/WhatsApp control |
|
|
| 13 | Auto Mode | AI safety classifier | Autonomous daemon mode |
|
|
|
|
Each example has a self-contained prompt you can paste directly
|
|
into Claude Code.
|
|
|
|
## The feature map
|
|
|
|
See [feature-map.md](feature-map.md) for the complete 22-row
|
|
comparison table with verdicts and version requirements.
|
|
|
|
**Summary:** 12 full match, 9 different approach, 1 gap.
|
|
|
|
## The broader ecosystem
|
|
|
|
Claude Code is one part of Anthropic's answer to OpenClaw:
|
|
|
|
| Product | What it does | Best for |
|
|
|---------|-------------|----------|
|
|
| **Claude Code** (CLI) | Terminal agent with hooks, plugins, MCP | Developers |
|
|
| **Claude Code Desktop** | Desktop app with Computer Use | GUI automation |
|
|
| **Cowork** | Non-technical agent with built-in connectors | Everyone |
|
|
| **Dispatch** | Mobile task assignment from phone | Remote control |
|
|
| **/schedule** | Remote triggers via claude.ai | Always-on tasks |
|
|
| **Agent SDK** | Programmatic control for CI/CD | Automation |
|
|
|
|
See [cowork-integration/README.md](cowork-integration/README.md)
|
|
for a detailed breakdown of how these combine to cover OpenClaw's
|
|
feature set.
|
|
|
|
## The biggest practical limitation
|
|
|
|
**Session persistence.** If the Claude Code session closes, all
|
|
remote access (Channels, Dispatch, Remote Control) stops. OpenClaw
|
|
runs as a daemon and stays alive indefinitely. Workarounds exist
|
|
(tmux, Mac Mini, VPS), but this is an architectural difference.
|
|
|
|
See `messaging/channels-setup.md` for always-on workarounds.
|
|
|
|
## The remaining gap
|
|
|
|
**Canvas/A2UI (the only gap):** OpenClaw's canvas is an interactive
|
|
HTML workspace. Claude Code can generate HTML and preview it via
|
|
Playwright or Computer Use, but there is no persistent interactive
|
|
surface. Artifacts in claude.ai are the closest equivalent but are
|
|
not available in Claude Code.
|
|
|
|
## Security
|
|
|
|
Four permission modes, from manual approval to full autonomy:
|
|
|
|
1. **Default:** Ask for every action (learning)
|
|
2. **Auto-edit:** Pre-approved patterns (known workflows)
|
|
3. **Auto Mode:** AI classifier reviews each action (autonomous)
|
|
4. **Bypass:** No checks (sandboxed environments only)
|
|
|
|
The repo includes working security hooks:
|
|
- `hooks/pre-tool-use.sh` blocks dangerous commands
|
|
- `hooks/post-tool-use.sh` logs all tool executions
|
|
- `.claude/settings.json` has a permission deny list
|
|
|
|
Read `security/` for the full picture, including an honest
|
|
comparison with NemoClaw's enterprise security.
|
|
|
|
## License
|
|
|
|
MIT. See [LICENSE](LICENSE).
|
|
|
|
## About
|
|
|
|
Built by [Kjell Tore Guttormsen](https://fromaitochitta.com) as
|
|
part of the From AI to Chitta project, exploring the intersection
|
|
of AI tools and inner development.
|