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用户。
설치
$
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'] | 自动导入的来源,取值见下表。技能目录始终全部读取并列出(只读,不写任何外来目录),因此没打开的来源照样能在设置页里看到、并逐个手动导入 |
skillAutoImport | true | 激活时(以及启用来源集合变化时)是否把已打开来源的技能自动建为链接 |
codex.home | $CODEX_HOME,否则 ~/.codex | 存放 Codex config.toml 与 skills/ 的目录(同时决定技能目录) |
codex.configPath | /config.toml | 要读的 Codex 配置文件 |
codex.includeSystemSkills | false | 连 Codex 自带的 /skills/.system 一起导入 |
claudeCode.configDir | $CLAUDE_CONFIG_DIR,否则 ~/.claude | 存放 Claude Code skills/ 的目录 |
claudeCode.configPath | ~/.claude.json | 存放用户级服务器与工作区覆盖的 Claude Code 配置 |
projectRoot | 空,取进程工作目录 | 读取项目级服务器与技能目录的工作区 |
mcp | true | 是否挂载导入的 MCP 服务器 |
skills | true | 是否导入并管理技能;关掉后技能路由答空目录、自动导入不运行 |
serverDenyList | [] | 不挂载的服务器名,按声明工具里的原名匹配 |
maxServers | 64 | 最多挂载多少个导入的服务器 |
maxSkills | 200 | 一次最多读取多少个技能 |
failOnStartupError | false | 某个导入的服务器启动失败时是否拒绝激活本插件 |
全部字段都是 Volatile:从设置页或任何 profile 写入都会就地重新导入,不重启进程。
skillSources 的取值(下表也是会被读取的全部来源;带项目级的工具同样读项目目录):
| id | 工具 | 用户级目录 |
|---|---|---|
dsh | dsh 自己 —— 总是读取,也是唯一的写入目标 | $DSH_HOME,否则 ~/.dsh,加 /skills |
agents | 通用 Agent 目录 | $DSH_AGENTS_HOME,否则 ~/.agents,加 /skills |
project | 当前工作区 | ` |
| /skills` | ||
cc-switch | CC Switch | ~/.cc-switch/skills |
codex | Codex | $CODEX_HOME,否则 ~/.codex,加 /skills |
claude-code | Claude 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。