Chang-Tong/dsh-import-agents 预览 preview

Chang-Tong/dsh-import-agents

将 pi / opencode / codex / claude-code 的会话、聊天历史和代理导入 DeepSeek Harness —— 一键同步按钮、斜杠命令、会话开始迁移提示

Project Overview项目介绍

dsh-import-agents is a native DSH plugin built exclusively for DeepSeek Harness, designed to import chat sessions, custom agents, and prompt presets from four popular AI coding agents: pi, OpenCode, Codex, and Claude Code. Imported sessions are added directly to DSH's session list, with full conversation history preserved so users can resume chatting immediately with complete original context intact. It converts custom agents and mode prompts from the source platforms into valid DSH skill bundles, and adds a one-click Sync button to DSH's composer UI to trigger the full automated import process.

This plugin targets developers who are migrating from one of the supported source AI coding agents to DeepSeek Harness, as well as users who want to manage all their agent sessions and custom skills in a single DSH workspace. After installation via DSH's official one-command plugin installer, you can click the Sync button in the composer to run a full import scan and import all detected unimported history. The plugin can be configured to automatically detect unimported history and prompt for migration when you start a new top-level DSH session, and it remembers your per-project choice to avoid repeated nagging.

The plugin requires Node.js version 22.19 or higher, matching DSH's baseline requirement, and has zero external runtime dependencies, relying only on built-in Node.js modules and native DSH platform modules. It is released under the permissive MIT open-source license, so you can use, modify, and distribute it freely for any purpose. After installation via the DSH plugin command, you must restart DSH and refresh your browser page to activate the Sync button and plugin functionality, and the import process is idempotent so re-runs never create duplicate entries.

这是一款DeepSeek Harness(DSH)原生插件,核心功能是将pi、OpenCode、Codex、Claude Code这四款AI编码开发助手的会话历史、自定义代理和预设提示导入到DSH平台中。导入后的会话会出现在DSH的会话列表内,完整保留原始对话上下文可直接恢复会话,自定义代理和模式提示会转换为DSH可发现的技能,还提供了一键同步按钮完成全量导入流程。

它适合从其他AI编码助手迁移到DSH的开发人员,也方便用户在DSH中统一管理多平台的自定义代理和会话历史。常规工作流是安装插件后,点击编辑器工具栏的同步按钮即可一键触发全量导入,也可以配置自动检测未导入的历史,在新建顶层会话时弹出迁移提示,每个项目的选择都会被记录,不会重复打扰用户。

它依赖Node.js 22.19及以上版本,无额外运行时依赖,仅使用Node内置模块和DSH平台模块,采用MIT许可证开源,可免费使用和修改。首次安装后需要重启DSH并刷新页面才能激活插件,导入支持幂等性,重复导入只会跳过已存在内容,不会产生重复数据,满足不同源的会话迁移需求。

Pre-install check安装前体检Compatibility · Security兼容性 · 安全性 1 note1 项提示
  • 19 stars - an early-stage project星标 19,属于早期项目
DSH walks through these 9 checksDSH 会逐条核对这 9 项

Compatibility兼容性

  • DSH, Node, OS and profile requirementsDSH 版本 / Node 版本 / 操作系统 / profile 是否满足要求
  • External dependencies and runtimes (Electron / Python / Docker, ...)外部依赖与运行时(Electron / Python / Docker 等)是否齐备
  • Conflicts with installed plugins: command names, skill / tool names, ports, duplicate MCP registration与已装插件是否冲突:命令名、skill / tool 重名、端口占用、重复 MCP 注册

Security安全性

  • Repo matches the facts registered here; archived or abandoned?仓库是否与页面登记一致,是否归档或长期停更
  • Safety of preinstall / install / postinstall and install.sh / setup.ps1preinstall / install / postinstall 与 install.sh、setup.ps1 是否安全
  • curl|bash, download-then-execute, obfuscation, unrelated domains → stop immediatelycurl|bash、下载即执行、混淆代码、无关域名 → 立刻停止
  • Typosquatting or unmaintained packages among the new dependencies新增依赖里有没有 typosquatting 或无人维护的包
  • Requested permissions vs. what the feature actually needs申请了哪些权限、是否超出功能所需(filesystem / network / shell / clipboard)
  • Any sudo / admin requirement, plus uninstall and rollback是否要求 sudo / 管理员权限,以及卸载与回滚方式

Anything uncertain must be marked unknown with a note on how to confirm it. This site's signal screen is a static snapshot, not a security audit.拿不准的必须标「未知」并说明要我怎么确认。本站的信号筛查是静态快照,不能替代安全审计。

Or use CLI install (for developers)或使用命令行安装(适合开发者)

CLI Install命令行安装

dsh plugin --profile web add dsh-import-agents

把 Chang-Tong/dsh-import-agents 加入你的 DSH 配置(web profile)即可启用。

READMEREADME

dsh-import-agents

English · 简体中文

License: MIT npm version CI Node DeepSeek Honeys

dsh-import-agents imports sessions, chat history, and agents from pi, opencode, codex, and claude-code into DeepSeek Harness (dsh). Imported sessions appear in the session list and can be resumed with the full conversation history as context; custom agents and mode prompts become discoverable dsh skills; a one-click Sync button in the composer runs the whole import.

Resource Link
中文文档 README.zh.md
npm package dsh-import-agents
Source code github.com/Chang-Tong/dsh-import-agents

Table of Contents

Features

  • Four sources, one command. Import sessions from pi (JSONL), opencode (SQLite), codex (JSONL), and claude-code (JSONL) — as real, resumable dsh sessions.
  • Truly resumable. Browse the full original history (text, reasoning, tool calls) and continue the conversation — the model gets the complete context.
  • Agents become skills. pi agents / mode prompts and opencode agents are converted into dsh skill bundles under $DSH_AGENTS_HOME/skills, with provenance recorded in frontmatter (metadata.source / metadata.kind).
  • One-click Sync button. A small control in the composer tool row runs /import-all and shows the result inline.
  • Migration prompt on session start. When a new top-level session starts and unimported history exists, the plugin asks whether to migrate — per-project decisions are remembered, so it never nags twice.
  • Workspace placement. Imported sessions attach to a workspace matching their original cwd (created on demand); /attach-workspaces retro-fits existing imports.
  • Idempotent. Stable ids (pi-<uuid> / oc-<id> / codex-<id> / claude-<id>); re-imports skip what already exists.
  • Zero runtime dependencies. Node built-ins (node:zlib zstd, node:sqlite) plus dsh platform modules.

Showing the opening section of the README — the full document lives in the repository以上为 README 开头摘要,完整文档在仓库内 · View the full README on GitHub →在 GitHub 查看完整 README →

← 上一个 Prev dsh-update-checker 下一个 Next dsh-whale-widget-plus →