recover-context
Extract full context of the last task from the most recent parent session
For CLI agents WITHOUT subagent support (e.g., Codex CLI). Search previous code agent sessions for specific work, decisions, or code patterns.
Claude Code
$ npx -y skills add pchalasani/claude-code-tools --skill session-search --agent claude-code
Codex
$ npx skills add pchalasani/claude-code-tools --skill session-search -a codex -y
Cursor
$ npx skills add pchalasani/claude-code-tools --skill session-search -a cursor -y
Gemini CLI
$ npx skills add pchalasani/claude-code-tools --skill session-search -a gemini-cli -y
GitHub Copilot
$ npx skills add pchalasani/claude-code-tools --skill session-search -a github-copilot -y
OpenCode
$ npx skills add pchalasani/claude-code-tools --skill session-search -a opencode -y
Windsurf
$ npx skills add pchalasani/claude-code-tools --skill session-search -a windsurf -y
name: session-search description: For CLI agents WITHOUT subagent support (e.g., Codex CLI). Search previous code agent sessions for specific work, decisions, or code patterns.
> **If you are Claude Code:** Do NOT use this skill directly. Use the > `session-searcher` subagent via the Task tool instead - it handles this more > efficiently without polluting your context.
Search and find previous code agent sessions (Claude-Code or Codex-CLI) for specific work, decisions, or code patterns.
1. **Understand the query**: Identify what the user is looking for (code patterns, decisions, specific work, design direction) 2. **Search with aichat**: Run `aichat search --json -n 10 "[query]"` (use `-g "project"` to filter by project) 3. **Parse results**: Use `jq` to extract fields from JSONL output (session_id, project, created, snippet, file_path) 4. **Deep dive if needed**: Read session files at `~/.claude/projects/*/[session-id].jsonl` (max 3 files) 5. **Summarize**: Return a focused summary with key findings and references
Run `aichat search --help` to see all options (date filters, branch filters, etc.) and JSONL field names.
Return a concise summary containing:
1. **Key Findings**: 2-3 bullet points answering the query 2. **Relevant Sessions**: Session IDs and dates for reference 3. **Specific Content**: Code snippets or quotes if directly relevant
Format as clean markdown, not raw JSON.
Query: "Find sessions where we discussed authentication design"
aichat search --json -n 10 "authentication design"
Summary:
If `aichat search` command fails or is not found, ask user to install:
uv tool install claude-code-tools # Python package cargo install aichat-search # Rust search TUI
Prerequisites:
If user doesn't have uv or cargo:
curl -LsSf https://astral.sh/uv/install.sh | sh # uv curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh # Rust
Practical productivity tools for Claude Code, Codex-CLI, and similar CLI coding agents.
Extract full context of the last task from the most recent parent session
Create, review, run, inspect, pause, resume, and cancel durable JavaScript workflows that coordinate multiple headless Codex…
Register an existing GitHub issue so the current Codex or Claude Code session is woken when its first future comment arrives. Use…
Use this skill when you learn one or more design pattern(s) in the
Inter-agent communication via the msg CLI. Use this when you need to send messages to other agent sessions, read incoming…
Shape output for a reader with ADHD: lead with the next action, number multi-step work, restate state across turns, suppress…
Set up the owner profile so a personal agent knows who it works for (first-run setup, \"get to know me\"), or distill colleague,…