SkillAgentSearch skills...

cursor-session

A command-line tool to extract and export chat sessions from Cursor

Install / Use

npx skills add iksnae/cursor-session

Installs into whichever agent you are using.

About this skill
📐

.cursorrules

Cursor IDE rules (legacy)

Quality Score

76/100

Supported Platforms

Cursor

Our assessment of cursor-session

cursor-session scores 76/100 on our quality scale, 3696th of 4,613 Development & Engineering skills we index.

Its .cursorrules is 8.1 KB long, well organised into 39 sections with 19 code examples: a thorough specification that gives an agent plenty to work with.

It has 12 GitHub stars, so there is little community track record yet; judge it on its content.

Substance
29/30
Structure
20/20
Description
12/15
Adoption
5/20
Freshness
11/15

Maintenance, license and trust

  • The repository was last updated about 12 months ago. That is recent enough to be usable, but agent tooling moves fast, so check the instructions against your agent's current version.
  • Our last check on 2026-10-22 found the source still online.
  • No license is declared. By default that means all rights are reserved: you can read it, but reusing or redistributing it is not clearly permitted. Ask the author before building on it commercially.
  • Its trust signals score 74/100, with 3 cautions from licensing, adoption, age or documentation. These come from repository metadata, not a code audit — read the skill file before letting an agent act on it.

Safety scan

No issues found

Our scan of the whole file found no instruction hijacking, hidden characters, credential access, data exfiltration or destructive commands (1 minor note below). An AI review of the same text found nothing harmful.

  • noteInstalls by piping a downloaded script into a shellline 30
    curl -fsSL https://raw.githubusercontent.com/iksnae/cursor-session/main/install-binary.sh | bash

AI review by kimi-k2.7-code on 2026-09-24. Automated pattern scan on 2026-09-24. It catches known dangerous patterns, not every risk — read a skill before letting an agent act on it.

cursor-session compared with similar skills

All 4 of these similar skills score higher than cursor-session; compare them before choosing.

SkillScoreStarsUpdatedFormat
cursor-session (this skill)by iksnae761212mo ago.cursorrules
taste-skillby Leonxlnx100110.6k1d agoCLAUDE.md
ai-job-searchby ai-job-search-dev10069.8ktodayCLAUDE.md
claude-howtoby luongnv8910046.6k2d agoCLAUDE.md
algorithmic-artby anthropics100177.9k44d agoSKILL.md

Frequently asked questions

How do I install cursor-session?
Run npx skills add iksnae/cursor-session. The install tabs above show the steps for each supported agent.
Which AI agents does cursor-session work with?
It is written for Cursor, as a .cursorrules file. Other agents that read the same format can often use it too.
Is cursor-session safe to use?
Our scan of the whole file found no instruction hijacking, hidden characters, credential access, data exfiltration or destructive commands (1 minor note below). An AI review of the same text found nothing harmful. It declares no license and scores 74/100 on trust signals. Skills are instructions an agent will follow, so read the file before installing it and do not approve commands you do not understand.
Is cursor-session still maintained?
The repository was last updated about 12 months ago. That is recent enough to be usable, but agent tooling moves fast, so check the instructions against your agent's current version.

cursor session codecov

Cursor Session

A command-line tool to extract and export chat sessions from Cursor IDE and cursor-agent CLI. Extract your conversation history from Cursor's Composer and chat interface, export it in multiple formats, and keep your AI-assisted coding sessions organized.

Works with both Cursor IDE's desktop app storage (globalStorage) and cursor-agent CLI storage to extract conversations, code blocks, tool calls, and context from your chat sessions.

Features

  • 📋 List all sessions - See all your Cursor IDE chat sessions at a glance
  • 💬 View conversations - Browse messages from Composer and chat sessions with filtering options
  • 📤 Export in multiple formats - JSONL, Markdown, YAML, or JSON
  • 🔍 Rich content extraction - Captures full conversations including code blocks, tool calls, and context
  • ⚡ Fast and efficient - Intelligent caching for quick access to your sessions
  • 🎯 Workspace-aware - Automatically associates sessions with your workspaces
  • 🖥️ Cross-platform - Works on macOS and Linux
  • 🔌 Multiple storage backends - Supports both desktop app (globalStorage) and cursor-agent CLI storage
  • 🛠️ Diagnostic tools - Built-in healthcheck and path detection commands
  • 🔄 Auto-upgrade - Built-in upgrade command to get the latest version

Installation

Quick Install (Recommended - One Command)

Install cursor-session with a single command. The installer automatically detects your platform and downloads the correct binary:

curl -fsSL https://raw.githubusercontent.com/iksnae/cursor-session/main/install-binary.sh | bash

That's it! The script will:

  • Detect your OS and architecture (macOS Intel/ARM, Linux amd64/arm64)
  • Download the latest pre-built binary
  • Install to ~/.local/bin
  • Add to your PATH automatically

Verify installation:

cursor-session --version

Manual Binary Download

If you prefer to download manually, visit the Releases page and download the appropriate binary for your platform:

  • macOS (Intel): cursor-session-*-darwin-amd64.tar.gz
  • macOS (Apple Silicon): cursor-session-*-darwin-arm64.tar.gz
  • Linux (x86_64): cursor-session-*-linux-amd64.tar.gz
  • Linux (ARM64): cursor-session-*-linux-arm64.tar.gz

