Community plugin

ramuzes / dsh-engram

engram memory for dsh agents: daemon stewardship, six curated memory tools, session bridge, optional prompt injection

  • JavaScript
  • License not detected
  • 0 stars
  • Dec 3, 2026

About this plugin

Written by the registry from verified metadata, not from the README.

dsh-engram is a DSH plugin published from the packages/engram package in the ramuzes/dsharp repository.

  • Listing statusManifest verified
  • Manifest checkedDec 3, 2026
  • Packagedsh-engram
  • Package pathpackages/engram
  • Package version0.1.7
  • DSH engine^0.2.2-rc.5
  • Source commitf724d82
  • Repository createdOct 2, 2026

Capabilities and topics

agent
From the repository README

README

Everything below this line is the repository's own document, cached here. This site did not write or review it.

Cached versionView on GitHub

dsh-engram

A dsh plugin that embeds engram memory for agents: it stewards the local engram daemon (health probe, auto-spawn or connect-only), registers curated memory tools (engram_search, engram_save, engram_context, engram_timeline, engram_stats, engram_projects, plus engram_cloud_status), bridges DSH↔engram session lifecycles, and optionally injects a memory summary into the prompt. Secrets (daemon HTTP token, cloud sync credentials) live only in the dsh credential store; configuration follows ADR-0005 — no deployment values baked into source.

Design and full spec: see docs/specs/2026-11-20-engram-memory-plugin-design.md and docs/plan/2026-11-21-engram-memory-plugin.md in the repository root.

Install

Plugins → Add plugin → point it at this package's local directory (packages/engram). The bundle layer (cordis.patch.yml) mounts the host half on one row (engram); enabling the bundle starts it. The Plugins page shows the configuration card documented below on the bundle's detail page.

Configuration reference

All fields live on the Loader row engram and are edited on the Plugins page (the bundle's config card) or defaulted through the bundle's patch layer. The one secret (the daemon HTTP token) is pasted into the card's write-only control — it lands in the dsh credential store under the httpTokenRef name and never renders or persists in a patch layer.

FieldTypeDefaultVolatileMeaning
daemonModeauto-spawn | connect-onlyauto-spawnnoDaemon stewardship (see below). Structural: edits take effect after plugin reload.
portstring''yesDaemon port. Empty uses engram's documented protocol default (7437).
httpTokenRefcredential-ref nameENGRAM_HTTP_TOKENyesCredential-store reference for the daemon HTTP token (the card's secret control writes here). Unresolvable = the daemon takes no auth.
projectModeauto | fixed | mapautoyesHow a session resolves its engram project: from the working directory (auto), one fixed project (fixed), or the projectMap table (map).
fixedProjectstring''yesThe engram project used when projectMode=fixed.
projectMapdict (string → string){}yesWorkspace absolute path → engram project mapping (path-prefix matched; bare names do not match; non-matching directories fall back to auto detection) for projectMode=map.
contextInjectionoff | onoffyesWhen on, injects a memory summary into every prompt (fail-open: injection failure never blocks the turn).
contextMaxBytesnumber ≥ 02048yesByte cap for the injected summary.
autosyncbooleanfalseyesApplies only to daemons this plugin spawns: injects ENGRAM_CLOUD_AUTOSYNC=1 to enable background cloud sync.
toolProfilecore | extendedcoreyesTool surface. v1 registers the core set only; extended is reserved. Not shown on the config card (advanced).

"Volatile" fields apply live: a Plugins-page save is picked up by the running plugin without a reload (config is re-read per call). daemonMode is the one exception — it changes mount-time stewardship structure, so saving it prints a reload hint in its field hint.

Cloud sync

There is deliberately no cloud server/token config here. engram resolves cloud settings from its own ~/.engram/cloud.json (set via engram cloud config / engram cloud enroll), with env as an override — upstream semantics this plugin does not second-guess. The autosync switch only passes the env-only ENGRAM_CLOUD_AUTOSYNC=1 opt-in to daemons DSH spawns; everything else comes from your engram configuration. Under connect-only the plugin touches nothing cloud-related.

Daemon stewardship

  • auto-spawn (default): on mount the host half probes the configured daemon endpoint; if unreachable, it spawns a local engram daemon as a managed subprocess (credential refs are resolved into env for the child). The stewardship is memoized: a daemon dying mid-session is detected on the next use and re-spawned with recovery, instead of leaving dead tools.
  • connect-only: the plugin never spawns anything; it connects to an already-running daemon and reports tools degraded/unavailable when it cannot reach it. Choose this when you run engram yourself (systemd, container, another machine via port).

Save-worthiness (what the host keeps)

Edits staged on the config card become durable only through the form's Save (one revision-fenced document mutation per save; discard-on-unmount otherwise). Accepted saves persist into the profile patch layer — volatile fields take effect immediately AND survive restarts; leaving the page or the bundle drops staged drafts. Per-field "overridden" badges preview what a save would store, and the per-field Reset stages a clear that re-inherits the composition layer. See the prompt section of the design spec for the full layered-config model.

Limitations (v1)

  • Core memory surface only: no update, delete, pin, review, conflict resolution, or decay tooling — v1 registers search / save / context / timeline / stats / projects (plus the cloud status tool). Those flows stay in the engram CLI for now.
  • Enrollment is a CLI action: joining a project or device to engram is done with engram's own CLI, not from DSH.
  • Cloud sync is configure-only: the plugin reports sync status (engram_cloud_status) and flips autosync; it adds no sync protocol of its own.
  • Per-session MCP mode (attaching engram's own MCP server per session instead of the built-in tools) is future work, not in v1.
  • No live status card: the Plugins-page card is configuration only; a live daemon status section would need a Remote namespace (chrome-cdp's status card is the precedent) — deferred to v2.

Badge

Listed here? Link back with this badge — paste the snippet into your repository README.

Listed on DSH Plugin badge
[![Listed on DSH Plugin](https://dsh-plugin.com/badges/listed.svg)](https://dsh-plugin.com/plugins/ramuzes/dsharp/packages/engram)