Community plugin

EverMind-AI / @everos-ai/dsh-plugin

Automatic cross-session memory for DeepSeek Harness, backed by a local EverOS service.

  • JavaScript
  • Apache-2.0
  • 9 stars
  • Nov 29, 2026

About this plugin

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

@everos-ai/dsh-plugin is a DSH plugin published from the dsh package in the EverMind-AI/Plugins repository.

  • Listing statusManifest verified
  • Manifest checkedDec 1, 2026
  • Package@everos-ai/dsh-plugin
  • Package pathdsh
  • Package version0.2.0
  • Source commit0198909
  • Repository createdJul 27, 2026

Capabilities and topics

deepseek-harnessdsh-pluginmemoryagent
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.

EverOS Memory for DeepSeek Harness

Automatic cross-session memory for DeepSeek Harness (DSH), backed by a local EverOS service.

The plugin follows a three-stage lifecycle:

  1. Recall — once at the start of each user turn, search the EverOS user and agent tracks in parallel and append a source-attributed recall message. When the user has switched sessions, pending memory from the previous session is committed first.
  2. Capture — at every turn stopping boundary, durably append newly committed user, assistant, tool-call, and tool-result events to EverOS's SQLite buffer without an LLM extraction call.
  3. Flush — batch extraction after an idle window, a token/message threshold, a session switch, a maximum delay, or shutdown. Session disposal remains the final safety net.

EverOS failures are fail-open: they are logged, but never reject the user's DSH step or turn.

Requirements

  • Node.js ^22.19.0 || >=24.0.0
  • DeepSeek Harness 0.1.0-rc.6 through the 0.2.x line (scripts/host-matrix.sh checks 0.1.0-rc.6 to 0.2.2-rc.2)
  • EverOS installed and initialized
uv tool install everos
everos init

EverOS 1.2.3 supports the plugin's LLM-only Tier 1 path with keyword recall. Deferred capture batching additionally requires an EverOS build that supports defer_extraction; until that capability is included in a tagged release, install EverOS from the EverOS repository's main branch. With 1.2.3, capture remains functional, but /add uses the eager boundary and extraction path.

Embedding, rerank, and multimodal credentials are optional. EverOS owns provider and storage configuration; this plugin does not accept or store API keys.

For a local EverOS source checkout, install that tree and provide the LLM key through the environment before starting EverOS:

uv tool install --editable /path/to/EverOS
everos init
export EVEROS_LLM__API_KEY='<your OpenRouter key>'
everos server start

The generated ~/.everos/everos.toml already contains the default OpenRouter model and base URL. Keep secrets out of the repository and use your normal secret manager for persistent setup.

Install

For local development from this plugins repository:

cd dsh
npm ci
npm run ci
dsh plugin --profile web add .

After the package is published:

dsh plugin --profile web add @everos-ai/dsh-plugin

The package declares dsh.bundle.patch, so a repository URL ending in /tree/main/dsh is also suitable for DSH plugin discovery. A source install runs the package's prepare build, so pnpm may require the user to approve that build in the profile's allowBuilds list. The npm package ships prebuilt output and needs no such approval.

Configuration

The bundled patch reads the most common values from environment variables:

export EVEROS_DSH_BASE_URL=http://127.0.0.1:8000
export EVEROS_DSH_USER_ID=alice
export EVEROS_DSH_AGENT_ID=dsh
export EVEROS_DSH_RECALL_METHOD=keyword
export EVEROS_DSH_FLUSH_IDLE_MS=30000
export EVEROS_DSH_FLUSH_TOKEN_THRESHOLD=12000
export EVEROS_DSH_FLUSH_MESSAGE_THRESHOLD=50
export EVEROS_DSH_FLUSH_MAX_DELAY_MS=300000
export EVEROS_DSH_START_COMMAND='everos server start'
export EVEROS_DSH_DIR=/path/to/EverOS

Every option can also be set in the plugin row of the DSH Cordis profile:

