AGENTS / GITHUB / memo-brain
githubinferredactive

memo-brain

provenance:github:Zoranner/memo-brain

Long-term memory for AI coding assistants. Rust CLI with semantic search, Agent Skill integration, and local deployment.

View Source ↗First seen 2mo agoNot yet hireable
README
# 🧠 Memo - Long-Term Memory for Your AI Coding Assistant

> Help AI remember every conversation and accumulate development experience

[中文](docs/zh-CN/README.md) | English

---

## 💡 Why Memo?

- 💬 **AI keeps forgetting** - Explained a solution 3 days ago, have to explain again today
- 🔄 **Solving same problems** - Fixed a bug last week, similar one today, AI doesn't remember
- 📚 **Knowledge doesn't stick** - Every conversation is "one-off", valuable experience lost
- 🤝 **Team knowledge silos** - Everyone uses AI separately, can't share experience

---

## ⚡ Core Capabilities

| Capability | Description |
|------------|-------------|
| 🤖 **Auto Recording** | Say "remember this" in conversation, AI automatically saves to knowledge base |
| 🔍 **Multi-Query Search** | LLM decomposes your question into sub-queries, searches in parallel, and synthesizes a comprehensive answer |
| ⏰ **Time Travel** | Quickly find development experience from "last week" or "last month" |
| 👥 **Team Collaboration** | Personal knowledge base or project-level sharing, flexible choice |
| 🔐 **Data Security** | Memory data stored entirely locally, fully under your control |
| 🌐 **Flexible Options** | Supports OpenAI, Ollama local, Aliyun, ZhipuAI, and any OpenAI-compatible service |

## 🚀 Quick Start

### Step 1: One-Click Install

**Windows (PowerShell):**
```powershell
irm https://memo.zoran.ink/install.ps1 | iex
```

**macOS/Linux:**
```bash
curl -fsSL https://memo.zoran.ink/install.sh | bash
```

### Step 2: Start Using

After installation, start using it directly in your AI coding tool:

```
You: Database connection keeps timing out, how to fix it?

AI: [Auto searches memory] memo search "database connection timeout" -n 5
    [No memories found]
    
    Database timeouts are usually caused by connection pool settings...
    Check max_connections, timeout parameters, etc.

You: Tried that, didn't work. Turns out the server firewall was blocking the port.
    Had to open port 3306 in Alibaba Cloud security group settings.

AI: Ah, that's an easy-to-miss issue! Let me record this:
    
    [Auto records] memo embed "Database Connection Timeout - Cloud Firewall Issue
    
    Problem: Database connection keeps timing out
    Cause: Cloud server doesn't open database port by default
    Solution: Login to cloud console → Security groups → Add rule → Open port 3306
    Note: Also check server's local firewall" --tags database,cloud,troubleshooting
    
    ✓ Recorded to memory

---

[Two weeks later, different project]

You: Can't connect to MySQL on the new project?

AI: [Auto searches memory] memo search "mysql connection" -n 5
    [Memory found]
    
    Had a similar issue before! If it's a cloud server, check security group settings:
    Login to cloud console → Security groups → Add rule → Open port 3306
    Also check the server's local firewall settings
```

## ⚙️ Configuration

### Config File Locations

- **Global config**: `~/.memo/config.toml` (recommended)
- **Local config**: `./.memo/config.toml` (project-specific)
- **Providers config**: `~/.memo/providers.toml` (API keys and service settings)

### Priority Order

Command-line args > Local config > Global config > Defaults

### Quick Setup

1. Copy example files:
```bash
cp providers.example.toml ~/.memo/providers.toml
cp config.example.toml ~/.memo/config.toml
```

2. Edit `~/.memo/providers.toml` with your API keys

3. Edit `~/.memo/config.toml` to select your preferred services

### Configuration Parameters

| Parameter | Required | Description | Default |
|-----------|:--------:|-------------|---------|
| `embedding` | ✅ | Embedding service reference (e.g., `aliyun.embed`) | - |
| `rerank` | ✅ | Rerank service reference (e.g., `aliyun.rerank`) | - |
| `llm` | ✅ | LLM service reference for query decomposition & summarization (e.g., `aliyun.llm`) | - |
| `search_limit` | ❌ | Maximum search results | `10` |
| `similarity_threshold` | ❌ | Search similarity threshold (0-1) | `0.35` |
| `duplicate_threshold` | ❌ | Duplicate detection threshold (0-1) | `0.85` |
| `[decomposition]` | ❌ | Query decomposition: currently only `max_total_leaves` (cap on leaf sub-queries used for search) | built-in defaults |
| `[multi_query]` | ❌ | Search & merge config: `candidates_per_query`, `top_n_per_leaf`, `min_per_leaf`, `max_total_results` | built-in defaults |
| `[prompts]` | ❌ | Custom LLM strategy prompts: `decompose`, `summarize` (strategy content only, not full prompt) | built-in 5D strategy |

---

## 📖 More Information

- [Command Reference](docs/COMMANDS.md) - Detailed documentation for all commands
- [AI Agent Skill](skills/memo-brain/en-US/SKILL.md) - AI coding assistant integration guide
- `config.example.toml` - Main configuration example
- `providers.example.toml` - Provider configuration example
- `memo <command> --help` - Command-specific help

---

## 📜 License

GPL-3.0

Copyright (c) 2026 Zoranner. All rights reserved.

PUBLIC HISTORY

First discoveredMar 21, 2026

IDENTITY

inferred

Identity inferred from code signals. No PROVENANCE.yml found.

Is this yours? Claim it →

METADATA

platformgithub
first seenJan 25, 2026
last updatedMar 20, 2026
last crawledtoday
version

README BADGE

Add to your README:

![Provenance](https://getprovenance.dev/api/badge?id=provenance:github:Zoranner/memo-brain)