|
| 1 | +--- |
| 2 | +title: DSM Memory Extension |
| 3 | +description: Add DSM Memory MCP Server as a goose Extension |
| 4 | +--- |
| 5 | + |
| 6 | +import Tabs from '@theme/Tabs'; |
| 7 | +import TabItem from '@theme/TabItem'; |
| 8 | +import CLIExtensionInstructions from '@site/src/components/CLIExtensionInstructions'; |
| 9 | +import GooseDesktopInstaller from '@site/src/components/GooseDesktopInstaller'; |
| 10 | + |
| 11 | +This tutorial covers how to add the [DSM Memory MCP Server](https://github.com/daryl-labs-ai/daryl/tree/main/src/dsm/integrations/goose) as a goose extension to give your agent an append-only, SHA-256 hash-chained memory layer. Every action goose logs is cryptographically chained — nothing can be silently altered, and the full session history is replayable and verifiable. |
| 12 | + |
| 13 | +:::tip Quick Install |
| 14 | +<Tabs groupId="interface"> |
| 15 | + <TabItem value="ui" label="goose Desktop" default> |
| 16 | + [Launch the installer](goose://extension?cmd=uvx&arg=dsm-mcp&id=dsm-memory&name=DSM%20Memory&description=Append-only%2C%20hash-chained%20memory%20for%20goose) |
| 17 | + </TabItem> |
| 18 | + <TabItem value="cli" label="goose CLI"> |
| 19 | + **Command** |
| 20 | + ```sh |
| 21 | + uvx dsm-mcp |
| 22 | + ``` |
| 23 | + </TabItem> |
| 24 | +</Tabs> |
| 25 | +::: |
| 26 | + |
| 27 | +## Configuration |
| 28 | + |
| 29 | +:::info |
| 30 | +Note that you'll need [uv](https://docs.astral.sh/uv/#installation) installed on your system to run this command, as it uses `uvx`. |
| 31 | +::: |
| 32 | + |
| 33 | +<Tabs groupId="interface"> |
| 34 | + <TabItem value="ui" label="goose Desktop" default> |
| 35 | + <GooseDesktopInstaller |
| 36 | + extensionId="dsm-memory" |
| 37 | + extensionName="DSM Memory" |
| 38 | + description="Append-only, hash-chained memory layer for goose" |
| 39 | + type="stdio" |
| 40 | + command="uvx" |
| 41 | + args={["dsm-mcp"]} |
| 42 | + /> |
| 43 | + </TabItem> |
| 44 | + <TabItem value="cli" label="goose CLI"> |
| 45 | + <CLIExtensionInstructions |
| 46 | + name="DSM Memory" |
| 47 | + description="Append-only, hash-chained memory layer for goose" |
| 48 | + type="stdio" |
| 49 | + command="uvx dsm-mcp" |
| 50 | + timeout={300} |
| 51 | + /> |
| 52 | + </TabItem> |
| 53 | +</Tabs> |
| 54 | + |
| 55 | +## Tool Reference |
| 56 | + |
| 57 | +| Tool | What it does | |
| 58 | +|---|---| |
| 59 | +| `dsm_start_session` | Start a new provable session | |
| 60 | +| `dsm_end_session` | End session, trigger digest rolling | |
| 61 | +| `dsm_log_action` | Log an action intent (creates a hash chain entry) | |
| 62 | +| `dsm_confirm_action` | Confirm an action with its result | |
| 63 | +| `dsm_snapshot` | Record a state snapshot | |
| 64 | +| `dsm_recall` | Budget-aware context recall with temporal digests | |
| 65 | +| `dsm_recent` | Read the most recent entries | |
| 66 | +| `dsm_summary` | Lightweight activity summary | |
| 67 | +| `dsm_search` | Query actions across sessions | |
| 68 | +| `dsm_verify` | Verify hash chain integrity (tamper detection) | |
| 69 | +| `dsm_status` | Current system status | |
| 70 | + |
| 71 | +## Example Usage |
| 72 | + |
| 73 | +Use DSM Memory to give goose a persistent, verifiable record of what it has done across sessions. |
| 74 | + |
| 75 | +### goose Prompt |
| 76 | + |
| 77 | +> Start a DSM session called "research", log that you searched for "goose extensions", then verify the chain. |
| 78 | +
|
| 79 | +### goose Output |
| 80 | + |
| 81 | +:::note Desktop |
| 82 | + |
| 83 | +``` |
| 84 | +dsm_start_session("research") |
| 85 | +→ {status: "started", session_id: "research-20260409"} |
| 86 | +
|
| 87 | +dsm_log_action("search", {"query": "goose extensions"}) |
| 88 | +→ {intent_id: "a3f9...", hash: "sha256:e8b1..."} |
| 89 | +
|
| 90 | +dsm_verify() |
| 91 | +→ {status: "OK", total_entries: 1, tampered: 0, chain_breaks: 0} |
| 92 | +``` |
| 93 | + |
| 94 | +Every entry is hash-chained to the previous one. `dsm_verify` confirms nothing has been altered. |
| 95 | + |
| 96 | +::: |
0 commit comments