鱼皮AI导航
鱼皮AI导航
  • 主页
  • 社区
  • AI工具
  • AI知识库
  • AI提示词
  • MCP
  • Skills
  • AI学习资源
  • AI资讯
  • GitHub开源
登录/注册

dsh-honcho

由 Plastic Labs 维护的 Honcho 记忆插件:会话启动时注入用户画像、会话摘要与相关结论,后台脱敏后逐轮上传对话到 Honcho,提供 honcho_search / honcho_chat / honcho_remember 工具及 /honcho 状态命令;通过与其他 Honcho 集成共用的 ~/.honcho/config.json 配置,支持托管的 honcho.dev 或自建实例。

记忆
访问 GitHub
文档README

dsh-honcho

Persistent memory for DeepSeek Harness, powered by Honcho.

dsh forgets everything when a session ends. This plugin gives it memory that doesn't: what you're building, how you like to work, what you decided last week and why. It reads the same ~/.honcho/config.json as the other Honcho integrations, so there is one place to configure all of them — and pointing two of them at the same workspace gives them one shared memory.

Install

▼
sh
复制代码
dsh plugin --profile <name> add @honcho-ai/dsh-honcho

Then put your API key and name in ~/.honcho/config.json:

▼
jsonc
复制代码
{ "peerName": "your-name", "auth": { "apiKey": "${HONCHO_API_KEY}" }, "hosts": { "dsh": { "workspace": "dsh" }, }, }

Get a key at app.honcho.dev. HONCHO_API_KEY in the environment also works on its own — the config file is only needed to change defaults.

What it does

Injects what Honcho knows at the start of a session — your profile, a summary of this project's session so far, and the conclusions Honcho has drawn that are relevant to what you just asked. One API call, shaped to a character budget, refreshed as you work.

Captures every turn. User and assistant messages go to Honcho in the background, debounced, and flushed at turn boundaries, before compaction, and on shutdown. Secrets are redacted first.

Gives the model three tools:

ToolFor
honcho_searchLooking something up. Searches raw messages and derived conclusions.
honcho_chatAsking a question of judgment. Reasons over everything Honcho knows. Slow.
honcho_rememberSaving a durable fact, preference, or decision.

/honcho shows status and a link to the session in the Honcho dashboard — see Commands below.

Configuration

Everything behavioral lives in ~/.honcho/config.json under hosts.dsh — the same file claude-honcho, codex-honcho, and the other integrations read. Root holds identity and connection; the host block holds behavior.

