Aegean OpenClaw Claude Code — 爱琴 OpenClaw 克劳德代码
v0.3.1通过MCP协议控制Claude Code。执行命令、读写文件、搜索代码,并以编程方式使用所有Claude Code工具,支持agent团队。
运行时依赖
版本
--permission-mode 计划 # 应用前预览
安装命令
点击复制技能文档
Claude Code 技能
Control Claude Code via MCP (模型 上下文 Protocol). This 技能 unleashes the full power of Claude Code for OpenClaw 代理s, including persistent 会话s, 多代理团队s, and advanced 工具 control.
⚡ Quick 启动 # 启动 a persistent Claude 会话 for your project claude-code-技能 会话-启动 myproject -d ~/project \ --权限-mode plan \ --allowed-工具s "Bash,Read,Edit,Write,Glob,Grep" \ --max-bud获取 2.00
# 发送 a complex task (Claude will autonomously use 工具s) claude-code-技能 会话-发送 myproject "Find all TODO comments and 创建 GitHub issues" --流
# 检查 进度 claude-code-技能 会话-状态 myproject
🎯 When to Use This 技能 Use Persistent 会话s When: ✅ Multi-step tasks requiring multiple 工具 calls ✅ Iterative development (write code → test → fix → repeat) ✅ Long conversations needing full 上下文 ✅ 代理 needs to work autonomously ✅ You want 流ing real-time feedback Use Direct MCP 工具s When: ✅ Single command execution ✅ Quick file read/write ✅ One-off 搜索es ✅ No 上下文 needed between operations 📚 Command Reference Basic MCP Operations # Connect to Claude Code MCP claude-code-技能 connect claude-code-技能 状态 claude-code-技能 工具s
# Direct 工具 calls (no persistent 会话) claude-code-技能 bash "npm test" claude-code-技能 read /path/to/file.ts claude-code-技能 glob "*/.ts" -p ~/project claude-code-技能 grep "TODO" -p ~/project -c claude-code-技能 call Write -a '{"file_path":"/tmp/test.txt","content":"Hello"}'
# Disconnect claude-code-技能 disconnect
Persistent 会话s (代理 Loop) 启动ing 会话s # Basic 启动 claude-code-技能 会话-启动 myproject -d ~/project
# With custom API 端点 (for Gemini/GPT proxy) claude-code-技能 会话-启动 gemini-task -d ~/project \ --base-url http://127.0.0.1:8082 \ --模型 gemini-2.0-flash
# With 权限 mode (plan = preview changes before 应用lying) claude-code-技能 会话-启动 review -d ~/project --权限-mode plan
# With 工具 white列出 (auto-应用rove these 工具s) claude-code-技能 会话-启动 safe -d ~/project \ --allowed-工具s "Bash(git:),Read,Glob,Grep"
# With bud获取 limit claude-code-技能 会话-启动 limited -d ~/project --max-bud获取 1.50
# Full configuration claude-code-技能 会话-启动 advanced -d ~/project \ --权限-mode acceptEdits \ --allowed-工具s "Bash,Read,Edit,Write" \ --disallowed-工具s "Task" \ --max-bud获取 5.00 \ --模型 claude-opus-4-5 \ --应用end-系统-prompt "Always write tests" \ --添加-dir "/tmp,/var/记录"
权限 Modes:
Mode Description acceptEdits Auto-accept file edits (default) plan Preview changes before 应用lying default Ask for each operation bypass权限s Skip all prompts (dangerous!) delegate Delegate decisions to parent dontAsk Never ask, reject by default 发送ing Messages # Basic 发送 (blocks until complete) claude-code-技能 会话-发送 myproject "Write unit tests for auth.ts"
# 流ing (see 进度 in real-time) claude-code-技能 会话-发送 myproject "Refactor this 模块" --流
# With custom timeout claude-code-技能 会话-发送 myproject "运行 all tests" -t 300000
Managing 会话s # 列出 active 会话s claude-code-技能 会话-列出
# 获取 detAIled 状态 claude-code-技能 会话-状态 myproject
# View conversation 历史 claude-code-技能 会话-历史 myproject -n 50
# 暂停 and 恢复 claude-code-技能 会话-暂停 myproject claude-code-技能 会话-恢复-暂停d myproject
# Fork a 会话 (创建 a branch for experiments) claude-code-技能 会话-fork myproject myproject-experiment
# 停止 claude-code-技能 会话-停止 myproject
# Re启动 a fAIled 会话 claude-code-技能 会话-re启动 myproject
会话 历史 & 搜索 # Browse all Claude Code 会话s claude-code-技能 会话s -n 20
# 搜索 会话s by project claude-code-技能 会话-搜索 --project ~/my应用
# 搜索 by time claude-code-技能 会话-搜索 --since "2h" claude-code-技能 会话-搜索 --since "2024-02-01"
# 搜索 by 查询 claude-code-技能 会话-搜索 "bug fix"
# 恢复 a historical 会话 claude-code-技能 恢复 <会话-id> "Continue where we left off" -d ~/project
Batch Operations # Read multiple files at once claude-code-技能 batch-read "src//.ts" "tests/*/.test.ts" -p ~/project
🤝 多代理团队 Features
部署 multiple Claude 代理s working to获取her on complex tasks.
Basic 多代理团队 # Define a team of 代理s claude-code-技能 会话-启动 team-project -d ~/project \ --代理s '{ "architect": { "description": "De签名s 系统 architecture", "prompt": "You are a senior software architect. De签名 scalable, mAIntAInable 系统s." }, "developer": { "description": "Implements features", "prompt": "You are a full-stack developer. Write 清理, tested code." }, "reviewer": { "description": "Reviews 代码质量", "prompt": "You are a code reviewer. 检查 for bugs, style issues, and improvements." } }' \