Skip to content

feat: AutoDream simple offline memory consolidation agent#131

Open
CMander02 wants to merge 1 commit into
Mirix-AI:mainfrom
CMander02:feat/auto-dream-simple
Open

feat: AutoDream simple offline memory consolidation agent#131
CMander02 wants to merge 1 commit into
Mirix-AI:mainfrom
CMander02:feat/auto-dream-simple

Conversation

@CMander02
Copy link
Copy Markdown
Collaborator

Summary

  • Adds a lightweight AutoDream v1 pipeline for offline memory consolidation
  • AutoDreamAgent: consolidates memories across a configurable time window by removing redundancies and resolving conflicts
  • AutoDreamManager: resolves the working time window (default: last dream → now), fetches memories per type, drives the agent via step(), and writes an episodic checkpoint
  • POST /memory/auto_dream REST endpoint with dry_run support
  • client.auto_dream() method for programmatic access
  • auto_dream_agent registered in AgentType enum, agent_configs, MemoryAgentStates, meta_agent, and server dispatch

New files

File Purpose
mirix/agent/auto_dream_agent.py Agent class
mirix/services/auto_dream_manager.py Manager / orchestration logic
mirix/schemas/auto_dream.py Request / response schemas
mirix/prompts/system/base/auto_dream_agent.txt System prompt (base)
mirix/prompts/system/screen_monitor/auto_dream_agent.txt System prompt (screen monitor variant)

Modified files

mirix/schemas/agent.py · mirix/agent/agent_configs.py · mirix/agent/__init__.py · mirix/agent/meta_agent.py · mirix/server/server.py · mirix/server/rest_api.py · mirix/client/remote_client.py

Test plan

  • Start server and call POST /memory/auto_dream with dry_run: true — verify stats returned without changes
  • Call without dry_run — verify memories are consolidated and checkpoint episodic event is written
  • Confirm auto_dream_agent sub-agent is created under the meta agent on first call

🤖 Generated with Claude Code

Introduces the v1 AutoDream pipeline for offline memory consolidation:
- AutoDreamAgent: consolidates memories by removing redundancies and resolving conflicts
- AutoDreamManager: resolves time window, fetches memories, runs agent, writes checkpoint
- POST /memory/auto_dream endpoint with dry-run support
- client.auto_dream() method for programmatic access
- auto_dream_agent registered in AgentType enum, agent configs, meta_agent, server dispatch
- Separate system prompts for base and screen_monitor variants

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@CLAassistant
Copy link
Copy Markdown

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.


zychen seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.
You have signed the CLA already but the status is still pending? Let us recheck it.

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.

2 participants