Skip to main content

Specs Export Tool for AI Assistants

Project description

AnySpecs CLI is a unified command-line tool for exporting chat history from multiple AI assistants. It currently supports Cursor AI, Claude Code, and Kiro Records, with support for various export formats including Markdown, HTML, and JSON.

Features

  • Multi-Source Support: Export from Cursor AI, Claude Code, Augment Code, and Kiro Records(More to come)
  • Multiple Export Formats: Markdown, HTML, and JSON
  • Project-Based and Workspace Filtering: Export sessions by project or current directory
  • Flexible Session Management: List, filter, and export specific sessions
  • Default Export Directory: All exports save to .anyspecs/ by default for organized storage
  • AI Summary: Summarize chat history into a single file
  • Terminal history and files diff history: Export terminal history and files diff history(WIP)
  • Server Upload and Share: Upload exported files to remote servers (WIP)

Installation

From Source

# Clone the repository
git clone https://github.com/anyspecs/anyspecs-cli.git
cd anyspecs-cli

# Install in development mode
pip install -e .

# Or install normally
pip install .

Using pip

pip install anyspecs

Quick Start

List All Chat Sessions in this workspace

# List all chat sessions in this workspace from all sources
anyspecs list

# List only Cursor/Claude/Kiro sessions in this workspace
anyspecs list --source cursor/claude/kiro/augment/all

# Show detailed information
anyspecs list --verbose

Export Chat Sessions

# Export current project's sessions to Markdown (default to .anyspecs/)
anyspecs export

# Export all sessions to HTML (default to .anyspecs/)
anyspecs export --all-projects --format html

# Export specific session
anyspecs export --session-id abc123 --format json

# Export Claude sessions only
anyspecs export --source claude --format markdown

# Export Kiro records only
anyspecs export --source kiro --format html

# Export with custom output path
anyspecs export --output ./exports --format html

# Export and upload to server(WIP)
anyspecs export --format json --upload --server https://myserver.com --username user --password pass

More Functions

anyspecs --help
# positional arguments:
#   {list,export,compress,setup}
#                         Available commands
#     list                List all chat sessions
#     export              Export chat sessions
#     compress            AI-compress chat sessions into .specs format (auto-loads config)
#     setup               Setup and manage AI provider configurations

# options:
#   -h, --help            show this help message and exit
#   --verbose, -v         Enable verbose logging

Supported Sources

Cursor AI

Extracts chat history from Cursor's local SQLite databases, including:

  • Workspace-specific conversations
  • Global chat storage
  • Composer data and bubble conversations
  • Project context and metadata

Claude Code

Extracts chat history from Claude Code's JSONL history files, including:

  • User messages and AI responses
  • Tool calls and results
  • Session metadata
  • Project context

Augment Code

Extracts chat history from VSCode's history files, including:

  • User messages and AI responses
  • Tool calls and results
  • Session metadata
  • Project context

Kiro Records

Extracts and combines markdown documents from .kiro directory, including:

  • File metadata (name, modification time)
  • Automatic project summary detection

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

Development Setup

# Clone the repository
git clone https://github.com/anyspecs/anyspecs-cli.git
cd anyspecs-cli

# Install in development mode with dev dependencies
pip install -e ".[dev]"

# Run tests
pytest

# Format code
black anyspecs/

License

This project is licensed under the MIT License - see the LICENSE file for details.

Changelog

v0.0.4

  • Add Augment Code support
  • Add version option

v0.0.3

  • Add AI Summary support(PPIO, Minimax, Kimi)

v0.0.2

  • Kiro Records support: Extract and export files from .kiro directory
  • Default export directory: All exports now save to .anyspecs/ by default
  • Workspace filtering: Cursor sessions now show only current workspace sessions in list command

v0.0.1

  • Initial release
  • Support for Cursor AI and Claude Code
  • Multiple export formats (Markdown, HTML, JSON)
  • Upload functionality
  • Project-based filtering
  • Organized package structure

Support

If you encounter any issues or have questions, please:

  1. Check the documentation
  2. Search existing issues
  3. Create a new issue

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

anyspecs-0.0.4.tar.gz (56.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

anyspecs-0.0.4-py3-none-any.whl (64.0 kB view details)

Uploaded Python 3

File details

Details for the file anyspecs-0.0.4.tar.gz.

File metadata

  • Download URL: anyspecs-0.0.4.tar.gz
  • Upload date:
  • Size: 56.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.4

File hashes

Hashes for anyspecs-0.0.4.tar.gz
Algorithm Hash digest
SHA256 02c24538352a85d915f530529468e4271e77ca4e2da8bc61b67ea624b3400943
MD5 39191cf693a598b2dcd1ba80cde71022
BLAKE2b-256 5bc49de03053d15231b5827172233cb99d64819a58cdf37b5e073e1581597afa

See more details on using hashes here.

File details

Details for the file anyspecs-0.0.4-py3-none-any.whl.

File metadata

  • Download URL: anyspecs-0.0.4-py3-none-any.whl
  • Upload date:
  • Size: 64.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.4

File hashes

Hashes for anyspecs-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 19a1353b342a5ff340c63146ebdb1a17443bc832b2f389e76ddd281672a923c3
MD5 130bfb4c00af1b0cf20a2ed981967422
BLAKE2b-256 fe24fbd108578ac90ae52c89e6ea624ea5e32f783bb7792bf20e58883b04a970

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page