Перейти к содержимому
TakoAPI
Назад к навыкам

mh-session-logs

от mohdalhashemi98-hue

Search & Research
242Число загрузок по данным clawskills.sh
1Просмотры
0 лайковВойдите, чтобы поставить лайк навыку
—Ещё нет оценок
Ваша оценка

Кратко

Search and analyze your own session logs (older/parent conversations) using jq.

Описание

Что делает этот навык

Searches and analyzes conversation history stored in OpenClaw session JSONL files using jq and ripgrep. Useful when a user references prior chats or needs context from older conversations not held in memory files.

Querying raw JSONL with jq gives precise, scriptable access to full conversation history without loading entire sessions into memory.

Когда его использовать

  • Find what was discussed in a session from a specific date
  • Search all past sessions for a keyword or phrase
  • Calculate total API cost for a session or day
  • Count messages and token usage across a conversation
  • Identify which tools were used most in a session

Пример сценария

ВВОД

User asks: what did we decide about the database schema last week?

АГЕНТ
  1. 1

    Locate the agent ID from the system prompt Runtime line

  2. 2

    List sessions from the relevant date range using the date-sorting loop

  3. 3

    Search assistant messages across those sessions for 'schema' using rg

  4. 4

    Extract matching text blocks with jq select filters

  5. 5

    Return the relevant excerpts to the user

ВЫВОД

Relevant assistant message excerpts referencing the database schema decision

Установка

clawhub install mohdalhashemi98-hue/mh-session-logs

Выполните команду CLI или вставьте промпт в Claude Code, Cursor, Codex — любой кодинг-агент, которым пользуетесь.

Ссылки