deepchat icon indicating copy to clipboard operation
deepchat copied to clipboard

Let users carry selected context between DeepChat sessions

Open vivekgupta-memcode opened this issue 2 months ago • 3 comments

Hi @zerob13,

DeepChat users may want a few chosen preferences or project decisions to follow them into a later conversation. Could an opt-in Memcode connection complement DeepChat's existing knowledge sources for that specific use case?

The user should explicitly save or retrieve context, with account isolation and no silent indexing or export of conversation history. I can start with the existing tools or MCP configuration path and document OAuth setup.

Is that worth a small PR?

vivekgupta-memcode avatar Sep 27 '26 17:09 vivekgupta-memcode

标题: 让用户在 DeepChat 会话之间携带选定的上下文

以下为原报告的中文翻译。

嗨 @zerob13,

DeepChat 用户可能希望把少数选定的偏好或项目决策带入之后的对话中。能否为这一具体场景提供一个可选开启(opt-in)的 Memcode 连接,作为 DeepChat 现有知识源的补充?

用户应显式地保存或检索上下文;账户相互隔离,不静默索引、不导出对话历史。我可以基于现有工具或 MCP 配置路径开始接入,并补充 OAuth 配置文档。

这个方向值得开一个小 PR 吗?

由 DimAgent 自动翻译

zerob13 avatar Sep 27 '26 20:09 zerob13

Carrying user-selected context between sessions sounds useful. I'd check how current session data is stored and if there's a way to integrate Memcode without affecting privacy.

modelpath-dev avatar Sep 27 '26 20:09 modelpath-dev

Thanks for the proposal — the use case makes sense, and I think it fits better as a bundled plugin than as a docs-only MCP setup. There is already a template for this shape: plugins/nowledge-mem — a small manifest plus one skill, with the connection owned by host settings (server address + optional key, stored encrypted). No CLI or native runtime needed.

A Memcode plugin would be roughly:

  • plugins/memcode/plugin.json with mcp.register + skills.register capabilities;
  • your MCP server declaration (host-managed HTTP like nowledge-mem, or stdio via a small serve.mjs like plugins/feishu, which also shows the optional settings-page pattern if you need a custom setup UI);
  • skills/memcode/SKILL.md defining the explicit save/retrieve semantics, so nothing is indexed implicitly;
  • packaging and bundling wiring per plugin-packaging.md.

Bundled plugins ship inside the app but stay disabled until the user enables them in Plugins Hub, and the package carries no credentials or account data — connection settings, encrypted secrets and MCP OAuth stay host-side. That gives you the opt-in, account-isolated behavior by construction.

Yes, worth a PR — happy to review one modeled on nowledge-mem. If you want to iterate before it lands in a DeepChat release, the same skill + MCP config can also ship as a portable user plugin installed from Git/ZIP in Plugins Hub.

zerob13 avatar Sep 28 '26 05:09 zerob13