session-history

Search and browse past conversation history across all sessions. Use when recalling prior work, finding old discussions, resuming dropped threads, or when the user references something from a previous conversation that isn't in memory files. Also use when asked to "remember" something discussed before, find "that conversation about X", or continue work from a past session.

Safety Notice

This listing is from the official public ClawHub registry. Review SKILL.md and referenced scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "session-history" with this command: npx skills add amor71/session-history

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

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

AIWolfPK - AI狼人杀

四个AI互相猜疑,你坐着看戏。每局30秒,到底谁是狼? Four AIs play Werewolf while you watch. 30s per round. Spot the wolf before they do.

Registry SourceRecently Updated
General

Project Analyzer

Analyze any project directory and produce a detailed report covering what the project does, its tech stack, folder structure, entry points, how to run it, an...

Registry SourceRecently Updated
General

Thought-Retriever

提炼对话回答中的核心洞察为高置信度知识晶体,存储于本体驱动记忆系统的自我进化与复用。

Registry SourceRecently Updated
General

Miaoji Bid Guard Pro

亚马逊广告护城河Pro版,90天ROI预测+多活动协同+季节性出价+关键词攻防矩阵。 从单次调价建议升级为完整的广告战役规划。基础功能可使用 miaoji-bid-guard 免费版。

Registry SourceRecently Updated