Help us improve
Share bugs, ideas, or general feedback.
Starts persistent, session-aware AI agent REPL powered by claude CLI, saving conversation history to disk. Supports named sessions and skill contexts via env vars.
npx claudepluginhub xu-xiang/everything-claude-code-zhHow this command is triggered — by the user, by Claude, or both
Slash command
/everything-claude-code:clawThe summary Claude sees in its command listing — used to decide when to auto-load this command
# Claw 命令
启动一个交互式 AI 智能体 (Agent) 会话,该会话会将对话历史记录持久化保存到磁盘,并可选择加载 ECC 技能 (Skill) 上下文。
## 使用方法
或通过 npm:
## 环境变量
| 变量 | 默认值 | 描述 |
|----------|---------|-------------|
| `CLAW_SESSION` | `default` | 会话名称 (字母数字 + 连字符) |
| `CLAW_SKILLS` | *(空)* | 以逗号分隔的技能 (Skill) 名称,用于加载系统上下文 |
## REPL 命令
在 REPL 内部,直接在提示符处输入这些命令:
## 工作原理
1. 读取 `CLAW_SESSION` 环境变量以选择命名的会话 (默认: `default`)
2. 从 `~/.claude/claw/{session}.md` 加载对话历史记录
3. 可选地从 `CLAW_SKILLS` 环境变量加载 ECC 技能 (Skill) 上下文
4. 进入阻塞式的提示词 (Prompt) 循环 — 每个用户消息都会连同完整历史记录发送到 `claude -p`
5. 响应会被追加到会话文件中,以便在重启后实现持久化
## 会话存储
会话以 Markdown 文件形式存储在 `~/.cl.../clawStarts NanoClaw v2 REPL: persistent zero-dependency AI agent session with model routing, skill hot-loading, branching, compaction, export, and metrics.
/chatSends a message to an OpenClaw assistant and returns its response. Supports optional session parameter for ongoing conversations.
/swarm-chatStarts discuss mode for roundtable discussions with CLI tools (e.g., codex, claude, gemini) in a shared session. Args: <project-path> <cli-command> [name]. Reports details and follow-up commands.
/learnDisplays Claude Code best practices guide on sessions, context, memory, modes, CLI shortcuts, worktrees, and prompting. Also supports specific topics and saving session lessons to persistent memory.
/session-continueLoads and continues working in an existing session using the session-management skill's 'Action: continue' section step by step.
/integrateAnalyzes, enhances, or creates AI artifacts like CLAUDE.md, skills, commands, and hooks to integrate with Subcog persistent memory. Interactive workflow recommended.
Share bugs, ideas, or general feedback.
启动一个交互式 AI 智能体 (Agent) 会话,该会话会将对话历史记录持久化保存到磁盘,并可选择加载 ECC 技能 (Skill) 上下文。
node scripts/claw.js
或通过 npm:
npm run claw
| 变量 | 默认值 | 描述 |
|---|---|---|
CLAW_SESSION | default | 会话名称 (字母数字 + 连字符) |
CLAW_SKILLS | (空) | 以逗号分隔的技能 (Skill) 名称,用于加载系统上下文 |
在 REPL 内部,直接在提示符处输入这些命令:
/clear 清除当前会话历史
/history 打印完整对话历史
/sessions 列出所有已保存的会话
/help 显示可用命令
exit 退出 REPL
CLAW_SESSION 环境变量以选择命名的会话 (默认: default)~/.claude/claw/{session}.md 加载对话历史记录CLAW_SKILLS 环境变量加载 ECC 技能 (Skill) 上下文claude -p会话以 Markdown 文件形式存储在 ~/.claude/claw/ 中:
~/.claude/claw/default.md
~/.claude/claw/my-project.md
每一轮对话的格式如下:
### [2025-01-15T10:30:00.000Z] 用户
What does this function do?
---
### [2025-01-15T10:30:05.000Z] 助手
This function calculates...
---
# 启动默认会话
node scripts/claw.js
# 命名会话
CLAW_SESSION=my-project node scripts/claw.js
# 带有技能 (Skill) 上下文
CLAW_SKILLS=tdd-workflow,security-review node scripts/claw.js