Autonomous AI development system with persistent task queue and background execution
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent β or use 1-click editor setup below.
π‘ Paste the JSON block into your client's configuration file under mcpServers, then restart the application.
Persistent memory for AI coding agents.
Your AI agent starts every session with amnesia. The architecture decisions, conventions, and gotchas you explained last week are gone. Sugar is the local-first memory layer that remembers them for you - per project, across projects, on your machine.
Your memory. Your machine. Your data.
Sugar is a memory layer your AI coding agent can read and write directly:
Your AI agent can also read and write memory directly - no copy-pasting required.
Connect Sugar's memory to your AI agent so it can access project context automatically.
Claude Code - Memory server (primary):
Claude Code - Task server (optional):
Once connected, Claude can call store_learning to save context mid-session and search_memories to pull relevant knowledge before starting work. The memory server works from any directory - global memory is always available even outside a Sugar project.
Other MCP clients (Goose, Claude Desktop):
Some knowledge belongs to you, not just one project. Coding standards, preferred patterns, security practices - these should follow you everywhere.
Global memory lives at ~/.sugar/memory.db. Project memory lives at .sugar/memory.db. When you search, project context wins - but guideline type memories from global always appear in results so your standards stay visible.
Via MCP, pass scope: "global" to store_learning to save cross-project knowledge directly from your AI session.
Memory types: decision, preference, file_context, error_pattern, research, outcome, guideline
Full docs: Memory System Guide
Sugar uses two SQLite databases and a tiered search strategy.
Two stores:
.sugar/memory.db) - context specific to one project~/.sugar/memory.db) - knowledge that applies everywhereSeven memory types, each with different retrieval behavior:
| Type | Purpose | TTL |
|---|---|---|
decision | Architecture and implementation choices | Never |
preference | How you like things done | Never |
file_context | What files and modules do | Never |
error_pattern | Bugs and their fixes | 90 days |
research | API docs, library findings | 60 days |
outcome | What worked, what didn't | 30 days |
guideline | Cross-project standards and best practices | Never |
Search strategy - project-first with reserved guideline slots:
This means a mature project's local context dominates results. A new project with no local memory gets global knowledge automatically. And your guidelines are always visible regardless.
Search engine: Semantic search via sentence-transformers (all-MiniLM-L6-v2, 384-dim vectors) with sqlite-vec. Falls back to SQLite FTS5 keyword search, then LIKE queries. No external API calls - everything runs locally.
MCP tools available to your AI agent:
| Tool | What it does |
|---|---|
search_memory | Search both stores, returns results with scope labels |
store_learning | Save a memory (pass scope: "global" for cross-project) |
recall | Get formatted markdown context for a topic |
get_project_context | Full project summary including global guidelines |
list_recent_memories | Browse recent memories by type |
MCP resources:
sugar://project/context - project summarysugar://preferences - coding preferencessugar://global/guidelines - cross-project standardsThe task queue lets you hand off work and let it run autonomously. It reads from the same memory store, so Sugar already knows your preferences and patterns before it starts.
Sugar picks up tasks, executes them with your configured AI agent, runs tests, commits working code, and moves to the next task. It runs until the queue is empty or you stop it.
Delegate from Claude Code mid-session:
Advanced task options: New in 3.10: Task Orchestration decomposes large features into a 4-stage workflow (research, plan, implement, review) with specialist agent routing and dependency-ordered sub-tasks.
Full docs: Task Orchestration
Because Sugar remembers your codebase and conventions, it can also resolve routine issues
autonomously. Point it at a GitHub repo, configure which labels to act on
(security, bug, dependabot), and Sugar will read each issue, implement the fix, run your
tests, and open a PR.
This is one application of the memory layer, not the headline. Use Sugar purely as memory, or enable resolution - your choice. See workflow examples for security auto-fix, bug triage, test coverage, and more.
Works with any CLI-based AI coding agent:
| Agent | Memory MCP | Task MCP | Notes |
|---|---|---|---|
| Claude Code | Yes | Yes | Full support |
| OpenCode | Yes | Yes | sugar opencode setup |
| Goose | Yes | Yes | Via MCP |
| Aider | Via CLI | Via CLI | Manual recall |
Recommended: pipx - installs once, available everywhere, no venv conflicts:
Upgrade / Uninstall:
pip (requires venv activation each session)
uv
With semantic search (recommended for memory):
With GitHub integration:
All features:
Sugar is project-local by default. Each project gets its own .sugar/ folder with its own database and config. Global memory lives at ~/.sugar/. Like git - one installation, per-project state.
Recommended .gitignore:
Commit .sugar/config.yaml and .sugar/prompts/ to share settings with your team.
.sugar/config.yaml is created on sugar init:
No reviews yet β be the first to share how this listing worked for you.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/sugar)<a href="https://allmcps.com/mcp/sugar"><img src="https://allmcps.com/api/badge/sugar?style=directory" alt="Sugar on AllMCPs" /></a>