AI Session Tools

CLI to search, recover, and analyze Claude Code / AI Studio / Gemini CLI session history.

av ahundt · ahundt/autorun

Fungerar med konfiguration ★ 8.0/10

AI Session Tools — CLI to search, recover, and analyze Claude Code / AI Studio / Gemini CLI session history.

Vad den gör

Wraps the `aise` command-line tool for searching AI session transcripts, recovering files the AI wrote but that went missing from disk, detecting where the user corrected the AI, and exporting sessions to markdown. Triggers on requests like 'find that file from last week', 'recover context after compaction', or 'turn AI mistakes into rules'. Requires the separate `ai-session-tools` PyPI package to be installed — the skill folder only contains the SKILL.md and a reference doc, not the CLI itself.

Testrapport

Installed the real PyPI package and it crashed immediately with ModuleNotFoundError: No module named 'click' (a missing dependency in the package's own metadata); after manually adding click, aise files search --pattern SKILL.md against real local session history returned 4 precisely-tracked files with edit counts and session IDs, versus 106 noisy full-text hits from a manual grep baseline — genuinely useful once the broken install is patched by hand.

Testad: 2026-07-16 · Claude Code 2.x (agent harness)

Installation

git clone https://github.com/ahundt/autorun
mkdir -p ~/.claude/skills
cp -r autorun/plugins/autorun/skills/ai-session-tools ~/.claude/skills/ai-session-tools
# REQUIRED extra step, not just a folder copy: pip install ai-session-tools click  (docs suggest 'uv tool install ai-session-tools', but the PyPI package is missing a declared 'click' dependency and crashes on first run until it's installed manually)

Kommandon och exempelprompter

  • /ai-session-toolsCLI to search, recover, and analyze Claude Code / AI Studio / Gemini CLI session history.

Skills triggas av vanliga förfrågningar — inga kommandon att memorera. Efter installationen aktiverar prompter som dessa skillen (på engelska):

  • find that config file I had Claude write last week then lost
  • recover my context after this session got compacted
  • turn the mistakes I corrected Claude on into standing rules