Skip to main content

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.

PyPI Python License


๐Ÿค” 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 workspaces command scans these directories for brainet projects:

  • ~/Desktop - For desktop projects
  • ~/Documents - For document-based work
  • ~/Projects - For dedicated project folders

Keep 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

  1. File Watching - Tracks changes in your git repository
  2. Git Integration - Captures commits, diffs, and file changes
  3. TODO Extraction - Finds TODO comments automatically
  4. AI Analysis - Claude Sonnet 3.5 generates intelligent summaries
  5. 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

  1. Capture Often - At least once per coding session
  2. Use Tags - Organize with --tag feature, --tag bugfix, etc.
  3. Add Messages - Use -m for important context
  4. Regular Cleanup - Run brainet cleanup monthly
  5. Export Important Work - Save milestones to Markdown
  6. Organize Projects - Keep projects in ~/Desktop, ~/Documents, or ~/Projects for the workspaces command to find them automatically

๐Ÿค Contributing

Brainet is open source! Contributions welcome:

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/amazing)
  3. Commit your changes (git commit -m 'Add amazing feature')
  4. Push to the branch (git push origin feature/amazing)
  5. 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


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

brainet-0.1.3.tar.gz (61.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

brainet-0.1.3-py3-none-any.whl (56.0 kB view details)

Uploaded Python 3

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

Hashes for brainet-0.1.3.tar.gz
Algorithm Hash digest
SHA256 c422ebfc9e4c3a960b250a3c34219e511473f2ca10fe6974580202af94787e56
MD5 5c76046af4465355011f63baf02342ec
BLAKE2b-256 c211391b6eb18d518670818cdabeb8abf6937f22d3d1893340ff16b524a77ad4

See more details on using hashes here.

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

Hashes for brainet-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 e80ea5989a88ba47b09cab42245e2173a906a0494dc74e183fd6195ec77c591e
MD5 a9a7945968929cf2350ad54d6a1a3a6f
BLAKE2b-256 0881c5667b8bb93c00866996165f52255ed6de04149180b37d67599957f0cb24

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page