dsh-agentmemory
maxisoft-git/dsh-agentmemory
Read-only viewer for the local agentmemory daemon in the left sidebar, showing memories, lessons, sessions and slots, with per-tab search and a project filter on memories, lessons and sessions. Its HTTP routes have no DSH access check, so a web page open in your browser could call them.
설치
dsh plugin --profile web add github:maxisoft-git/dsh-agentmemoryREADME
Memory
Memory adds one row, Memory (Память when the GUI language is Russian), to the left sidebar's panel list in the DeepSeek Harness Web GUI (sidebar.panellist, id dsh-agentmemory, order 30). The row opens a full-height page in the main area that reads the local agentmemory daemon: memories with their content and concepts, lessons, sessions and memory slots, with per-tab search, a project filter, four counter tiles that also switch tabs, and per-record detail. It is read-only — it never saves, edits, forgets or imports a record, and it does not start or install the daemon. The browser never talks to the daemon: the page calls same-origin Host routes, so the daemon's bearer key stays in the Host process.
What it adds
| Row | Effect |
|---|---|
sidebar.panellist row, id dsh-agentmemory, order 30 | The left-sidebar entry Memory, labelled from the plugin's own title locale key and drawn with the memory-chip icon. |
main page, key dsh-agentmemory | The full-height page: status chip, subtitle with the daemon host, Refresh, tab search, the project menu, four counter tiles, four tabs and expandable records with a Copy action. |
Host routes /api/agentmemory/overview, /memories, /lessons, /sessions, /slots, refresh | Same-origin JSON routes that read the daemon and hand the page compact records; POST /api/agentmemory/refresh clears the Host-side caches. |
Loader row agentmemory-view | One inserted Host row with an optional config block; the Client half is declared with dsh.client and the three client packages it injects. |
Install
DSH 0.2.2-rc.1 or newer.
In DSH. Plugins → Add plugin with the installation spec github:maxisoft-git/dsh-agentmemory. The plugin manager installs it for the whole profile; a new session picks it up.
From a checkout. git clone https://github.com/maxisoft-git/dsh-agentmemory.git, then install that absolute directory with Plugins → Add plugin.
Use
-
Make sure the agentmemory daemon is running and its HTTP API answers on the address the row is configured for (default
http://localhost:3111). Check it with the daemon's own command:am-project health -
Install the bundle and enable it in Plugins. The sidebar row and the page appear when the Client half loads — reload the GUI or start a new session if the row is not there yet.
-
Click
Memoryin the left sidebar. The page opens with the status chip (connecting…while it loads, thenonlineoroffline), the daemon host,updated …and four counter tiles labelledmemories,lessons,sessions,slots. -
Switch lists with the tiles or the tabs
Memories,Lessons,Sessions,Slots. Each tab has its own search placeholder (Search memories,Search lessons,Search sessions,Search slots); typing filters after a short debounce andEscapeclears the field. Memories and lessons are filtered in the Host process over title/content/concepts/files/type/project and content/context/tags/project; sessions are filtered in the browser; slots over label/description/content/scope. -
The project menu (
All projects) narrows memories, lessons and sessions and recomputes their counters; slots carry no project, so that tile does not change and the menu is disabled onSlots. The choice of tab and project is remembered in the browser. -
Expand a record to read the full content and its metadata fields;
Copyputs the record text on the clipboard. OnSessionswith no search filter,Show moreloads the next cursor page. -
Refreshposts to the refresh route, drops the Host caches and reloads every list. -
When the daemon is down the chip reads
offline, the page showsAgent memory is unavailable, suggestsam-project health, and offersTry again. A rejected key readskey rejected; the key is re-read once on a rejected request, so a rotated secret file is picked up without a restart.A row config with every key is:
- id: agentmemory-view name: 'dsh-agentmemory' config: baseUrl: http://localhost:3111 # or $AGENTMEMORY_URL secret: '' # leave empty; see Configuration secretFile: ~/.agentmemory/secret timeoutMs: 20000
Configuration
All four keys are optional and are read from the config block of the Loader row.
| Key | Default | Meaning | Where it is stored |
|---|---|---|---|
baseUrl | http://localhost:3111, or $AGENTMEMORY_URL when set | Root of the agentmemory HTTP API; trailing slashes are dropped. Plain http:// is accepted only for loopback (127.0.0.0/8, ::1, localhost); any other host must use https://, and a baseUrl that carries a login or password is refused. | Loader row agentmemory-view, key baseUrl |
secret | empty, or $AGENTMEMORY_SECRET when set | Bearer key sent to the daemon. Keep it empty in the profile: supply the key through the environment or the secret file, and never as a literal in a committed file. | Loader row key secret; environment fallback |
secretFile | ~/.agentmemory/secret | File the key is read from when neither the row nor the environment provides one. The value is cached for 15 seconds. | Loader row key secretFile |
timeoutMs | 20000 | Timeout for one daemon request. | Loader row key timeoutMs |
The key resolution order is: secret in the row, then $AGENTMEMORY_SECRET, then secretFile. Credentials embedded in baseUrl are stripped before the address is shown on the page or in an error message, so a URL with userinfo never surfaces the secret.
Data and network
The plugin speaks to exactly one host — the configured daemon — and only from the Host process:
- Outbound.
GET <baseUrl>/agentmemory/memories?limit=1000,/agentmemory/lessons?limit=500,/agentmemory/slots,/agentmemory/sessions?limit=…&project=…&cursor=…, each withAuthorization: Bearer <key>when a key was resolved. The default target is loopback; abaseUrlthat carries a login or password is refused, and a non-loopback host is refused unlessbaseUrluseshttps://. No telemetry, no other host, no remote service. - Inbound. The browser calls the same-origin routes above. The Host refuses a request that does not come from a loopback socket or that carries a foreign
Origin(403), answers405for methods other thanGET/HEAD, and allows onlyPOSTon the refresh route, and sendscache-control: no-store. - On disk. The plugin writes nothing. It reads the key from
secretFilewhen needed. The page keeps the last tab and project filter in the browser'slocalStorageunder the keydsh-agentmemory:view; nothing from the daemon is stored there. - In memory. Listings are cached in the Host process for 20 seconds and the resolved key for 15 seconds;
Refreshclears both. - Switching it off. Disable or remove the bundle in Plugins: the sidebar row and every route disappear. Pointing
baseUrlat another daemon changes the only host contacted.
Security
SECURITY.md covers how to report a vulnerability, the supported versions and the process. The per-plugin report — what it reads, what leaves the machine, which services and paths it uses — is in SECURITY-AUDIT.md.
The page is read-only: no route writes to the daemon, and the refresh route only clears Host-side caches. The bearer key never reaches the browser. Report privately through GitHub Security Advisories at https://github.com/maxisoft-git/dsh-agentmemory/security/advisories/new; please do not open a public issue for a vulnerability.
Requirements
- DSH 0.2.2-rc.1 or newer (
engines.dshinpackage.json), Web GUI: the bundle declaresdsh.clientwithplatform: web. - Node.js 22.19.0 or newer (
engines.node). - A running agentmemory daemon with its HTTP API reachable at
baseUrland a bearer secret (~/.agentmemory/secretby default). The plugin does not start, install or configure the daemon. - The Client half registers its page labels in English and Russian only (
DICT.en,DICT.ru); a GUI in another language has no dictionary of its own.
Development
npm run verify # node scripts/verify-bundle.mjs
There is no build step and no dependency. scripts/verify-bundle.mjs is the CI gate: manifest shape, dsh.bundle.patch, the locale/en.json, locale/ru.json and locale/zh.json files, the READMEs, LICENSE, CHANGELOG.md, SECURITY.md, SECURITY-AUDIT.md, the Client declaration and an absolute-home-path check. There is no test script.
To use a checkout locally, install its absolute path with Plugins → Add plugin; after changing client.js, install the bundle again so the GUI loads the new file. The repository layout:
index.js— Host half: key resolution, daemon calls, 20-second listing cache, the local-only routes;client.js— Client half: the sidebar row, the mark, the page and the English/Russian label dictionaries;docs/DETAIL.md,docs/DETAIL.ru.md,docs/DETAIL.zh.md,docs/preview.svg— the detail page and its one illustration;locale/— Plugin Manager title and description;cordis.patch.yml,icon.svg,assets/icon-180.png— bundle packaging.
License
MIT © 2026 maxisoft-git