DeepSeek Harness Plugin Hub

发布与管理完整 Harness Profiles,发现适合你的插件。

探索

插件目录环境预设文档中心动态

社区

发布插件联系我们报告问题

相关链接

Plugin Hub GitHubDeepSeek Harness 官方项目系统状态隐私说明
© 2026 DeepSeek Harness Plugin HubPowered byPaxTech

独立、非官方社区项目,与 DeepSeek 官方无隶属、授权或背书关系。

Memory — DeepSeek Harness 插件(DSH Plugin)
DeepSeek Harness Plugin Hub
ProfilesPlugins分类动态文档登录管理 Profiles
ProfilesPlugins分类动态文档登录
← Plugins
M

@foresight/memory

Memory

ForeSight:DeepSeek Harness (dsh) 的时间感知长期记忆插件

插件会安装到这里;不确定时保持 web。

npx -y @deepseek-ai/dsh plugin --profile web add github:xiangrui979/foresight#2168d62342b7634bdb26cfc22a37d44d0b9c877b
README兼容性版本

兼容性与来源证明

Memory 以 @foresight/memory 发布,当前版本为 0.1.0。Plugin Hub 会校验它的 manifest,并保存精确安装来源,便于复现安装结果。

DSH 兼容范围
*
运行环境
any
发布来源
github
Registry 更新时间
2026/8/22

版本

0.1.0stable
2026/8/22

相关插件

正在加载相关插件…

最新版
0.1.0
DSH
*
HMR
重启进程
Tree shaking
未声明可安全裁剪
解包体积
未提供
文件数
未提供
Surface
any
许可证
MIT
发布源
github
GitHub
★ 3
周下载
0
最近提交
2026/8/25
查看源码 ↗
README Badge

点击下方 Badge 复制 Markdown,粘贴到 README 即可。

这是你的 Plugin?认领权益 · 优先安全扫描

验证 package.json 声明的 GitHub 仓库,即可管理这个公开页面。认领后,Hub 会优先安排当前版本的安全扫描,并在通过后公开展示结果。

认领这个 Plugin →
报告问题

相关插件

继续浏览 memory-context 分类下经过校验的插件。

Memory Plugin@openviking/dsh-memory-plugin适用于 DeepSeek Harness 的 OpenViking 记忆与上下文套件Contextdsh-context用于上下文洞察和管理的 DeepSeek Harness 插件,提供上下文仪表板和上下文命令,帮助了解上下文的构成及其演变过程。Weknora@wxg-prc-cpg/dsh-weknora适用于 DeepSeek Harness (dsh) 的 WeKnora 知识检索工具:通过自有知识库进行语义搜索、文档阅读以及 RAG/代理回答。Memsearch Dsh@zilliz/memsearch-dsh适用于 DeepSeek Harness 的 MemSearch 插件:在多个代理之间共享 Markdown 记忆,支持捕获、步骤前上下文注入、记忆召回技能和技能候选审核面板。

README

ForeSight

A temporal-aspect long-term memory plugin for DeepSeek Harness (dsh).

Every memory carries explicit temporal semantics — a linguistic aspect (进行体 / 完成体 / 未然体 / 恒常体) paired with an anchor (time point / interval / open / none). The framework executes lifecycle mechanically: decay on anchor expiry, TTL fallback, renewal nudge, prospective review, prediction verification, and conflict resolution by evidence with a single conservative/aggressive knob (β).

Unlike chat vendors' rolling memories, ForeSight treats memory as scheduled first-class data: expiration, injection eligibility, retrieval weighting and contradiction resolution all derive from one structured policy file (policy.yaml) — zero hardcoded behavior.

Why it exists

Long-term memory is a data-management problem, not a prompt-engineering one. ForeSight applies the two axes that matter:

AxisValuesWhat it controls
体 (aspect)progressive / perfect / prospective / gnomiclifecycle: expires, permanent, to-verify, never-injected
锚定 (anchor)none / point / interval / openwhen the statement is true (valid time)

Requirements

  • Node.js ≥ 20
  • DeepSeek Harness (dsh) with the cordis plugin system
  • An embedding backend (default: Ollama with nomic-embed-text-v2-moe, 768-dim)
  • (Optional) An LLM API for classification/derivation (default: DeepSeek compatible API; rules-based fallbacks exist)

Installation (dsh profile)

# in your ~/.dsh/profiles/<name>/
pnpm add @foresight/memory

Then add the plugin to your profile's bundle list and wire it in a patch:

# cordis.patch.yml (profile-level)
- id: foresight-core
  config:
    memoryRoot: '<your data directory>'   # e.g. /home/you/.config/foresight
    dbFile: 'foresight.db'
    embedBaseUrl: 'http://localhost:11434'
    embedModel: 'nomic-embed-text-v2-moe'

Configuration — where does my data go?

Your data lives OUTSIDE the repo, in your own data directory. The plugin never ships any user data; the repository is pure code + templates.

Data directory layout

<memoryRoot>/
├── SOUL.md          # personality (copy from templates/SOUL.md.example)
├── user.md          # user profile (copy from templates/user.md.example)
├── policy.yaml      # all tunables (copy from templates/policy.yaml.example)
└── foresight.db     # SQLite store (created automatically)

On first run the plugin expects the three text files to exist. The plugin creates the directory if needed but does not silently write policy — copy the templates, then adjust:

mkdir -p ~/.config/foresight
cp templates/SOUL.md.example  ~/.config/foresight/SOUL.md
cp templates/user.md.example  ~/.config/foresight/user.md
cp templates/policy.yaml.example ~/.config/foresight/policy.yaml

Resolution chain

explicit options (adapter) → environment variables → policy.yaml → defaults

SettingEnv varDefault
data directoryFORESIGHT_MEMORY_DIR%APPDATA%/foresight (win) / ~/.local/share/foresight (unix)
db fileFORESIGHT_DB_FILEforesight.db
embed URLFORESIGHT_EMBED_URLhttp://localhost:11434
embed modelFORESIGHT_EMBED_MODELnomic-embed-text-v2-moe
LLM base URLFORESIGHT_LLM_BASE_URLhttps://api.deepseek.com/v1
LLM modelFORESIGHT_LLM_MODELdeepseek-v4-flash

Policy file

policy.yaml is the single source of truth for behavior: permission matrix, aspect registry (TTL, dwell, injection mode), gate categories, activation β and decay constants, retrieval factor weights, injection budgets, nudge cadence, server port/token. You decide your assistant's personality, profile, and memory policy — none of it is baked into the code.

Layout

src/
├── types.ts            # domain types (aspect×anchor)
├── defaults.ts         # the ONLY place default values live
├── config.ts           # resolution chain + data dir bootstrap
├── policy.ts           # policy.yaml loader + behavior lookup
├── schema.ts           # SQLite DDL + migration + sqlite-vec
├── store.ts            # CRUD, soft-delete, vectors, FTS, audit
├── gate/               # write gate: classify + validate (aspect-text)
├── govern/             # permission model
├── evolve/             # temporal expiry/TTL, activation, β conflict
├── retrieve/           # composable scoring factors + search (3 shapes)
└── store/embed.ts      # embed provider interface (Ollama default)

Verification

pnpm install
pnpm build     # tsc
pnpm test      # node --test tests/ — no external services required

All tests run against an in-memory/temp store and a fake embedder — the suite passes on a clean machine with no Ollama, no API key, and no data directory.

License

MIT