Sandbox
@specstoryai/getspecstory

Local history and skills for AI coding tools

SpecStory captures conversations from supported editors and terminal agents into `.specstory/history/` so you can search them later. If you log in, it can also sync those sessions to SpecStory Cloud. The repo also includes Lore, which mines those saved sessions into reusable agent skills, and a CLI wrapper that launches tools like Claude Code, Codex CLI, Cursor CLI, Gemini CLI, and others with auto-save turned on.

1,328 stars86 forksGoUpdated 8d ago
Who it's for

Builders who want their AI agent chats saved locally and turned into reusable skills.

What it delivers

You can keep agent conversations as searchable history instead of re-explaining the same context every session.

What it does

Local session capture

Saves AI interactions from supported tools into `.specstory/history/` in each project.

Cloud sync

Lets logged-in users sync sessions to SpecStory Cloud for cross-project search and sharing.

CLI wrapper for terminal agents

Runs Claude Code, Cursor CLI, Codex CLI, Gemini CLI, Droid, DeepSeek TUI, Antigravity, and Muse with auto-save.

Lore skill generation

Turns saved session history into evidence-backed skills you can install and use in agents.

Editor integrations

Provides installable extensions for Cursor and VS Code/Copilot workflows.

Skill packs and agent files

Includes packaged skill content and agent guidance files under `lore/` and related config folders.

How to get it

  1. 1Install
    npx skills add specstoryai/getspecstory --skill lore
  2. 2Then invoke it - /lore in Claude Code, $lore in Codex, or just ask ("mine my lore") in…
    /lore

README

Group 6 (1)

Intent is the new source code

Turn your AI development conversations into searchable, shareable knowledge.

Never lose a brilliant solution, code snippet, or architectural decision again. SpecStory captures, indexes, and makes searchable every interaction you have with AI coding assistants across all your projects and tools.

Install SpecStory ──▶   Installs Active Users Sessions Saved Rules Generated

Contribute to OSS ──▶  CLI Open Source Lore: forge skills from your sessions

Connect with us ───▶  X LinkedIn Slack Discord YouTube

📜 Lore - Mine your saved sessions into evidence-backed agent skills, forged from how you actually work. Your sessions are your lore.

How It Works

AI Coding Tools              Local First                  Cloud Platform
─────────────────           ─────────────                ─────────────────
                                                          (Login Required)
Cursor IDE         ┐
Copilot IDE        │
Claude Code CLI    │
Cursor CLI         │
Codex CLI          ├──────►  .specstory/history/  ──────►  cloud.specstory.com
Droid CLI          │          (Auto-Saved Locally)        (Search, Ask & Share)
Gemini CLI         │
DeepSeek TUI       │
Antigravity CLI    │
Muse Code          │
Pi                 ┘

Workflow

  1. Capture - Extensions save every AI interaction locally to .specstory/history/
  2. Process - Run /lore to mine your history into reusable, evidence-backed agent skills
  3. Sync (Optional) - Only if logged in, sessions sync to cloud
  4. Search - Find conversations locally or across all projects in cloud
  5. Share - Export and share specific solutions with your team

Supported Development Tools

SpecStory integrates seamlessly with your favorite AI coding tools, automatically saving all conversations locally to .specstory/history/ in your project. Everything is local-first - your data stays on your machine unless you choose to sync to the cloud.

Installation

ProductTypeSourceSupported AgentMin VersionInstallationChangelog
Cursor ExtensionIDEClosedCursor AIv0.43.6+Search "SpecStory" in Extensions (Cmd/Ctrl+Shift+X) → Install📋 View
VSC Copilot ExtensionIDEClosedGitHub Copilotv1.300.0+Search "SpecStory" in Extensions (Cmd/Ctrl+Shift+X) → Install📋 View
SpecStory CLICLIOpenClaude Codev1.0.27+brew tap specstoryai/tap
brew install specstory
📋 View
SpecStory CLICLIOpenCodex CLIv0.42.0+brew tap specstoryai/tap
brew install specstory
📋 View
SpecStory CLICLIOpenCursor CLIv2025.09.18+brew tap specstoryai/tap
brew install specstory
📋 View
SpecStory CLICLIOpenDroid CLIv0.56.3+brew tap specstoryai/tap
brew install specstory
📋 View
SpecStory CLICLIOpenGemini CLI0.15.1+brew tap specstoryai/tap
brew install specstory
📋 View
SpecStory CLICLIOpenDeepSeek TUI0.8.39+brew tap specstoryai/tap
brew install specstory
📋 View
SpecStory CLICLIOpenAntigravity CLIv1.1.5+brew tap specstoryai/tap
brew install specstory
📋 View
SpecStory CLICLIOpenMuse Code0.1.0+brew tap specstoryai/tap
brew install specstory
📋 View
Lore 📜SkillOpenAny Agent SkillsNode 22.5+npx skills add specstoryai/getspecstory --skill lore📋 View

