Back to directory

opencontext

Curated pickMaintenance: Active

melandlabs/opencontext

A temporal context graph, a memory API, retrieval primitives, and a multiple-platform integration mesh — designed to be embedded into any host process.

View on GitHubHomepage
$ dsh plugin --profile web add dsh-opencontext

76

stars

7

forks

TypeScript

Language

Apache-2.0

License

2026-08-10

Created

2026-09-30

Last push

Apache-2.0 agentic context runtime that ships as a native DeepSeek Harness plugin — gives any DSH agent durable memory, RAG context, and 16 `oc_*` tools, with a temporal fact graph and local-first storage.

DSH integration

Native runtime

Author-claimed

Safety audit

Unaudited

Last verified

2026-08-29

License

Apache-2.0

01What can it help you accomplish?

  • Give a DeepSeek Harness agent durable, queryable memory and retrieval-augmented context

    A mounted DSH plugin that runs a recall waterfall each turn, captures user messages into durable memory, and exposes 16 `oc_*` tools (e.g. `oc_search`, `oc_remember`, `oc_memory_list`)

    DSH agent authors who want persistent memory and RAG without running a separate vector database

  • Track decisions and facts over time with citable provenance

    A temporal context graph where every fact has `valid_from` / `valid_until`; corrections are append-only, not destructive, with exportable compliance evidence

    Software-engineering, finance, and audited-domain teams that need per-fact provenance and retention-aligned audit trails

02How to install into DeepSeek Harness

Installation steps

  1. 01

    Add the OpenContext plugin to a DSH profile from npm: `dsh plugin --profile web add dsh-opencontext`

    $ dsh plugin --profile web add dsh-opencontext

  2. 02

    Start DSH web and open the plugins panel to enable it: `dsh web` (then visit http://127.0.0.1:3080/plugins)

    $ dsh web

Verify the integration

  • Confirm the plugin is mounted: `dsh --profile web --dump-config | grep dsh-opencontext` — output should contain `id: dsh-opencontext`
  • Open http://127.0.0.1:3080/plugins in DSH web and confirm dsh-opencontext shows "Enabled"

03DSH integration and capability boundaries

DSH integrationNative runtime

Native DSH plugin (`dsh plugin add dsh-opencontext`) — gives any DSH agent durable memory and retrieval-augmented context, exposing 16 `oc_*` tools

  • Temporal Context Graph

    facts / messages attributed to a user, each carrying `messageId` and `valid_from` / `valid_until`→a directed acyclic graph of facts with first-class supersession, contradiction, and merge edges

  • Platform Integration Mesh

    Gmail, Slack, Telegram, Linear, Jira, iMessage, Feishu, Weixin, …→one uniform `IntegrationRecord` shape; credential rotation, rate-limit handling, and reconnect logic behind the adapter

  • Deterministic Loop Engine

    scheduled wake-up triggers→a scheduler that wakes up, decides whether there is real work, and only then calls into the agent runtime

  • Retrieval Primitives

    PDF / ZIP / text documents→chunking, embeddings, parsers, and sqlite-vec + pgvector + Chroma adapters

  • DSH plugin tools (`oc_*`)

    a DSH agent turn→16 `oc_*` tools that run a recall waterfall, capture user messages, and summarize sessions

    captures user messages into durable memorysummarizes sessions at natural breakpoints (opt-in)

04Who is it for? When not to use it?

Good for

  • DSH agent authors who want persistent memory and RAG without running a separate vector database
  • Software-engineering, finance, and audited-domain teams that need per-fact provenance and retention-aligned audit trails

Not for

  • The HTTP daemon and integration adapters make outbound calls; OpenContext gates outbound traffic with a URL allowlist/blocklist and encrypts secrets with Fernet symmetric encryption.

05Compatibility, maintenance and safety notes

  • OpenContext persists memory and audit logs on local disk by default — the memory store defaults to SQLite at `MEMORY_STORE_DB_PATH` (`./memory.db`), and audit logs are written to `~/.opencontext/logs/audit.jsonl`.
  • The HTTP daemon and integration adapters make outbound calls; OpenContext gates outbound traffic with a URL allowlist/blocklist and encrypts secrets with Fernet symmetric encryption.
  • OpenContext is a TypeScript library plus a CLI / daemon distributed on npm; embedding or running it expects a Node.js + pnpm / npm toolchain.
2026-08-102026-08-27Not specified by the author

Apache-2.0 · maintained by Meland Labs (no release tagged in the facts pack)

06Frequently asked questions

How do I install OpenContext as a DeepSeek Harness plugin?

Add it from npm with `dsh plugin --profile web add dsh-opencontext`, then start DSH web with `dsh web` and open the plugins panel at http://127.0.0.1:3080/plugins to enable it. The plugin mounts as `dsh-opencontext`.

What tools does the DSH plugin expose?

It exposes 16 `oc_*` tools — including `oc_search`, `oc_remember`, and `oc_memory_list`. Each turn it runs a recall waterfall to inject relevant historical context and captures user messages into durable memory; session summarization at natural breakpoints is opt-in.

Do I need to run a separate vector database?

No. OpenContext bundles its own retrieval primitives with sqlite-vec, pgvector, and Chroma adapters, and a single `pnpm add @melandlabs/opencontext` installs the whole runtime. You can mix storage backends without rewriting the recall pipeline.

How do I verify the plugin is mounted in DSH?

Run `dsh --profile web --dump-config | grep dsh-opencontext` — the output should contain `id: dsh-opencontext`. You can also open http://127.0.0.1:3080/plugins in DSH web and confirm dsh-opencontext shows "Enabled".

Where does OpenContext store my data?

Memory and audit logs are written locally: the store defaults to SQLite at `MEMORY_STORE_DB_PATH` (`./memory.db`), and audit logs go to `~/.opencontext/logs/audit.jsonl`. Secrets are Fernet-encrypted and outbound calls are gated by a URL allowlist/blocklist.

08Data and sources

  • Author-claimedgithub.com09858088959f…

    OpenContext is available as a DSH plugin that gives any DSH agent durable memory and retrieval-augmented context

  • Author-claimedgithub.com09858088959f…

    The plugin exposes 16 `oc_*` tools (e.g., `oc_search`, `oc_remember`, `oc_memory_list`)

This page is generated from the project’s public documentation, repository metadata and a structured parse of DSH Plugins; last verified on 2026-08-29. Found an error? Submit a correction.

🏆

Best DeepSeek Harness Plugins

Twelve plugins worth installing first — picked from the whole catalog, across every category.

DSH Plugins is an independent community directory of DeepSeek Harness plugins. Not affiliated with or endorsed by DeepSeek. Third-party plugins are not security-audited — review the source before installing.

New DeepSeek Harness plugins, weekly. No spam.