session-archive

Archive, index, search, and recover Claude Code and Copilot chat sessions via CLI and SQLite index.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/jeff-hamm/ai-tools --skill session-archive
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: session-archive
Source: https://github.com/jeff-hamm/ai-tools/tree/main/src/skills/session-archive
Command: npx skills add https://github.com/jeff-hamm/ai-tools --skill session-archive

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Archive, index, search, and recover Claude Code and VS Code/Cursor chat sessions, preserving conversation history for reference and compliance.

Core Features & Use Cases

  • Archive chats to a durable local store
  • Index and search across Claude Code and Copilot transcripts
  • Show and recover a conversation by session ID or metadata

Quick Start

Use the session-archive CLI to archive, index, search, and recover your Claude Code and Copilot chat sessions.

Frequently Asked Questions about session-archive

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I archive Claude Code and Copilot chat sessions to a local store?▼

To archive Claude Code and Copilot chat sessions, this Skill copies transcripts from their native directories into a durable local archive at ~/.agents/session-archive/, preserving conversation history for reference and compliance.

Can I recover a specific Copilot or Claude Code conversation by session ID?▼

Yes, you can recover a specific Copilot or Claude Code conversation by querying the SQLite index with a session ID, which retrieves the matched transcript from the durable local archive for display.

Where does this Skill look for Claude Code and Copilot transcripts to archive?▼

This Skill reads Claude Code transcripts from ~/.claude/projects/ and Copilot transcripts from ~/.vscode-server/data/User/workspaceStorage/*/GitHub.copilot-chat/transcripts/, also supporting older chatSessions/ and chatHistory/ layouts.

Does archiving VS Code Copilot chats require any external dependencies or databases?▼

No external dependencies are required for archiving VS Code Copilot chats; the Skill autonomously manages a built-in SQLite database at ~/.agents/session-archive/index.db to index and search session metadata.