sugar
by roboticforce·★ 75·Score 46
Sugar provides persistent memory for AI coding agents with MCP integration for cross-session context and task automation.
Overview
Sugar is a sophisticated memory system for AI coding agents that combines persistent storage with autonomous task execution. It operates through MCP servers that expose tools for searching and storing memories, as well as executing tasks autonomously. The system uses a dual-database approach (project-specific and global) with semantic search capabilities to provide relevant context to AI agents across sessions. This enables AI assistants to remember project-specific decisions, preferences, and error patterns while also accessing cross-project guidelines and best practices.
Try asking AI
After installing, here are 5 things you can ask your AI assistant:
When to choose this
Choose Sugar when you need persistent memory across AI coding sessions and want to automate GitHub issue resolution while maintaining coding consistency across projects.
When NOT to choose this
Don't choose Sugar if you need a commercial license for proprietary use, as the AGPL-3.0 license requires source code disclosure for modifications.
Tools this server exposes
5 tools extracted from the READMEsearch_memorySearch both memory stores, returns results with scope labels
store_learningSave a memory (pass scope: 'global' for cross-project)
recallGet formatted markdown context for a topic
get_project_contextFull project summary including global guidelines
list_recent_memoriesBrowse recent memories by type
Comparable tools
Installation
# Recommended installation with pipx
pipx install sugarai
# With semantic search (recommended)
pipx install 'sugarai[memory]'
# With GitHub integration
pipx install 'sugarai[github]'
# Setup for Claude Code
claude mcp add sugar -- sugar mcp memory
claude mcp add sugar-tasks -- sugar mcp tasksConfiguration file: .sugar/config.yaml
FAQ
- What memory types does Sugar support?
- Sugar supports seven memory types: decision, preference, file_context, error_pattern, research, outcome, and guideline. Each has different TTL and retrieval behavior.
- How does Sugar handle both project-specific and global memory?
- Sugar uses two SQLite databases: one project-specific (.sugar/memory.db) and one global (~/.sugar/memory.db). Search is project-first but always includes global guidelines.
On Hacker News
Recent discussion from the developer community.
- Story by cdnsteve · 2026-03-17
- Story by cdnsteve · 2026-02-27
Compare sugar with
Last updated · Auto-generated from public README + GitHub signals.