简体中文

Idle memory review

SoloPup can review a selected project when DSH is idle. For example, you originally chose plain text for reports and later changed the format to PDF. By default, the report shows the two source messages and proposes a correction for you to verify.

Enable it in ordinary DSH

In 0.30, review and restricted automatic application are enabled by default; set dream.enabled to false to disable review. In a DSH host that supports plugin configuration, edit the memory entry in the current profile’s cordis.patch.yml. Replace the absolute path, provider and model with your own. Keep an existing autoCapture setting under the same config.

- id: memory
  config:
    dream:
      enabled: true
      projects:
        - /absolute/path/to/project
      provider: your-provider-id
      model: your-model-id

Defaults: check after 20 minutes of uninterrupted foreground idle time, with at most two model dispatches per day and a shared 12,000-token budget. Each run considers the current state and a bounded set of source excerpts for one selected project. Keep DSH running. Foreground activity interrupts a running background review; the next eligible idle window can be checked again.

Apply explicit corrections automatically

Add autoApply: true under dream and reload to apply eligible corrections across the listed projects. Omit it or use false for report-only mode. Set enabled: false to turn off review completely.

Send a separate correction that uniquely identifies a current project value. Quote the full before and after sentences, changing exactly one value and repeating the surrounding scope, conditions and exceptions:

Correction: “Formal delivery template version is V1” -> “Formal delivery template version is V2”

Auto-application is project-scoped and preserves sources. Ambiguous evidence, multiple matches, ongoing discussion or instructions not to save are left for the report.

Candidate detection recognizes explicit replacements of languages, versions, numbers and formats; eligibility is narrower than detection. Automatic writes require DSH to observe the correction in the current process and still be able to confirm the original session and latest project user activity. Reopened sessions or compacted excerpts can support reports. Auto-apply can also fold identical index lines in the same section while preserving records and references.

Read and verify reports

In a new session in the project, ask for the latest Dream report. memory_dream_report rechecks the sources and hides proposals or excerpts it can no longer verify, including withdrawn or superseded sources. For a manual review request, quote one exact current rule:

Correction: “Deliver reports as plain text”: use PDF for reports from now on.

If a long message includes discussion, put one explicitly marked correction in its own final paragraph, after a blank line. Include the conditions in that paragraph. The paragraph limit is 500 characters and the original message limit is 64 KiB. Otherwise send the correction separately.

After compaction, the host checkpoint can lead back to the exact original; the summary is not itself evidence. For enabled projects, a save can keep up to 12 explicit corrections per session under local memory.dream/replay, bound to the saved revision. Above 256 KiB, only the cache and revision are checked. If an oversized prior chat has no matching cache, the report marks the evidence unverified; send a fresh explicit correction if needed. Withdrawal prevents future citation, but local cached fragments can remain until overwritten or manually cleaned. Binding a draft and heading

From the installed plugin directory, use node scripts/dream-review.mjs status for status or node scripts/dream-review.mjs reports for report IDs. CLI show can verify only sources the local store can check; view original DSH conversation excerpts from that project’s DSH session. To turn off automatic review, set enabled: false and reload.

An interrupted dispatch with no confirmed model result is uncertain. To continue with other batches, use node scripts/dream-review.mjs abandon RUN_ID if you decide to abandon it. Its reserved budget remains charged and the batch is not retried. This does not cancel a provider request; check the provider receipt.

Withdraw an automatically applied correction

New reports say whether a correction was applied or only reviewed and why, if not applied. Older reports without a saved reason do not infer one. Ask for a read-only withdrawal preview in the project session. It rechecks source and scope and shows affected counts for the current project. Actual withdrawal may affect other managed stores; verify the full scope first.

From the installed plugin directory, preview with the report’s session and message IDs:

node scripts/candidates.mjs withdraw-managed-source --cwd /absolute/path/to/project --session SESSION_ID --message MESSAGE_ID

After reviewing the effects, rerun with the same arguments plus --apply --control-review HASH, using the preview’s controlReview. Withdrawal removes memories dependent on that source. To restore an earlier rule, explicitly record it again.

Experimental Super Agent mode

The isolated worker on macOS is limited to DSH 0.2.2-rc.1 or 0.2.2-rc.3 and prototype commit 8c32a9dc5d72c033816c6a8110b37f40cf94fba4. The worker runs the same review; SoloPup owns queue, evidence rules and reports. The host holds the model connection; the worker receives only task inputs and necessary runtime files.

Check out the Super Agent prototype at that commit. Run pnpm install --frozen-lockfile --ignore-scripts there. From the SoloPup directory run node scripts/dream-companion-build.mjs /absolute/path/to/dsh-superagent-prototype. Record the bundle path and SHA-256, then add the following entry to the same profile, substituting your paths and hash:

- insert:
    - id: solopup-dream-companion
      name: file:///absolute/path/to/solopup-memory/scripts/dream-companion-plugin.mjs
      config:
        dshCli: /absolute/path/to/dsh
        prototypeBundle: /absolute/path/to/solopup-dream-prototype.mjs
        prototypeBundleSha256: replace-with-the-build-sha256
        stateDir: /absolute/path/to/solopup-dream-companion-state

Reload DSH. In the plugin directory run node scripts/dream-review.mjs mode superagent. An active job finishes before the next uses the new mode. Use node scripts/dream-review.mjs mode ordinary to switch back. Both modes share reports, queue and budget. Before uninstalling the companion, switch to ordinary and check status. If the selected experimental service becomes unavailable, status reports it; restore the service or explicitly switch back.