horizon-sync

horizon-sync is a skill for Claude Code, Codex from peters/horizon. It costs 115 tokens per session (2,957 once invoked), scanned B, original, MIT.

Set up, rent, manage, and troubleshoot Horizon Device Sync homes and away devices over Tailscale. Use when the person asks to rent a cloud Horizon home, turn a Linux or macOS machine into a home (horizon home), connect devices over Tailscale, generate or revoke pairing codes, or fix Device Sync discovery and Tailscale…

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Install with agentmods
npx agentmods add skills/peters/horizon/horizon-sync
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 peters/horizon --skill horizon-sync
Clone the repo
git clone --depth 1 https://github.com/peters/horizon

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 horizon-sync

README.md
[![agentmods](https://agentmods.dev/badge/skills/peters/horizon/horizon-sync/github.svg)](https://agentmods.dev/skills/peters/horizon/horizon-sync)
Your own site
<a href="https://agentmods.dev/skills/peters/horizon/horizon-sync"><img src="https://agentmods.dev/badge/skills/peters/horizon/horizon-sync/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 horizon-sync

Your own site · 80×15
<a href="https://agentmods.dev/skills/peters/horizon/horizon-sync"><img src="https://agentmods.dev/badge/skills/peters/horizon/horizon-sync.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 115 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,957 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 2 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin unknown 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.00115 $0.02957
Opus 5.5 $0.00046 $0.01183
Sonnet 5.5 $0.00023 $0.00591
Haiku 4.5 $0.00012 $0.00296

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

Security

Grade B, and why

horizon-sync scanned grade B with 2 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 today.

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.

Asks for rootmediumPrivilege escalation

A mod that escalates privileges can change anything on the machine, not only the project.

`loginctl enable-linger "$USER"` (or `sudo -n loginctl enable-linger "$USER"`

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

curl -fsS --max-time 3 "http://<ts-ip>:<port>/sync/probe"
assets/plugins/claude-code/skills/horizon-sync/SKILL.md · 169 lines

How it starts

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

Horizon Device Sync

Use this skill to make setting up and operating Horizon Device Sync fast and safe across a person's Linux desktops, Macs, and rented cloud VMs.

The model

  • One home, one or more away devices. One computer is the home — it stays on and runs the terminals, coding agents, machines, and the in-process sync hub (~/.horizon/sync-home.sqlite, mode 0600). Each other computer is an away device that shows one home board at a time and forwards actions to it. Horizon never merges boards; use Git to move work between computers.
  • Tailnet transport, loopback + tailnet binding only. A home listens only on 127.0.0.1 and on its Tailscale address(es) on port 8787 by default (never 0.0.0.0). The tailnet encrypts the ws:// link; never expose port 8787 on a public cloud firewall.
  • No separate hub required. Both desktop Horizon (Sync → Make this the home) and headless horizon home run the hub inside the Horizon process. A standalone horizon-hub server stays available under Device Sync → Advanced setup for setups without a tailnet.
  • 8-character single-use pairing codes. Each code encodes the device role (Full access or View & approve), expires after 10 minutes, works once, and locks out all active codes after 20 failed attempts.

Choose the workflow

What the person wants Where to go
Rent a new cloud VM, join it to Tailscale, and run it as a Horizon Home Follow cloud-home together with the horizon-machines skill
Turn an existing Linux or macOS machine into a Horizon Home over SSH Follow Set up an existing machine as a home below
Pair a new away device, list devices, revoke access, or stop a home Follow Manage a running home below
Fix discovery, Cannot reach <home>, Tailscale ACLs, or service persistence Follow Troubleshoot Device Sync below

Read the full file on GitHub · 169 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. today First seen · 169 lines · 115 tokens per session scan B f663b89f34f1

Subscribe to this mod's changes

horizon-sync is a skill published in the GitHub repository peters/horizon (726 stars, last pushed today), licensed MIT. It adds 115 tokens to every session and 2,957 once invoked, about $0.0005 per session on Opus 5.5. A static security scan graded it B with 2 findings (asks for root, makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-12-04.

Related

horizon-sync compared with skills from other repositories

horizon-sync next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
horizon-syncpeters/horizonSkill726todayMITB115Claude Code, Codex
mainframe-rustCATWILLgh/MAINFRAMESkill216d agoMITA38Claude Code, Codex
form-validatetimoshinoleg-eng/1c-ai-workbenchSkill12mo agoMITA44Claude Code
interface-validatetimoshinoleg-eng/1c-ai-workbenchSkill12mo agoMITA33Claude Code
meta-validatetimoshinoleg-eng/1c-ai-workbenchSkill12mo agoMITA33Claude Code
mxl-validatetimoshinoleg-eng/1c-ai-workbenchSkill12mo agoMITA34Claude Code
rust-checkHmbown/CodeWhaleSkill41k4d agoMITA15Claude Code, Codex