▼
jsonc
复制代码
{ "peerName": "your-name", "workspace": "honcho", "baseUrl": "https://api.honcho.dev", // bare host or …/v3 both fine "timeoutMs": 30000, "auth": { "apiKey": "${HONCHO_API_KEY}" }, "enabled": true, // global kill switch // sessions may also sit here as a fallback; the host block wins "hosts": { "dsh": { "workspace": "dsh", "aiPeer": "dsh", // defaults to the host name "observationMode": "unified", // unified | directional "sessionStrategy": "per-directory", // see Sessions below "sessionPeerPrefix": true, // session names are <peer>-<dir> "sessions": { "/path/to/repo": "pinned-session-name" }, // pin a session "injection": { "sessionStart": ["directives", "summary", "peerCard"], // + representation "perTurn": ["userContext", "dialectic"], // userContext = representation + card "tools": true, "searchTopK": 10, "searchMaxDistance": 0.6, "maxConclusions": 15, // how many conclusions Honcho RETURNS "maxRenderedConclusions": 4, // how many survive filtering into the prompt "contextTokens": 1500, "cadence": { "dialectic": 5, "ttlSeconds": 300 }, "dialectic": { "reasoning": "low", // minimal | low | medium | high | max "maxChars": 600, }, }, "capture": { "saveMessages": true, "saveToolUse": false, // one-line summaries of tool activity "writeFrequency": "async", // async | sync "noisePatterns": [], // additive to the built-in secret patterns }, "messageUpload": { "maxUserTokens": 6000, "maxAssistantTokens": 6000, }, }, }, }, }

Injection components

The two menus differ in cadence, not in what they can carry.

injection.sessionStart is injected once when a session opens: directives (guidance on using memory), summary, peerCard, representation.

injection.perTurn refreshes as you work:

  • userContext — a fresh, prompt-scoped peer context blob: representation + peer card, retrieved using your current message as the search query so recall is associative rather than merely recent. It is a bundle, so it supplies both regardless of what sessionStart names. To get one without the other, name it in sessionStart and set perTurn: [] — at the cost of per-turn refresh.
  • dialectic — a reasoned answer about you, run every cadence.dialectic turns and shaped by injection.dialectic. Nothing waits on it after the first turn, so a late answer reaches the next one.

Components the canonical schema names but this plugin does not implement — briefing, assistantContext, sessionContext — are reported at startup rather than silently dropped, as are schema keys it does not act on (showContents, statusline, globalOverride, granular observation, multiUser) and any key renamed since an earlier version. Nothing here is accepted and quietly ignored.

The plugin's own cordis.yml config carries plumbing only — configPath, apiKeyRef, host, enabled. Set host to run a credential-isolated profile ("dsh_work") against the same install.

Sharing memory with other integrations

Each integration defaults to its own Honcho workspace — dsh here, claude_code for claude-honcho — and a workspace is the isolation boundary, so by default they do not see each other's memory. Point them at the same workspace to merge them:

▼
jsonc
复制代码
"hosts": { "dsh": { "workspace": "shared" }, "claude_code": { "workspace": "shared" } }

Keep peerName identical across them too, since conclusions are stored per peer.

Sessions

Default: one long-lived session per project directory, named <peerName>-<dir>, matching claude-honcho. Pin a different name for any path with the root sessions map — an override always wins.

sessionStrategySession nameNotes
per-directory (default)<peer>-<dir>Stable across restarts and branches
per-repo<peer>-<repo-root>Same memory from any subdirectory
git-branch<peer>-<dir>-<branch>Falls back to per-directory outside a repo or on a detached HEAD
per-session<peer>-chat-<id>A clean slate every restart
global<peer>One memory for everything

Prefer the wider scopes. Honcho's guidance is not to scope sessions too thin: the background Deriver needs a single session to accumulate enough material before it can reason well. git-branch splits a project's memory per branch, and per-session discards it on every restart.

Commands

CommandDoes
/honchoStatus: peer, workspace, session, strategy, pending uploads, last sync, last fetch
/honcho configResolved settings, the file they came from, and any ignored injection components
/honcho flushSync now

Requirements

  • Node ^22.19.0 || >=24.0.0
  • A running dsh (developed and typechecked against 0.1.2-alpha.3)
  • A Honcho API key, or a self-hosted Honcho at baseUrl

Development

▼
sh
复制代码
bun install bun test bun run typecheck bun run build

See ARCHITECTURE.md for the design and the reasoning behind each extension point, and RUNBOOK.md for a throwaway-VM test pass.

Credit

dsh-honcho-sync by @nanpaidashi (MIT) inspired the initial design of this plugin

The ~/.honcho/config.json contract, the session-naming convention, and src/redact.ts come from the sibling Honcho integrations — claude-honcho, codex-honcho, and their relatives.

DeepSeek Harness is MIT-licensed, and its Cordis plugin model is what made a native integration worth writing instead of a hook bridge.

License

MIT

记忆

快捷安装

复制到终端去安装插件

dshplugin--profilewebaddgithub:plastic-labs/dsh-honcho

温馨提示

装插件等于在本机跑第三方代码,权限与你相同,能读文件、用凭据、访问网络,工具审批管不到。请只装可信来源,并尽量锁定 commit。

站长:程序员鱼皮 老鱼简历 商务合作 增值电信业务经营许可证
2026 鱼皮AI导航 | 沪ICP备19026706号-6
站长:程序员鱼皮 老鱼简历 商务合作 增值电信业务经营许可证
2026 鱼皮AI导航 | 沪ICP备19026706号-6
dsh 插件推荐
dsh-memory-eternal
给 DeepSeek Harness 装上自研「第二大脑」:对话结束自动把值得复用的内容沉淀成本地 Markdown 知识卡(自研去重、CJK 检索、可 git 管理),设置页提供图形化知识库 + 交互式知识图谱(图例过滤、时间维、框选、合并、导入导出)。
dsh-decision-log
DeepSeek Harness 决策日志:通过 decision_log / decision_list / decision_audit 工具把关键决策(选了什么 + 为什么)沉淀为可版本化的 DECISIONS.md,并在后续会话自动注入摘要,让决策可追溯、不重复、不推翻。
dsh-flomo-report
生成 AI 叙事的 DSH 会话报告(日报/周报/月报、任意区间)并同步到 flomo:单一可配置标签(默认
dsh-memory-plugin
为 DeepSeek Harness 提供人工记忆、自动对话保留以及图谱和向量排序召回的持久记忆插件。
dsh-cc-haha-dream
DeepSeek Harness 自动做梦插件:后台定期回顾近期会话与记忆,整合去重、更新过时、删除矛盾、修剪索引,支持 hybrid/volume 自动触发、/dream 手动执行与设置面板配置。
🔥热门工具
朱雀AI检测朱雀AI检测
朱雀AI检测助手朱雀AI检测助手
LovartLovart
老鱼简历老鱼简历
WritePass官网WritePass官网
面多多面多多
CursorCursor
星月写作星月写作
零感AI零感AI
墨得问题墨得问题