refactor: rename to openclaw

This commit is contained in:
Peter Steinberger
2026-01-30 03:15:10 +01:00
parent 4583f88626
commit 9a7160786a
2357 changed files with 16688 additions and 16788 deletions

View File

@@ -1,6 +1,6 @@
# Bundled Hooks
This directory contains hooks that ship with Clawdbot. These hooks are automatically discovered and can be enabled/disabled via CLI or configuration.
This directory contains hooks that ship with OpenClaw. These hooks are automatically discovered and can be enabled/disabled via CLI or configuration.
## Available Hooks
@@ -10,12 +10,12 @@ Automatically saves session context to memory when you issue `/new`.
**Events**: `command:new`
**What it does**: Creates a dated memory file with LLM-generated slug based on conversation content.
**Output**: `<workspace>/memory/YYYY-MM-DD-slug.md` (defaults to `~/clawd`)
**Output**: `<workspace>/memory/YYYY-MM-DD-slug.md` (defaults to `~/.openclaw/workspace`)
**Enable**:
```bash
clawdbot hooks enable session-memory
openclaw hooks enable session-memory
```
### 📝 command-logger
@@ -24,12 +24,12 @@ Logs all command events to a centralized audit file.
**Events**: `command` (all commands)
**What it does**: Appends JSONL entries to command log file.
**Output**: `~/.clawdbot/logs/commands.log`
**Output**: `~/.openclaw/logs/commands.log`
**Enable**:
```bash
clawdbot hooks enable command-logger
openclaw hooks enable command-logger
```
### 😈 soul-evil
@@ -39,12 +39,12 @@ Swaps injected `SOUL.md` content with `SOUL_EVIL.md` during a purge window or by
**Events**: `agent:bootstrap`
**What it does**: Overrides the injected SOUL content before the system prompt is built.
**Output**: No files written; swaps happen in-memory only.
**Docs**: https://docs.molt.bot/hooks/soul-evil
**Docs**: https://docs.openclaw.ai/hooks/soul-evil
**Enable**:
```bash
clawdbot hooks enable soul-evil
openclaw hooks enable soul-evil
```
### 🚀 boot-md
@@ -58,7 +58,7 @@ Runs `BOOT.md` whenever the gateway starts (after channels start).
**Enable**:
```bash
clawdbot hooks enable boot-md
openclaw hooks enable boot-md
```
## Hook Structure
@@ -82,9 +82,9 @@ session-memory/
---
name: my-hook
description: "Short description"
homepage: https://docs.molt.bot/hooks#my-hook
homepage: https://docs.openclaw.ai/hooks#my-hook
metadata:
{ "clawdbot": { "emoji": "🔗", "events": ["command:new"], "requires": { "bins": ["node"] } } }
{ "openclaw": { "emoji": "🔗", "events": ["command:new"], "requires": { "bins": ["node"] } } }
---
# Hook Title
@@ -108,7 +108,7 @@ Documentation goes here...
To create your own hooks, place them in:
- **Workspace hooks**: `<workspace>/hooks/` (highest precedence)
- **Managed hooks**: `~/.clawdbot/hooks/` (shared across workspaces)
- **Managed hooks**: `~/.openclaw/hooks/` (shared across workspaces)
Custom hooks follow the same structure as bundled hooks.
@@ -117,31 +117,31 @@ Custom hooks follow the same structure as bundled hooks.
List all hooks:
```bash
clawdbot hooks list
openclaw hooks list
```
Show hook details:
```bash
clawdbot hooks info session-memory
openclaw hooks info session-memory
```
Check hook status:
```bash
clawdbot hooks check
openclaw hooks check
```
Enable/disable:
```bash
clawdbot hooks enable session-memory
clawdbot hooks disable command-logger
openclaw hooks enable session-memory
openclaw hooks disable command-logger
```
## Configuration
Hooks can be configured in `~/.clawdbot/clawdbot.json`:
Hooks can be configured in `~/.openclaw/openclaw.json`:
```json
{
@@ -214,11 +214,11 @@ export default myHandler;
Test your hooks by:
1. Place hook in workspace hooks directory
2. Restart gateway: `pkill -9 -f 'clawdbot.*gateway' && pnpm clawdbot gateway`
3. Enable the hook: `clawdbot hooks enable my-hook`
2. Restart gateway: `pkill -9 -f 'openclaw.*gateway' && pnpm openclaw gateway`
3. Enable the hook: `openclaw hooks enable my-hook`
4. Trigger the event (e.g., send `/new` command)
5. Check gateway logs for hook execution
## Documentation
Full documentation: https://docs.molt.bot/hooks
Full documentation: https://docs.openclaw.ai/hooks