- id: everos-memory
  name: '@everos-ai/dsh-plugin'
  config:
    baseUrl: http://127.0.0.1:8000
    apiVersion: auto
    appId: dsh
    userId: alice
    agentId: dsh
    recallMethod: keyword
    queryN: 3
    queryMaxChars: 2000
    recallTopK: 5
    recallMaxChars: 12000
    recallTimeoutMs: 5000
    captureTimeoutMs: 15000
    captureMaxChars: 50000
    flushIdleMs: 30000
    flushTokenThreshold: 12000
    flushMessageThreshold: 50
    flushMaxDelayMs: 300000
    flushOnSessionSwitch: true
    autoStart: true
    startCommand: everos server start
OptionDefaultMeaning
baseUrlhttp://127.0.0.1:8000EverOS server root
apiVersionautoTry /api/v2, then fall back to /api/v1 on 404
appIddshEverOS application partition
projectIdworkspace-derivedOptional fixed project partition
userIdoperating-system accountUser-memory owner
agentIdDSH agent presetAgent-memory owner
recallMethodkeywordEverOS retrieval method; keyword supports LLM-only Tier 1
queryN3Direct user messages blended into a recall query
queryMaxChars2000Recall-query character budget
recallTopK5Result limit per owner track
recallMaxChars12000Maximum injected memory block
recallTimeoutMs5000Timeout for each search
captureTimeoutMs15000Timeout for add and flush requests
captureMaxChars50000Per-message capture limit
flushIdleMs30000Debounced flush after no newly captured turn activity
flushTokenThreshold12000Approximate buffered-token threshold for an immediate flush
flushMessageThreshold50Buffered-message threshold for an immediate flush
flushMaxDelayMs300000Maximum age of a non-empty buffer before flushing
flushOnSessionSwitchtrueCommit other pending sessions in the workspace before recall
autoStarttrueStart EverOS when a loopback endpoint is unavailable
startCommandeveros server startShell-free auto-start command
everosDirprocess directoryWorking directory for auto-start

Scope and identity mapping

  • app_id defaults to dsh.
  • project_id is the workspace directory name plus a stable hash of its absolute path. Two repositories with the same directory name therefore remain separate.
  • session_id is the DSH session id, normalized to the EverOS 128-character contract.
  • user_id comes from explicit config, USER/USERNAME, or the OS account.
  • agent_id comes from explicit config or the DSH agent preset. Sessions using the same preset can learn shared agent cases and skills.

All derived identifiers are deterministic and path-safe.

Context and capture policy

Recall is injected with DSH provenance:

{ kind: "plugin", plugin: "everos-memory", form: "recall" }

Recalled content is fenced as untrusted historical evidence. Stored fence tokens are neutralized before injection, which prevents a recalled item from escaping the memory block. Plugin-generated context is never captured as direct user input, so recalled memory does not recursively save itself.

Capture includes:

  • direct user messages;
  • visible assistant text;
  • assistant tool calls with raw JSON arguments;
  • tool results linked by call id;
  • safe image metadata such as media type and dimensions.

Raw model reasoning and image bytes are intentionally excluded. DSH attachment ids are opaque and are not treated as file paths or bearer URLs.

Operational behavior

  • Writes are serialized per DSH session.
  • Capture uses defer_extraction: true: raw turns are durable immediately, while the expensive boundary and memory LLM work is batched. An EverOS build with defer_extraction support is required for this optimization; EverOS 1.2.3 ignores the request field and retains its eager /add behavior.
  • Starting a new DSH session establishes a read-after-write barrier for other pending sessions in the same workspace, so the first recall sees the latest committed memory.
  • A cursor based on DSH event sequence numbers captures only new live events, including additional steps in the same turn.
  • Add requests are split at EverOS's 500-message API limit.
  • A resumed DSH session starts capture at Session.firstLiveSeq; historical seed events are not re-ingested.
  • Auto-start never invokes a shell and is restricted to loopback URLs. A process started by the plugin is stopped during plugin disposal; an existing EverOS process is not.
  • If another EverOS process owns the OME lock, the plugin keeps polling and connects to that process when it becomes healthy.
  • Keyword recall is the safe default for EverOS Tier 1. Users who configure embedding and rerank capabilities may explicitly select vector, hybrid, or agentic.

