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.

v2.17.0发布于 2026-11-06 14:35 UTC1,373star +2 / 7 天93fork同步于 2026-11-11 05:46 UTC

怎么上手

由 README 提炼,执行前请确认
brew tap specstoryai/tap
brew install specstory
npx skills add specstoryai/getspecstory --skill lore
硬件要求按 README 说明

README 未说明;仅提到 Lore 需要 Node 22.5+

下载:源码 zip·GitHub Releases(安装包)本站不镜像安装包

项目说明

由 README 自动翻译提炼

把各类 AI 编程助手的对话自动存到本地并索引,随时找回过去的方案与决策

把 Claude Code、Codex、Copilot 等 AI 编程助手的对话历史本地留存,并整理成可复用的技能,还能同步到云端。

核心能力

  • 自动把每次 AI 对话保存到项目的 .specstory/history/ 目录
  • 一个 CLI 同时支持 Claude Code、Codex、Cursor CLI 等十余种终端代理
  • 可选同步到 SpecStory Cloud,跨机器和团队搜索、提问、分享会话
  • 用 /lore 把历史会话提炼成可复用的 agent skills
  • 支持在不同代理之间本地恢复会话

容易踩的坑

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;云同步需登录账号

内容由模型根据 README 生成,可能不完整或不准确,以官方文档为准。看原文 README

最近发版

5 个版本v2.17.0
  1. v2.17.0最新正式版2026-11-06 · 2026-11-06 14:35 UTC

    📢 Announcements

    ⚙️ Improvements

    • specstory resume and specstory search now 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 as Greg +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 resume and specstory search, which could cut off the end of the line, including the prompt count on sessions with a long one.
  2. v2.16.12026-11-02 · 2026-11-02 17:32 UTC
    查看更新说明

    🐛 Bug Fixes

    • Cursor IDE chats created in Cursor 3.27.14 or 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, run and watch skipped it with "no conversation", and specstory list, search and resume left it out. Chats created before the Cursor update were not affected. Re-run specstory sync cursoride to 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-workspace file (folders added with "Add Folder to Workspace…") are now found. SpecStory only recognized saved .code-workspace files as multi-root workspaces, so specstory sync and watch run 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-workspace window already puts them. The same matching is used for VS Code Copilot. Re-run specstory sync cursoride from the first folder to save chats that were missed. Thanks to iemgnod for the report in issue 223.
    • specstory list, search and resume now show Cursor IDE chats from a multi-root window under the window's first folder instead of under the .code-workspace file path, so the project they list is one you can run specstory sync from.
  3. 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 from https://cursor.com/agents, Slack, GitHub, Linear, the Cursor apps, or the Cloud Agents API, for sessions read from Cloud Agents API version 1.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_KEY ENV var, or cursor_api_key under [providers] in ~/.specstory/cli/config.toml) and matches agents to your project by its git origin.
    • 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 by cursorcloud_mirror_dir in ~/.specstory/cli/config.toml), so a session synced within those 24 hours keeps its tool calls. Run specstory sync at least every 24 hours, or keep specstory watch running, 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 .gitignore file 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 resume into 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 in specstory list and SpecStory Cloud. Previously it was titled with a short filename slug such as tell-me-all-about, and sessions from Claude Code, Codex CLI, Gemini CLI and Pi were titled "Resumed session".
  4. v2.15.12026-09-24 · 2026-09-24 21:46 UTC
    查看更新说明

    🐛 Bug Fixes

    • Your answers to Codex CLI's request_user_input questions 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 run and specstory watch no 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.
  5. 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 version 2.0.14 or 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 resume target: 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_tool now 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 grep results. A background shell command's task ID, status, and output file now show as labeled fields.
    • Grok Build use_tool results 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).

用户点评

登录用户的真实使用记录,可按版本和硬件筛选
共 0 条

    还没有人点评。第一个说出真实体验的人最有价值。

    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.

    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

    1. Capture - SpecStory CLI and IDE extensions save every AI interaction locally to .specstory/history/
    2. Sync (Optional) - Sync your local sessions to SpecStory Cloud for safekeeping and team sharing
    3. Search - Find conversations across all projects locally, or across multiple computers and team members in SpecStory Cloud
    4. Chat (Optional) - Ask questions across your sessions in SpecStory Cloud to revisit decisions, understand past work, and find solutions
    5. Share - Export and share specific solutions with your team
    6. Resume - Resume sessions locally between different agents, and between multiple computers and team members with SpecStory Cloud
    7. Process - Run /lore to 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 AgentAgent TypeMin VersionSpecStory ProductSource CodeInstallation
    Cursor AIIDEv0.43.6+Cursor ExtensionClosedSearch "SpecStory" in Extensions (Cmd/Ctrl+Shift+X) → Install
    GitHub CopilotIDEv1.300.0+VSC Copilot ExtensionClosedSearch "SpecStory" in Extensions (Cmd/Ctrl+Shift+X) → Install
    Claude CodeCLIv1.0.27+SpecStory CLIOpenbrew tap specstoryai/tapbrew install specstory
    Codex CLICLIv0.42.0+SpecStory CLIOpenbrew tap specstoryai/tapbrew install specstory
    Copilot CLICLI1.0.105+SpecStory CLIOpenbrew tap specstoryai/tapbrew install specstory
    Cursor CLICLIv2025.09.18+SpecStory CLIOpenbrew tap specstoryai/tapbrew install specstory
    Cursor Cloud AgentsCloudSpecStory CLIOpenbrew tap specstoryai/tapbrew install specstory
    Droid CLICLIv0.56.3+SpecStory CLIOpenbrew tap specstoryai/tapbrew install specstory
    Gemini CLICLI0.15.1+SpecStory CLIOpenbrew tap specstoryai/tapbrew install specstory
    DeepSeek TUICLI0.8.39+SpecStory CLIOpenbrew tap specstoryai/tapbrew install specstory
    Antigravity CLICLIv1.1.5+SpecStory CLIOpenbrew tap specstoryai/tapbrew install specstory
    Muse CodeCLI0.1.0+SpecStory CLIOpenbrew tap specstoryai/tapbrew install specstory
    Qwen CodeCLI0.23.4+SpecStory CLIOpenbrew tap specstoryai/tapbrew install specstory
    PiCLI0.85.1+SpecStory CLIOpenbrew tap specstoryai/tapbrew install specstory
    Grok BuildCLI1.0.34+SpecStory CLIOpenbrew tap specstoryai/tapbrew install specstory
    OpenCodeCLISpecStory CLIOpenbrew tap specstoryai/tapbrew install specstory
    Any Agent SkillsSkillNode 22.5+Lore 📜Opennpx 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

    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.

    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 →

    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