Metadata-Version: 2.4
Name: devbrain-cli
Version: 1.0.2
Summary: Your personal developer memory CLI tool with AI
Home-page: https://github.com/SuhailAhmed011
Author: Suhail Ahmed
Author-email: suhailquazi08@gail.com
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.8
Description-Content-Type: text/markdown
Requires-Dist: rich
Requires-Dist: groq
Dynamic: author
Dynamic: author-email
Dynamic: classifier
Dynamic: description
Dynamic: description-content-type
Dynamic: home-page
Dynamic: requires-dist
Dynamic: requires-python
Dynamic: summary

# 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

```bash
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

```bash
export GROQ_API_KEY="your-key-here"
```

To make it permanent:

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

---

## Commands

```bash
# 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

```bash
# 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.
