feat(dream): add unified self-improvement agent - #666
Open
xiami762 wants to merge 1 commit into
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
/dreamexecution and scheduled background execution through the same implementation.Key Changes
self-improveAgent with the standard Agent prompt-building flow and read, write, edit, search, Skill, and Bash capabilities./dreamcommand handling with visible progress, disabled-state, completion, no-change, and failure output in direct chat and WebUI flows.metadata.managed_by: flocks, with read-before-write and post-change validation.memory.dreamconfiguration with enablement, interval, and recent-Daily window settings.Impact Scope
/dreamruns self-improvement for the active Session and reports what changed; scheduled Dream can run in the background.memory.dream.enabled,interval_hours, andrecent_daily_days; Dream is enabled by default with a 24-hour interval.Business Logic to Review
NO_CHANGESbehavior./dreamstatus/output behavior versus silent scheduled execution.Why This Approach
Test Plan
uv run pytest tests/command/test_evolution_commands.py tests/memory/test_evolution.py tests/memory/test_evolution_agent_runner.py tests/sandbox/test_sandbox_file_tools.py tests/server/test_input_dispatcher.py tests/server/test_lifespan.py tests/session/test_lifecycle_hooks.py tests/session/test_prompt_tokens.py tests/session/test_status.py tests/skill/test_skill.py -q(190 passed)npm run test:run -- src/components/common/SessionChat.test.ts src/pages/Session/index.test.tsx(213 passed)npm run lintnpm run buildCompatibility, Migration & Rollback
memory.dream.enabledtofalseto stop manual and scheduled Dream execution without changing Memory files or Skills.