AI-powered development context tracker - never lose your train of thought
Project description
๐ง Brainet
Never lose your train of thought again.
Brainet is an AI-powered development context tracker that automatically captures what you're working on, why you're working on it, and what's next. Think of it as a second brain for your coding sessions.
๐ค The Problem
You're deep in the zone, building a feature. Then...
- ๐ง An urgent email arrives
- ๐ฅ A production bug needs fixing
- โ You take a break
- ๐ It's Friday, you'll continue Monday
Monday morning: "Wait... what was I doing? Why did I change this file? What was the plan?"
You spend 30 minutes scrolling through git commits, reading code, trying to remember. Your flow state? Gone.
โจ The Solution
Brainet captures your coding sessions automatically and uses AI to create human-readable summaries:
$ brainet capture
๐ธ Context Captured
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
Implemented VIP tier system with 5 levels (Bronze to Diamond),
automatic tier upgrades based on wagering, and bonus multipliers
from 1.0x to 1.25x. Added daily deposit and loss limits for
responsible gambling features.
๐ Stats:
โข 3 files modified
โข 147 lines added
โข 5 TODOs found
โ Capsule saved: 2025-10-31 16:45:23
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
Now when you come back, just run brainet history and instantly remember everything.
๐ Quick Start
Installation
pip install brainet
Setup
# 1. Get a free API key from Groq (takes 30 seconds)
# https://console.groq.com/keys
# 2. Set your API key
export GROQ_API_KEY="your_key_here"
# 3. Start tracking in your project
cd your-project/
brainet start
# 4. Work on your code...
# (make changes, commit, etc.)
# 5. Capture your session
brainet capture
That's it! Brainet is now tracking your development context.
๐ก Key Features
๐ค AI-Powered Summaries
Brainet uses Claude Sonnet 3.5 (via Groq) to understand your changes and generate intelligent summaries. It knows the difference between:
- Major features vs minor refactors
- Bug fixes vs new functionality
- Breaking changes vs safe updates
๐ Natural Language Querying
Ask questions about your work in plain English:
$ brainet ask "what VIP tiers did I create?"
You created 5 VIP tiers: Bronze, Silver, Gold, Platinum, and
Diamond. Each tier has different bonus multipliers ranging from
1.0x to 1.25x based on wagering volume...
๐ข Multi-Project Support
Working on multiple projects? Brainet handles it seamlessly:
$ brainet workspaces
๐ Active Brainet Sessions (3):
โโโโโโโโโโโโโโโโณโโโโโโโโโโโโโโโโโโโโโโโโโณโโโโโโโโโโโ
โ Project โ Location โ Capsules โ
โกโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฉ
โ api-backend โ ~/projects/api โ 12 โ
โ frontend-app โ ~/projects/frontend โ 8 โ
โ mobile-app โ ~/projects/mobile โ 5 โ
โโโโโโโโโโโโโโโโดโโโโโโโโโโโโโโโโโโโโโโโโโดโโโโโโโโโโโ
๐ Note: The
workspacescommand scans these directories for brainet projects:
~/Desktop- For desktop projects~/Documents- For document-based work~/Projects- For dedicated project foldersKeep your projects in these locations for automatic discovery!
๐ Cross-Project Search
Find where you implemented that feature across all your projects:
$ brainet search "authentication" --all-projects
๐ Found in 3 projects:
โข api-backend: JWT authentication with refresh tokens
โข frontend-app: Google OAuth integration
โข mobile-app: Biometric authentication added
๐ Development Analytics
Understand your coding patterns:
$ brainet stats
๐ Development Insights
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
Sessions: 47
Files modified: 234
Most active file: auth.py (23 changes)
Top tags: feature, bugfix, refactor
Recent activity:
โข 15 sessions this week
โข Peak productivity: Tuesday afternoons
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
๐ Commands
| Command | Description |
|---|---|
brainet start |
Initialize tracking in current project |
brainet capture |
Save current session with AI summary |
brainet history |
View all captured sessions |
brainet ask "question" |
Query your work with AI |
brainet search "keyword" |
Search across sessions |
brainet workspaces |
List all tracked projects |
brainet stats |
View development analytics |
brainet export |
Export sessions to Markdown |
brainet diff <file> |
View colorized file changes |
brainet switch |
Quick navigation between projects |
Run brainet --help for full command list.
๐ฏ Real-World Use Cases
1. Context Switching
Switch between tasks without losing context:
# Working on Feature A
brainet capture --tag feature-a
# Emergency bug fix needed
brainet pause
cd ~/other-project
brainet start
# Fix bug...
brainet capture --tag hotfix
# Back to Feature A
cd ~/original-project
brainet resume # Instantly recall where you left off
2. Code Reviews
Generate PR descriptions automatically:
brainet export --since yesterday
# Copy the AI-generated summary into your PR
3. Weekly Standups
"What did I work on this week?"
brainet history --since "1 week ago"
# See all your accomplishments summarized
4. Knowledge Transfer
Onboarding a teammate:
brainet export --tag authentication > auth_work.md
# Share the complete history of authentication feature
๐ ๏ธ How It Works
- File Watching - Tracks changes in your git repository
- Git Integration - Captures commits, diffs, and file changes
- TODO Extraction - Finds TODO comments automatically
- AI Analysis - Claude Sonnet 3.5 generates intelligent summaries
- Local Storage - Everything saved locally in
.brainet/folder
Privacy First: All your data stays on your machine. AI summaries are generated via API but your code never leaves your control.
๐ง Configuration
API Keys
Brainet supports two AI providers:
Groq (Recommended) - Free, fast, 500+ tokens/sec
export GROQ_API_KEY="your_key_here"
Anthropic Claude - More powerful, requires paid account
export ANTHROPIC_API_KEY="your_key_here"
Advanced Options
# Capture with custom tags
brainet capture --tag feature --tag auth -m "Added JWT support"
# Export filtered sessions
brainet export --tag bugfix --since "2024-10-01"
# Search in current project only
brainet search "payment integration"
# Clean up old sessions
brainet cleanup --days 90
๐ Best Practices
- Capture Often - At least once per coding session
- Use Tags - Organize with
--tag feature,--tag bugfix, etc. - Add Messages - Use
-mfor important context - Regular Cleanup - Run
brainet cleanupmonthly - Export Important Work - Save milestones to Markdown
- Organize Projects - Keep projects in
~/Desktop,~/Documents, or~/Projectsfor theworkspacescommand to find them automatically
๐ค Contributing
Brainet is open source! Contributions welcome:
- Fork the repository
- Create your feature branch (
git checkout -b feature/amazing) - Commit your changes (
git commit -m 'Add amazing feature') - Push to the branch (
git push origin feature/amazing) - Open a Pull Request
๐ License
MIT License - see LICENSE file for details.
๐ Acknowledgments
- Built with Anthropic Claude
- Powered by Groq for fast AI inference
- Uses Rich for beautiful terminal output
- Created for developers, by developers
๐ฌ Support
- Issues: GitHub Issues
- Discussions: GitHub Discussions
- Email: meet@brainet.dev
Stop losing context. Start using Brainet.
Made with โค๏ธ for developers who value flow state
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file brainet-0.1.3.tar.gz.
File metadata
- Download URL: brainet-0.1.3.tar.gz
- Upload date:
- Size: 61.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c422ebfc9e4c3a960b250a3c34219e511473f2ca10fe6974580202af94787e56
|
|
| MD5 |
5c76046af4465355011f63baf02342ec
|
|
| BLAKE2b-256 |
c211391b6eb18d518670818cdabeb8abf6937f22d3d1893340ff16b524a77ad4
|
File details
Details for the file brainet-0.1.3-py3-none-any.whl.
File metadata
- Download URL: brainet-0.1.3-py3-none-any.whl
- Upload date:
- Size: 56.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e80ea5989a88ba47b09cab42245e2173a906a0494dc74e183fd6195ec77c591e
|
|
| MD5 |
a9a7945968929cf2350ad54d6a1a3a6f
|
|
| BLAKE2b-256 |
0881c5667b8bb93c00866996165f52255ed6de04149180b37d67599957f0cb24
|