Privacy and trust boundary

EverOS is local by default, but the captured trajectory may include source snippets, commands, and tool output. Review the EverOS storage and model-provider configuration before using the plugin with sensitive repositories. Keep credentials in approved secret stores and avoid printing them into agent-visible tool output.

The plugin deliberately exposes no model-callable memory write tool. Memory is derived from the durable DSH trajectory, while EverOS remains the single storage and extraction authority.

Development

npm ci
npm run ci                     # lint + typecheck + 20 unit tests + build
./scripts/host-matrix.sh       # the PACKED artifact on each published DSH, stub EverOS
./scripts/e2e-everos.sh        # the PACKED artifact against a REAL EverOS
./scripts/e2e-dsh-headless.sh  # real DSH CLI agent loop + real EverOS, two sessions

npm run ci uses mocked HTTP and DSH-shaped event logs. It needs no credentials and starts no EverOS, but for the same reason it cannot tell you the plugin works against the real ones: both the fetch and the session are written by the tests themselves.

scripts/host-matrix.sh answers it for the DSH side. For each DSH version it installs @deepseek-ai/dsh-agent at that version (npm resolves the rest), unpacks what npm pack would ship next to it, and runs scripts/host-check.mjs: one turn on a real Session with a recall, a tool call and result, and a seal, judged by what a stub EverOS received. It needs no credentials and no EverOS. DSH has renamed what the plugin reads inside a minor line before (0.1.2 dropped session.events; 0.1.7 replaced the tool-result block), so run it against every new DSH release before widening the supported range.

scripts/e2e-everos.sh answers the EverOS side. It starts its own EverOS on its own port under its own root, installs what npm pack would ship into a project holding DSH at its published versions, and drives the three lifecycle points through real cordis events on a real @deepseek-ai/dsh-session Session. Every check reads backend receipt — what EverOS logged and the markdown it wrote — and the last one asks a session that never saw the fact to get it back. It needs an EverOS checkout whose config has working llm/embedding/rerank credentials:

DSH_E2E_EVEROS_BIN=~/EverOS/.venv/bin/everos \
DSH_E2E_SOURCE_CONFIG=~/.everos/everos.toml ./scripts/e2e-everos.sh

Current limitations

  • DSH is still a release candidate, so its plugin APIs may change before a stable release.
  • The adapter records image metadata, not attachment bytes.
  • The EverOS add API has no idempotency key. An ambiguous network failure followed by a later retry may produce at-least-once capture semantics.
  • Recall currently has no management UI or explicit remember/forget tools.
  • scripts/e2e-everos.sh installs the DSH packages' latest dist-tag, which is still 0.1.0-rc.6 for dsh-agent; DSH 0.2.x is covered by scripts/host-matrix.sh only.
  • host-matrix.sh and e2e-everos.sh dispatch the agent events themselves. scripts/e2e-dsh-headless.sh is the one that goes through DSH's own agent loop: it installs the DSH CLI (0.2.2-rc.1 by default; needs Node >= 24.9 and DEEPSEEK_API_KEY), adds the packed plugin to an isolated headless profile, states a fact in one session, and passes only if a fresh session answers with it while the same question with recall cut off does not. It spends real tokens. The Desktop and Web profiles are not covered.
  • DSH bounds plugin shutdown: a headless run waits about 5 s for the seal's /flush, then exits. EverOS has the request by then and finishes the extraction, but a flush that runs longer gets no response and may not appear in EverOS's access log.
  • Every failure path fails open into logger.warn. Memory stopping is not otherwise visible to the user.

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/EverMind-AI/Plugins/dsh)