← 返回
效率工具 中文

Session History

Search and browse past conversation history across all sessions. Use when recalling prior work, finding old discussions, resuming dropped threads, or when th...
搜索并浏览所有会话的历史记录。适用于回忆过往工作、查找旧讨论、接续中断话题或检索特定信息等场景。
amor71
效率工具 clawhub v1.0.0 1 版本 99846.5 Key: 无需
★ 0
Stars
📥 1,301
下载
💾 11
安装
1
版本
#latest

概述

Session History

Search through past OpenClaw session transcripts (JSONL files in ~/.openclaw/agents/*/sessions/).

Quick Reference

# Search for conversations about a topic
python3 scripts/search_sessions.py "gclid pipeline error"

# List recent sessions
python3 scripts/search_sessions.py --list --days 3

# Search specific agent's history
python3 scripts/search_sessions.py "flight monitor" --agent main

# Wider time range
python3 scripts/search_sessions.py "quantum encryption" --days 30 --max-results 5

Workflow

  1. Run search_sessions.py with the user's query terms to find relevant sessions
  2. Use sessions_history tool with the sessionKey to pull full context from a match
  3. If sessions_history doesn't work (old/closed sessions), read the JSONL file directly with read
  4. Summarize what was found — don't dump raw transcripts

When to Use

  • User says "remember when we discussed X?" or "we talked about Y last week"
  • Resuming a thread that isn't captured in memory files
  • Finding a decision, code snippet, or error from a past session
  • Cross-referencing what was said vs what's in MEMORY.md

Tips

  • Also check memory_search first — it indexes session transcripts too
  • Combine both: memory_search for semantic matching, search_sessions.py for keyword/exact matching
  • The script searches user AND assistant messages
  • JSONL path format: ~/.openclaw/agents/{agent_id}/sessions/{session_uuid}.jsonl

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-03-29 07:24 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

productivity

Obsidian

steipete
操作 Obsidian 仓库(纯 Markdown 笔记)并通过 obsidian-cli 自动化。
★ 432 📥 103,799
productivity

Nano Pdf

steipete
使用nano-pdf CLI通过自然语言指令编辑PDF
★ 275 📥 114,867
productivity

Word / DOCX

ivangdavila
创建、检查和编辑 Microsoft Word 文档及 DOCX 文件,支持样式、编号、修订记录、表格、分节符及兼容性检查等功能。
★ 439 📥 147,745