Skip to main content

Your personal developer memory CLI tool with AI

Project description

DevBrain 🧠

Your personal developer memory CLI tool with AI integration.

Never forget a fix, command, or solution again.


The Problem

Every developer faces this:

  • Fixed a bug last week but forgot exactly what you changed
  • Ran a perfect command 2 weeks ago but can't remember it
  • Spent 3 hours debugging something, next month same error appears

DevBrain solves this.


What It Does

DevBrain remembers your developer fixes, errors, commands and solutions. Ask AI questions about your own history.


Installation

pip install devbrain-cli

Setup

1 — Get Free Groq API Key

Go to console.groq.com Sign up free Click API Keys Create new key Copy it

2 — Set API Key

export GROQ_API_KEY="your-key-here"

To make it permanent:

open ~/.zshrc
# Add at bottom:
export GROQ_API_KEY="your-key-here"
source ~/.zshrc

Commands

# Save a memory
brain remember "JWT error fixed by changing secret in .env" --tag jwt

# List all memories
brain list

# Search memories
brain search docker

# Ask AI about your memories
brain ask "how did I fix the JWT issue?"

# Delete a memory
brain delete 1

Example

# Save a fix
brain remember "MongoDB connection refused fixed by whitelisting IP in Atlas" --tag mongodb

# Next month same error appears
brain ask "how did I fix mongodb connection?"

# DevBrain AI answers:
# You fixed MongoDB by whitelisting your IP
# address in the Atlas dashboard settings.

Tech Stack

  • Python
  • SQLite
  • Rich (terminal UI)
  • Groq AI (LLaMA 3)
  • argparse

Project Structure

devbrain/ │ ├── main.py ├── setup.py │ └── brain/ ├── ai.py ← Groq AI integration ├── cli.py ← Command line interface ├── commands.py ← Core commands ├── database.py ← SQLite database ├── logger.py ← Logging system ├── models.py ← Data models ├── search.py ← Fuzzy search └── utils.py ← Utilities


What You Will Learn Using This

  • Never repeat the same debugging twice
  • Build your personal knowledge base
  • Ask AI about your own history
  • Grow smarter every day

Author

Built by Suhail Ahmed GitHub: github.com/SuhailAhmed011


License

MIT License — free to use and modify.

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

devbrain_cli-1.0.2.tar.gz (9.2 kB view details)

Uploaded Source

Built Distribution

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

devbrain_cli-1.0.2-py3-none-any.whl (10.1 kB view details)

Uploaded Python 3

File details

Details for the file devbrain_cli-1.0.2.tar.gz.

File metadata

  • Download URL: devbrain_cli-1.0.2.tar.gz
  • Upload date:
  • Size: 9.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.4

File hashes

Hashes for devbrain_cli-1.0.2.tar.gz
Algorithm Hash digest
SHA256 c27b2ab0e63687ceec7fc049271edca37419c86d63d6f955da2ba8cac8db1100
MD5 28bec1b3767acc1f385ec36db8aedb80
BLAKE2b-256 884af802f25baee6e945c15a5e2c9f39b32cb303abc0927b3847e0bb20dced94

See more details on using hashes here.

File details

Details for the file devbrain_cli-1.0.2-py3-none-any.whl.

File metadata

  • Download URL: devbrain_cli-1.0.2-py3-none-any.whl
  • Upload date:
  • Size: 10.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.4

File hashes

Hashes for devbrain_cli-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 082d40b30fe3ee74a606d8bdf0a155bc574d23cfdf85bde1f162ef6e920f79e6
MD5 64f3fddb55b9a5011e3d114c45cf01d0
BLAKE2b-256 aff39625c33176857a1e27c252179596aaf4f72ba7135699d91b6bfc9bd0c8f2

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