dsh-config-sync

dsh-config-sync is a skill for Claude Code, Codex from ooooooooooooooooooop/agent-tools. It costs 98 tokens per session (1,809 once invoked), scanned A, original, MIT.

A tool for packaging and restoring DeepSeek Harness user settings across devices. DeepSeek Harness is a coding-agent environment; the package contains preferences and model-routing settings, not credentials or runtime data.

In plain words
What is it for?
It is for creating sanitized archives, reviewing them, restoring approved settings, adapting paths between devices, and checking the restored files with SHA-256 hashes.
Why use it?
It makes configuration migration auditable while excluding passwords, API keys, sessions, and other sensitive or temporary files.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/ooooooooooooooooooop/agent-tools/dsh-config-sync
Any agent
npx skills add ooooooooooooooooooop/agent-tools --skill dsh-config-sync
Clone the repo
git clone --depth 1 https://github.com/ooooooooooooooooooop/agent-tools

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for dsh-config-sync

README.md
[![agentmods](https://agentmods.dev/badge/skills/ooooooooooooooooooop/agent-tools/dsh-config-sync.svg)](https://agentmods.dev/skills/ooooooooooooooooooop/agent-tools/dsh-config-sync)
Your own site
<a href="https://agentmods.dev/skills/ooooooooooooooooooop/agent-tools/dsh-config-sync"><img src="https://agentmods.dev/badge/skills/ooooooooooooooooooop/agent-tools/dsh-config-sync.svg" alt="Measured on agentmods" height="20"></a>
Per session 98 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,809 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00098 $0.01809
Opus 5 $0.00049 $0.00905
Sonnet 5 $0.00020 $0.00362
Haiku 4.5 $0.00010 $0.00181

Measured 4d ago against content hash 6b694b277989, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

dsh-config-sync scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 4d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/sync_dsh_config.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/dsh-config-sync/SKILL.md · 93 lines

How it starts

The opening of the file, as written. The whole thing — 93 lines — stays where its author put it; the contents beside it link to each section on GitHub.

DSH 配置同步(dsh-config-sync)

使用场景

当你想在另一台设备上复用本机的 DSH 用户配置,或把当前配置生成一份可追溯的脱敏归档时触发。它负责 ~/.dsh/配置类文件(偏好、模型路由、预设)的安全打包与恢复。

职责边界很重要:技能栈的同步交给 environment-bootstrap,本 skill 只管 DSH 配置本体。

纳入与排除清单

$DSH_HOME(默认为 ~/.dsh,可用 $env:DSH_HOME 覆盖)做如下归类:

路径 类型 处理
AGENTS.md 文件 ✅ 纳入(用户全局偏好,纯文本无敏感)
settings.yaml 文件 ✅ 纳入(仅含 provider/model 与 apiKeyEnv 环境变量名,无明文密钥)
profiles/ 目录 ⚠️ 可选(需显式指定才纳入)
.agent-presets/ 目录 ⚠️ 可选
patches/ 目录 ⚠️ 可选
.credentials.yaml 文件 强制排除(真实凭据,打进公开仓库即泄密)
sessions/storages/` 目录 强制排除(运行时态,仓库硬约束禁止)
skills/ 目录 ⛔ 不归本 skill,交给 environment-bootstrap

安全边界

  • 凭据绝不出包.credentials.yaml 和任何可能含明文密钥的路径,打包含前必须显式排除并由校验确认不存在。
  • settings.yaml 只携带环境变量引用apiKeyEnv: BAI_API_KEY 这样的条目是“环境变量名”,换设备时由目标端设置同名环境变量即可,不在包内放任何密钥值。
  • 不通过恢复删除目标端额外文件;旧/未登记的配置文件应单独审查。
  • 不隐式安装插件、MCP、包、hooks 或全局配置。
  • 不以旧目标文件、stdout 或 apply exit code 单独作为成功证据。
  • 回滚应从已知稳定归档/提交重新复制,不使用递归删除。

模板渲染(跨设备路径适配)

导出时加 --template 自动将已知设备路径替换为占位符,恢复时渲染回目标设备值:

占位符 替换场景 示例
{{DSH_HOME}} ~/.dsh 目录下的任何路径 C:\Users\<user>\.dsh\profiles\web{{DSH_HOME}}\profiles\web
{{DESKTOP}} 桌面路径(含 Windows 双反斜杠形式) C:\Users\<user>\Desktop\work{{DESKTOP}}\work
{{HOME}} 用户主目录 C:\Users\<user>\{{HOME}}\

替换顺序按最长优先,防止嵌套路径(如 {{DSH_HOME}}{{HOME}} 之前替换)。恢复时同步处理 Windows 双反斜杠路径。--with-optional 导出 profiles/.agent-presets/ 时模板渲染尤其有用,因为这些目录常含设备绝对路径。特殊自定义路径(如非标准布局的 C:\Desktop\)需手动模板化后按 {{DSH_HOME}}/{{HOME}} 同样处理。

打包(export)

  1. 确认源 $DSH_HOME 存在,并解析其真实路径。
  2. 按“纳入/排除清单”收集要打包的配置项;.credentials.yamlsessions/storages/ 无论是否显式指定都强制排除。
  3. 可选:--with-optional 额外纳入 profiles/.agent-presets/patches/ 目录中的文件。
  4. 在仓库内建立一个脱敏架构录(例如 dsh-config/ 或打包器输出目录),把每个纳入路径复制进去。复制后跑一次敏感扫描:若发现 apiKeyEnv 之外的疑似密钥、.credentials.yaml 或运行时文件,把该包标为 FAIL 并停止。
  5. 可选:--template 把已知设备路径(~/.dsh、桌面、主目录)替换为 {{DSH_HOME}}/{{DESKTOP}}/{{HOME}} 占位符,使包可跨设备复用。渲染后的文件 SHA-256 记录在 manifest 中,恢复时跳过 SHA 校验(因为内容会因设备而异)。
  6. 为每个文件计算 SHA-256,生成 manifest.json(含路径、版本号、SHA-256、打包时间、模板渲染记录)。
  7. 报告:源路径、纳入项、排除项、SHA-256、敏感扫描结果、模板化文件列表。只有扫描干净才报 PASS

Read the full file on GitHub · 93 lines

Files

What ships with it

4 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 4d ago First seen · 93 lines · 98 tokens per session scan A 6b694b277989

Subscribe to this mod's changes

dsh-config-sync is a skill published in the GitHub repository ooooooooooooooooooop/agent-tools (2 stars, last pushed 5d ago), licensed MIT. It adds 98 tokens to every session and 1,809 once invoked, about $0.0005 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

zlog

Multi-agent session log compressor and storage optimizer. Compresses .log, .out, .txt, .trace (>10KB) to .zst, .xz, or .gz (saving 77%-99.9% disk space) across /.gemini, /.config/Cursor, /.ollama, /.claude, /.windsurf, /.codex, etc. Auto-discovers AI log dirs, purges empty 0-byte logs. Safe for concurrent…

sebin-gg/zlog · 150 tokens

amazon-reviews-api-skill

This skill helps users automatically extract Amazon product reviews via the Amazon Reviews API. Agent should proactively apply this skill when users express needs like getting reviews for Amazon product with ASIN B07TS6R1SF, analyzing customer feedback for a specific Amazon item, getting ratings and comments for a…

browser-act/skills · 124 tokens

amazon-competitor-analyzer

Scrapes Amazon product data from ASINs using browseract.com automation API and performs surgical competitive analysis. Compares specifications, pricing, review quality, and visual strategies to identify competitor moats and vulnerabilities.

browser-act/skills · 48 tokens

muapi-media-editing

Edit and enhance images and videos with AI via muapi.ai — prompt-based editing, upscaling, background removal, face swap, lipsync, video effects, and more.

SamurAIGPT/Generative-Media-Skills · 41 tokens

ecommerce-landing-page

Audit and optimize e-commerce landing pages for conversion. CTA placement, trust signals, page structure, copy optimization, and A/B testing strategy for product pages, collection pages, and campaign landing pages.

nexscope-ai/eCommerce-Skills · 45 tokens

ln-31-performance-optimizer

Optimizes a measured latency, throughput, memory, CPU, or I/O problem through profiling and keep-or-discard experiments. Use for a known bottleneck; not unbiased A/B comparison.

levnikolaevich/claude-code-skills · 45 tokens