40 files demonstrating every major OpenClaw capability using Claude Code: - 3 agents (researcher, writer, reviewer) - 3 skills (daily-briefing, slack-message, web-research) - 2 security hooks (pre-tool-use blocker, post-tool-use logger) - 10 self-contained examples with copy-paste prompts - Complete feature map (20 capabilities, 11 full match, 7 different, 2 gap) - Security docs including NemoClaw comparison - Automation, messaging, browser, memory documentation Zero dependencies. Clone and run. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
126 lines
4.3 KiB
Markdown
126 lines
4.3 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, and triggers.
|
|
|
|
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 20 major capabilities. It is the
|
|
fastest-growing open-source project in history. This repo shows that
|
|
Claude Code covers 18 of those 20 capabilities, with 11 full matches
|
|
and 7 different approaches. Two gaps remain: Gateway/Control Plane
|
|
and 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.81+
|
|
- Node.js 18+ (only needed for Playwright MCP)
|
|
- A terminal (macOS or Linux)
|
|
|
|
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, hook patterns, NemoClaw comparison |
|
|
| `memory/` | How Claude Code memory works vs OpenClaw's vector search |
|
|
| `automation/` | Cron, launchd, /loop, /schedule |
|
|
| `messaging/` | Slack MCP, Telegram Channels, channel comparison |
|
|
| `browser/` | Playwright MCP setup and usage |
|
|
|
|
### 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 |
|
|
|
|
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 20-row
|
|
comparison table with verdicts and version requirements.
|
|
|
|
**Summary:** 11 full match, 7 different approach, 2 gaps.
|
|
|
|
## What Claude Code does not do (today)
|
|
|
|
**Gateway/Control Plane:** OpenClaw runs a WebSocket server with a
|
|
control UI and OpenAI-compatible API. Claude Code has no equivalent.
|
|
If you need a programmable HTTP interface to your agent, OpenClaw
|
|
is the better choice.
|
|
|
|
**Canvas/A2UI:** OpenClaw's canvas is an interactive HTML workspace
|
|
served by the gateway. Claude Code can generate HTML and preview it
|
|
via Playwright, but there is no persistent interactive surface.
|
|
|
|
These gaps matter most for always-on, multi-user automation. For
|
|
development and task execution, they are less relevant.
|
|
|
|
## Security note
|
|
|
|
The hooks in this repo demonstrate security patterns, but they are
|
|
examples, not a production security configuration. Review and
|
|
customize them for your environment:
|
|
|
|
- `hooks/pre-tool-use.sh` blocks known-dangerous commands
|
|
- `hooks/post-tool-use.sh` logs all tool executions
|
|
- `.claude/settings.json` has a permission deny list
|
|
|
|
Read `security/permission-modes-explained.md` before running
|
|
Claude Code on anything sensitive.
|
|
|
|
## 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.
|