DSH Plugins Marketplace

DSH Plugins

Plugins

/

dsh-cbm-autorefresh

x

dsh-cbm-autorefresh

Discovered

DeepSeek Harness plugin: refresh each Session's codebase-memory index for its own working directory

dsh-cbm-autorefresh

A DeepSeek Harness plugin that keeps codebase-memory indexes fresh per Session.

Harness opens one MCP connection for the whole app, so codebase-memory never learns which workspace a Session is actually working in — every project reports watch.reason: not_session_project and nothing auto-refreshes. This plugin closes that gap:

  • on session/created, it refreshes the index of that Session's own working directory;
  • on working-directory/change, it refreshes the new directory instead;
  • when the plugin itself (re)loads, it catches up on the Sessions that already exist.

Each refresh is one or more short-lived CLI calls (1–3 s when nothing changed). All heavy indexing happens inside codebase-memory's shared daemon, so the plugin never keeps a background process alive: N Sessions do not mean N resident processes.

Install

# in your DSH profile directory, e.g. ~/.dsh/profiles/desktop
pnpm add dsh-cbm-autorefresh

Then add the bundle to the profile manifest and reload:

// package.json
{
  "dsh": {
    "profile": {
      "bundles": ["@deepseek-ai/dsh-base", "dsh-cbm-autorefresh"]
    }
  }
}

The package ships its own cordis.patch.yml, so it mounts itself; override or disable it from your profile patch:

- id: cbm-autorefresh
  disabled: true

Configuration

- id: cbm-autorefresh
  name: dsh-cbm-autorefresh
  config:
    enabled: true                 # false turns every trigger off
    binary: /path/to/codebase-memory-mcp   # default: $CBM_BIN, then ~/.local/bin/codebase-memory-mcp
    minIntervalMs: 300000         # per-directory throttle (default 5 minutes)
    timeoutMs: 600000             # per CLI call timeout (default 10 minutes)
    logFile: /tmp/cbm-autorefresh.log      # optional: also append every refresh line to a file

Behaviour and limits

SituationResult
Session starts in an indexed repoindex refreshed (≈1–3 s when unchanged)
Session switches to another indexed repothat repo's index refreshed
Repo not indexed yetskipped and logged — first indexing stays a deliberate act
Not a git working directoryskipped and logged
Same directory within minIntervalMsskipped (throttled)
Same repo already refreshingskipped (single-flight)

Known limits:

  • the plugin does not create indexes, it only refreshes existing ones;
  • a Session that edits a lot without starting a new turn or changing directory stays refreshed at session start only — raise the triggers yourself if you need more;
  • requires codebase-memory-mcp on the machine (the binary config or $CBM_BIN).

How it works

session/created ─┐
                 ├─► session working directory ─► git rev-parse --show-toplevel
working-directory/change ─┘                          │
                                                     ├─► codebase-memory-mcp cli list_projects --format json
                                                     │      (find the project whose root_path matches)
                                                     └─► codebase-memory-mcp cli index_repository --repo-path <root>

Testing

npm test

License

MIT

Comments

Loading…

Similar plugins

dsh-codebase-memory

by smter

DeepSeek Harness plugin: connects the codebase-memory-mcp code graph, nudges the model at the decision point, corrects failed MCP calls, and indexes repositories by itself.

Manifest valid

★ 0

MIT

JavaScript

Oct 14, 2026

dsh plugin --profile web add dsh-codebase-memory

by douglarek

Cross-session persistent memory plugin for DeepSeek Harness (DSH)

Manifest valid

★ 0

MIT

JavaScript

Oct 23, 2026

dsh plugin --profile web add dsh-memory

by overspread

DeepSeek Harness plugin: back up every session before deletion, batch-select sessions in the Web GUI, restore a backup in one click

Development & InfrastructureManifest valid

★ 1

MIT

JavaScript

Oct 21, 2026

dsh plugin --profile web add dsh-session-backup

by hujiyo

DeepSeek Harness plugin: browse, search, copy and hide the prompts you sent to the AI across all sessions.

Manifest valid

★ 0

MIT

JavaScript

Oct 20, 2026

dsh plugin --profile web add dsh-recent-prompts

by Culeot

Cross-session long-term memory plugin for DeepSeek Harness (DSH)

Memory & ContextManifest valid

★ 8

MIT

JavaScript

Sep 26, 2026

dsh plugin --profile web add dsh-agent-memory

by bobleer

MCP server that lets any agent discover, install, and run DeepSeek Harness plugins (topic: dsh-plugin).

Manifest valid

★ 3

MIT

TypeScript

Aug 13, 2026

dsh plugin --profile web add deepseek-harness-plugin-mcp