Media & Image v0.1.0

openclaw-session-grep

Search local OpenClaw session and transcript history with the openclaw-session-grep CLI. Use when debugging prior...

pfrederiksen 更新于 2026-04-20 1 浏览
下载 SKILL

技能说明

Search 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.

使用场景

Use this skill for transcript and session-history spelunking.

直接复制以下提示词,发送给你的 AI 助手即可完成安装。

帮我下载并安装这个SKILL:https://skillhub.cstcloud.cn/download/openclaw-session-grep
  1. 点击上方「下载 SKILL」按钮,获取技能压缩包。
  2. 将压缩包解压到你的 Agent 技能目录。
  3. 重启客户端后即可在技能列表中选择该技能。

技能文件内容

4 个文件 · 15 kB
SKILL.md text/markdown
---
name: openclaw-session-grep
version: 0.1.0
description: Search 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.
metadata:
  {
    "openclaw": {
      "requires": { "bins": ["/root/.openclaw/workspace/tools/ocgrep"] }
    }
  }
---

# openclaw-session-grep

Use this skill for transcript and session-history spelunking.

Default command:

```bash
/root/.openclaw/workspace/tools/ocgrep "keyword" --last 7d --open
```

## Best uses

- prior conversation lookup
- debugging dashboard/system panel history
- finding tool usage or failure strings
- tracing cron/job behavior over time
- locating model/session/channel-specific history

## Preferred workflow

1. Start with `ocgrep` to narrow by keyword, time window, tool, channel, or session.
2. Use `--summary` when you need the hot sessions first.
3. Use `--open` when you want exact file:line references.
4. Only switch to `jq` after you know which transcript file(s) matter.

## Good queries

```bash
/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
```

## Important caveat

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`.

## Local install path on this host

The CLI is installed in an isolated venv at:

```bash
/root/.openclaw/venvs/openclaw-session-grep
```

Wrapper used for daily work:

```bash
/root/.openclaw/workspace/tools/ocgrep
```

文件内容直接读取自技能仓库,仅供安装前审阅;以实际下载的压缩包为准。