Extract and move to your PATH:

tar -xzf cursor-session-*.tar.gz
mv cursor-session ~/.local/bin/
chmod +x ~/.local/bin/cursor-session

Quick Install from Source (For Developers)

If you have Go installed, you can build from source:

# Clone the repository
git clone https://github.com/iksnae/cursor-session.git
cd cursor-session

# Run the install script (fully automatic - no manual steps!)
./install.sh

The script automatically builds, installs, and configures the tool. No manual configuration needed! Works on macOS (zsh) and Linux (bash/zsh).

Using Go Install

For stable releases:

go install github.com/iksnae/cursor-session@latest

For latest development version:

go install github.com/iksnae/cursor-session@main

Using Make

git clone https://github.com/iksnae/cursor-session.git
cd cursor-session
make install

Manual Build

git clone https://github.com/iksnae/cursor-session.git
cd cursor-session
go build -buildvcs=false -o cursor-session .
sudo cp cursor-session /usr/local/bin/

Verify Installation

cursor-session --version
cursor-session list

Quick Start

# List all your Cursor IDE chat sessions
cursor-session list

# View messages from a specific session
cursor-session show <session-id>

# Export all sessions as Markdown
cursor-session export --format md

# Check if everything is working correctly
cursor-session healthcheck

# Upgrade to the latest version
cursor-session upgrade

Docker Development

For isolated development that matches the GitHub Actions environment, use Docker:

# Set CURSOR_API_KEY (optional but recommended for cursor-agent)
export CURSOR_API_KEY=your-api-key-here

# Start development container with cursor-agent
make docker-dev

# Access interactive shell
make docker-shell

# Inside container: build and test
make build
make test
./cursor-session healthcheck

# Seed database with cursor-agent
./cursor-session snoop --hello

See Docker Development Guide for detailed instructions on:

  • Setting up CURSOR_API_KEY for cursor-agent authentication
  • Setting up cursor-agent in the container
  • Testing storage behavior in Ubuntu environment
  • Development workflow and troubleshooting

Commands

List Sessions

cursor-session list [--clear-cache]

Lists all available chat sessions with IDs, names, message counts, and creation dates.

Show Session

cursor-session show <session-id> [--limit <number>] [--since <timestamp>]

Display messages from a specific session with optional filtering.

Export Sessions

cursor-session export [--format <format>] [--out <directory>] [--workspace <hash>] [--session-id <id>] [--clear-cache]

Export sessions to various formats (jsonl, md, yaml, json). Filter by workspace or export a specific session.

Health Check

cursor-session healthcheck [--verbose]

Verify that cursor-session can locate and access session data. Useful for debugging storage issues.

Snoop (Path Detection)

cursor-session snoop [--hello]

Attempt to find the correct path to Cursor database files. Use --hello to seed the database with cursor-agent.

Upgrade

cursor-session upgrade

Upgrade cursor-session to the latest released version from GitHub.

Reconstruct (Debug)

cursor-session reconstruct

Reconstructs conversations and saves to intermediary JSON format. Primarily useful for debugging.

For detailed usage information, see the Usage Guide.

Requirements

  • Cursor IDE or cursor-agent CLI installed
    • Desktop app: Extracts from globalStorage format (macOS/Linux)
    • Agent CLI: Extracts from cursor-agent storage (Linux only)
  • macOS or Linux

Releases

Releases are automatically created when git tags matching v* (e.g., v1.0.0, v1.2.3) are pushed to the repository. Each release includes:

  • Pre-built binaries for macOS (Intel + ARM) and Linux (amd64 + arm64)
  • SHA256 checksums for verification
  • Release notes

Version Numbering:

  • Follows Semantic Versioning (MAJOR.MINOR.PATCH)
  • Use @latest with go install for stable releases
  • Use @main for the latest development version

Creating a Release:

# Tag a new version
git tag v1.0.0
git push origin v1.0.0

The GitHub Actions workflow will automatically build binaries and create a release.

Storage Backends

cursor-session supports two storage backends:

  1. Desktop App Storage (macOS/Linux)

    • Location: ~/Library/Application Support/Cursor/User/globalStorage/state.vscdb (macOS)
    • Location: ~/.config/Cursor/User/globalStorage/state.vscdb (Linux)
    • Extracts from Cursor IDE's globalStorage database
  2. Agent CLI Storage (Linux only)

    • Location: ~/.config/cursor/chats/ or ~/.cursor/chats/
    • Extracts from cursor-agent CLI session databases
    • Automatically detected when cursor-agent is installed

The tool automatically detects and uses the available storage backend. Desktop app storage takes priority if both are available.

Global Flags

  • --verbose, -v - Enable verbose logging
  • --storage <path> - Custom storage location (path to database file or storage directory)
  • --copy - Copy database files to temporary location to avoid locking issues

Documentation

License

MIT

Related Skills

View on GitHub
GitHub Stars12
CategoryDevelopment
Updated11mo ago
Forks6

Languages

Go

Trust signals

74/100

From repository metadata: license, adoption, age and documentation. Not a code audit — see the Safety scan above for what the skill file itself contains.

1 medium2 low1 info
cursor-session — .cursorrules: Install & Safety Check | SkillAgent