> ## Documentation Index
> Fetch the complete documentation index at: https://docs.hydradb.com/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> AGENTS.md is HydraDB's maintained agent guide. Read https://docs.hydradb.com/AGENTS.md once, then use its content. /llms.txt and /llms-full.txt redirect to the same guide; they are not separate documentation indexes. If the guide is already loaded, continue with it instead of fetching either alias or reloading the guide.

# DeepSeek Harness

> Give the DeepSeek Harness long-term memory with the HydraDB plugin.

The HydraDB plugin for the [DeepSeek Harness](https://github.com/deepseek-ai/deepseek-harness) (`dsh`)
retrieves relevant context before each turn, syncs workspace docs when files
change, and saves conversations as memories. It is a native
[Cordis](https://github.com/deepseek-ai/deepseek-harness) plugin that wires onto
the harness interception seams.

## Quickstart

**1. Install**

Requires the DeepSeek Harness (`dsh`) and Node.js 18+.

The package ships as a dsh bundle, so `dsh plugin add` installs it from npm
and wires it as a profile layer in one step:

```bash theme={"dark"}
dsh plugin --profile <name> add dsh-hydradb
```

dsh appends it to the profile's bundles and inserts the plugin row, so you
edit no config file by hand.

**2. Configure**

Set credentials in the environment, or pass them in the bundle's `config`
block:

```bash theme={"dark"}
export HYDRADB_API_KEY="your-api-key"
export HYDRADB_DATABASE="your-database"
```

Optional: `HYDRADB_COLLECTION` (the collection to use) and `HYDRADB_BASE_URL`.
The dsh-prefixed names `HYDRA_DEEPSEEK_API_KEY` and `HYDRA_DEEPSEEK_TENANT_ID`
also work; the canonical `HYDRADB_*` names take precedence.

**3. Run**

Run a one-shot task with the `headless` command, reusing the profile you
installed the plugin into (any other dsh surface works too):

```bash theme={"dark"}
dsh --profile <name> headless "What did we decide last session?"
```

On the first step of each turn, the plugin queries HydraDB and prepends
relevant memory to the prompt.

## Configuration

This plugin runs on the same engine as the [Claude Code plugin](https://docs.hydradb.com/plugins/claude-code), so the [modes](https://docs.hydradb.com/plugins/claude-code#modes) and other [configuration settings](https://docs.hydradb.com/plugins/claude-code#configuration) there apply here too.

## How it works

| dsh seam | Engine action |
| - | - |
| `agent/created` | Sync workspace docs into HydraDB when a session opens |
| `agent/pre-step` (turn's first step) | Query memories and knowledge, and prepend the results to the step messages |
| `tools/post-execute` (file-writing tools) | Incremental workspace sync |
| `session/event` -> `turn/end` | Capture the completed turn |

Manual actions come from the shipped skills: `query`, `ingest`, `doctor`,
`setup`, and `last-recall`.

## Feedback and contributions

This plugin is open source. [Raise an issue](https://github.com/hydra-db/hydradb-deepseek-plugin/issues) or [contribute on GitHub](https://github.com/hydra-db/hydradb-deepseek-plugin).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.