SANE - Smart AI Note Evolution
pendingby Adam Chen
Evolve your notes intelligently with AI. When you add/edit notes, SANE finds the 3 most relevant notes and enhances them with smart tags, keywords, links, and summaries.
SANE - Smart AI Note Evolution (Beta)

Keep it Simple and Stupid - An intelligent Obsidian plugin that evolves your notes automatically using AI. When you add or edit a note, SANE finds the 3 most relevant notes in your vault and enhances them with smart tags, keywords, links, and summaries.
๐ง How SANE Works
SANE follows a simple but powerful approach:
- ๐ You add/edit a note โ SANE detects the change
- ๐ SANE finds the 3 most relevant notes โ Using AI embeddings for semantic similarity
- โจ SANE enhances those 3 notes โ Adds tags, keywords, links, and summaries via YAML frontmatter
- ๐ Your knowledge evolves โ Notes become more connected and discoverable over time
๐ฏ Why This Approach?
- KISS Principle: Simple, predictable behavior that's easy to understand
- Efficient: Only processes 3 notes per change, saving time and API costs
- Non-intrusive: Adds YAML frontmatter at the beginning, preserving your original content
- Evolving: Your vault becomes smarter as you add more notes
โจ Features
๐ค Multiple AI Providers
- OpenAI (gpt-4o-mini)
- Google AI (gemini-2.0-flash)
- Grok (grok-3-latest)
- Azure OpenAI
- Local LLMs (Ollama support)
โ๏ธ Smart Processing
- Configurable Triggers: Immediate, delayed (10 mins after editing), scheduled daily, or manual
- Targeted Scope: Process only specific folders to maintain control
- Simple Embeddings: Full note embeddings for better context understanding
- Cost Control: Daily budget limits and real-time cost tracking
๐ก๏ธ Security First
- Privacy Warnings: Clear notices about data usage
- Backup Reminders: Prompts to backup your vault before first use
- Folder Restrictions: Limit processing to specific folders
- Local Options: Support for local LLMs to keep data private
๐ฐ Cost Management
- Daily Budgets: Set spending limits to prevent surprises
- Real-time Tracking: Monitor usage and costs
- Provider Comparison: See estimated costs for each AI provider
- Free Option: Use local LLMs for zero-cost processing
๐ Quick Start
1. Install SANE
- Download from Obsidian Community Plugins (coming soon)
- Or manually install from GitHub releases
2. Configure Your AI Provider
- Choose from OpenAI, Google AI, Grok, Azure, or Local
- Add your API key in settings
- Set a daily budget (recommended: $1-2 for most users)
3. Set Your Scope (Recommended)
- Create a specific folder like "Knowledge Base" or "Smart Notes"
- Set this as your target folder in SANE settings
- Only notes in this folder will be processed
4. Initialize Your Vault
- Run "Initialize: Process all notes in target folder"
- SANE will process all existing notes, treating each as new
- This builds the initial knowledge graph
5. Start Writing!
- Add or edit notes in your target folder
- SANE automatically finds and enhances the 3 most relevant notes
- Watch your knowledge evolve!
๐ Example Output
When SANE processes a note, it adds YAML frontmatter like this:
---
sane_tags: ["machine-learning", "neural-networks", "ai"]
sane_keywords: ["deep learning", "backpropagation", "training data"]
sane_links: ["Introduction to AI", "Neural Network Basics"]
sane_summary: "Comprehensive guide to understanding neural networks and their applications in modern AI systems."
sane_version: "1.0"
created_at: "2025/5/5 19:59:11"
modified_at: "2025/6/29 12:15:12"
---
# Your Original Content
Your original note content remains completely unchanged...
๐ธ Cost Examples
Small vault (100 notes):
- OpenAI: ~$0.15 total
- Google AI: ~$0.05 total
- Local: Free
Medium vault (1,000 notes):
- OpenAI: ~$1.50 total
- Google AI: ~$0.50 total
- Local: Free
Large vault (10,000 notes):
- OpenAI: ~$15 total
- Google AI: ~$5 total
- Local: Free
Costs are one-time for initial processing. Daily usage is typically $0.01-0.10 depending on how much you write.
๐ง Settings Overview
AI Provider Options
- OpenAI: Most capable, moderate cost
- Google AI: Good quality, lowest cost
- Grok: X.AI's latest model, experimental
- Azure: Enterprise OpenAI with your own deployment
- Local: Ollama support, completely free and private
Processing Triggers
- Immediate: Process as soon as you edit (for instant feedback)
- Delayed: Wait 10 minutes after editing stops (recommended)
- Scheduled: Process once daily at 2 AM (for batch efficiency)
- Manual: Only process when you command it
Security & Scope
- Target Folder: Limit processing to specific folder
- Privacy Warnings: Clear disclosure about AI provider data usage
- Backup Reminders: Ensure you backup before first use
๐ก๏ธ Privacy & Security
What SANE Does
- โ Stores API keys locally in Obsidian
- โ Processes only notes in your target folder
- โ Adds YAML frontmatter without changing your content
- โ Provides local LLM option for complete privacy
What SANE Sends to AI Providers
- ๐ค Your note content (for AI processing)
- ๐ค Content from related notes (for context)
- โ Never your API keys or personal data
Recommendations
- ๐ Backup your vault first (SANE modifies files)
- ๐ Use a specific folder to limit scope
- ๐ Consider local LLMs for sensitive content
- ๐ฐ Set daily budgets to control costs
๐ Local LLM Setup
For complete privacy and zero costs:
- Install Ollama: Download from ollama.ai
- Download Models:
ollama pull llama2 # For text generation ollama pull nomic-embed-text # For embeddings - Start Ollama:
ollama serve - Configure SANE: Set provider to "Local" and endpoint to
http://localhost:11434
๐ Support & Development
โค๏ธ Love SANE?
- โญ Star us on GitHub
- โ Buy us a coffee
- ๐ Report bugs
- ๐ก Suggest features
๐งช Help Test & Develop
- Test Local LLMs: Help us improve Ollama integration
- Develop: Contribute code, documentation, or translations
- Community: Share your SANE workflows and tips
โ FAQ
Q: Will SANE change my existing notes? A: SANE only adds YAML frontmatter to the beginning of notes. Your original content is never modified.
Q: What if I don't like the AI suggestions?
A: Simply delete the SANE-generated YAML frontmatter. SANE prefixes all fields with sane_ so they're easy to identify and remove.
Q: How much does it cost? A: Very little! Most users spend $0.01-0.10 per day. You can set daily budgets to control costs, and local LLMs are completely free.
Q: Is my data private? A: Your notes are sent to your chosen AI provider for processing. For complete privacy, use the local LLM option with Ollama.
Q: What if the AI returns malformed responses? A: SANE includes robust response parsing that handles JSON wrapped in markdown code blocks, malformed JSON, and provides regex-based fallback extraction. If all else fails, it gracefully returns empty results rather than crashing.
Q: How can I test if my AI provider is working? A: Use the "Test AI Connection" button in settings or run the "Test AI provider connection" command. This will show you exactly what the AI returns and help debug any issues.
Q: What happens if I have a large vault? A: Set a target folder to limit processing scope. SANE is designed to handle vaults of any size efficiently.
๐ License
MIT License - Feel free to modify and distribute!
SANE - Smart AI Note Evolution: Because your notes should evolve as smartly as your thinking does. ๐ง โจ
For plugin developers
Search results and similarity scores are powered by semantic analysis of your plugin's README. If your plugin isn't appearing for searches you'd expect, try updating your README to clearly describe your plugin's purpose, features, and use cases.