Session logs

From ericwang915/PythonClaw · View interactive version

Session logs is an AI agent skill from the GitHub repository ericwang915/PythonClaw. Search and analyse your own conversation history from session files. Use when: user references older conversations, asks what was said before, or needs historical context from past sessions. NOT for: current session messages (already in context), non-session files, or external logs.

How to use this skill

Skill file

Session Logs

Search your complete conversation history stored in session Markdown files.

When to Use

✅ USE this skill when:

When NOT to Use

❌ DON'T use this skill when:

Session File Location

Session files are stored under ~/.pythonclaw/context/sessions/.

Each session is a Markdown file named <session_id>.md containing the full

conversation transcript.

Commands

List all sessions by date and size

ls -lhS ~/.pythonclaw/context/sessions/*.md

Search across ALL sessions for a keyword

python {skill_path}/search_sessions.py "keyword"

Or with grep:

grep -rl "keyword" ~/.pythonclaw/context/sessions/*.md

Read a specific session

cat ~/.pythonclaw/context/sessions/<session_id>.md

Count sessions

ls ~/.pythonclaw/context/sessions/*.md | wc -l

Notes

Resources

| File | Description |

|------|-------------|

| search_sessions.py | Search across all session files by keyword |

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.