* feat(agent): unify persistent sessions and native fork settings
* fix(agent): preserve continuation and rejected session settings
* feat(event_stream): add bounded durable event streams
* fix(agent): preserve session guards and execution policies
* Revert "fix(agent): preserve session guards and execution policies"
This reverts commit 02188565dc.
* refactor(agent)!: unify file-native proactive runtimes
Coordinate named cron and event agents through an application-owned runtime,
with per-agent memory, native session registries and Markdown reminders.
Initialize Chat and task memories once under reme_agents and remove the old
PA delivery APIs and duplicated session state.
Serialize temporary query ownership with collection, recover incomplete
session-registry appends, and migrate benchmark plugins to public file helpers.
Split model providers into registered modules without changing their behavior.
* feat(proactive): add speech and scheduled observation collectors
Add DashScope ASR/TTS components, restart-safe finance collectors and
five-minute screenshot/Codex dialogue observations with bilingual docs.
Use response receipt time for stock freshness and recover interrupted
work-observation cleanup without replaying committed dialogue.
* refactor(core)!: unify execution cleanup and remove legacy contracts
Track queued Agent operations through shutdown and deletion, keep retry
backoff bounded, and reuse the local process runner for Shell steps.
Reject BASE registrations and remove duplicate config/path helpers.
BREAKING CHANGE: plugin discovery requires package-only entry points
and plugin.yaml; FileLink.predicate and the dream.ProactiveResult alias
are removed. Rebuild old derived graph indexes from workspace notes.
* feat(agent)!: add desktop workspace and isolated inbox delivery
* chore(desktop): remove one-click restart launcher
* fix(agent): guard session content and persist incremental display history
* test(home): verify host network isolation across platforms
* refactor(agent)!: unify durable inbox components
* docs: illustrate personal and proactive agent runtimes
* Refactor agent streaming and durable reminder delivery
Project formal turns through one ordered transcript, with live snapshots until native history catches up. Render localized activity groups, stable Markdown blocks and paged conversation history.
Bound proactive batches and preserve retries, persist reminder links before delivery, and synchronize explicit user-read receipts across sessions. Remove the obsolete desktop receipt format.
* Align desktop streaming activity with Codex
Keep assistant progress in the conversation and fold reasoning into activity details. Normalize native command actions into file, directory, search and command summaries with localized disclosure and explicit completion.
Match user bubbles and activity styling while preserving streaming anchors, links and expansion state.
* docs: explain proactive agents and personal runtime
* Align proactive runtime settings and documentation
* Unify agent runtime APIs and resource collection
* Deduplicate proactive observations and respect market sessions
* Refine proactive sessions and screenshot filtering
* Add desktop background transparency and tab transitions
* Tighten observation validation and task prompts
* Align streaming tool display with canonical item snapshots
* Unify Agent identity, task memory, and session workflows
Use agent_name and agent_type across the runtime, APIs, collectors and Desktop.
Initialize task_memory into MEMORY.md and return memory paths for native edits.
Keep task questions in read-only forks and automatic runs in validated file stages.
Document current behavior and cover default conversation rendering and SDK forks.
* Unify active sessions and task files; remove prompt wording tests
* Refine proactive jobs and fix coverage reporting
* Remove unused desktop artifacts and protocol probe
* Simplify proactive runs and commit validated artifacts after model failures
* Allow daily summaries for new records without reminders
* refactor(proactive): improve proactive and cron agent prompts and workflow steps
- Update cron agent description to emphasize recording what happened and reporting results
- Change sleep reminder rule to be specifically tagged for proactive agent
- Rename query fields to proactive_query for clarity
- Streamline and clarify proactive agent workflow steps in English and Chinese versions
- Enhance task analysis and reminder decision logic with clearer instructions
- Revise today's summary update format and examples with time stamps and consistent headings
- Provide separate detailed steps for cron agent execution and reporting
- Ensure reminder generation logic is more precise and avoid assumptions about user knowledge
* Add notebook and task management with resilient agent cleanup
* Improve search accounting and desktop conversation controls
* Guard conversation reset against endpoint changes
* refactor(proactive): simplify session options and improve markdown link warnings
- Remove unused failure status detection and associated UI styling in activity component
- Simplify session_options method by removing unnecessary parameters and excessive prompt formatting
- Enhance _query method to handle task content and event inputs conditionally based on agent type
- Add static method to extract and decode markdown links ignoring code blocks
- Introduce _warn_local_links to log warnings on broken local links without failing artifact validation
- Integrate local link warnings into artifact reading flow for proactive and cron agents
- Modify tests to reflect session_options signature changes and verify local link warning behavior
- Ensure TASK.md is non-empty before task execution, enforcing content validation
- Refactor CSS to remove deprecated broken activity state styles
- Improve test coverage with parameterized tests for broken local link warnings under various scenarios
* fix(agent): preserve user edits and recover durable commits
* fix(agent): guard outbox writes and defer full inbox delivery
* fix(agent): preserve reminder eligibility and serialize lifecycle transitions
* Simplify proactive task storage and desktop protocol
* Make proactive timeline limits configurable
* test(proactive): remove prompt checks and redundant cases
* Unify proactive task APIs and documentation
* fix(proactive): preserve incomplete triggers and skip oversized reminders
* fix(proactive): preserve queued trigger types across task updates
* docs(proactive): improve instructions for recording scheduled task results
- Clarify steps to follow after completing the scheduled task work
- Specify writing `action: write` in frontmatter when overwriting the record file
- Simplify description of what to include in the record body
- Emphasize using only necessary tools for the task and writing the record
- Align English and Chinese instructions for consistency
* fix(proactive): keep scheduled time and bypass event cooldown for cron
6.3 KiB
| title | description |
|---|---|
| Diagnostics, Backup, and Recovery | ReMe health checks, logs, index maintenance, workspace backup, migration, and recovery. |
Diagnostics, Backup, and Recovery
ReMe recovery protects user-owned workspace files and rebuilds catalogs, indexes, and graphs from those sources. Never delete or rewrite user memory merely to repair derived state.
Quick diagnosis
These commands inspect a running service. For a new deployment, first start it as shown in Quick Start. From another terminal, run these in order:
reme find_reme
reme version
reme health_check
reme status
reme app_config
find_remeconfirms the actual host, port, and PID;versionverifies that the CLI reaches the service;health_checkreports component health;statusestimates stateful component memory and process RSS;app_configreturns the effective configuration with secrets redacted.
Job execution status
Query the running service from another terminal:
reme job_status
reme job_status name=dream_cron limit=10
reme job_status status=running
Results map Job names to execution lists, newest first, with at most limit records per Job (default 20).
Each record includes an application-local id, UTC started_at/finished_at, status, a bounded error summary,
step_path, step_started_at, and failed_step. Status is running, succeeded, failed, stopped (cooperative
background shutdown), or cancelled. A failed response also records a failure even when no exception was raised.
Terminal ERROR chunks also mark a run as failed; notifications with will_retry=true remain recoverable.
Completed records clear the active step path; failures retain the innermost failed step path.
Background Jobs record each body invocation, including supervisor restarts. Cron Jobs record each nonempty init_steps
execution and each scheduled trigger separately; waiting for a schedule does not create an execution. A tracked Job
that has not run returns an empty list. Watcher Jobs remain
running while waiting for changes; a path such as ["watch_changes_step", "update_index_step"] shows an active handler
and returns to ["watch_changes_step"] afterward. Step paths describe invocation boundaries, not progress inside a Step.
Executor-backed Jobs finish their records when the worker body exits, even if the outer Future was cancelled earlier.
Background/cron tracking is on by default; base/stream tracking is opt-in through jobs.<name>.track_execution.
The job_status query itself is untracked by default. Records contain no request payloads or full responses, live only
in application memory, and retain the latest 100 completed executions per Job by default. Configure
job_history_limit to change that limit; active executions are always retained.
The Python evaluation helper check_job_count(name, app.context) reports cumulative starts, including failed and
cancelled calls. Its count is independent of execution tracking, query filters, and history retention.
Logs and common symptoms
log_to_console and log_to_file control logging. For startup failures, inspect the first exception rather than later client connection errors.
| Symptom | Check first |
|---|---|
| CLI cannot find ReMe | reme find_reme, process state, startup directory, and port |
| Automatic memory fails | LLM backend, model, API key, and base URL |
| Search is BM25-only | Whether an embedding store is connected to file_store |
| New files are absent | Directory, extension, watcher, and health_check |
| Studio fails but API works | Installed web extra, static path, and browser console |
| Installed plugin is unavailable | Python interpreter, plugins configuration, and service restart |
Index maintenance
reme reindex scope=all
reme reindex scope=bm25
reme reindex scope=embedding
reindex rebuilds BM25 and/or embedding indexes from the current file_chunks. It does not scan the workspace, rechunk files, or rebuild the wikilink graph. Diagnose the watcher first when ingestion is the problem.
When a ReMe upgrade or chunker configuration change alters chunking behavior, existing chunks do not refresh automatically. To apply the new behavior, follow Recover derived state.
Rebuild a daily index page separately:
reme daily_reindex date=2026-09-04
Backup
Stop writes or stop the service, then back up the complete workspace. The most important sources are:
session/for conversation sources;resource/for external resources;daily/for daily memory;digest/for consolidated memory.
metadata/ contains indexes, graphs, and catalogs. Backing it up accelerates restoration, but it is not the sole source of truth.
Use an explicit, stable absolute workspace_dir for durable deployments rather than relying on an incidental .reme/ under the current directory.
Migrate a workspace
- Stop the old service to prevent writes during the copy.
- Copy the complete workspace while preserving timestamps.
- Start with the new absolute path:
reme start workspace_dir=/new/location/reme-memory
- Run
health_check,status, and a representativesearch. - Rebuild embeddings if their model or dimensions changed.
Do not push a workspace containing private conversations to a public repository.
Recover derived state
Do not remove anything until a backup exists. Then:
- preserve
session/,resource/,daily/, anddigest/; - record the effective configuration and component backends;
- verify that the failure is limited to
metadata/; - stop the service, so shutdown persistence cannot write the old in-memory state back over the cleanup;
- move only the affected store's derived state to an isolated backup location, preserving unrelated catalogs;
- restart with the same configuration and let watchers rebuild the files in their configured watch scope;
- validate search, graph traversal, and daily indexes.
The internal layout of metadata files is not a public automation contract.
Concurrent editing
When Studio or an editor saves a complete file, pass the mtime from stat as save.expected_mtime. A save then fails if another actor changed the file after it was opened, avoiding silent overwrites.
File Jobs enforce workspace containment and per-path locking. Do not bypass them to write arbitrary absolute paths.