Free-LZJ/free-dsh-plugins--packages-agent-import ↗★ 0

@free-lzj/dsh-agent-import

Imports the MCP servers Codex or Claude Code already declares into DeepSeek Harness, and manages the skills every agent tool keeps by linking them into dsh's own skills directory, with the Settings page that configures both 适合需要复用已有Codex或Claude Code工具和技能的DSH用户。

Package
@free-lzj/dsh-agent-import
Compatibility
Unverified
Harness peer range
>=0.1.7-alpha.2 <0.2.0-0 || >=0.2.0-rc.1 <0.3.0-0
Cordis peer range
^4.0.3
Version
0.3.2
License
MIT
Last updated
Oct 8, 2026

Install

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:Free-LZJ/free-dsh-plugins#2ac5f1703c0b60b8f8ed622e0dd9d8631ad4b8a0&path:packages/agent-import

配置

字段默认值含义
sources['codex', 'claude-code']要读取 MCP 服务器的工具,按优先级排列;重复的源只读一次
skillSources['codex', 'claude-code']自动导入的来源,取值见下表。技能目录始终全部读取并列出(只读,不写任何外来目录),因此没打开的来源照样能在设置页里看到、并逐个手动导入
skillAutoImporttrue激活时(以及启用来源集合变化时)是否把已打开来源的技能自动建为链接
codex.home$CODEX_HOME,否则 ~/.codex存放 Codex config.toml 与 skills/ 的目录(同时决定技能目录)
codex.configPath/config.toml要读的 Codex 配置文件
codex.includeSystemSkillsfalse连 Codex 自带的 /skills/.system 一起导入
claudeCode.configDir$CLAUDE_CONFIG_DIR,否则 ~/.claude存放 Claude Code skills/ 的目录
claudeCode.configPath~/.claude.json存放用户级服务器与工作区覆盖的 Claude Code 配置
projectRoot空,取进程工作目录读取项目级服务器与技能目录的工作区
mcptrue是否挂载导入的 MCP 服务器
skillstrue是否导入并管理技能;关掉后技能路由答空目录、自动导入不运行
serverDenyList[]不挂载的服务器名,按声明工具里的原名匹配
maxServers64最多挂载多少个导入的服务器
maxSkills200一次最多读取多少个技能
failOnStartupErrorfalse某个导入的服务器启动失败时是否拒绝激活本插件

全部字段都是 Volatile:从设置页或任何 profile 写入都会就地重新导入,不重启进程。

skillSources 的取值(下表也是会被读取的全部来源;带项目级的工具同样读项目目录):

id工具用户级目录
dshdsh 自己 —— 总是读取,也是唯一的写入目标$DSH_HOME,否则 ~/.dsh,加 /skills
agents通用 Agent 目录$DSH_AGENTS_HOME,否则 ~/.agents,加 /skills
project当前工作区`
/skills`
cc-switchCC Switch~/.cc-switch/skills
codexCodex$CODEX_HOME,否则 ~/.codex,加 /skills
claude-codeClaude Code$CLAUDE_CONFIG_DIR,否则 ~/.claude,加 /skills
gemini opencode cursor copilot windsurf trae roo codebuddy workbuddy qoder lingma 等同名工具(另有 windsurf-legacy、trae-cn、qoder-cn、openclaw、clawdbot)~/./skills、~/.config/opencode/skills 一类

精确目录、环境变量与 rank 见 src/skill-roots.ts 的 SKILL_SOURCES。