Makes your AI agent think like the laziest senior dev in the room. The best code is the code you never wrote.
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.
Builders who want their AI agent chats saved locally and turned into reusable skills.
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
- 1Install
npx skills add specstoryai/getspecstory --skill lore
- 2Then invoke it - /lore in Claude Code, $lore in Codex, or just ask ("mine my lore") in…
/lore
README
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.
📜 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
- Capture - Extensions save every AI interaction locally to
.specstory/history/ - Process - Run
/loreto mine your history into reusable, evidence-backed agent skills - Sync (Optional) - Only if logged in, sessions sync to cloud
- Search - Find conversations locally or across all projects in cloud
- 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
| Product | Type | Source | Supported Agent | Min Version | Installation | Changelog |
|---|---|---|---|---|---|---|
| Cursor Extension | IDE | Closed | Cursor AI | v0.43.6+ | Search "SpecStory" in Extensions (Cmd/Ctrl+Shift+X) → Install | 📋 View |
| VSC Copilot Extension | IDE | Closed | GitHub Copilot | v1.300.0+ | Search "SpecStory" in Extensions (Cmd/Ctrl+Shift+X) → Install | 📋 View |
| SpecStory CLI | CLI | Open | Claude Code | v1.0.27+ | brew tap specstoryai/tapbrew install specstory | 📋 View |
| SpecStory CLI | CLI | Open | Codex CLI | v0.42.0+ | brew tap specstoryai/tapbrew install specstory | 📋 View |
| SpecStory CLI | CLI | Open | Cursor CLI | v2025.09.18+ | brew tap specstoryai/tapbrew install specstory | 📋 View |
| SpecStory CLI | CLI | Open | Droid CLI | v0.56.3+ | brew tap specstoryai/tapbrew install specstory | 📋 View |
| SpecStory CLI | CLI | Open | Gemini CLI | 0.15.1+ | brew tap specstoryai/tapbrew install specstory | 📋 View |
| SpecStory CLI | CLI | Open | DeepSeek TUI | 0.8.39+ | brew tap specstoryai/tapbrew install specstory | 📋 View |
| SpecStory CLI | CLI | Open | Antigravity CLI | v1.1.5+ | brew tap specstoryai/tapbrew install specstory | 📋 View |
| SpecStory CLI | CLI | Open | Muse Code | 0.1.0+ | brew tap specstoryai/tapbrew install specstory | 📋 View |
| Lore 📜 | Skill | Open | Any Agent Skills | Node 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
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
| Method | One-Time Setup | Live Sessions | Past Sessions |
|---|---|---|---|
| SpecStory CLI | specstory login | Auto-pushed when using specstory run while logged in | Use specstory sync to push existing local sessions |
| Cursor Extension | Command Palette → "SpecStory: Open Cloud Sync Configuration" | Configure auto-sync in settings | Use sync command from Command Palette |
| VSCode Extension | Command Palette → "SpecStory: Open Cloud Sync Configuration" | Configure auto-sync in settings | Use 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
- 📚 Full Documentation - Complete guides and Cloud API reference
- 📜 Lore - Forge your
.specstory/historyinto installable agent skills, with evidence and outcomes - 🐛 Report Issues - We actively monitor and respond
- 📖 Contribute to Docs - PRs welcome!
Reviews & Feedback
Love SpecStory? Help others discover their AI coding memory upgrade by leaving a review! 🧠
Star History
Made with ❤️ by SpecStory
Files in the repo
- .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 itSign in to join the discussion.
No comments yet. Be the first to say what this is good for.
More plugins

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.
OmO: Just type "mass ulw" keyword with your prompt. Now you are the master of graph engineering.
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
Opinionated Oxlint rules for rejecting low-evidence TypeScript and JavaScript patterns
Teams-first Multi-agent orchestration for Claude Code