From agent
Configures Claude Code agent settings: memory backend (builtin SQLite/FTS5/BM25 or QMD), search modes, temporal decay, citations via agent-config.json. Useful for tuning memory relevance and search quality.
npx claudepluginhub crisandrews/clawcode --plugin agentThis skill uses the workspace's default tool permissions.
View and modify the agent's configuration stored in `agent-config.json`.
Runs diagnostic checks on agent workspace: config, identity, memory, SQLite index, QMD, crons, hooks, HTTP bridge, messaging plugins, dreaming. Applies safe auto-fixes with --fix.
Configures Moltbot/Clawdbot persistent memory search using MEMORY.md, daily logs, vector embeddings (Voyage/OpenAI), and JSON config for long-term context retention.
Implements automatic cognitive memory consolidation for OpenClaw/MyClaw AI agents via dream cycles that scan logs, extract insights, score importance, apply forgetting curves, build knowledge graphs, and provide health dashboards. Useful for persistent agent learning across sessions.
Share bugs, ideas, or general feedback.
View and modify the agent's configuration stored in agent-config.json.
If no argument given, read and display agent-config.json:
cat ${CLAUDE_PLUGIN_ROOT}/agent-config.json 2>/dev/null || echo '(no config — using defaults)'
Show defaults:
builtin or qmdbuiltin (default):
qmd (enhanced):
qmd binary installedCheck if qmd is installed:
qmd --version 2>/dev/null && echo "QMD available" || echo "QMD not found"
If not installed, guide the user:
Install QMD (local-first search tool, no API keys needed):
bun install -g qmd
# or download from https://github.com/tobi/qmd/releases
Configure the backend:
Write to agent-config.json:
{
"memory": {
"backend": "qmd",
"citations": "auto",
"qmd": {
"searchMode": "vsearch",
"includeDefaultMemory": true,
"limits": {
"maxResults": 6,
"timeoutMs": 15000
}
}
}
}
If qmd is in a non-standard path, set the command:
"qmd": {
"command": "/path/to/qmd",
...
}
Reload the MCP server:
/mcp
| Mode | Description | Speed | Quality |
|---|---|---|---|
search | Basic vector + BM25 hybrid | Fast | Good |
vsearch | Vector search with reranking | Medium | Excellent |
query | Full query expansion + rerank | Slow | Best |
Default: vsearch (recommended).
Controls how dated files (memory/YYYY-MM-DD.md) lose relevance over time:
halfLifeDays: 30 — a 30-day-old file scores at 50% of a today's filetemporalDecay: false to disableauto — show citations in direct chats, suppress in groupson — always showoff — never showTo change a setting:
agent-config.json (or create if it doesn't exist)/mcp to applyRestrict heartbeat to the user's active window:
{
"heartbeat": {
"schedule": "*/30 * * * *",
"activeHours": {
"start": "08:00",
"end": "23:00",
"timezone": "America/Santiago"
}
}
}
Outside these hours, the heartbeat cron still fires but the agent should skip silently.
{
"dreaming": {
"schedule": "0 3 * * *",
"timezone": "America/Santiago"
}
}
The HTTP bridge is an optional local server that exposes the agent over HTTP — for webhooks, status checks, and a browser-based chat UI (WebChat).
Off by default. Enable with:
{
"http": {
"enabled": true,
"port": 18790,
"host": "127.0.0.1",
"token": ""
}
}
Settings:
enabled — turn the server on/off (default: false)port — port to listen on (default: 18790)host — bind address (default: 127.0.0.1 — localhost only; change only if you know what you're doing)token — Bearer token for authenticated endpoints. Empty = no auth (fine for localhost-only). Set a value when exposing via tunnel (ngrok, Cloudflare, Tailscale)./mcp to reload.http://localhost:18790 in a browser.Endpoints exposed when http.enabled: true:
GET / — WebChat UIGET /health — liveness (no auth)GET /v1/status — agent statusGET /v1/skills — installed skillsPOST /v1/webhook — ingest webhooksGET /v1/webhooks — drain webhook queuePOST /v1/chat/send — send a chat messageGET /v1/chat/history — chat historyGET /v1/chat/stream — real-time replies (SSE)To turn WebChat off without losing other HTTP features, just close the browser tab. To turn the whole bridge off, set http.enabled: false and run /mcp.
Bind to 127.0.0.1 unless you know your network is safe. If you must expose the port (LAN, tunnel), always set a token — otherwise anyone who can reach the port can chat as you.
/mcp to reload