dsh-experience-index: Setting Road Signs for Cross-Session Experience Documents

Introduction

When starting a new session in DeepSeek Harness (DSH), the system loads content discovered by built-in mechanisms such as AGENTS.md, CLAUDE.md, and .agents/skills. However, many teams store mature workflows, architecture rules, and experiment logs in directories like .codex/runbooks/, .comate/rules/, or .codex/analysis/—these free-form experiential documents are not included in the context by default. Conversely, stuffing all files from these directories into the prompt often mixes in a large amount of session noise and temporary artifacts, leaving only a small fraction of truly reusable documentation.

The following introduces the community plugin dsh-experience-index (Maintainer: Crinstaniev, Category: Memory). It registers experience files left by various agents in these directories as signposts. This allows a new session taking over development to know “what documents are available for reference here,” while the model reads the actual content itself using read / grep / glob. The plugin only handles discovery, registration, and prompting; it provides no model tools.

What is This

Plugin Repository: Crinstaniev/dsh-experience-index. SkillHub Directory Page: dsh-experience-index.

One-sentence positioning: Signpost experience files left by earlier agent sessions, so a new DeepSeek Harness session knows what already exists.

The index is organized by directories (scope): you explicitly select absolute paths to index, which can be a repository root, a sub-project repo/sub-project/, or a non-git directory. In a single session, only one signpost (within a budget of approximately a few hundred bytes to 2 KB) from the deepest scope containing the current working directory is injected, with paths listed relative to the current working directory.

Core Functions

Discovery and Classification

The indexer classifies files according to allowlist globs and rules; for each file, it reads only the first 4 KB of the header to extract metadata (title priority: frontmatter description, then the first # heading, finally the filename). The database does not copy the body content. It discovers “Roaming Experience Roots” by depth within the scope, recognizing directory names such as .codex, .comate, .claude, and .agents by default.

Signpost Injection

In the first step of a session, a <system-reminder> style signpost is injected, marked as “for reference only, not an instruction,” and clarifying that AGENTS.md and current code take priority. If a category has ≤ 6 entries (default smallCategoryLimit), the paths and a one-sentence description are listed individually; if more, they are collapsed into “directory + count + latest date.” Session logs, state files, etc., are not expanded by default but receive a negative signpost to prevent the model from attempting to retrieve massive amounts of tmux logs.

Manual Indexing and UI

Indexing does not automatically scan the entire disk: directories that have never been indexed will not have records in the database. After indexing is established, the next session in that directory (or a deeper nested scope) will receive the signpost. Staleness is determined only by a cheap stat comparison and marked as such; manual index rebuilding is required.

Installation and Activation

The plugin’s lib/ contains build artifacts, so you must build it before installation. The steps provided in the official README are as follows:

git clone https://github.com/Crinstaniev/dsh-experience-index.git
cd dsh-experience-index
npm install
npm run build

dsh plugin --profile desktop add link:/absolute/path/to/dsh-experience-index

Restart DSH after installation. Runtime requirements: engines.dsh is >=0.2.0-rc.1 <0.3.0, and node is >=20. License is MIT.

The plugin runs with the permissions of the current DSH process; please review the repository source code and license yourself before installation to ensure they meet your compliance requirements.

Typical Usage

There are three entry points:

  1. Compass Button on the right side of the input box: View the number of directories, entries, stale entries, and the status of the current directory. You can build or rebuild the index with one click (resolves the working directory based on the current session).
  2. Settings → Experience Index: Manage all scopes. You can index any absolute path, view entries, exclude, or remove scopes.
  3. Chat command /experience: Build an index for the current working directory; or use /experience /path/to/dir to specify a path.

A successful /experience command returns something similar to:

Indexed /path/to/services/api — 45 files · runbook 2 · log 42.
The next session in this directory receives the signpost.

Ignore rules can be placed in .dsh/experience-ignore within the scope (gitignore subset semantics), and the global version is $DSH_HOME/experience-ignore. Project files take priority.

Optional configuration is written in the profile’s cordis.patch.yml, for example:

- id: dsh-experience-index
  name: dsh-experience-index
  config:
    legacyMaxDepth: 3
    smallCategoryLimit: 6
    signpostMaxBytes: 2048

For more fields (sources, countOnlyCategories, legacyRootNames, etc.), please refer to src/config.ts and the configuration table in the README.

Use Cases and Notes

Suitable for: Teams that use multiple rounds of agents in the same repository over a long period, leaving behind runbooks, rules, and analysis notes, and want the new session to first know “which paths to read” rather than redesigning the process or mistaking logs for reference materials.

Explicitly Does Not Do (stated in README): No experience show/search style tools; no full-text search, heading splitting, or LLM summarization; no automatic rebuilding of stale indexes; no merged injection across scopes; files newly written in the current session will only enter the index after the next rebuild.

Other Limitations: First-time copying of a fork worktree only performs validation mapping and does not discover files added by branches; scope paths are normalized via realpath; AGENTS.md in subdirectories is not read by the built-in instruction chain, but this plugin can index it as a rule category.

The DSH ecosystem emphasizes “Everything is a plugin”; SkillHub is a community directory site with no official affiliation with DeepSeek or High-Flyer.

Conclusion

dsh-experience-index uses lightweight signposts to fill the visibility gap in DSH regarding free-form experiential documentation: you control the scope and the timing of rebuilds, and the model reads the body content as needed. For further information, please visit the SkillHub Plugin Page and the GitHub Repository.

羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

Xiaoye