Install
openclaw skills install openclaw-session-grepSearch local OpenClaw session and transcript history with the openclaw-session-grep CLI. Use when debugging prior conversations, tool usage, cron behavior, panel failures, historical errors, expensive runs, or when looking for where something was said before. Prefer this over ad hoc rg/jq sweeps for transcript discovery; use jq only after narrowing to specific files.
openclaw skills install openclaw-session-grepUse this skill for transcript and session-history spelunking.
Default command:
/root/.openclaw/workspace/tools/ocgrep "keyword" --last 7d --open
ocgrep to narrow by keyword, time window, tool, channel, or session.--summary when you need the hot sessions first.--open when you want exact file:line references.jq after you know which transcript file(s) matter./root/.openclaw/workspace/tools/ocgrep "api/system" --last 7d --open
/root/.openclaw/workspace/tools/ocgrep "morning briefing" --last 14d --summary
/root/.openclaw/workspace/tools/ocgrep "timeout" --tool-only --last 7d
/root/.openclaw/workspace/tools/ocgrep "message tool" --channel telegram --last 7d --open
The upstream CLI can search broadly enough to include non-transcript files if you aim it at overly broad paths. Use it for session/transcript discovery first, not repo-wide code search. If results look noisy, tighten with --path, --session, --channel, --last, or --tool-only.
The CLI is installed in an isolated venv at:
/root/.openclaw/venvs/openclaw-session-grep
Wrapper used for daily work:
/root/.openclaw/workspace/tools/ocgrep