1
0
Fork 0
claude-code-complete-agent/README.md
Kjell Tore Guttormsen 0d0b83f98c feat: make examples cumulative with carry-forward chain and capstone
Add three new sections to all 14 examples:
- "Carry Forward": what output feeds into later examples (01-10)
- "The Cumulative Path": alternative prompt building on previous output (02-10)
- "Now Try It Yourself": personalized template with transferable pattern (all)
- "Building On" callout connecting back to previous examples (02-10)

Add Example 14: Build Your Personal Agent - capstone that guides reader
through writing their own CLAUDE.md, creating a personal skill, connecting
a messaging channel, setting up automation, and testing end-to-end.

Update README with cumulative path diagram, two usage modes, and example 14.
Update GETTING-STARTED.md with cross-references to relevant examples.

17 files changed, 703+ lines added. The examples now form a coherent
learning path from "see what it can do" to "build your own agent."

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-26 21:14:35 +01:00

8.1 KiB

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.

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 13 full matches and 8 different approaches. One gap remains: Canvas/A2UI.

This is not a theoretical comparison. Clone this repo, open Claude Code, and try each example yourself. By Example 14, you will have built your own personal agent.

Prerequisites

  • Claude Code v2.1.86+
  • Node.js 18+ (only needed for Playwright MCP)
  • A terminal (macOS or Linux)
  • For Computer Use (example 11): Claude Code Desktop app + macOS + Pro or Max plan
  • For Auto Mode (example 13): Team plan or higher (research preview)
  • For Dispatch: Claude mobile app (iOS/Android)

No npm install. No Docker. No build step.

Two paths

"Show me what it can do" - Browse examples/, read feature-map.md, try the demo prompts. You will understand what Claude Code is capable of.

"Help me actually use it" - Follow the Cumulative Path through examples 01-14. Each example builds on the previous one. By the end, you have a working personal agent. Or read GETTING-STARTED.md for the condensed version: six steps, about one hour total.

Quickstart (demo mode)

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

If you see Claude start searching the web and writing a file, it works. Each example includes an "Expected Output" section so you know what to look for.

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
14 Build Your Agent All capabilities combined Your personal setup

Each example has a self-contained prompt you can paste directly into Claude Code.

Two ways to use the examples:

  1. Independent mode. Pick any example and run it. Every demo prompt works standalone.

  2. Cumulative path (recommended). Follow examples 01-14 in order. Each one has a "Cumulative Path" section with an alternative prompt that builds on the previous example's output. By example 10, you have a complete automated pipeline. By example 14, you have a personal agent configured for your actual work.

Examples 11-13 require additional setup (Desktop app, specific subscription plans) and are documented separately. Example 14 works after any subset of 01-10.

The feature map

See feature-map.md for the complete 22-row comparison table with verdicts and version requirements.

Summary: 13 full match, 8 different approach, 1 gap.

The cumulative path

The fastest way to learn Claude Code is to build something real with it. The examples are designed so each one adds one capability to an accumulating pipeline:

01 Research       --> raw data
02 Organize       --> structured report
03 Verify         --> sourced, fact-checked
04 Browser        --> live visual data (optional)
05 Memory         --> persistent across sessions
06 Multi-agent    --> polished, reviewed output
07 Messaging      --> delivered to your phone
08 Automation     --> runs on schedule
09 Security       --> protected by hooks
10 Full pipeline  --> everything combined
14 Your agent     --> personalized for your work

Each example has a "Carry Forward" section (what your output feeds into next) and a "Now Try It Yourself" section (how to adapt the pattern for your own needs). Start at 01 and follow the thread.

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 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.

About

Built by Kjell Tore Guttormsen as part of the From AI to Chitta project, exploring the intersection of AI tools and inner development.