[!NOTE] For Cursor users: Install from within Cursor, not from the Visual Studio Marketplace website. Learn why

CLI Tools

One installation works with all CLI tools - Claude Code, Cursor CLI, Codex, Droid, DeepSeek, and Antigravity:

# Check which agents are installed
specstory check

# Launch your preferred agent with auto-save
specstory run claude       # Launch Claude Code
specstory run cursor       # Launch Cursor CLI
specstory run codex        # Launch Codex CLI
specstory run droid        # Launch Droid CLI
specstory run gemini       # Launch Gemini CLI
specstory run deepseek     # Launch DeepSeek TUI
specstory run antigravity  # Launch Antigravity CLI
specstory run muse         # Launch Muse Code
specstory run           # Launch default agent

All sessions automatically save to .specstory/history/ in your current project.

[!TIP] The SpecStory CLI acts as a wrapper that enhances any of these terminal agents with automatic session saving. You only need the respective agent installed (e.g., Claude Code) for SpecStory to work with it.

Lore 📜

Lore turns the sessions SpecStory saves into agent skills forged from how you actually work. Your sessions are your lore.

The Problem We Solve

  • Repeated Yourself Again: You re-explain the same workflows, conventions, and fixes to your agent every session
  • Skills From Guesswork: Hand-written agent skills describe how you think you work, not how you demonstrably do

The Solution

Lore mines your .specstory/history into evidence - what you actually ran, what worked, and the judgment you apply without noticing - and forges the skills you approve into every agent on your machine.

Install:

npx skills add specstoryai/getspecstory --skill lore

Then invoke it - /lore in Claude Code, $lore in Codex, or just ask ("mine my lore") in Gemini CLI and others:

/lore

Get Started with Lore →

SpecStory Cloud ☁️

SpecStory Cloud transforms your local AI conversations into a powerful, centralized knowledge system.

The Problem We Solve

  • Lost Context: Critical decisions and solutions scattered across machines and projects
  • No Global Search: Finding that perfect solution from last month is impossible
  • Fragile Sharing: Passing around Markdown files doesn't scale

The Solution

SpecStory Cloud creates your personal AI coding knowledge base:

  • 🔍 Search Everywhere: Full-text search across all your projects via web interface. RAG coming soon.
  • 🎯 Explicit Opt-In: Nothing syncs to cloud without sign-up and login first
  • 📚 Organized by Project: Automatic categorization by repository and time
  • 🚀 API Access: Programmatic sync and search for automation
  • 👥 Team Features: Coming soon - share knowledge across your organization

Get Started with SpecStory Cloud →

How to Sync to Cloud

MethodOne-Time SetupLive SessionsPast Sessions
SpecStory CLIspecstory loginAuto-pushed when using specstory run while logged inUse specstory sync to push existing local sessions
Cursor ExtensionCommand Palette → "SpecStory: Open Cloud Sync Configuration"Configure auto-sync in settingsUse sync command from Command Palette
VSCode ExtensionCommand Palette → "SpecStory: Open Cloud Sync Configuration"Configure auto-sync in settingsUse sync command from Command Palette

[!IMPORTANT] Local-First & Private by Default: All sessions are saved locally to .specstory/history/. Nothing is ever sent to the cloud unless you explicitly login with. Even after logging in, you can control what gets synced.

Documentation & Support

Reviews & Feedback

Love SpecStory? Help others discover their AI coding memory upgrade by leaving a review! 🧠

Star History

Star History Chart


Made with ❤️ by SpecStory

Files in the repo

Repository payload16 top-level entries
  • .claude-plugin
  • .github
  • .specstory
  • lore
  • scripts
  • specstory-cli
  • workthreads
  • .cursorindexingignore
  • .gitignore
  • .goreleaser.yml
  • CODE-OF-CONDUCT.md
  • CONTRIBUTING.md
  • install.sh
  • LICENSE.txt
  • PLAN.md
  • README.md

Discussion (0)

Ask about usage, or say what you built with it

Sign in to join the discussion.

No comments yet. Be the first to say what this is good for.

More plugins

Makes your AI agent think like the laziest senior dev in the room. The best code is the code you never wrote.

138k
1 add

Graphs that teach > graphs that impress. Turn any code into an interactive knowledge graph you can explore, search, and ask questions about. Works with Claude Code, Codex, Cursor, Copilot, Gemini CLI, and more.

82k
code-yeongyu/
oh-my-openagent

OmO: Just type "mass ulw" keyword with your prompt. Now you are the master of graph engineering.

69k

Persistent Context Across Sessions for Every Agent – Captures everything your agent does during sessions, compresses it with AI, and injects relevant context back into future sessions. Works with Claude Code, OpenClaw, Codex, Gemini, Hermes, Copilot, OpenCode + More

94k

Opinionated Oxlint rules for rejecting low-evidence TypeScript and JavaScript patterns

4.3k