This directory is automatically created and maintained by the SpecStory extension to preserve your AI chat history.
.specstory/history: Contains auto-saved markdown files of your AI coding sessions (default path, configurable in specstory.outputPath setting)
.specstory/.project.json: Contains the persistent project identity for the current workspace
.specstory/ai_rules_backups: Contains backups of the .cursor/rules/derived-cursor-rules.mdc or the .github/copilot-instructions.md file
.cursor/rules/derived-cursor-rules.mdc or the .github/copilot-instructions.md file is updated.specstory/.gitignore: Contains directives to exclude non-essential contents of the .specstory directory from version control
/history to exclude the auto-saved chat history from version controlWe recommend keeping this directory under version control to maintain a history of your AI interactions. However, if you prefer not to version these files, you can exclude them by adding this to your .gitignore:
.specstory/**
We recommend not keeping the .specstory/ai_rules_backups directory under version control if you are already using git to version your AI rules, and committing regularly. You can exclude it by adding this to your .gitignore:
.specstory/ai_rules_backups
When searching your codebase, search results may include your previous AI coding interactions. To focus solely on your actual code files, you can exclude the AI interaction history from search results.
To exclude AI interaction history:
.specstory/*
This will ensure your searches only return results from your working codebase files.
You can control auto-saving behavior in Cursor or VSCode:
Auto-save occurs when changes are detected in the sqlite database, or every 2 minutes as a safety net.