Session Recall

v1.0.0

Search past session transcripts to recover lost conversation context. MUST use when: (1) the current session is new or has very few messages AND the user's m...

0· 248·0 current·0 all-time
byEthan Chen@hchen13

Install

OpenClaw Prompt Flow

Install with OpenClaw

Best for remote or guided setup. Copy the exact prompt, then paste it into OpenClaw for hchen13/openclaw-session-recall.

Previewing Install & Setup.
Prompt PreviewInstall & Setup
Install the skill "Session Recall" (hchen13/openclaw-session-recall) from ClawHub.
Skill page: https://clawhub.ai/hchen13/openclaw-session-recall
Keep the work scoped to this skill only.
After install, inspect the skill metadata and help me finish setup.
Use only the metadata you can verify from ClawHub; do not invent missing requirements.
Ask before making any broader environment changes.

Command Line

CLI Commands

Use the direct CLI path if you want to install manually and keep every step visible.

OpenClaw CLI

Canonical install target

openclaw skills install hchen13/openclaw-session-recall

ClawHub CLI

Package manager switcher

npx clawhub@latest install openclaw-session-recall
Security Scan
VirusTotalVirusTotal
Benign
View report →
OpenClawOpenClaw
Benign
high confidence
Purpose & Capability
The name and description say the tool searches past session transcripts; the shipped script and SKILL.md implement a local text search over ~/.openclaw/agents/*/sessions JSONL files and return file paths/line numbers. No external services, credentials, or unrelated binaries are required.
Instruction Scope
The runtime instructions correctly instruct the agent to run the provided script to list/search and then use the agent's built-in file-reading to load the returned lines. This stays within the stated purpose. One privacy-related note: the CLI supports omitting --agent (searches all agents discovered under ~/.openclaw/agents), so an agent invoking this without an explicit agent ID could enumerate/search transcripts belonging to other agent IDs in the same home directory; this is expected for multi-agent setups but could expose unrelated conversations if present.
Install Mechanism
No install spec or network downloads are present — this is an instruction-only skill with a small Python script. No external packages are required (reads as pure Python 3.10+). That's the lowest-risk install profile.
Credentials
The skill declares no environment variables, no credentials, and no config paths beyond the session transcript directory under the user's home. Those file reads are proportional to the stated goal of searching local session transcripts.
Persistence & Privilege
The skill does not request always:true and does not attempt to modify other skills or system-wide configuration. It runs on demand and has normal autonomous-invocation settings by default.
Assessment
This skill is coherent with its purpose: it searches local OpenClaw session JSONL files and returns file paths/line numbers for the agent to read. Before installing, consider these points: (1) transcripts may contain sensitive data (tokens, private messages, PII); ensure you are comfortable the agent can read all files under ~/.openclaw/agents/. (2) When invoking the tool, prefer specifying --agent to avoid unintentionally searching other agents' transcripts. (3) Verify file permissions on ~/.openclaw/agents to limit exposure in multi-user environments. (4) No network calls or credentials are required by the skill, but always review the full script in your environment (the provided snippet was reviewed and showed no external endpoints). If you need stricter boundaries, restrict the skill to search only a dedicated archive or run it under a user account that contains only the transcripts you want accessible.

Like a lobster shell, security has layers — review code before you run it.

latestvk97enkj3r0v8rwwa3yfnxe189582g7v2
248downloads
0stars
1versions
Updated 1mo ago
v1.0.0
MIT-0

Session Recall

Search OpenClaw session transcript JSONL files to locate past conversations. Returns file paths and line numbers — read the relevant lines yourself to recover context.

When to Use

  • Missing context signal: Current session is new/short AND the user's message references people, events, decisions, or topics not present in your context — they clearly assume you know something you don't
  • Explicit recall: User says things like "continue where we left off", "as we discussed", "remember when we talked about..."
  • Self-check: You're about to reply "I don't have context" or "which topic are you referring to" — stop and use this skill first before asking the user to repeat themselves
  • You need to find when/where a specific topic was discussed

Commands

List available agents

Discover which agent IDs exist and how many sessions each has:

python3 SKILL_DIR/scripts/session-recall.py agents

Use this to find valid agent IDs before searching. Your own agent ID is typically visible in your session key (e.g. agent:myagent:... → agent ID is myagent).

List recent sessions

Show sessions with time range, turn count, and first message preview:

python3 SKILL_DIR/scripts/session-recall.py list --agent AGENT_ID --start 48h --limit 10

Output example:

/path/to/session.jsonl  [03-08 02:15 ~ 03:35]  32 turns  "Can you look into the impact of..."

Use this when the user's query is vague — scan previews to identify the right session, then read into it.

Search by keyword

Find specific mentions across transcripts:

python3 SKILL_DIR/scripts/session-recall.py search "keyword" --agent AGENT_ID --start 7d --limit 20

Output example:

/path/to/session.jsonl:142  [03-08 02:15] user: ...the keyword appears here in context...

The number after : is the line number. Use read --offset LINE --limit 30 to read surrounding context.

Time Parameters

--start and --end define the time window for filtering sessions.

FormatExampleMeaning
Relative duration30m, 6h, 2d, 1w, 3moMinutes/hours/days/weeks/months ago
Absolute date2026-03-01, 03-01Specific date (midnight)
Absolute datetime2026-03-01T14:00Specific date and time
Keywordtoday, yesterdayStart of today/yesterday
  • --start 7d → sessions from the last 7 days
  • --start 2026-02-01 --end 2026-02-28 → sessions within February
  • --end yesterday → sessions before today
  • Omit --end to include everything up to now
  • Omit both to search all time

Pagination

Use --offset and --limit to paginate through results:

# First page
session-recall list --start 30d --limit 10
# Second page
session-recall list --start 30d --limit 10 --offset 10
# Third page
session-recall list --start 30d --limit 10 --offset 20

The tool prints Showing X-Y of Z when there are more results beyond the current page.

All Parameters

ParameterDescription
--agentAgent ID. Run session-recall agents to list available IDs. Omit to search all.
--startStart of time window. Accepts durations, dates, datetimes, or keywords.
--endEnd of time window. Same formats as --start. Omit for "up to now".
--limitMax results per page. Default: 20 for list, 30 for search.
--offsetSkip N results for pagination. Default: 0.

Workflow

  1. Detect continuity intent — user implies prior context you don't have
  2. Try list first — scan session previews to narrow down candidates
  3. Then search if you have keywords, or pick a session from the list
  4. read the file at the returned line numbers (offset/limit) to load context
  5. Continue the conversation with recovered context

Important Notes

  • Replace SKILL_DIR with the actual skill directory path when calling
  • Only search your own agent's sessions by default
  • The tool does NOT use LLM — it's pure text search, fast and free
  • For vague queries with no keywords: use list, scan previews, then read promising sessions
  • Large sessions may have hundreds of lines — read selectively, don't load entire files
  • Use --offset to paginate when --limit doesn't cover all results

Comments

Loading comments...