sync-your-harness

sync-your-harness is a skill for Claude Code, Codex from SpaceZephyr/build-your-harness. It costs 178 tokens per session (1,690 once invoked), scanned A, original, MIT.

A safety-focused synchronisation guide for sharing an agent setup across computers and agents. It previews files, blocks unwanted formats and possible secrets, prepares repository rules, and can copy approved shared memory without committing or pushing.

In plain words
What is it for?
Use it to prepare a harness for multi-device use, create proposed ignore and pre-commit rules, share selected memory, and find differences between agent skill folders.
Why use it?
It reduces the risk of sending private files, media, large files, or secrets to a remote repository. It also makes the user review private memory and proposed ignore rules before they are used.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: reads .claude/ paths; mentions Claude Code; mentions AGENTS.md.

Good fit Use it to prepare a harness for multi-device use, create proposed ignore and pre-commit rules, share selected memory, and find differences between agent skill folders.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/spacezephyr/build-your-harness/sync-your-harness
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.

Any agent
npx skills add SpaceZephyr/build-your-harness --skill sync-your-harness
Clone the repo
git clone --depth 1 https://github.com/SpaceZephyr/build-your-harness

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 sync-your-harness

README.md
[![agentmods](https://agentmods.dev/badge/skills/spacezephyr/build-your-harness/sync-your-harness/github.svg)](https://agentmods.dev/skills/spacezephyr/build-your-harness/sync-your-harness)
Your own site
<a href="https://agentmods.dev/skills/spacezephyr/build-your-harness/sync-your-harness"><img src="https://agentmods.dev/badge/skills/spacezephyr/build-your-harness/sync-your-harness/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for sync-your-harness

Your own site · 80×15
<a href="https://agentmods.dev/skills/spacezephyr/build-your-harness/sync-your-harness"><img src="https://agentmods.dev/badge/skills/spacezephyr/build-your-harness/sync-your-harness.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 178 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,690 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.00178 $0.01690
Opus 5.5 $0.00071 $0.00676
Sonnet 5.5 $0.00036 $0.00338
Haiku 4.5 $0.00018 $0.00169

Measured 23d ago against content hash d4e973b8345e, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

sync-your-harness 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 23d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/sync.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.

sync-your-harness/SKILL.md · 119 lines

How it starts

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

sync-your-harness

harness 搭好之后的下一个问题:怎么让它活在不止一台电脑、不止一个 Agent 上,又不把不该出去的东西带出去。

先讲清楚一个原则

本地保存全部,远端只同步文字。 harness 推到远端的目的只有一个:让任何 Agent、任何设备拿到这个仓库就能了解你。图片、视频、代码项目、原始数据、私密计划都留在本地。

所以 .gitignore 用的是白名单写法:默认忽略全部,只放行 .md、.jsonl、.txt 这几种文本。这比黑名单安全,因为以后新增任何奇怪的文件,默认都是不推。

铁律

1. 不 commit,不 push,不碰远端。 这个 Skill 只准备规则和预演结果。提交和推送永远由用户自己说了才做。

2. 已有的 .gitignore 和 hook 不覆盖。 新规则写成 .gitignore.proposed 和 pre-commit.proposed,让用户对比之后自己替换。他明确说「直接替换」时才加 --replace-gitignore,脚本会先备份旧的。

3. 密钥只报位置和模式名,不显示内容。 不要为了「帮用户确认」去打开那个文件念出来。告诉他哪个文件、哪种模式、几处,让他自己看。

4. 复制记忆之前让用户过目。 私有记忆里可能有他只想留给自己的东西。进了 harness 就可能被同步出去。

流程

第一步:问两个问题

  1. 「有没有哪些内容只想留在本地?」 每个人不一样,常见的有财务、个人计划、雇主的资料、客户信息。把答案变成文件名通配或目录名。
  2. 「除了文本,有没有别的格式必须同步?」 多数人没有。有的话用 --allow-ext 加。

第二步:预演

python3 ~/.claude/skills/sync-your-harness/scripts/sync.py preview <harness> \
  --private "<通配1>,<通配2>" --exclude-dir "<目录1>,<目录2>"

把这几个数字原样讲给用户:

  • 会推送多少个文件、多大
  • 挡住了多少、分别因为什么
  • 有几个自带 git 仓库的子目录(它们不会进这个仓库)
  • 有没有疑似密钥落在会推送的文件里。有的话这是第一优先级,先处理再谈别的

第三步:写入规则

python3 ~/.claude/skills/sync-your-harness/scripts/sync.py apply <harness> [同上参数]          # 预演
python3 ~/.claude/skills/sync-your-harness/scripts/sync.py apply <harness> [同上参数] --apply  # 写入

写三样东西:

文件 作用
.gitignore 或 .gitignore.proposed 白名单规则
.git/hooks/pre-commit 拦截超过 1MB 的文件和凭证文件
<协议目录>/push-rules.md 给人和 Agent 看的规则说明

写完之后在入口文件(AGENTS.md)的任务路由里加一行:「提交或推送之前先读 push-rules.md」。

注意 hook 不随仓库同步。 .git/hooks/ 不会被推送,换一台电脑要重跑一次 apply。告诉用户这一点。

注意历史。 如果以前已经提交过大文件,.gitignore 管不了历史。脚本不处理这个,如实告诉用户,由他决定要不要清理历史。

第四步:共享记忆

每个 Agent 都有自己的私有记忆位置,别的 Agent 读不到。比如 Claude Code 的在 ~/.claude/projects/<项目>/memory/。

python3 ~/.claude/skills/sync-your-harness/scripts/sync.py memory <harness>          # 预演,列出会复制哪些
python3 ~/.claude/skills/sync-your-harness/scripts/sync.py memory <harness> --apply

自动找不到来源时用 --from <目录> 指定。脚本把记忆复制到 <记忆目录>/shared/,并在 MEMORY.md 补索引。来源不动,已存在的不覆盖。

Read the full file on GitHub · 119 lines

Files

What ships with it

1 file 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. 23d ago First seen · 119 lines · 178 tokens per session scan A d4e973b8345e

Subscribe to this mod's changes

sync-your-harness is a skill published in the GitHub repository SpaceZephyr/build-your-harness (80 stars, last pushed 5d ago), licensed MIT. It adds 178 tokens to every session and 1,690 once invoked, about $0.0007 per session on Opus 5.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-11-12.

Related

sync-your-harness compared with skills from other repositories

sync-your-harness next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
sync-your-harnessSpaceZephyr/build-your-harnessSkill805d agoMITA178Claude Code, Codex
merge-batchdiegosouzapw/OmniRouteSkill91k5d agoMITA46Claude Code
prowler-commitprowler-cloud/prowlerSkill15ktodayApache-2.0A44Claude Code, Codex
gh-auth-isolationgithub/gh-awSkill5.8ktodayMITA20Claude Code, Codex
comet-githubrpamis/cometSkill3.3ktodayMITA72Claude Code, Codex
github-skillzeenie-ai/OpenCompanySkill1.1k3d agoMITA51Claude Code
re0-mergeLilMGenius/paperthinSkill1.5ktodayMITA51Claude Code, Codex