Configuration Reference
Configuration Location and Activation
The configuration is the mnemon entry of the DSH profile. DSH's settings service writes user values into the profile patch:
$DSH_HOME/profiles/<profile>/cordis.patch.ymlThe Web profile's patch is commonly ~/.dsh/profiles/web/cordis.patch.yml. A settings.yaml left by an older host is imported into the profile once and kept as settings.yaml.imported; see Settings from older hosts. All current settings are marked live; after a change is applied, the Host initializes a candidate runtime graph and then switches to it atomically.
A turn in progress keeps the runtime graph it started with. A subagent already dispatched keeps its delegated graph until its activation is disposed, even after the parent turn ends; later parent turns and newly delegated activations use the new generation. Saving settings never silently widens the Recall authority of a task already running.
As DSH does for every plugin that carries its own configuration, the Web interface edits Mnemon's settings on its page under Plugins, not in Settings. The UI guide shows each part.
| Where in the UI | Settings | Saved as |
|---|---|---|
| Memory composition | Main strategy; one switch per memory source and enhancement; each component's declared options | memoryView.strategyTypeId and memoryView.entries.<entry>.config; each component's on/off is its Entry's disabled row, written by DSH's plugin manager |
| Memory writes | Confirm memory tool writes | confirmWrites |
| Task Agent | Task Agent model | taskAgentModel |
| Storage | Storage scope, data directory, excluded workspaces, backup and migration; the Git sync switch | storageScope, dataDir, excludedWorkspaces, syncEnabled |
| Interface | Memory System opens in, turn memory bar, save to memory | displayMode, conversationInteraction.turnBar, conversationInteraction.saveAction |
| Runtime memory's page | User profile scope; capacity limits and maintenance budget | runtimeUserScope, runtimeMemory |
| Project Documents' page | Active capacity limit | documents.limitBytes |
| Memory Spaces' page | Memory providers, Mnemon Native embedding, Space policy, and recall/timeout parameters | The Provider registry in state/memory-providers.json; embedding, persistenceStrategy, defaultRecallLimit, recallQuality, timeoutMs |
| Layered strategy's page | Synchronized Task Agent model view; idle review | taskAgentModel; idleReview |
| Skills' page | Self-evolution, default models, skill directories, market sources, review parameters, the conversation line, the sidebar entry | skills and skills/preferences.json; see Skills settings |
Switches and selectors apply at once; typed values such as the storage directory, the embedding connection, review limits and component options wait for Apply. A Provider's reusable service fields (endpoints, credentials, executables) live in the Provider registry, not in Mnemon's YAML; enabling or saving a Provider discovers its namespaces into Memory Spaces → Overview, and turning it off removes only those local mappings. Other advanced settings are edited in YAML.
OpenViking user keys without admin access can opt into one-owner discovery using the service field discoveryUser together with endpoint, apiKey, and account. Leave it empty to retain admin enumeration. These service fields stay in the Memory Spaces provider registry; they are not new top-level Mnemon YAML settings. See OpenViking setup and compatibility.
Complete Example
mnemon:
storageScope: global # global | workspace | custom | workspaces
runtimeUserScope: storage # storage | global
excludedWorkspaces: [] # Optional existing absolute workspace paths; ~ is supported
# dataDir: ~/mnemon-data # required for custom
# cliPath: /opt/homebrew/bin/mnemon
# store: legacy-store # compatibility discovery hint, not a regular routing target
timeoutMs: 10000
defaultRecallLimit: 10
runtimeMemory:
inheritToSubagents: false
memoryLimitBytes: 10240
userLimitBytes: 4096
maintenanceMaxTokens: 8192
embedding:
enabled: false
endpoint: http://localhost:11434
model: nomic-embed-text
memoryTopology:
layers:
runtime: { enabled: true }
documents: { enabled: true }
memory-spaces: { enabled: true }
recallQuality:
policy: strict-v1
lowScoreThreshold: 0.25
highScoreThreshold: 0.6
candidateMultiplier: 3
maxMediumResults: 4
maxRankedResults: 4
maxUnknownResults: 2
routingGuidance: true
lifecycleEnabled: true
recallMode: guided
writebackMode: guided
idleReviewMs: 30000
idleReview:
persistWatermark: false
enabled: true
runtimeMemory: true # false: Documents only
provider: spawn
fallback: spawn
agentTeams: pause # pause | scoped
minIntervalMs: 300000
maxPerSession: 20
maxContextChars: 24000
maxTokens: 16384
tabEnabled: true
writeEnabled: true
confirmWrites: false
taskAgentModel:
mode: inherit # inherit | fixed
# followConversation: true # with inherit: Follow the conversation
# provider: deepseek # required for fixed
# model: deepseek-chat # required for fixed
remoteAccess: read-only # remote management: read-only | trusted-hostOptions
| Setting | Default | Range | Implementation Semantics |
|---|---|---|---|
storageScope |
global |
global / workspace / custom / workspaces |
Controls the root for Runtime, Documents, Memory Spaces, and reserved state as one unit |
runtimeUserScope |
storage |
storage / global |
Keeps USER.md in the selected storage root, or overlays the global USER.md while project MEMORY.md and the other layers stay selected-scope |
documentsScope |
storage |
storage / global |
Keeps Project Documents in the selected storage root, or shares the global Project Documents library across workspaces |
memorySpacesScope |
storage |
storage / global |
Keeps Memory Spaces and Provider connections in the selected storage root, or shares the global Memory Spaces store across workspaces |
excludedWorkspaces |
[] |
List of existing absolute directory paths | Opts specific workspaces and their children out of memory without deleting data |
dataDir |
unset | absolute path, ~, or ~/... |
Required for custom; optional central root for workspaces; legacy configurations that set only this option automatically resolve to custom |
cliPath |
auto-discovered | executable path | Explicitly selects the Mnemon CLI |
store |
unset | [A-Za-z0-9][A-Za-z0-9_-]* |
Compatibility discovery/preference hint for legacy Stores; semantic operations are routed through Memory Spaces |
timeoutMs |
10000 |
100–120000 ms | Hard timeout for a single CLI call |
defaultRecallLimit |
10 |
1–50 | Default recall count for the service and UI; individual entry points may impose a lower limit |
runtimeMemory.memoryLimitBytes |
10240 |
1–1048576 bytes | UTF-8 byte limit for the complete MEMORY.md projection |
runtimeMemory.userLimitBytes |
4096 |
1–1048576 bytes | UTF-8 byte limit for the complete USER.md projection |
runtimeMemory.bm25Recall |
false |
boolean | Experimental automatic matching of working memories and project Document titles in Layered conversations |
runtimeMemory.indexPush |
false |
boolean | Experimental first-step index push for Memory Space names/descriptions and Project Document summaries in Layered conversations |
runtimeMemory.maintenanceMaxTokens |
8192 |
128–131072 tokens | Completion-token budget for Runtime migration and compaction workers; does not change Document archive or metadata-maintenance budgets |
documents.limitBytes |
10485760 |
1–104857600 bytes | Total UTF-8 byte limit for active Project Documents copies (default 10 MiB) |
embedding |
{ enabled: false, endpoint: http://localhost:11434, model: nomic-embed-text, apiKey: '', protocol: auto } |
enabled + HTTP(S) endpoint + model + optional apiKey + protocol (auto/ollama/openai) | When enabled, the Host injects the saved endpoint, model, API key, and protocol override into every Mnemon CLI child process; an endpoint ending in /v1 makes Mnemon use the OpenAI-compatible protocol with the API key as a Bearer token, and protocol: openai forces it for non-/v1 endpoints; when disabled, existing Host environment and Mnemon defaults remain untouched |
memoryTopology.layers.<id>.enabled |
true for the three defaults |
boolean | Legacy layer flag. A Source's switch on the board turns its DSH Entry on or off and turns this flag back on with it; the flag is used when the components cannot be read. Turning a Source off never deletes or migrates data |
memoryTopology.layers.<id>.participation |
per layer | off / manual / automatic for recall, write, projection, maintenance |
How a layer takes part in each kind of work under the Layered strategy |
memoryView.strategyTypeId |
unset | Strategy type id, for example default-three-tier or general |
The selected main strategy, written by the Main strategy selector; overrides memoryTopology.strategyId |
memoryView.entries.<entry>.config |
{} |
the options a component declares | Options saved from a component's page. On/off is not stored here: DSH's plugin manager writes it as the Entry's disabled row in the profile patch, and earlier saved choices are moved there once |
persistenceStrategy |
{ mode: manual } |
manual / automatic, providerId, prompt, rules |
Provider for new spaces: when a task Agent creates a Memory Space, one fixed Provider, or smart selection with allowed Providers, data boundary, required capabilities and preference; existing spaces are still chosen by name and description |
recallQuality.policy |
strict-v1 |
registered policy id | Deterministic policy applied before recall content is serialized to an Agent or client |
recallQuality.lowScoreThreshold |
0.25 |
0–1, below high threshold | Normalized scores below this boundary are removed by strict-v1 |
recallQuality.highScoreThreshold |
0.6 |
0–1, above low threshold | Retained normalized scores at or above this boundary are labeled high relevance |
recallQuality.candidateMultiplier |
3 |
1–5 | Expands each Provider request before filtering, capped by the service limit of 50 candidates |
recallQuality.maxMediumResults |
4 |
0–50 | Maximum medium-relevance rows admitted by strict-v1 after all high-relevance rows |
recallQuality.maxRankedResults |
4 |
0–50 | Maximum Provider-ranked rows without calibrated confidence admitted by strict-v1; interleaved with medium rows by rank |
recallQuality.maxUnknownResults |
2 |
0–50 | Maximum unscored or undeclared-scale rows admitted by strict-v1 after scored evidence |
routingGuidance |
true |
boolean | Whether to register an additional tiered-routing system section |
lifecycleEnabled |
true |
boolean | Whether to enable the pre-step cue and score-based idle review |
recallMode |
guided |
guided / off |
Whether to inject one durable on-demand recall cue per session; does not remove explicit recall |
writebackMode |
guided |
guided / off |
Whether to inject one durable runtime-memory cue per session and enable scored, dirty-admitted idle review; does not remove explicit writes |
idleReviewMs |
30000 |
5000–600000 ms | Required continuous idle time after the threshold is reached |
idleReview.enabled |
true |
boolean | Independent automatic-review switch |
idleReview.runtimeMemory |
true |
boolean | Lets review change runtime memory (USER.md and MEMORY.md); false limits it to creating Documents |
idleReview.silent |
true |
boolean | Hide automatic spawn review sessions from the reviewed conversation |
idleReview.persistWatermark |
false |
boolean | Retain attempt quota and cooling time for the same persisted parent session in its runtime storage root |
idleReview.provider |
spawn |
spawn / fork |
Bounded checkpoint or inherited parent context |
idleReview.fallback |
spawn |
spawn / skip |
Missing/incompatible fork handling before startup only |
idleReview.agentTeams |
pause |
pause / scoped |
Pause while Team tools are installed or explicitly allow guarded review; verified with each supported DSH and its official Teams |
idleReview.minIntervalMs |
300000 |
5000–86400000 ms | Minimum interval between attempts |
idleReview.maxPerSession |
20 |
0–200 | Attempt cap per loaded parent Agent, or persisted parent session when opted in; includes failures/cancellations |
idleReview.maxContextChars |
24000 |
1000–1000000 | Spawn checkpoint character limit |
idleReview.maxTokens |
16384 |
128–131072 | Per-response model output limit |
displayMode |
sidebar |
sidebar / builtin; legacy buildin accepted |
Where the Memory System opens: standalone Sidebar or a conversation tab using the same workspace UI; legacy spelling is migrated to builtin |
tabEnabled |
true |
boolean | Whether to mount the selected entry and workbench; Host RPC, commands, and Agent tools remain registered when off |
writeEnabled |
true |
boolean | Whether to expose semantic write tools, write RPC, and write commands |
confirmWrites |
false |
boolean | Requests DSH approval for each model-facing Mnemon write tool and pauses idle memory review while enabled |
syncEnabled |
false |
boolean | Whether this installation syncs to a Git repository at all. Off by default, and off is silent: the Storage row is a title and a switch, no status is read and no Git command runs. Repository, branch, directory, commit identity, token and automatic sync interval (autoBackupMinutes) stay in state/sync-git.json, never here |
taskAgentModel |
{ mode: inherit } |
inherit / fixed; followConversation: boolean |
Model route for independent task Agents and the idle review worker: inherit (Follow global), inherit with followConversation: true (Follow the conversation), or fixed (Custom) with both provider and model. See Background Task Agent Model Route |
subagentProviderNames |
[] |
Up to 32 nonempty names, 128 characters each | Extra subagent-provider candidates when the Host has no enumeration and a custom plugin hides its name in code. Set in the Mnemon plugin configuration; all isolation checks still apply. Standard providerName configurations are discovered automatically. |
remoteAccess |
read-only |
read-only / trusted-host |
Startup-only grant for non-loopback Mnemon management, enforced by the API Gateway projection |
conversationInteraction.turnBar |
true |
boolean | The turn memory bar under replies; applies at once |
conversationInteraction.saveAction |
true |
boolean | The Save to memory action and confirmation on finished replies; applies at once |
skills |
see Skills settings | the keys listed there | Skills' self-evolution, its review parameters, the conversation line and the sidebar entry; applies live; changing linked-update permission refreshes the Source runtime |
Every value is saved under the mnemon entry and applies live. The UI's mnemon-ui settings scope is stored as conversationInteraction, its mnemon-view scope as memoryView, and its mnemon-skills scope as skills. The storage root switches atomically only after the new runtime graph initializes successfully.
Git sync's default author follows the Host's Git identity as resolved in state/sync/git; a custom author in state/sync-git.json overrides it. The legacy placeholder pair also follows Git, with the placeholder used only for unconfigured fields. See Git repository sync for precedence and recovery after an author rejection.
Confirm model memory writes
Enable Plugins → dsh-mnemon → Memory writes → Confirm memory tool writes, or set mnemon.confirmWrites: true. It is off by default. Every model-facing Mnemon write tool, including mnemon_view_action and calls nested inside PTC, requests DSH approval before its handler runs. Approval applies to that single tool operation; its normal capacity-maintenance workflow remains part of the operation. Existing permission denials and read-only restrictions still apply. Rejection, cancellation, a missing approval channel or DSH's never approval policy prevents the write without an automatic retry.
The preference is read at dispatch, including for existing Views and children. It does not revoke a write already approved or running. Idle memory review pauses while confirmation is required, with the reason shown in the Memory System; turning the setting off permits later eligible turns to schedule review again. Read tools and explicitly initiated management operations keep their existing behavior. This setting covers Mnemon memory tools, not Shell/filesystem writes, manual edits, Git synchronization or separately configured skill automation; those keep their own permissions and confirmations.
No memory data is migrated or deleted. Disable the switch or remove the field to restore the existing workflow.
Subagent Runtime inheritance
In Plugins → dsh-mnemon → Runtime memory, Automatically share Runtime memory with subagents controls automatic injection of the user profile and working memory. It is off by default, including for existing configurations without this field. Enable it with the switch or runtimeMemory.inheritToSubagents: true.
The setting applies to newly created subagents. Each child captures the current choice at dispatch and keeps it across live settings changes, alongside its delegated memory View. When enabled, the captured Runtime projection is appended once per accepted turn, including native and PTC tool modes; later tool steps do not append another copy or rewrite the request prefix. The setting filters Runtime projections from all Runtime Source instances only. Parent task context, explicit memory-tool access, other Source projections and required background maintenance inputs retain their existing behavior. It does not remove content already included in a task or its conversation history.
Deferred low-priority Runtime entries
The Read low-priority memory on demand switch on Runtime memory's settings page sets runtimeMemory.deferLowPriority. It is off by default. When enabled, unpinned entries explicitly marked low stay out of the eager prompt; normal, critical and pinned entries retain their usual projection. A short count points the model to a bounded Runtime search Route, which can read the full entry and metadata from that turn's snapshot. Literal query, target, limit and offset support precise retrieval and browsing. Search respects the same Source, workspace, shared USER scope and Git branch as the projection.
This changes prompt delivery only: files, capacity accounting, management lists, writes and backups stay complete. No text classifier changes importance or deletes entries. Disable the switch to restore full projection on subsequent turns. Explicitly recalled content follows ordinary conversation-history retention. Standalone Runtime Sources use deferLowPriority: true in their own configuration; custom Strategies must retain the offered search Route to make deferred details accessible.
Experimental working-memory search
Search working memory on demand (experimental) in the Runtime Memory settings controls runtimeMemory.bm25Recall. At the first step of a Layered conversation turn, a local BM25 search uses the new user text and the current View's authorized Sources. It ranks individual MEMORY.md entries and active Project Document titles separately. Up to three entries and two titles share a 1,600-character result budget. Titles link to Document IDs for follow-up search. A turn without a usable match adds no search result. The user profile and pinned entries supply the fixed Runtime context, and the scoped Runtime search Route lets the model look up missing entries before editing memory.
An already delivered item is kept in the conversation without adding another copy. A correction or deletion marks an earlier reference as expired. After a successful DSH compaction, the next accepted step retires remaining raw blocks that contain obsolete matches. Scope or participation changes retire earlier results before the next model request. Disabling the option returns to eager Runtime projection. This setting affects model delivery in the main conversation. Files and explicit Source tools retain their normal formats and authority.
Push Memory Space and Document indexes (experimental) controls runtimeMemory.indexPush (default false). When enabled in a Layered conversation, step 1 runs the same local BM25 matcher over active authorized Memory Space names and descriptions (memoryBodyId) as well as active Project Document titles and descriptions or short excerpts (documentId), appending a bounded index block (at most 5 entries and 1,600 characters combined, or omitted when nothing matches) without fetching remote space content or full document bodies. It reuses the same per-session deduplication, edit/delete invalidation, append-only prefix preservation, compaction exclusion, and post-compaction View revalidation as runtimeMemory.bm25Recall, and can be enabled independently or together with it.
Opt-in snapshot compaction
The optional dsh-mnemon/compaction backend is off by default. To enable it for one Agent preset, edit the existing compaction-basic entry within that preset's compaction group and set its name to dsh-mnemon/compaction. Keep the entry ID and any existing config fields. The group uses one backend for both automatic compaction and /compact.
For example, dsh --profile web --dump-config shows the effective Web presets. When configuring a built-in preset through a profile patch, copy that preset's full config and keep the other plugins in its list.
- id: compaction-basic
name: dsh-mnemon/compactionUse the updated Starter and Runtime Source together. DSH loads the Basic compaction package from its own installation when the backend is selected. The opt-in path is verified on DSH 0.2.2-rc.2 and 0.2.2-rc.4. Restore name: '@deepseek-ai/dsh-compaction-basic' in that preset to return to the standard behavior.
Ordinary Runtime corrections and removals append an authoritative snapshot for the next turn, including an empty projection after the last entry is removed. Earlier requests keep their prefix. The history retains the old text until DSH compacts the session. Authority or visibility changes still retire affected snapshots before the next applicable request. The four-snapshot and 64 KiB limits apply to the default policy.
When both this backend and experimental BM25 search are enabled, compaction excludes Runtime snapshot text and BM25 quotations from its summary input. The next request revalidates any retained references against the current View and can recall current hits. Ordinary corrections and deletions still append at the end of the request; loss of read authority retires the affected blocks before the request is sent.
Runtime Memory budgets
In Plugins → dsh-mnemon → Runtime memory → Capacity limits, set the user-profile and working-memory limits in bytes, then choose Apply. Each accepts an integer from 1 to 1048576; Discard changes restores the saved values. The defaults remain 4096 bytes (4 KiB) and 10240 bytes (10 KiB). This form preserves the separate maintenance-token budget.
Long conversations can raise the two runtime memory byte limits and the bounded migration/compaction worker budget without patching generated package files:
mnemon:
runtimeMemory:
memoryLimitBytes: 20480
userLimitBytes: 10240
maintenanceMaxTokens: 32768The defaults preserve the released 10240 / 4096 / 8192 behavior. Saving the block builds a new runtime generation, so subsequent Runtime reads, writes, capacity maintenance, and Mnemon Pack validation use the same limits. Existing entries and the memories.json format are unchanged. Lowering a byte limit below current usage does not delete data; the Runtime view reports the over-capacity state and further writes require compaction or a higher limit. Rollback only requires removing the block or restoring the defaults.
Storage byte limits count entry content and delimiters. The model snapshot's importance and age annotations do not consume storage capacity; they do consume the Strategy's existing projection character budget. They add no ranking, relevance filter or separate configuration.
Automatic Runtime Actions, including idle review, can retain or raise an existing entry's importance but cannot lower it. Capacity planning and compaction preserve the same rule. A replacement receipt says when the original importance was retained. Explicit edits on the Runtime memory page can still lower importance. Existing saved entries are not reclassified.
The Runtime memory page shows each file's size against its limit.

Mnemon Native embeddings
Finder- and Dock-launched macOS applications do not normally inherit interactive shell startup files. Enable Manage embedding settings in DSH under Mnemon Native to make the saved values authoritative for every Mnemon child process instead:
mnemon:
embedding:
enabled: true
endpoint: http://127.0.0.1:11434
model: qwen3-embedding:0.6bFor an OpenAI-compatible server, point the endpoint at its /v1 base URL; Mnemon automatically switches from the Ollama protocol to the OpenAI protocol (/v1/embeddings). Fill in apiKey for services that require authentication; it is sent as a Bearer token. For compatible endpoints that do not end in /v1, set the protocol explicitly with protocol: openai:
mnemon:
embedding:
enabled: true
endpoint: http://127.0.0.1:8080/api
model: bge-m3-mlx-8bit
apiKey: sk-...
protocol: openaiThe Host copies its normal process environment and then overwrites MNEMON_EMBED_ENDPOINT, MNEMON_EMBED_MODEL, MNEMON_EMBED_API_KEY, and MNEMON_EMBED_PROTOCOL for the child only (protocol: auto injects no protocol variable and leaves Mnemon's /v1 auto-detection in charge). It does not modify the desktop session, launchctl, shell files, or Mnemon's persisted data. Saving swaps to a new runtime graph, so later calls use the new values without restarting DSH. With enabled: false or an omitted embedding block, dsh-mnemon supplies no override: inherited variables and Mnemon's built-in defaults keep their previous behavior. MNEMON_EMBED_DIMENSIONS remains an advanced inherited environment setting.
The endpoint must be an absolute HTTP(S) URL without credentials, query parameters, or a fragment. Mnemon sends memory and query text to this service; the API key is stored in the DSH settings file like other settings, and a remote plain-HTTP endpoint exposes that text in transit, so use a trusted loopback endpoint or HTTPS. Test status requires Mnemon CLI 0.2.13 or newer and runs the effective mnemon embed --status command for every existing Mnemon Native Store. It reports whether the selected model produced a nonempty synthetic probe vector, the resolved protocol when reported, and stored-vector coverage without backfilling or changing memories. Older or unrecognized CLI versions get an upgrade instruction instead of a success result; ollama_available alone proves only provider reachability. A 100% coverage value describes existing vectors, not the current model's usability or their compatibility with that model. The synthetic probe sends no stored memories and follows the configured provider's normal billing and timeout behavior. Save pending edits before testing so the check cannot claim an unsaved value is active.
Memory Source switches
Each memory Source has one switch in Memory composition. It turns the Source's DSH Entry on or off through DSH's plugin manager, which saves the choice as the Entry's disabled row in the profile patch. On permits the main strategy to use the Source when needed; it does not force recall or writes on every turn. Off stops that Source's context injection, tools, background work and data-plane Web and RPC operations together.
The Host registers a named tool family while at least one live Source with that manifest.typeId is registered globally. Removing the last memory-spaces, documents, or runtime instance removes its 10, 3, or 1 named tools; registering that type again restores them. With all three types the Mnemon inventory has 17 tools; without Memory Spaces it has 7. The two generic View tools and mnemon_subagent_result stay registered independently. A workspace's narrower View or the legacy layer flag still controls execution authority and does not remove another workspace's global tools.
On initial Loader-managed startup, named families wait for Loader.await() and publish in historical registration order. Generic View and result tools are available immediately. Later activation appends the returning family without restarting surviving registrations. DSH independently orders the model wire schemas.
Configuration transactions publish only their final Source set, including rollback, so intermediate unload/reload steps do not change model schemas. Existing Agents observe the ordinary DSH tool-registry updates on their next model request. Delegated children allow only currently registered task tools; idle review skips when no applicable Runtime or Documents write target remains.

Turning a Source off is reversible routing state, not deletion. Its Memory System page stays, marked Not running, and does not read the data plane; Status and the management directories stay observable. Turning it on again uses the original directories and data. The last running Source cannot be turned off. The legacy memoryTopology.layers.<id>.enabled flag is turned back on with the Source and is used only when the components cannot be read.
The WebUI reads Source instances from the live management catalog, so a new Source needs no frontend change. Source type ids select configuration; a Strategy selects exact instance keys. Settings update under a revision fence, and candidate compilation must succeed before replacement. Core and Source boundaries recheck capability, scope and current authority.
Recall quality policies
strict-v1 applies the 0–1 thresholds only to Providers that explicitly declare calibrated normalized-relevance scores. It drops non-positive and below-threshold normalized scores, keeps high-relevance results first, then admits medium and ranked results in the existing fused order under separate limits (four each by default). At most two unscored or undeclared-scale results follow. The requested result limit always applies; the policy does not fill it with weak evidence. balanced-v1 puts low-score rows after primary evidence, while exhaustive-v1 preserves finite scored rows for inspection.
Hindsight's boosted final rank and OpenViking's raw similarity use provider-native semantics. Their finite scores retain the Provider's result order in the bounded ranked tier, even when above 1, without a normalizedScore. This tier supplies ordered candidates, not a confidence guarantee. Global relevance thresholds do not calibrate these scales; tune maxRankedResults (zero disables this lane) to control admission. Cross-Provider fusion uses rank, never raw score magnitudes. No clamp or per-query min/max transform manufactures high relevance from unrelated candidates.
A normalized Provider returning a score above 1 also enters ranked, with reason out-of-range-score and source.quality.outOfRange diagnostics. source.quality.ranked counts ranked candidates; unscaled counts undeclared scales separately, and unscored counts absent scores. Non-finite scores are rejected. Update the Source and affected Providers together: an older Source safely treats the new native declaration as unknown-scale, but retains the old admission limit. No stored memories or credentials are changed.
These pure recall-quality policies belong to the Memory Spaces Source. Configuration selects a policy ID shipped by that Source. Its internal registration function is not a public plugin API; custom retrieval belongs behind the public Source/Provider contracts. Invalid limits, decisions, or selections fall back to strict-v1; an unknown configured id rejects the candidate runtime graph. Filtering counts are returned as structured source.quality statistics and are not appended to Agent hints.
Browser authentication
DSH owns browser authentication or pairing and Host/Origin validation. Remote pages use the namespaced API Gateway; local loopback clients and DSH desktop windows (dsh-app://app/) use their own channels, and an application page counts as remote only when DSH declares a transport for it that does not own the Host. Mnemon's Gateway projection separately enforces remoteAccess: read-only allows ordinary reads, narrow activation and settings inspection, but rejects writes, ZIP operations, View mutations and settings changes. Settings snapshots report writable: false without the trusted-host grant. Restart DSH after changing this startup-only policy. DSH trustedHosts does not replace HTTPS or deployment access controls. writeEnabled=false is a product-level read-only mode, not a substitute for transport authentication.
For the complete proxy, launch-token, trusted-authority, restart and verification workflow, see Cloud-hosted WebUI.
Excluding a workspace from memory
In Storage → Workspaces excluded from memory, enter one path per line and apply. The default empty list changes nothing. Paths support ~, are canonicalized through real paths (including symlink aliases), and match the workspace directory exactly; this is not a glob or a recursive directory rule. Session workspace identity comes from DSH's session header, independently of the selected storage scope. A child inherits its parent's workspace decision even if the child's cwd differs; an unloaded parent's workspace can be resolved from DSH's workspace/session catalog.
An excluded conversation receives no new memory View, prompt guidance, recall cues, or memory tools. Its automatic review, skill evolution, capacity maintenance, and memory writes are disabled. The workbench marks the workspace as excluded, permits inspection of existing data, and refuses memory writes and Agent-backed assistance. Configuration remains editable so exclusion can be removed. Invalid, missing, or inaccessible directories are ignored and reported by the workbench; an unknown workspace or parent workspace is reported without silently disabling unrelated sessions.
Saving applies to subsequent operations. Already delivered conversation history and completed writes are not erased, and an operation already dispatched to a Provider is not rolled back. Removing the path restores participation on the next turn; no migration or data deletion is involved. This is a Mnemon participation setting, not a filesystem or Host security sandbox.
Storage Scopes
global
MNEMON_DATA_DIR when non-empty
otherwise ~/.mnemonSuitable for users who want Runtime, Documents, and Memory Spaces shared across multiple workspaces. Other Mnemon-enabled agents can also share the Mnemon Memory Spaces when they use the same root.
workspace
Agent / tool / lifecycle: resolve(currentSession.header.cwd, ".mnemon")
Web workbench inspection: resolve(workspaceRegistry.get(selectedWorkspaceId).path, ".mnemon")Each DSH workspace owns an independent memory root for runtime memory, documents and memory spaces. Conversation Agents, model tools, commands, and lifecycle hooks route by the current session cwd. Independent task Agents launched from the Web workbench instead use the selected Host-registered workspace explicitly; the browser can never submit an arbitrary path. Tidy names and descriptions, Ask Agent, Save to memory, and document archiving therefore target the workspace selected in the Memory System header, even when no main session is selected.
Headless has no workspaceRegistry; its fresh session cwd is the directory from which dsh --profile headless ... was launched, so workspace resolves directly to <invocation cwd>/.mnemon.
Global USER.md with workspace project memory
To share user-level collaboration requirements across repositories while keeping project facts isolated, set Storage scope to Workspace on the dsh-mnemon page and User profile scope to Shared globally on Runtime Memory's page, or configure:
mnemon:
storageScope: workspace
runtimeUserScope: globalEach turn then projects USER.md from the global root (MNEMON_DATA_DIR when set, otherwise ~/.mnemon) together with MEMORY.md from <workspace>/.mnemon. target=user mutations and local USER.md compaction go only to the global source; target=memory, Documents, Memory Spaces, and Provider state remain workspace-scoped. Global MEMORY.md and workspace USER.md entries stay intact on disk but are not projected in this mode.
Changing this setting never copies, merges, or deletes entries. Switching back to runtimeUserScope: storage reveals the selected root's original USER.md again. A Mnemon Pack still represents one selected storage root, so a workspace Pack does not silently include the separate global USER.md; back up the global root separately when that profile is important.
workspaces
This built-in mode is available with the Starter; no additional plugin is required. Select Centralized · isolated by workspace as the Storage scope; to set a central root of your own, choose Custom under the same group's Data directory.
mnemon:
storageScope: workspaces
dataDir: ~/central-memory # optional; otherwise MNEMON_DATA_DIR or ~/.mnemon
runtimeUserScope: global # optional; share USER.md globally
documentsScope: global # optional; share Project Documents globally
memorySpacesScope: global # optional; share Memory Spaces and Provider connections globallyAll four areas (runtime, data, documents, state) live under <central-root>/workspaces/<sha256(canonical-workspace-path)>/ unless individually shared through runtimeUserScope: global, documentsScope: global, or memorySpacesScope: global. Existing symlink aliases resolve to the same ID; different workspace paths remain isolated. A move or rename selects a new ID, with no automatic migration. Sidebar inspection follows the selected registered workspace; the conversation tab and Headless follow the owning session cwd. Any component set to global uses MNEMON_DATA_DIR or ~/.mnemon, even when the central root is customized.
Workspace identity resolution allows not-yet-created directory descendants, including Unicode names and descendants below a symlink alias. A path below an existing file is rejected with ENOTDIR on every platform, including Windows, before a storage ID is computed. This does not change valid IDs or move, rewrite or remove existing storage.
Changing scopes never migrates, merges or deletes an old root. A ZIP Pack still contains only the selected workspace root; back up the whole central directory to preserve all workspaces. Remote Provider namespaces retain their own sharing semantics.
custom
mnemon:
storageScope: custom
dataDir: /absolute/path/to/mnemon-data~ and ~/... are also allowed. Relative paths are rejected.
Choose a Cross-Agent Sharing Scope
| Goal | Recommended scope | Notes |
|---|---|---|
| Share durable memory among local agents | global |
Every participant uses ~/.mnemon or the same MNEMON_DATA_DIR |
| Share one explicit data root | custom |
Every participant configures the same absolute directory for isolation and backup |
| Share only inside one project | workspace |
Every participant aligns its Mnemon root to that project's <workspace>/.mnemon |
Mnemon Native interoperates with other Mnemon-enabled agents through data/<store>/mnemon.db; third-party engines interoperate through their configured provider scope. Runtime, Documents, DSH activation state, and UI metadata remain managed by dsh-mnemon. See Long-term memory providers.
External service settings, Memory Space scope settings, and secrets are stored in state/memory-providers.json under the selected scope root, not in the profile patch. Multiple Memory Spaces reuse one provider service configuration; the Host merges both layers only at runtime. The Mnemon Native ZIP contains only Runtime, Documents, and native Memory Spaces; external service data, credentials, and local third-party stores are excluded.
CLI Discovery Precedence
config.cliPath
-> executable MNEMON_CLI_PATH
-> each PATH directory
-> Windows: GOBIN/mnemon.exe
first GOPATH/bin/mnemon.exe, or ~/go/bin/mnemon.exe
%LOCALAPPDATA%/Programs/mnemon/mnemon.exe
%ProgramFiles%/mnemon/mnemon.exe
PNPM_HOME, PNPM_HOME/bin, NVM_SYMLINK
%LOCALAPPDATA%/pnpm, %LOCALAPPDATA%/pnpm/bin, %APPDATA%/npm
(mnemon.exe or verified mnemon.cmd in these global bin directories)
-> Unix: ~/.local/bin/mnemon
/opt/homebrew/bin/mnemon
/usr/local/bin/mnemon
/usr/bin/mnemonAn explicit cliPath accepts either a path or a command name on PATH (for example, mnemon). Status checks and execution share the discovery rules and recognize CLI installation/removal on recheck without restarting DSH. If the explicitly configured command is unavailable, calls report a launch error rather than silently selecting another CLI. Windows discovery accepts regular .exe files and the verified official npm/pnpm mnemon.cmd launcher. Package launchers are invoked through Node without a shell; arbitrary .cmd and .bat wrappers remain excluded. After migrating to npm, update any explicit CLI override to the npm launcher and verify the executable path in Status → Check versions.
Compatibility Store Hint Precedence
config.store
-> MNEMON_STORE
-> <storageRoot>/active
-> defaultAfter the Memory Space directory has been established, long-term semantic operations use explicit Memory Space IDs and do not rely on the global active Store for routing.
Background Task Agent Model Route
Tidy names and descriptions, Ask Agent, Save to memory in the Memory System and in conversations, and document archiving create a clean independent top-level task Agent. It uses the selected workspace as its cwd, works even when no main Agent session is selected, and does not inherit the main conversation history. Finishing the task disposes the Agent instance and automatically archives the finished mnemon-task-v1-* record in DSH's workspace registry when available. Only the task instance just completed is eligible; pinned or human-continued conversations are kept visible. Startup does not sweep historical task IDs, so explicitly restored conversations stay restored. Older unused shells can be archived through DSH (#472); session files already written by DSH remain on disk and stay resumable without re-entering Web New Session blank reuse or sidebars. Default spawn-based automatic idle reviews likewise run in an isolated archived mnemon-review-v1-* session instead of adding entries to the conversation's subagent list (#651). Official DSH 0.2.2-rc.1 and earlier supported Hosts retain the subagent origin, so these records stay out of the sidebar and ACP conversation list (#435). DSH 0.2.2-rc.2 and the inspected master snapshot removed that public creation path: there, ACP can list these titled Mnemon · … task roots, while the standard WebUI currently hides non-current roots with no conversation turn. Other clients or missing list metadata can still expose them. Opening a finished task record alone does not restore Mnemon tool authority, including after restart; a new explicit user turn follows the current permissions. See the Host compatibility details.
When a user continues a visible task conversation, Mnemon asks DSH to refresh only the original Mnemon · … title from the user's topic. A later explicit rename, even to the same task label, stays pinned. This also handles original labels saved by earlier Mnemon versions when the conversation is next continued. Generation and fallback remain owned by the Host's title service.
Background tasks → Task Agent model on the Layered strategy's page offers three choices for these task Agents and the idle review worker:
- Follow global (
mode: inherit, the default) gives the task Agents the DSH Provider / Model selected for new sessions, which DSH sets to the model last picked in any conversation, then falls back to a complete route from the current available main Agent. The idle review worker and the other workers a conversation delegates take that conversation's route. - Follow the conversation (
mode: inheritwithfollowConversation: true) uses the route DSH gives the conversation that asked for the work to its own delegated work, idle review included: the provider, model and reasoning effort of its last request, or the route it was created with before the first. While that conversation is not open, it follows global.followConversationis a key of its own, so a release without it reads the route as Follow global. - Custom (
mode: fixed) stores a complete Provider + Model, both required, and overrides only Mnemon background tasks; it does not change the conversation Agent. It also pins the idle review worker and the bounded workers for write, answer, provider placement, migration, compaction, archive and metadata maintenance.
When semantic judgment requires a bounded worker inside that task Agent, such as the smart selection of a Provider for a new space, the worker inherits the task Agent route. Conversation Recall and Related are direct Host reads and use no model route.
mnemon:
taskAgentModel:
mode: fixed
provider: deepseek
model: deepseek-chatDSH's live catalog reports each model's input modalities, and the picker labels image-capable models Image input. Choosing one does not make Mnemon background jobs ingest images: Tidy names and descriptions, Ask Agent, Save to memory, smart selection and document archiving still submit text and bounded evidence. In the main conversation, DSH-owned image blocks keep their attachment references when dsh-mnemon adds lifecycle guidance, while activity thresholds count text blocks only. Raw image bytes are never copied into runtime memory, documents or memory spaces.
When the active Strategy does not drive idle review or runtime capacity maintenance, Memory System names the unavailable workflows even without a selected conversation. The General Strategy drives neither. The settings page explains this dependency and retains your choices for switching back to a supporting Strategy; enabling the review switch alone cannot opt a Strategy into these workflows. Manual actions keep their existing permissions.
Skills settings
Skills keeps its settings under skills in the mnemon entry, edited on its own page under Plugins → dsh-mnemon through the mnemon-skills settings scope. Settings apply live once saved; changing linked-update permission refreshes the Source runtime, while other skill settings retain it; the destination selector, draft budgets and review parameters wait for Apply or Discard. Draft budgets are read at the start of each draft. The Skills guide explains what each does.
| Key | Default | Range | Meaning |
|---|---|---|---|
skills.evolution |
false |
boolean | Self-evolution: review conversations and suggest skills. Task and subagent sessions are saved locally; finished mnemon-task-v1-* task shells are archived in the workspace registry when available, without deleting disk files. |
skills.allowCreate |
true |
boolean | Suggest new skills: allow reviews to propose skills that do not exist yet |
skills.allowUpdate |
true |
boolean | Suggest skill improvements: allow reviews to improve existing skills |
skills.allowLinkedUpdates |
false |
boolean | Allow linked skill updates: update original files behind existing symlinks/junctions; all sharing Agents see changes. Creation/install/removal rules stay unchanged. Enable only for trusted targets. |
skills.targetScope |
user |
storage / user / project |
New skill destination: user → user-dsh; project → project-dsh; storage follows storageScope (global / custom → user, workspace / workspaces → project). Apply or Discard on the settings page |
skills.skillRoots |
unset | { create: SkillRootKind[], default: SkillRootKind } |
Optional New skill directories: creation choices and default for manual create, new evolution drafts and market installs; Apply or Discard together. |
skills.autoBacktest |
true |
boolean | Backtest drafts: compare each new draft with the current version on its test cases |
skills.autoAdopt |
false |
boolean | Automatically draft and adopt new idle-review suggestions only after complete, non-regressing text backtests; at most two rewrites. Requires evolution and automatic backtests. |
skills.draftMaxTokens |
32768 |
integer, 128–131072 | Draft output token limit: budget for the first complete draft, including reasoning |
skills.draftRetryMaxTokens |
65536 |
integer, 128–131072 | Retry output token limit: one fresh attempt after max-tokens, only when this is greater than draftMaxTokens; an equal or lower value disables the truncation retry |
skills.hints |
true |
boolean | In the conversation: the Turn skills line under each turn |
skills.sidebar |
false |
boolean | Sidebar entry: Skills as its own sidebar entry, out of the Memory System |
skills.reviewThreshold |
5 |
1–50 | Review threshold: the activity score a conversation's window must reach before a review |
skills.idleSeconds |
20 |
0–3600 s | Idle wait: how long the conversation must be idle before the review runs |
skills.cooldownSeconds |
150 |
0–86400 s | Review interval: the least time between two reviews of one conversation |
skills.minConfidence |
0.6 |
0–1 | Minimum confidence: suggestions below it are dropped |
skills.expiryDays |
7 |
1–90 days | Suggestion expiry: an untouched suggestion expires after this long |
skills.maxPendingPerSession |
5 |
1–20 | Pending per conversation: past this, the least confident pending suggestions of a conversation expire |
skills.casesPerRun |
8 |
1–20 | Cases per backtest: the most cases one automatic backtest runs |
skills.dshHome |
unset (~/.dsh) |
directory path | DSH home: overrides the user-level DSH skills home (<dshHome>/skills); leave blank for default |
skills.agentsHome |
unset (~/.agents) |
directory path | Agents home: overrides the user-level shared .agents home (<agentsHome>/skills); leave blank for default |
Draft generation is available even with self-evolution off. The two budgets explicitly bound each attempt instead of silently doubling a user's limit. A draft gets at most two attempts total, shared with the existing retry for a rejected skill file. Only a max-tokens stop can use the larger budget; cancellation and other model failures do not retry. A truncated result is discarded before parsing or saving, and a retry starts a fresh task and child. Successful drafts still require the existing schema and content checks and explicit adoption; generating a draft does not change the installed skill. Reviews, case generation, executors and judges retain their existing budgets.
Keep both values within the selected provider/model's output limit. If generation still truncates, the error reports the attempted budgets and source SKILL.md size in UTF-8 bytes (zero for a new skill), and points to these settings. Raise the budgets only within the model's supported limit; if the provider rejects a requested budget, lower it. If the complete file cannot fit that limit, shorten the skill or select a model with a larger output limit.
When skills.skillRoots is unset, skills.targetScope defaults to user to preserve existing installations: upgrading or changing storage scope does not move new skill writes to another root. Choose storage explicitly to follow storage scope. New suggestions record their resolved destination; drafts and redrafts keep that destination, and adoption uses the draft unless you explicitly choose another root. Suggestions from older versions without a destination use the current setting when drafted; existing drafts retain their recorded root. Improvements always write back to the original file identified by baseKey and its recorded origin, including the owning project, regardless of this setting, the selected storage scope or a destination override.
Configure skills.skillRoots in the Skills settings page to offer any of project-dsh, project-agents, user-dsh, user-agents. create must contain 1–4 unique roots and default must be included. For example:
skills:
skillRoots:
create: [project-agents, user-agents]
default: project-agentsThis opt-in overrides targetScope for new evolution suggestions, and also applies to manual creation and new market installs. Without a workspace, a project default falls back to the matching user root (project-agents → user-agents, project-dsh → user-dsh), which is offered even if only project roots were configured. Explicit destinations, existing drafts and installed skills retain their targets and existing path, ownership and hash checks; these preferences are not an authorization boundary. Discovery still scans all four roots in the same precedence order. Disabling the option restores legacy behavior without moving files. A standalone Skills Source accepts the same skillRoots object in its configuration.
Project roots come from the Skills Source catalog for the selected workspace, following DSH discovery (nearest .git ancestor, or the workspace itself); the model task's working directory is not used. A missing workspace/project or an unwritable destination produces a visible review/draft error. Mnemon does not silently fall back to user skills. Adoption checks the final selected project again: a project removed after drafting is not recreated, and you can explicitly select a user root instead. Later filesystem failures are also reported. No skills are migrated, discovery precedence is unchanged, and adoption is manual by default; the opt-in automatic-adoption flow uses the same Source checks.
Both suggestion switches default to true, preserving old configurations. Turn either off independently; turning both off pauses automatic and manual conversation reviews without starting a model call. The switches also filter matching eval cases and results from reviews already running. Existing suggestions and explicit draft, backtest and adopt actions remain available. skills.evolution remains the master switch for automatic reviews.
mnemon:
skills:
evolution: true
idleSeconds: 30The Skills Source's own data (suggestions, cases, recorded conversations, versions, market sources) is not configuration; it lives in the storage root's skills/ folder, see the storage model.
Provider Requirements
Regular workers prefer spawn. If no provider has that name, another provider that does not inherit the parent's context can be selected when it limits depth (depthLimit) and gives the child its own instructions and tools:
- on DSH 0.2.0, the provider takes both in the start request (
toolFilterandpersona); - on DSH 0.2.1, where no provider takes either, it must be one whose children DSH creates in this process, as its spawn and fork are, so that Mnemon composes the child itself; see DSH 0.2.0 and 0.2.1.
Every child reports through one stable mnemon_subagent_result tool, with a revocable requestId issued for that child: it returns { requestId, result }, and the Host validates result against that operation's schema and rejects stale or foreign submissions.
If the model adapter rejects malformed JSON arguments for this completion tool before dispatch (MALFORMED_RESPONSE), the same child gets one corrective request. It must resubmit only the result, with complete enclosing braces, without repeating completed writes. Valid responses add no request; other tools/errors and a second malformed completion retain their normal failure handling. No JSON is silently repaired, no result schema or guard is relaxed, and no whole task is restarted. The additional request uses the child's existing model and output limit; model correctness is not guaranteed, and cancellation still stops the run.
Idle review defaults to a non-inheriting spawn provider and an explicit, bounded checkpoint from the parent's current public surface. It includes whole visible text messages and successful tool results; omitted or unavailable context is not reconstructed. idleReview.provider: fork retains full-parent-context review and requires inheritsParentContext=true. If fork is missing or incompatible, idleReview.fallback chooses spawn or skip before startup. A started run is never retried through another provider.
Review requires local child publication, agents.isOwnedBy, and agent.ctx.tools.guard; the guard also blocks unrelated own-scope plugin tools and Code Mode subcalls. maxContextChars bounds the spawn checkpoint, while maxTokens limits each model response, not the inherited fork input or total multi-step usage.
What review writes. Each piece of knowledge goes to one layer. Project records, such as a design, implementation details, paths, ports, scope agreements or a handoff, go to at most one Document. Working memory (MEMORY.md) takes only a compact rule the user stated, such as a convention, a correction, an environment fact or a tool quirk, that no Document or existing entry already covers; USER.md takes identity and preferences. The guard holds each pass to one layer: after a Document, working-memory changes are refused, and after a working-memory change, a Document is refused; USER.md changes stay independent. idleReview.runtimeMemory: false withholds mnemon_runtime_memory from review, so it only creates Documents. Review never writes Memory Spaces: working memory reaches them through capacity archiving and Documents through cold archiving, while Save to memory and mnemon_remember write them directly.
idleReviewMs remains the continuous-idle debounce. minIntervalMs limits the interval between attempts, including failed and cancelled attempts; maxPerSession caps them, with zero pausing review. By default, a new parent Agent (including Host restart or reopening) receives a fresh in-memory budget.
With Run idle reviews silently enabled, automatic spawn reviews stay out of the conversation’s subagent list. Turn it off to run new reviews as visible children of the conversation. The startup cleanup of old ungrouped review records also respects this setting.
Enable Keep review limits after reopening in the Layered strategy's Idle review settings, or set idleReview.persistWatermark: true, to restore the same persisted parent session's attempts and remaining cooldown. Identity is the actual runtime storage root plus the parent session ID; another session or another root has its own budget, and selecting a Source/View or globally scoped USER.md does not change identity. Recreating an Agent or rewinding its surface does not reset a retained quota; if DSH assigns a new session ID on clear/compaction, that is a new session. Turning persistence on during a live Agent immediately merges that root’s already used attempts and last-attempt time into the retained baseline without consuming another attempt or starting work. Disabling, using another in-memory attempt, and re-enabling merges again; usage from another root is never carried over. Every attempt is reserved on disk before a child starts, including failed or cancelled work; a crash after reservation can consume an attempt without a child. Restart never replays work or schedules catch-up review: a new eligible checkpoint is required. Future timestamps after a backwards clock change retain their cooldown, using bounded timer waits.
The workspace shows this session's attempts, configured maximum, restored attempts and earliest next time. These are session admission counts, not lifetime completion totals. Damaged/unsupported state, failed reads/writes or a busy lock visibly pause automatic review while conversation, recall and manual actions continue. Stop every Host using this root, inspect the affected session's JSON or abandoned .lock directory under state/idle-review/, repair/restore the state and remove only a confirmed abandoned lock, then continue the conversation. The Host retries a failed watermark on a later turn before admitting review. Deleting a watermark explicitly resets its budget. Disabling persistWatermark returns to in-memory limits without deleting retained files; re-enabling can restore them. Rollback to an older release leaves these files unused. Watermarks are local-only, excluded from Packs/Git sync and retained until manually removed; no cleanup, replay or Skills evolution state is added. See Storage model.
During a real open step, the awaited agent/request hook sends a private no-op challenge through the parent's mandatory completion tool using DSH's normal execution pipeline. The stopping hook and idle timer only consume that turn's admission; they never execute parent tools after step/end. A failed check may retry once in a later step of the same turn/policy, never on a model transport retry. Successful admission is reused within that turn/policy, and every later turn checks afresh. This lets a restored executor recover without retaining permission from an earlier turn. A session guard denying mnemon_* or an approval requirement still skips before creating a child or calling a model, without consuming quota or cooldown or opening a prompt. Native tools and Code Mode keep their existing schemas and guards. Code Mode's normal local dispatch audit events stay outside model-visible conversation. Checks neither write memory nor conclude a turn. A five-second timeout revokes the challenge and requests cancellation; the request hook awaits execution and audit-event settlement before allowing step/end. Extensions that ignore cancellation can still delay the request. This conservative admission does not guarantee that a child's later writer will be permitted. Explicit reviews and subsequent provider/write failures are unchanged.
mnemon_status and the lifecycle snapshot expose idleReviewAccess: state (unchecked, available, or unavailable), checkedAt, and a bounded reason when unavailable. Reasons distinguish no open step, unavailable executor, an in-flight check, approval required, handler not reached, rejected result, timeout, execution error, cancellation and disposal. No raw error, tool arguments, path, or memory content is included. This describes the last tool-admission check for this live Agent, not whether the activity score, cooldown or persisted quota permits scheduling; unchecked is expected before a check and when automatic review is disabled. Persistent failures remain visible without resetting the watermark.
Finished review workers are disposed through DSH's public API. Persisted session history remains: the published Host has no plugin-scoped archive/TTL contract, and Mnemon does not remove session files or another plugin's Agents.
Agent Teams compatibility: idleReview.agentTeams: pause remains the default for existing profiles. It pauses before child creation when both the public agentTeams service and parent-scoped spawn_teammate tool are present. TeamService alone does not pause review.
With the official Agent Teams components of either supported DSH release, select Scoped task Agent review under Idle review on the Layered strategy's page (Plugins → dsh-mnemon), or set idleReview.agentTeams: scoped. That published Team policy supports both bounded spawn and explicit fork. The opt-in retains parent ownership checks, local child publication, maxDepth: 1, and the monotonic review-tool allowlist, including Code Mode dispatch. Team tools and further delegation stay denied to the reviewer; the parent keeps Teams. No package-version guess or other plugin policy removal is used. Missing guard/ownership support or a policy error fails the run without fallback replay. Keep pause to leave review off while Team tools are installed, or use idleReview.enabled: false to disable only review while keeping Teams, recall and explicit writes.
Bounded spawn reads live-user evidence from the public flat user/message event payload. It includes only whole visible messages before the completed checkpoint; injected recall, summaries and messages without a live-user source are not promoted to user assertions. This preserves explicit decisions and no-write instructions within the configured character budget.
Failed reviews remain failures. The workspace shows the child run id and committed mutation receipt metadata when writes happened before failure, including a committed inner tool followed by a failed Code Mode wrapper. No rollback or automatic replay occurs. Inspect the run and the listed document ids or Runtime revisions before any manual retry. A later review still respects the cooldown and session budget. To disable only this maintenance pass, turn off Idle review on the Layered strategy's page, or set idleReview.enabled: false.
When a conversation closes or switches away, an already disposed Agent cannot start idle review. A stale timer is skipped without reserving an attempt. If teardown races asynchronous preparation, an inactive-context error with no committed writes is cancellation and adds no failure banner; an already reserved attempt/cooldown is retained, consistently with crash and cancellation accounting above. Partial writes still produce reconciliation receipts and a warning, and no cancelled review is replayed automatically.
Read-Only Configuration
mnemon:
writeEnabled: falseEffects:
- Model write tools are not registered;
- write and activation RPCs remain registered, with memory mutations rejected at the Host boundary;
/mnemon rememberand/mnemon forgetare rejected;- Source management and model actions cannot bypass the Host write restriction.
This is feature-level read-only behavior, not a read-only filesystem mode: the Runtime controller may still initialize or repair projections, Document search updates LRU access times, and Mnemon read commands may trigger upstream database migrations. Do not treat writeEnabled=false as a safety guarantee for read-only mounts.
Switch Interactions
writeEnabled=false
-> overrides all explicit semantic writes
writebackMode=off
-> no write cue, no scored review
-> explicit writes remain when writeEnabled=true
recallMode=off
-> no recall cue
-> explicit recall remains
lifecycleEnabled=false
-> no lifecycle cues or review
-> UI, commands, and explicit tools remain
routingGuidance=false
-> removes only mnemon:routing
-> runtime-memory context remainsEntry Placement: displayMode and tabEnabled
Memory System defaults to Sidebar, opening a dedicated center-column workbench with a minimal, logo-free skin aligned with official DSH panels. Set displayMode: builtin, or choose Conversation tab under Interface → Memory System opens in, to put that same workspace in the current conversation's conversation.view tab instead. Pages, navigation, dialogs, and styling remain shared; there is no separate builtin UI. Theme authors can use the supported surface selectors and custom properties in either placement.
The sidebar entry follows DSH's native Plugins row for styling, collapsed icons and selection. Clicking it again keeps the workspace open; Back to chat or Escape returns to the current conversation. Selecting Plugins, another native panel or New Session switches the main panel. Switching to the task board or SSH synchronizes both visibility and entry state, so a missed peer activation notification cannot prevent reopening Memory System.
The conversation tab omits the header's storage-mode badge, workspace picker and alignment controls. Every read, write, and independent task request follows its owning session through the existing Host routing:
storageScope |
Conversation-tab read/write root |
|---|---|
global |
Shared MNEMON_DATA_DIR or ~/.mnemon, regardless of the session workspace |
workspace |
The current session's <cwd>/.mnemon; switching conversations follows their respective workspaces |
custom |
Configured dataDir, regardless of the session workspace |
workspaces |
The current session’s subtree under <central-root>/workspaces/<workspace-path-hash>/ |
The existing runtimeUserScope: global exception still keeps USER.md global. Changing placement does not change scope, migrate memory data, or revive the old builtin navigation. A placement change applies when selected.
The canonical spelling is builtin. Historical displayMode: buildin preferences are accepted, and runtime and UI state normalize them to builtin. On startup and external settings changes, the Host rewrites that one field through DSH's revision-fenced settings writer. Old-client RPC writes also persist builtin directly. Other fields and document comments are preserved; an explicit newer Sidebar choice wins a concurrent migration.
Saving on the dsh-mnemon page under Plugins updates the current UI immediately. On loopback pages the Client also follows DSH's settings document: a save from another window, or a profile edit the Host reloads, shows up without a browser reload. Remote pages do not receive DSH's settings mirror; reload them to observe changes made elsewhere.
If the old value comes only from a composition profile, migration saves a canonical user-setting override instead of rewriting the profile file. A read-only settings provider still recognizes the alias but is not written; a persistence failure is reported in the Host log without disabling the normalized entry.
tabEnabled=false removes the selected entry and workbench live; enabling it again restores the configured placement. The two entries are mutually exclusive. Host RPC, commands, and tools remain registered, so an Agent or command already in progress stays valid. The turn memory bar and Save to memory stay controlled by their own Interface switches and navigate to the selected placement.
Profile Patch Overrides
The bundled cordis.patch.yml provides the default config row. A DSH profile configuration with the same ID may replace that row as a whole. Do not add only cliPath to a final profile patch: use MNEMON_CLI_PATH or the mnemon.cliPath user setting instead. When a profile patch must be customized for another reason, retain every key that must remain enabled instead of assuming a deep merge.
A remoteAccess override for authenticated Gateway management is one such whole-row customization. Use the complete, upgrade-aware example in the remote management procedure, preserving the rest of the current configuration; a standalone config: { remoteAccess: trusted-host } fragment replaces those other fields.
Common Configurations
Workspace isolation:
mnemon:
storageScope: workspaceThe same workspace isolation inside each conversation:
mnemon:
storageScope: workspace
displayMode: builtinAn explicit Windows CLI path:
mnemon:
cliPath: 'C:\Users\alice\AppData\Local\Programs\mnemon\mnemon.exe'A custom data volume and a longer CLI timeout:
mnemon:
storageScope: custom
dataDir: /Volumes/AgentData/mnemon
timeoutMs: 30000Keep explicit tools while disabling lifecycle behavior:
mnemon:
lifecycleEnabled: falseDisable only background writeback decisions:
mnemon:
writebackMode: offScoped source selection
In Scoped composition, leaving sourceKeys unset inherits the eligible Runtime, Documents and Memory Spaces sources. The picker shows that effective selection, and the first edit starts from it. Reset to default removes the override rather than saving []. Saving an explicit empty selection asks for confirmation because the resulting View offers none of those sources. Cancelling leaves the saved configuration unchanged. Existing writableSourceKeys: [] continues to mean read-only; this UI safeguard does not change Host authorization or migrate stored preferences.