En

agent-history

Unified browsing and export of AI coding assistant conversation histories across multiple environments.

Install & Use

Copy this prompt and send it to your AI assistant (Claude / Cursor / TRAE / Codex / WorkBuddy etc.) to auto-install:

Help me install this AI Skill: agent-history.
It is used for: Unified browsing and export of AI coding assistant conversation histories across multiple environments.
Full Skill content: https://321skill.com/skills/agent-history/raw/index.md
Read that page and install it.

The prompt includes a link to the full Skill content. You can also view the full content.

Have you ever been frustrated that conversation histories from AI coding assistants like Claude Code, Codex CLI, Gemini CLI, and Pi are scattered across different environments—local, WSL, Windows, SSH—making it difficult to search, share, or review them by project? agent-history is built to solve this exact pain point.

It's a CLI tool implemented using only the Python standard library, requiring no additional dependencies. Simply navigate to your project directory, run agent-history lss to list all sessions for the current project, or run agent-history export to export sessions to Markdown or offline HTML. The HTML export supports rich interactive controls, allowing you to collapse/expand tool call details and full trace information.

This tool is ideal for developers, technical leads, or teams with workflow review and auditing needs who use different AI coding assistants across multiple environments (e.g., local development, WSL, remote servers). It helps you unify fragmented conversation histories into searchable, exportable knowledge assets.

For first-time use, we recommend starting with the agent-history lss and agent-history lsw (list workspaces) commands to understand its data collection scope. For cross-environment projects requiring long-term tracking, you can use the --alias feature to set aliases for related workspaces, facilitating unified queries and statistics.

Key Features

Unlike single-AI-assistant session export tools, it is the first to achieve cross-environment unified collection, standardization, and querying of history logs from four mainstream AI coding assistants: Claude Code, Codex CLI, Gemini CLI, and Pi. It provides workspace (project)-based filtering, alias management, and detailed statistics on token usage, tool calls, and time.

Limitations

Currently, it only supports four AI coding assistants: Claude Code, Codex CLI, Gemini CLI, and Pi. It does not support history logs from other AI tools or general-purpose chatbots.

FAQ

Which AI coding assistants are supported?

Currently, it fully supports Claude Code, Codex CLI, Gemini CLI, and Pi.

Are the exported HTML files offline?

Yes, the exported HTML is a pure static file containing all styles and interactive logic, viewable without an internet connection.

Installation guide for AI assistants

If your AI coding assistant (Claude Code, Cursor, TRAE etc.) can see this page, send it this message to auto-install:

Visit https://321skill.com/skills/agent-history/raw/index.md to read the original Skill definition (Markdown format) for agent-history, and install it according to the instructions.