Transform your raw notes into comprehensive learning guides with AI-powered intelligence.
Features β’ Quick Start β’ Usage β’ Documentation
FlowNotes is a terminal-first, AI-powered note-taking system that transforms your raw notes into comprehensive learning materials. Using proven learning science techniques, it automatically generates:
- π TL;DR Summaries - Concise overviews
- π·οΈ Auto-Tagging - Key concept extraction
- π Visual Diagrams - Mermaid concept maps
- β Quiz Questions - Active recall practice
- ποΈ Flashcards - Spaced repetition cards
- π Concept Linking - Related topics discovery
- π Citations - Curated learning resources
β
Never lose your work - Raw notes preserved with timestamps
β
Work offline - Supports local LLMs (Ollama)
β
Privacy first - Your notes stay on your machine
β
Semantic intelligence - Duplicate detection, fuzzy search
β
Research-ready - Auto literature reviews, hypotheses, methodology
β
Terminal native - Fast, keyboard-driven workflow
- Clone the repository:
git clone https://github.com/YOUR_USERNAME/flow-notes.git
cd flow-notes- Run the setup script:
chmod +x setup.sh
./setup.shThis will:
- Create required directories (
topics/,daily_notes/,docs/) - Set up Python virtual environment
- Install all dependencies
- Create
.envconfiguration file
- Configure API keys:
Edit .env file with your API keys:
nano .envAdd your keys:
OPENAI_API_KEY=your_key_here
ANTHROPIC_API_KEY=your_key_here # optional
GOOGLE_API_KEY=your_key_here # optional
# Or use local models (no API key needed)
DEFAULT_LLM_PROVIDER=ollama- Start taking notes:
./start_notes.shWant complete privacy? Use Ollama for local AI:
# Install Ollama
brew install ollama # macOS
# or visit https://ollama.ai for other platforms
# Download a model
ollama pull llama2
# Set in .env
DEFAULT_LLM_PROVIDER=ollama- Multi-Provider LLM Support: OpenAI, Anthropic, Ollama, Google Gemini
- Smart Topic Classification: AI-powered automatic topic detection (unlimited topics!)
- Structured Organization: Topic-first, then date-based with raw note preservation
- Learning Mentor Integration: Comprehensive educational guidance using agent configuration
- Raw Note Preservation: Never overwrites original notes - all edits are non-destructive
- Smart Duplicate Detection: Semantic similarity detection with merge/link/keep options
- Flexible Filtering: Date ranges, topic selection, keyword search
- Interactive Topic Selection: Fuzzy search - type "web" to find all web-related topics
- Preview Mode: See what will be consolidated before generating
- No Token Limits: Full responses without artificial truncation
The system extracts 5-10 key concepts automatically:
π·οΈ **Key Concepts & Tags**
#neural-networks #backpropagation #gradient-descent #activation-functions
#deep-learning #training #weights #bias #loss-functionGenerates Mermaid diagrams showing relationships:
graph TD
A[Neural Network] --> B[Input Layer]
A --> C[Hidden Layers]
A --> D[Output Layer]
C --> E[Activation Functions]
E --> F[ReLU]
E --> G[Sigmoid]
E --> H[Tanh]
5-7 questions at varying difficulty levels:
β **Review Questions**
1. **Basic**: What are the three main layers in a neural network?
2. **Intermediate**: How does backpropagation adjust weights?
3. **Advanced**: Compare ReLU vs Sigmoid activation - when to use each?8-10 cards using spaced repetition format:
**Q: What is backpropagation?**
A: Algorithm that calculates gradients by propagating errors backward
through the network, used to update weights during training.
**Q: Why use ReLU activation?**
A: Computationally efficient, helps with vanishing gradient problem,
outputs 0 for negative inputs and x for positive inputs.Finds 3-5 related topics to explore:
π **Related Concepts to Explore**
- **Convolutional Neural Networks (CNNs)**: Specialized for image data
- **Recurrent Neural Networks (RNNs)**: Handle sequential data
- **Gradient Descent Optimization**: Advanced training techniquesSuggests 3-5 high-quality learning resources:
π **Recommended Resources**
1. **3Blue1Brown - Neural Networks**: Visual intuition [YouTube]
2. **Deep Learning Book (Goodfellow)**: Chapter 6 on Feedforward Networks
3. **Fast.ai Course**: Practical implementation examplesAutomatically activates for academic content and provides:
Synthesizes current research landscape, identifies gaps, and suggests focus areas.
Generates 5-7 focused, answerable research questions based on your notes.
Suggests appropriate research methods (quantitative, qualitative, mixed) with justification.
Lists seminal papers and recent work relevant to your research area.
Formulates testable hypotheses based on patterns in your notes.
Creates structured framework connecting theories to your research.
Analyzes citation patterns and suggests influential works to explore.
Edit utils/learning_enhancements.py:
def generate_custom_feature(self, content):
prompt = f"""Based on these notes:
{content}
Generate [your custom enhancement]"""
return self.llm_caller(
prompt=prompt,
system_message=self.agent_prompt
)Create new file in .qwen/agents/[name].md:
You are a [role] focused on [specialty].
Your teaching approach:
- [principle 1]
- [principle 2]
When generating content, always [guideline]Edit scripts/interactive_note_system.py:
def setup_api(self):
if self.primary_llm == "your_provider":
self.client = YourProviderClient(api_key=os.getenv("YOUR_API_KEY"))| Feature | Learning Principle | Research Backing |
|---|---|---|
| Quiz Questions | Active Recall | Karpicke & Roediger (2008): 50% better retention |
| Flashcards | Spaced Repetition | Ebbinghaus: 200% improved long-term memory |
| Mermaid Diagrams | Dual Coding Theory | Paivio (1971): 65% increased retention |
| Concept Linking | Elaborative Interrogation | Pressley et al. (1987): Deeper understanding |
| Auto-Tagging | Metacognition | Brown (1987): Improved self-awareness |
| Summaries | Chunking | Miller (1956): Better information processing |
The 10-step enhancement process is carefully ordered:
- Summary First: Orient yourself with TL;DR
- Original Notes: Ground truth reference
- Comments: Add your own insights
- Tags: Organize and index concepts
- Diagrams: Visual mental models
- Concept Links: Expand your knowledge graph
- Questions: Test understanding
- Flashcards: Long-term retention
- Citations: Credible resources
- Additional Insights: Expert guidance
Contributions are welcome! Here's how:
- Fork the repository
- Create a feature branch:
git checkout -b feature/amazing-feature - Add your code to appropriate module:
- Learning features β
utils/learning_enhancements.py - Research features β
utils/researcher_mode.py - Utilities β
utils/file_operations.py
- Learning features β
- Add tests to
tests/test_basic.py - Run tests:
python tests/test_basic.py - Commit:
git commit -m 'Add amazing feature' - Push:
git push origin feature/amazing-feature - Open a Pull Request
All new features should have tests:
def test_your_feature():
"""Test [feature name] works correctly"""
# Arrange
test_input = "sample content"
# Act
result = your_feature(test_input)
# Assert
assert result is not None
assert "expected" in resultMIT License - see LICENSE file for details.
TL;DR: You can freely use, modify, and build commercial products (including paid apps) on top of FlowNotes. Attribution appreciated but not required.
- Learning Science: Based on research by Karpicke, Roediger, Paivio, and others
- Mermaid.js: For beautiful diagram generation
- LLM Providers: OpenAI, Anthropic, Google, Ollama community
- AI Toolkit: For development guidance and best practices
- PRODUCT_SPEC.md: Product vision, core philosophy, and future roadmap (v3.0+)
- FEATURE_SET.md: Comprehensive catalog of 24+ feature categories
- PRODUCT_ROADMAP.md: Desktop companion vision with PySide6 GUI
- IMPLEMENTATION_ROADMAP.md: Developer implementation guide
Made with β€οΈ for learners, by learners
Transform your notes into comprehensive learning guides with AI-powered intelligence!
- π TL;DR Summaries: Concise 3-5 bullet point summaries for quick review
- π·οΈ Auto-Tagging: Extracts 5-10 key concepts automatically
- π Visual Diagrams: AI-generated Mermaid diagrams (concept maps, flowcharts)
- β Quiz Questions: Active recall questions for better retention
- ποΈ Flashcards: Anki-style cards for spaced repetition
- π Concept Linking: Identifies related topics to explore
- π Citation Suggestions: Recommends academic resources and papers
- π Literature Reviews: Structured review outlines
- π Research Questions: AI-suggested research directions
- π§ͺ Methodology Suggestions: Appropriate research approaches
- π Key Paper Identification: Seminal works and citations
- π‘ Hypothesis Generation: Testable hypotheses from notes
- π― Theoretical Frameworks: Conceptual foundations with diagrams
- π Citation Analysis: Strategic citation recommendations
~/Projects/notes/
βββ scripts/
β βββ interactive_note_system.py # Main system (modular, ~1800 lines)
βββ utils/
β βββ __init__.py
β βββ file_operations.py # File handling utilities
β βββ learning_enhancements.py # Learning features
β βββ researcher_mode.py # Research capabilities
β βββ duplicate_detector.py # Semantic duplicate detection (NEW!)
β βββ topic_selector.py # Fuzzy topic search (NEW!)
βββ tests/
β βββ __init__.py
β βββ test_basic.py # Basic test suite
βββ .qwen/
β βββ agents/
β βββ learning-mentor.md # Agent configuration (enhanced with prompt engineering)
βββ topics/ # Your organized notes
β βββ [topic-name]/
β βββ raw/ # Raw notes (timestamped, never modified) (NEW!)
β β βββ YYYY-MM-DD_HH-MM-SS.md
β β βββ YYYY-MM-DD_HH-MM-SS.json # Metadata
β βββ learning-guide.md # Consolidated guide
βββ daily_notes/ # Daily summaries
βββ config.py # API configuration
βββ requirements.txt
βββ .env # API keys (never commit!)
βββ PRODUCT_SPEC.md # Product vision & principles (NEW!)
βββ IMPLEMENTATION_ROADMAP.md # Development roadmap (NEW!)
βββ README.md
βββ start_notes.sh # Entry point
$ ./start_notes.sh
[AI] What are we learning today?
> Neural networks
[AI] Great! Tell me what you're learning...
> A neural network has layers - input, hidden, and output
> Each connection has a weight
> Training adjusts these weights using backpropagation
[AI] Anything else?
> done for the day
# System generates comprehensive learning guide automatically!Researcher mode activates automatically for academic content:
> I'm researching climate change impacts on agriculture
[AI] Detected research topic! Generating research assistance...
# You'll get:
- Literature review suggestions
- Research questions
- Methodology recommendations
- Key papers to read
- Hypothesis generation
- Theoretical framework
- Citation analysisWant to review notes without capturing new ones?
$ source venv/bin/activate
$ python scripts/interactive_note_system.py --consolidate machine-learningThe system supports multiple consolidation modes with powerful filtering and preview capabilities:
1. Topic-Dates Mode (Default) - Master a single topic:
# Consolidate all machine-learning notes
python scripts/interactive_note_system.py --consolidate machine-learning
# With date filtering
python scripts/interactive_note_system.py --topics pytorch --from-date 2024-11-01 --to-date 2024-11-30
# Output: topics/[topic]/learning-guide.md2. Date-Topics Mode (Daily Summary) - Review your day:
# Today's summary across all topics
python scripts/interactive_note_system.py --mode date-topics
# Specific date summary
python scripts/interactive_note_system.py --mode date-topics --date 2024-11-10
# Output: daily_notes/daily-summary-[date].md3. All Mode (Comprehensive Book) - Complete learning journey:
# Generate comprehensive book
python scripts/interactive_note_system.py --mode all
# With topic filtering
python scripts/interactive_note_system.py --mode all --topics ml,deep-learning,pytorch
# Exclude basics
python scripts/interactive_note_system.py --mode all --exclude-topics basics,intro
# Output: complete-learning-book.mdFuzzy Search - Type partial names to find topics:
# Type "web" finds: web-development, web-scraping, web-apis
python scripts/interactive_note_system.py --topics web
# The system will show matches and let you chooseInteractive Browser - Browse all topics with stats:
python scripts/interactive_note_system.py --select-topics
# Shows:
# 1. pytorch (12 notes, 2024-10-01 to 2024-11-10)
# 2. web-development ( 8 notes, 2024-09-15 to 2024-10-30)
# 3. machine-learning (15 notes, 2024-08-01 to 2024-11-05)Multiple Topics - Comma-separated list:
python scripts/interactive_note_system.py --topics pytorch,tensorflow,deep-learning# Notes from November only
python scripts/interactive_note_system.py --topics ml --from-date 2024-11-01 --to-date 2024-11-30
# Everything from October onwards
python scripts/interactive_note_system.py --mode all --from-date 2024-10-01
# Up to a specific date
python scripts/interactive_note_system.py --topics python --to-date 2024-10-31Finds similar notes using semantic similarity:
# Enable duplicate detection (default threshold: 0.7)
python scripts/interactive_note_system.py --mode all --detect-duplicates
# Adjust sensitivity (0.0-1.0, higher = more strict)
python scripts/interactive_note_system.py --mode all --detect-duplicates --duplicate-threshold 0.85
# Choose strategy
python scripts/interactive_note_system.py --mode all --detect-duplicates --duplicate-strategy mergeDuplicate Strategies:
prompt(default) - Ask what to do for each duplicatemerge- Auto-merge high similarity (>90%) noteslink- Add cross-references between similar noteskeep- Keep all duplicates (mark as reinforcement learning)
Interactive Resolution:
π Found potential duplicate (similarity: 87%)
Note 1: 2024-11-01 - "PyTorch basics: tensors, autograd"
Note 2: 2024-11-08 - "PyTorch fundamentals: tensor operations"
Actions:
[m] Merge - Combine both notes with versions
[l] Link - Add cross-references
[k] Keep - Mark as reinforcement (learning same concept)
[s] Skip - Ignore this duplicate
[v] View - See full comparison
[a] Auto - Auto-handle remaining
Choose action:
See what will be consolidated before generating:
python scripts/interactive_note_system.py --topics ml,pytorch --preview
# Shows:
# ================================================================================
# CONSOLIDATION PREVIEW
# ================================================================================
# Mode: topic-dates
#
# Topics (2):
# β’ machine-learning: 15 note(s)
# β’ pytorch: 12 note(s)
#
# Total notes: 27
# Date range: 2024-08-01 to 2024-11-10
# Sources: coursera, book-reading, youtube
#
# π Duplicate detection: ON (threshold: 0.7, strategy: prompt)
# ================================================================================
#
# Proceed with consolidation? [Y/n]:Track where notes came from:
# During interactive session
python scripts/interactive_note_system.py --source "Deep Learning Book Chapter 5"
# All notes in that session will be tagged with the source# BASIC OPTIONS
--consolidate TOPIC # Consolidate specific topic
--mode MODE # topic-dates|date-topics|all (default: topic-dates)
# TOPIC SELECTION
--topics TOPICS # Fuzzy search or comma-separated list
--exclude-topics TOPICS # Exclude specific topics
--select-topics # Interactive browser with fuzzy search
# DATE FILTERING
--date YYYY-MM-DD # Specific date (for date-topics mode)
--from-date YYYY-MM-DD # Start date (inclusive)
--to-date YYYY-MM-DD # End date (inclusive)
# DUPLICATE DETECTION
--detect-duplicates # Enable semantic duplicate detection
--duplicate-threshold FLOAT # Similarity threshold 0.0-1.0 (default: 0.7)
--duplicate-strategy STRATEGY # prompt|merge|link|keep (default: prompt)
# OTHER OPTIONS
--preview # Show statistics before consolidating
--source NAME # Track note source (e.g., "Course A", "Book: DL")
--help # Show complete help# Example 1: Deep dive into PyTorch from last month with duplicate detection
python scripts/interactive_note_system.py \
--topics pytorch \
--from-date 2024-10-01 \
--detect-duplicates \
--preview
# Example 2: Create ML book excluding beginner topics
python scripts/interactive_note_system.py \
--mode all \
--topics ml,deep-learning,neural-networks \
--exclude-topics basics,intro,101 \
--preview
# Example 3: Find all web-related topics and consolidate
python scripts/interactive_note_system.py --topics web --select-topics
# Example 4: Daily review with all enhancements
python scripts/interactive_note_system.py \
--mode date-topics \
--date 2024-11-11
# Example 5: Comprehensive book with smart duplicate handling
python scripts/interactive_note_system.py \
--mode all \
--detect-duplicates \
--duplicate-threshold 0.8 \
--duplicate-strategy prompt \
--preview| Mode | Scope | Output File | Best For |
|---|---|---|---|
| topic-dates | One topic, all dates | topics/[topic]/learning-guide.md |
Deep topic mastery |
| date-topics | One date, all topics | daily_notes/daily-summary-[date].md |
Daily review |
| all | All topics, all dates | complete-learning-book.md |
Comprehensive reference |
Edit .env:
# Use OpenAI (GPT-5-nano)
DEFAULT_LLM_PROVIDER=openai
# Use Claude
DEFAULT_LLM_PROVIDER=anthropic
# Use local Ollama
DEFAULT_LLM_PROVIDER=ollama
# Use Google Gemini
DEFAULT_LLM_PROVIDER=googleEdit .qwen/agents/learning-mentor.md to customize:
- Teaching style
- Explanation depth
- Focus areas
- Question complexity
Notes are organized as:
topics/
machine-learning/
2024-01-15.md
2024-01-16.md
learning-guide.md # Auto-generated guide
python-basics/
2024-01-15.md
learning-guide.md
daily_notes/ # Chronological backups
2024-01-15.md
- Check
.envfile exists and has correct keys - Verify no extra quotes around keys
- Try
echo $OPENAI_API_KEYto verify export
# Ensure virtual environment is activated
source venv/bin/activate
# Reinstall dependencies
pip install -r requirements.txt# Check Python version (needs 3.8+)
python --version
# Verify all modules present
ls utils/
# Should see: file_operations.py, learning_enhancements.py, researcher_mode.pyMermaid syntax is generated in markdown. To view:
- Open
.mdfiles in VS Code with Mermaid extension - Use GitHub (renders Mermaid natively)
- Use any Mermaid preview tool
- Slow responses: Try switching to
ollama(local) in.env - Token limits: Already removed! No restrictions on output length
- Large files: System handles this automatically with smart chunking
-
Install dependencies:
pip install -r requirements.txt
-
Configure API keys in
.env:OPENAI_API_KEY=your_key_here ANTHROPIC_API_KEY=your_key_here GOOGLE_API_KEY=your_key_here DEFAULT_LLM_PROVIDER=openai
-
Start the system:
./start_notes.sh
-
Take notes, say "done for the day" - watch the magic happen! β¨
The system implements evidence-based learning techniques:
- Active Recall (quiz questions) - 50% better retention
- Spaced Repetition (flashcards) - 200% improved long-term memory
- Visual Learning (diagrams) - 65% increased retention
- Elaborative Interrogation (concept linking)
- Dual Coding (text + visuals)
- Metacognition (tags and summaries)
When you finish a session, you get:
# Learning Guide: [Your Topic]
π TL;DR Summary (3-5 key points)
π Original Notes (as-is)
π Comments for Clarity (your annotations)
π·οΈ Key Concepts & Tags (auto-extracted)
π Visual Concept Map (Mermaid diagram)
π Related Concepts (connections to explore)
β Review Questions (active recall)
ποΈ Flashcards (spaced repetition)
π Recommended Resources (curated)
β¨ Additional Insights (structured guide)Run tests to verify everything works:
source venv/bin/activate
python tests/test_basic.pyOutput:
==================================================
β
All tests passed!
==================================================
The system is cleanly separated into modules:
- Clone or set up the project
- Install dependencies:
pip install -r requirements.txt
- Configure your API keys in the
.envfile
Edit the .env file to add your API keys:
# API Keys Configuration
OPENAI_API_KEY=your_openai_api_key_here
ANTHROPIC_API_KEY=your_anthropic_api_key_here
GOOGLE_API_KEY=your_google_api_key_here
OLLAMA_MODEL=llama2
# Default LLM provider (options: openai, anthropic, ollama, google)
DEFAULT_LLM_PROVIDER=openaiThe system provides a unified entry point with multiple usage modes:
./start_notes.shThis will present a menu with three options:
- Interactive Note-Taking System (Full Features): Full-featured note-taking with topic classification, comments, and consolidated guides
- Quick Notes with Learning Mentor: Simplified note-taking with immediate learning mentor guidance
- Learning Mentor Only: Standalone learning mentor functionality without note-taking
~/Projects/notes/
βββ scripts/
β βββ interactive_note_system.py # Main note-taking system with full features
βββ utils/
β βββ __init__.py # Package initialization
β βββ file_operations.py # Helper functions for file operations
βββ learning_mentor.py # Standalone learning mentor functionality
βββ quick_notes.py # Quick note-taking with learning mentor
βββ start_notes.sh # Main entry script with multiple options
βββ config.py # Configuration and API key management
βββ requirements.txt # Python dependencies
βββ .env # Environment variables (API keys)
βββ README.md # This file
βββ daily_notes/ # Daily consolidated notes
βββ topics/ # Topic-organized notes
βββ tests/ # Test files
β βββ __init__.py
β βββ test_main_system.py
β βββ test_learning_mentor.py
β βββ test_quick_notes.py
βββ docs/ # Documentation
βββ setup_guide.md
βββ usage_examples.md
scripts/interactive_note_system.py: Main note-taking system with full featureslearning_mentor.py: Standalone learning mentor functionalityquick_notes.py: Quick note-taking with learning mentorstart_notes.sh: Main entry script with multiple optionsutils/file_operations.py: Helper functions for file operations and error handling
In the interactive note-taking system:
- Type
done for the dayto consolidate notes and create a detailed guide - Type
add commentto add clarifying comments - Type
quitto exit without consolidation
In the quick notes system:
- Type
done for the dayto create a daily summary - Type
guidanceto get learning mentor advice on your last note - Type
quitto exit
- Explains concepts clearly and thoroughly
- Provides examples when helpful
- Suggests next steps for learning
- Answers questions in a helpful, encouraging manner
- Breaks down complex topics into manageable parts
- Suggests resources and practice exercises
- Creates structured study plans
- Provides learning summaries and key takeaways
- OpenAI: GPT-3.5, GPT-4, and newer models
- Anthropic: Claude models including Haiku, Sonnet, and Opus
- Ollama: Local models like Llama2, Mistral, etc.
- Google: Gemini models
The system automatically falls back to available providers if your preferred one is not configured.
The system follows a logical organization:
- Topics are separated into individual folders under
topics/ - Daily notes are stored with date-based filenames
- Comments and clarifications are stored separately to maintain clean notes
- Consolidated guides are generated for comprehensive review
The system includes comprehensive error handling:
- File operation errors are caught and reported
- API connection issues fall back to alternative providers
- Invalid inputs are handled gracefully
- Missing configuration values are managed appropriately
Run the test suite to verify system functionality:
# Run all tests
python -m pytest tests/
# Run specific test
python tests/test_main_system.py- Fork the repository
- Create a feature branch
- Add your enhancements
- Update tests as needed
- Submit a pull request
- Never commit your
.envfile to version control - Use appropriate access controls for your API keys
- Rotate keys regularly as per security best practices
- Consider using environment-specific configurations
- ModuleNotFoundError: Run
pip install -r requirements.txt - API Connection Issues: Verify your API keys in
.envare correct - Permission Errors: Ensure the
start_notes.shfile is executable withchmod +x start_notes.sh - File Access Issues: Check that the
topics/anddaily_notes/directories exist
- Use local models (Ollama) for faster responses without internet dependency
- Set appropriate temperature values based on your learning needs
- Organize your topics clearly for better note retrieval
- Regularly review consolidated guides for effective learning retention