Passer au contenu principal
M

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.

Installer

dsh plugin --profile web add github:maxisoft-git/dsh-agentmemory

README

Memory

English · Русский · 简体中文

License: MIT DSH >= 0.2.2-rc.1

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

RowEffect
sidebar.panellist row, id dsh-agentmemory, order 30The left-sidebar entry Memory, labelled from the plugin's own title locale key and drawn with the memory-chip icon.
main page, key dsh-agentmemoryThe 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, refreshSame-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-viewOne 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

  1. 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
    
  2. 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.

  3. Click Memory in the left sidebar. The page opens with the status chip (connecting… while it loads, then online or offline), the daemon host, updated … and four counter tiles labelled memories, lessons, sessions, slots.

  4. 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 and Escape clears 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.

  5. 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 on Slots. The choice of tab and project is remembered in the browser.

  6. Expand a record to read the full content and its metadata fields; Copy puts the record text on the clipboard. On Sessions with no search filter, Show more loads the next cursor page.

  7. Refresh posts to the refresh route, drops the Host caches and reloads every list.

  8. When the daemon is down the chip reads offline, the page shows Agent memory is unavailable, suggests am-project health, and offers Try again. A rejected key reads key 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.

KeyDefaultMeaningWhere it is stored
baseUrlhttp://localhost:3111, or $AGENTMEMORY_URL when setRoot 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
secretempty, or $AGENTMEMORY_SECRET when setBearer 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/secretFile 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
timeoutMs20000Timeout 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 with Authorization: Bearer <key> when a key was resolved. The default target is loopback; a baseUrl that carries a login or password is refused, and a non-loopback host is refused unless baseUrl uses https://. 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), answers 405 for methods other than GET/HEAD, and allows only POST on the refresh route, and sends cache-control: no-store.
  • On disk. The plugin writes nothing. It reads the key from secretFile when needed. The page keeps the last tab and project filter in the browser's localStorage under the key dsh-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; Refresh clears both.
  • Switching it off. Disable or remove the bundle in Plugins: the sidebar row and every route disappear. Pointing baseUrl at 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.dsh in package.json), Web GUI: the bundle declares dsh.client with platform: web.
  • Node.js 22.19.0 or newer (engines.node).
  • A running agentmemory daemon with its HTTP API reachable at baseUrl and a bearer secret (~/.agentmemory/secret by 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

Plugins associés