Cursor 用户需在 Cursor 内安装扩展,不要从 Visual Studio Marketplace 网站安装;各终端代理有最低版本要求(如 Claude Code v1.0.27+、Codex CLI v0.42.0+);Cursor Cloud Agents 需设置 CURSOR_API_KEY 或写入 ~/.specstory/cli/config.toml;云同步需登录账号
getspecstory
specstoryaiApache-2.0活跃维护把 Claude Code、Codex、Copilot 等 AI 编程助手的对话历史本地留存,并整理成可复用的技能,还能同步到云端。
Install our local first extensions for your favorite AI IDE or Terminal Agent. Process your histories into reusable skills with Lore. Sync your conversations to the cloud. File issues and requests.
brew tap specstoryai/tap
brew install specstory
npx skills add specstoryai/getspecstory --skill loreREADME 未说明;仅提到 Lore 需要 Node 22.5+
把各类 AI 编程助手的对话自动存到本地并索引,随时找回过去的方案与决策
把 Claude Code、Codex、Copilot 等 AI 编程助手的对话历史本地留存,并整理成可复用的技能,还能同步到云端。
核心能力
- 自动把每次 AI 对话保存到项目的 .specstory/history/ 目录
- 一个 CLI 同时支持 Claude Code、Codex、Cursor CLI 等十余种终端代理
- 可选同步到 SpecStory Cloud,跨机器和团队搜索、提问、分享会话
- 用 /lore 把历史会话提炼成可复用的 agent skills
- 支持在不同代理之间本地恢复会话
容易踩的坑
- v2.17.0最新正式版2026-11-06 · 2026-11-06 14:35 UTC
📢 Announcements
- The SpecStory CLI now supports GitHub Copilot CLI (i.e.
copilot), for sessions created from Copilot CLI version1.0.105or higher. Sessions from earlier versions may work, but are not officially supported. This provides the same support for saving to local markdown files and to the SpecStory Cloud as for Claude Code, Cursor CLI, Codex CLI, Factory's Droid CLI, Cursor IDE, Google's Antigravity CLI, DeepSeek TUI, VS Code Copilot, Muse Code, Pi, Qwen Code, Grok Build, OpenCode and Cursor Cloud Agents. Sessions Copilot runs for the GitHub Copilot app and for VS Code's Agents window are saved too, since they are stored the same way. Thanks to sawankumarbundelkhandi for the GitHub Copilot CLI provider contribution in PR 349. - Copilot CLI is a cross-provider
specstory resumetarget: you can resume any agent's session into Copilot CLI, and resume a Copilot CLI session into another agent.
⚙️ Improvements
specstory resumeandspecstory searchnow show who a session belongs to when a project is shared with your team in SpecStory Cloud. Teammates' sessions and search results are labeled with their name, or their email if they have no name set. Your own sessions stay unlabeled. Shared projects are labeled the same way, with a count when more teammates have their own copy, such asGreg +1.
🐛 Bug Fixes
- The last turn of a Muse Code session is saved when Muse exits. Muse could write it and exit before SpecStory noticed, leaving that turn out of the history until the next
specstory sync. - Long session titles and search matches no longer run past the edge of the terminal in
specstory resumeandspecstory search, which could cut off the end of the line, including the prompt count on sessions with a long one.
- The SpecStory CLI now supports GitHub Copilot CLI (i.e.
- v2.16.12026-11-02 · 2026-11-02 17:32 UTC
查看更新说明
🐛 Bug Fixes
- Cursor IDE chats created in Cursor
3.27.14or higher are saved again. That Cursor release changed how it stores a chat's message list, so SpecStory treated every new chat as empty:specstory sync,runandwatchskipped it with "no conversation", andspecstory list,searchandresumeleft it out. Chats created before the Cursor update were not affected. Re-runspecstory sync cursorideto save any chats that were skipped. Thanks to diegodtanton for the detailed report in issue 377. - Cursor IDE chats from multi-root windows that were never saved as a
.code-workspacefile (folders added with "Add Folder to Workspace…") are now found. SpecStory only recognized saved.code-workspacefiles as multi-root workspaces, sospecstory syncandwatchrun from one of the window's folders found none of its chats. Those chats are now saved to the first folder's.specstory/history, the same place a saved.code-workspacewindow already puts them. The same matching is used for VS Code Copilot. Re-runspecstory sync cursoridefrom the first folder to save chats that were missed. Thanks to iemgnod for the report in issue 223. specstory list,searchandresumenow show Cursor IDE chats from a multi-root window under the window's first folder instead of under the.code-workspacefile path, so the project they list is one you can runspecstory syncfrom.
- Cursor IDE chats created in Cursor
- v2.16.02026-10-18 · 2026-10-18 15:41 UTC
查看更新说明
📢 Announcements
- The SpecStory CLI now supports Cursor Cloud Agents (i.e.
cursorcloud), Cursor's hosted agents launched fromhttps://cursor.com/agents, Slack, GitHub, Linear, the Cursor apps, or the Cloud Agents API, for sessions read from Cloud Agents API version1.0.0. This provides the same support for saving to local markdown files and to the SpecStory Cloud as for Claude Code, Cursor CLI, Codex CLI, Factory's Droid CLI, Cursor IDE, Google's Antigravity CLI, DeepSeek TUI, VS Code Copilot, Muse Code, Pi, Qwen Code, Grok Build and OpenCode. - Cursor Cloud agent sessions are never written to your local machine by Cursor, so SpecStory reads them from the Cursor API with your Cursor API key (provide via the
CURSOR_API_KEYENV var, orcursor_api_keyunder[providers]in~/.specstory/cli/config.toml) and matches agents to your project by its gitorigin. - The Cursor API serves full session transcripts, including tool calls and their output, for only 24 hours after a run finishes; after that it returns only the conversation text. SpecStory keeps a local copy of each Cursor Cloud Agent transcript in
.specstory/cursorcloud/in your project (or in the directory set bycursorcloud_mirror_dirin~/.specstory/cli/config.toml), so a session synced within those 24 hours keeps its tool calls. Runspecstory syncat least every 24 hours, or keepspecstory watchrunning, to capture the details of each run in time. Don't delete the.specstory/cursorcloud/directory in your project or a run older than 24 hours can only be rebuilt from the conversation text alone without its tool calls. The directory holds unredacted transcripts, so SpecStory adds a.gitignorefile to that directory to keep it out of git. - You can resume a Cursor Cloud Agent session into another agent, and resume any agent's session into a Cursor Cloud Agent. Resuming a Cursor Cloud Agent session into Cursor Cloud reopens the same agent. Resuming any other session starts a new cloud agent, which is a new paid run, seeded with the session so far. Sessions over 1,000,000 characters are too large to resume into a Cursor Cloud Agent.
🐛 Bug Fixes
- A session resumed with
specstory resumeinto an agent that shows session titles (Cursor CLI, Cursor IDE, Cursor Cloud Agents, VS Code Copilot, Droid, DeepSeek TUI or OpenCode) is now titled with the original session's first prompt, as it is inspecstory listand SpecStory Cloud. Previously it was titled with a short filename slug such astell-me-all-about, and sessions from Claude Code, Codex CLI, Gemini CLI and Pi were titled "Resumed session".
- The SpecStory CLI now supports Cursor Cloud Agents (i.e.
- v2.15.12026-09-24 · 2026-09-24 21:46 UTC
查看更新说明
🐛 Bug Fixes
- Your answers to Codex CLI's
request_user_inputquestions are now included in saved markdown. Previously the question and options were saved, but the selected option and any note were dropped, leaving an empty result. Each question is now shown with its options and your answer underneath, and questions you cancelled are marked as unanswered. Thanks to daviddwlee84 for the detailed report and reproduction in issue 333. - For Codex tools that SpecStory doesn't have a dedicated format for, the tool's arguments are now also shown as JSON. Previously they were lost whenever the tool also returned output.
- On Windows,
specstory runandspecstory watchno longer stop saving sessions partway through. Occasionally, when the agent created new session files while SpecStory was starting to watch a new directory, the file watcher could hang: no error was shown, and nothing more was saved to markdown or SpecStory Cloud until SpecStory was restarted. This could affect every supported agent.
- Your answers to Codex CLI's
- v2.15.02026-09-23 · 2026-09-23 13:17 UTC
查看更新说明
📢 Announcements
- The SpecStory CLI now supports OpenCode (i.e.
opencode), the open source terminal coding agent, for sessions created from OpenCode version2.0.14or higher. Sessions from earlier versions may work, but are not officially supported. This provides the same support for saving to local markdown files and to the SpecStory Cloud as for Claude Code, Cursor CLI, Codex CLI, Factory's Droid CLI, Cursor IDE, Google's Antigravity CLI, DeepSeek TUI, VS Code Copilot, Muse Code, Pi, Qwen Code and Grok Build. - OpenCode is a cross-provider
specstory resumetarget: you can resume any agent's session into OpenCode, and resume an OpenCode session into another agent. OpenCode's free Zen models decline to continue a conversation that was not produced through Zen, so a resumed session needs another configured model to continue. Thanks to marton78 for the original OpenCode provider contribution in PR 156.
✏️ Markdown Enhancements
- Grok Build's image, video, workflow, scheduler, and feedback tools now render as readable fields in saved markdown, with prompts and workflow scripts in code blocks, instead of as raw JSON.
- Grok Build's
search_toolnow lists each discovered tool's parameters (type, whether required, and description) instead of its full JSON schema. A single tool search can return hundreds of tools, so saved sessions that search connected integrations are now much shorter. - Grok Build shell commands, monitors, background-task lookups, images, workflows, scheduled tasks, and feedback drafts now show their command, prompt, name, or ID in the collapsed tool header, so a session can be scanned without expanding each tool.
- Grok Build tool results no longer include Grok's notices about unrelated background tasks, or the wrapper tags around
grepresults. A background shell command's task ID, status, and output file now show as labeled fields. - Grok Build
use_toolresults that are JSON are now shown in a JSON code block, and several tool fields now have consistently capitalized labels (e.g.URL,Query,Description).
- The SpecStory CLI now supports OpenCode (i.e.
用户点评
登录用户的真实使用记录,可按版本和硬件筛选还没有人点评。第一个说出真实体验的人最有价值。
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.
How It Works
AI Coding Tools Local First Cloud Platform
───────────────── ───────────── ─────────────────
(Login Required)
Cursor IDE ┐
Copilot IDE │
Claude Code CLI │
Copilot CLI │
Cursor CLI │
Cursor Cloud Agent │
Codex CLI ├──────► .specstory/history/ ──────► cloud.specstory.com
Droid CLI │ (Auto-Saved Locally) (Search, Ask & Share)
DeepSeek TUI │
Antigravity CLI │
Grok Build │
Muse Code │
OpenCode │
Pi │
Qwen Code ┘
Workflow
- Capture - SpecStory CLI and IDE extensions save every AI interaction locally to
.specstory/history/ - Sync (Optional) - Sync your local sessions to SpecStory Cloud for safekeeping and team sharing
- Search - Find conversations across all projects locally, or across multiple computers and team members in SpecStory Cloud
- Chat (Optional) - Ask questions across your sessions in SpecStory Cloud to revisit decisions, understand past work, and find solutions
- Share - Export and share specific solutions with your team
- Resume - Resume sessions locally between different agents, and between multiple computers and team members with SpecStory Cloud
- Process - Run
/loreto mine your history into reusable, evidence-backed agent skills
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 SpecStory Cloud.
Installation
| Supported Agent | Agent Type | Min Version | SpecStory Product | Source Code | Installation |
|---|---|---|---|---|---|
| Cursor AI | IDE | v0.43.6+ | Cursor Extension | Closed | Search "SpecStory" in Extensions (Cmd/Ctrl+Shift+X) → Install |
| GitHub Copilot | IDE | v1.300.0+ | VSC Copilot Extension | Closed | Search "SpecStory" in Extensions (Cmd/Ctrl+Shift+X) → Install |
| Claude Code | CLI | v1.0.27+ | SpecStory CLI | Open | brew tap specstoryai/tapbrew install specstory |
| Codex CLI | CLI | v0.42.0+ | SpecStory CLI | Open | brew tap specstoryai/tapbrew install specstory |
| Copilot CLI | CLI | 1.0.105+ | SpecStory CLI | Open | brew tap specstoryai/tapbrew install specstory |
| Cursor CLI | CLI | v2025.09.18+ | SpecStory CLI | Open | brew tap specstoryai/tapbrew install specstory |
| Cursor Cloud Agents | Cloud | SpecStory CLI | Open | brew tap specstoryai/tapbrew install specstory | |
| Droid CLI | CLI | v0.56.3+ | SpecStory CLI | Open | brew tap specstoryai/tapbrew install specstory |
| Gemini CLI | CLI | 0.15.1+ | SpecStory CLI | Open | brew tap specstoryai/tapbrew install specstory |
| DeepSeek TUI | CLI | 0.8.39+ | SpecStory CLI | Open | brew tap specstoryai/tapbrew install specstory |
| Antigravity CLI | CLI | v1.1.5+ | SpecStory CLI | Open | brew tap specstoryai/tapbrew install specstory |
| Muse Code | CLI | 0.1.0+ | SpecStory CLI | Open | brew tap specstoryai/tapbrew install specstory |
| Qwen Code | CLI | 0.23.4+ | SpecStory CLI | Open | brew tap specstoryai/tapbrew install specstory |
| Pi | CLI | 0.85.1+ | SpecStory CLI | Open | brew tap specstoryai/tapbrew install specstory |
| Grok Build | CLI | 1.0.34+ | SpecStory CLI | Open | brew tap specstoryai/tapbrew install specstory |
| OpenCode | CLI | SpecStory CLI | Open | brew tap specstoryai/tapbrew install specstory | |
| Any Agent Skills | Skill | Node 22.5+ | Lore 📜 | Open | npx skills add specstoryai/getspecstory --skill lore |
[!TIP] Don't see the agent you need listed here? The SpecStory CLI is open source and it's easy to contribute new agent providers.
[!NOTE] For Cursor users: Install from within Cursor, not from the Visual Studio Marketplace website. Learn why
Terminal Coding Agents
One installation works with all terminal coding agents - Claude Code, Cursor CLI, Codex, Copilot CLI, Droid, DeepSeek, Antigravity CLI, OpenCode, Qwen Code, and Pi - and with Cursor Cloud Agents, read from the Cursor API with your API key (set CURSOR_API_KEY, or cursor_api_key under [providers] in ~/.specstory/cli/config.toml):
# Check which agents are installed
specstory check
# Launch your preferred agent with session auto-save
specstory run claude # Launch Claude Code
specstory run cursor # Launch Cursor CLI
specstory run cursorcloud # Start a Cursor Cloud Agent on this repo and save its sessions
specstory run codex # Launch Codex CLI
specstory run copilot # Launch Copilot CLI
specstory run droid # Launch Droid CLI
specstory run deepseek # Launch DeepSeek TUI
specstory run antigravity # Launch Antigravity CLI
specstory run grok # Launch Grok Build
specstory run muse # Launch Muse Code
specstory run opencode # Launch OpenCode
specstory run qwen # Launch Qwen Code
specstory run pi # Launch Pi
specstory run # Launch the default agent (Claude Code)
# Render all prior agent coding sessions in the project as markdown
specstory sync
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.
Learn much more about the SpecStory CLI.
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:
- 🎯 Explicit Opt-In: Nothing syncs to SpecStory Cloud without an optional sign-up and login first
- 🔍 Search Everywhere: Full-text search across all your projects from all your computers.
- 💬 Chat with Your History: Ask questions across your sessions to revisit decisions, understand past work, and find solutions.
- 📚 Organized by Project: Automatic categorization by repository and time
- 🚀 API Access: Programmatic sync and search for automation
- 👥 Team Features: Share knowledge across your organization with SpecStory Cloud for Teams
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.
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
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