
Sugar
io.github.cdnstevePublished by GitHub account cdnstevev3.4.2Updated Oct 24, 2026
Autonomous AI development system with persistent task queue and background execution
Overview
Sugar is a local-first memory layer for AI coding agents, letting an assistant store and semantically search project and global context over MCP.
- What you can do
- Search and recall memories across project and global stores, with scope labels and formatted markdown context for a topic (search_memory, recall). Store learnings mid-session, optionally to global scope for cross-project guidelines (store_learning). Read project summaries, coding preferences and global guidelines, and browse recent memories by type (get_project_context, list_recent_memories). Expose memory as MCP resources such as project context, preferences and global guidelines. An optional task server adds an autonomous task queue that executes work with a configured AI agent.
- When to use it
- Useful when an AI coding agent keeps losing architecture decisions, conventions and error patterns between sessions, and you want that context stored locally per project and shared across projects. Also relevant if you want an optional autonomous task queue or GitHub issue resolution on top of the same memory.
- Requirements
- Runs as a local process via the PyPI package sugarai (pipx or pip), requiring Python 3.11+ and a CLI-based AI agent such as Claude Code, OpenCode or Aider. Semantic search needs the optional memory extra; GitHub integration needs the github extra. Optional environment variables: ANTHROPIC_API_KEY, GITHUB_TOKEN and SUGAR_DEFAULT_REPO. Data is stored in SQLite under .sugar/ per project and ~/.sugar/ globally.
Installation
In SourceWeft
- Open Sugar in the dashboard and add it to a workspace.
- Enable the server for the chats that should use its tools.
Desktop only via STDIO. STDIO servers start a local process, so they need the SourceWeft desktop host.
Other MCP clients
Follow the launch instructions in the repository.
README
Sugar
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.
What Sugar Does
Sugar is a memory layer your AI coding agent can read and write directly:
- Project memory - Decisions, preferences, error patterns, and research stored per-project
- Global memory - Standards and guidelines shared across every project you work on
- Semantic search - Retrieve relevant context by meaning, not just keywords
- MCP integration - Your AI agent reads and writes memory directly during sessions
- Local-first - SQLite on your disk, no API keys, fully offline-capable
- Task queue - Optional autonomous execution, powered by the same memory layer
Quick Start
Your AI agent can also read and write memory directly - no copy-pasting required.
MCP Integration
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):
Skills
Sugar ships Agent Skills - folders of instructions that teach coding agents to apply Sugar's methodology. Skills live under skills/ and follow the Agent Skills specification (a SKILL.md with name/description frontmatter plus instructions).
Each skill includes an evaluation dataset (evals/evals.json) and is measured with NVIDIA SkillEvaluator against the OpenCode harness. See Skill Benchmarks for the Skill Lift results - sugar-memory and sugar-task-planner both show measured positive lift.
Global Memory
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
How Memory Works
Sugar uses two SQLite databases and a tiered search strategy.
Two stores:
- Project store (
.sugar/memory.db) - context specific to one project - Global store (
~/.sugar/memory.db) - knowledge that applies everywhere
Seven memory types, each with different retrieval behavior:
Search strategy - project-first with reserved guideline slots:
- Search the project store first (local context always wins)
- Reserve slots for global guidelines (cross-project standards always surface)
- Fill remaining slots with other global results
- Deduplicate across both stores
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:
MCP resources:
sugar://project/context- project summarysugar://preferences- coding preferencessugar://global/guidelines- cross-project standards
Task Queue
The 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
Autonomous Issue Resolution (optional)
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.
Supported AI Tools
Works with any CLI-based AI coding agent:
Installation
Recommended: pipx - installs once, available everywhere, no venv conflicts:
Upgrade / Uninstall:
Other installation methods
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.
Project Structure
Recommended .gitignore:
Commit .sugar/config.yaml and .sugar/prompts/ to share settings with your team.
Configuration
.sugar/config.yaml is created on sugar init:
Documentation
- Quick Start
- Memory System
- Skill Benchmarks
- CLI Reference
- Task Orchestration
- Goose Integration
- OpenCode Integration
- GitHub Integration
- Configuration Guide
- Troubleshooting
Requirements
- Python 3.11+
- A CLI-based AI agent: Claude Code, OpenCode, Aider, or similar
Contributing
Contributions welcome. See CONTRIBUTING.md.
License
Dual License: AGPL-3.0 + Commercial
- Open Source (AGPL-3.0): Free for open source and personal use
- Commercial License: For proprietary use - sugar.roboticforce.io/licensing
Sugar is provided "AS IS" without warranty. Review all AI-generated code before use.
Source: README.md at commit eade169
Tools
0Version history
1- v3.4.2LatestSep 16, 2026
Score
40% of the applicable checks met
How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.
- Reached in the last 30 days25 pts
Keep the endpoint answering the MCP handshake; SourceWeft probes it every 30 days.
- Auth declared10 pts
Declare the credential headers in the registry entry, or keep the endpoint answering the probe so its auth can be classified.
- Tools listed15 pts
Answer tools/list without a credential, or ship a package that starts in a sandbox without one.
- DescriptionRequired15 pts
- Logo10 pts
- Documentation15 pts
- License10 pts
Declare a license in the repository or the registry entry.