Skip to content

Release v3.6.0#60

Merged
cdnsteve merged 10 commits intomainfrom
develop
Jan 21, 2026
Merged

Release v3.6.0#60
cdnsteve merged 10 commits intomainfrom
develop

Conversation

@cdnsteve
Copy link
Member

Release v3.6.0

Highlights

This release introduces native AI agent integrations, making Sugar the autonomous layer for AI coding assistants.

New Features

OpenCode Integration

  • Bidirectional communication with OpenCode via HTTP API
  • Task notifications in OpenCode TUI (start, complete, fail)
  • Memory injection into OpenCode sessions
  • Learning capture from OpenCode sessions
  • CLI commands: sugar opencode status/test/notify

Claude Code Integration Improvements

  • MCP Task Server for queue management from Claude Code
  • Enhanced memory context injection
  • Full MCP tools: sugar_add_task, sugar_list_tasks, sugar_view_task, sugar_update_task, sugar_remove_task, sugar_task_status

Memory System Enhancements

  • Token savings documentation (89% reduction demonstrated)
  • Improved FTS5 search for stemming and multi-word queries
  • Token savings demo script

Bug Fixes

  • Fix task priority ordering - urgent tasks now processed first
  • Fix FTS5 memory search for better query matching

Documentation

  • Added OpenCode integration guide (docs/user/opencode.md)
  • Updated README with AI agent integration comparison table
  • Added token savings documentation for memory system

Dependencies

  • Added aiohttp>=3.9.0 as optional dependency for OpenCode

Testing

  • 901 tests passing
  • 47 new tests for OpenCode integration
  • 41 tests for MCP Task Server

Install/Upgrade

pip install --upgrade sugarai

# With all integrations
pip install --upgrade 'sugarai[all]'

# With specific integration
pip install --upgrade 'sugarai[opencode]'

Implements full OpenCode integration as designed in the research phases:

Phase 1 - MCP Task Server:
- New sugar/mcp/task_server.py with 6 MCP tools for task management
- Tools: sugar_add_task, sugar_list_tasks, sugar_view_task, etc.
- CLI command: sugar mcp tasks

Phase 2 - TypeScript OpenCode Plugin:
- New packages/opencode-plugin/ with tools, hooks, and slash commands
- 8 custom tools for Sugar task management
- Session lifecycle hooks for memory injection

Phase 3 - Python SDK Integration:
- New sugar/integrations/opencode/ module
- OpenCodeClient for HTTP communication with aiohttp
- OpenCodeConfig with env and sugar.yaml support
- Data models: Session, Message, Event, NotificationLevel

Phase 4 - Memory Context Injection:
- ContextInjector with multi-factor relevance scoring
- LearningCapture for extracting learnings from sessions
- Token budget management (2000 session, 800 prompt, 300 error)

Execution Integration:
- OpenCodeNotifier for fire-and-forget task notifications
- Integrated into AgentSDKExecutor for task lifecycle events
- Non-blocking notifications on start, complete, and fail

CLI Commands:
- sugar opencode status - Check integration status
- sugar opencode test - Test server connection
- sugar opencode notify - Send test notification

Tests: 86 new tests (41 MCP + 45 OpenCode integration)
- Add Native AI Agent Integrations section at top
- Add OpenCode Integration section with setup instructions
- Update Features section to highlight integrations
- Add tagline for v3.5 milestone release
feat: Add OpenCode integration for bidirectional AI agent communication
Start development cycle for v3.6.0 with new features:
- Native Claude Code integration
- Native OpenCode integration
- MCP Task Server for queue management
@cdnsteve cdnsteve merged commit ce0d108 into main Jan 21, 2026
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant