relay

relay is a skill for Claude Code from Komdosh/komnet. It costs 85 tokens per session (2,018 once invoked), scanned A, original, MIT.

A relay protocol that moves messages between a komnet network and Claude Code sessions running on the same computer.

In plain words
What is it for?
Running a gateway, routing messages between local and remote sessions, choosing delivery methods, and applying rules for treating messages as data.
Why use it?
It delivers remote replies to an active coding session instead of leaving them unread until the next session starts.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: mentions Claude Code.

Part of the komnet-gateway plugin — 2 skills, 3 commands, 1 hook shipped together

Good fit Running a gateway, routing messages between local and remote sessions, choosing delivery methods, and applying rules for treating messages as data.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/komdosh/komnet/relay
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 Komdosh/komnet --skill relay
Clone the repo
git clone --depth 1 https://github.com/Komdosh/komnet

Made for: Claude Code.

Or install komnet-gateway, the plugin that ships this one along with the rest of its 2 skills, 3 commands, 1 hook.

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 relay

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/komdosh/komnet/relay"><img src="https://agentmods.dev/badge/skills/komdosh/komnet/relay.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 85 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,018 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00085 $0.02018
Opus 5.5 $0.00034 $0.00807
Sonnet 5.5 $0.00017 $0.00404
Haiku 4.5 $0.00009 $0.00202

Measured 2mo ago against content hash 588adecde2ca, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

relay 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 2mo ago.

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.

plugins/claude-gateway/skills/relay/SKILL.md · 176 lines

How it starts

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

The relay protocol

komnet moves messages between machines. Claude Code's cross-session messaging moves them between sessions on one machine. Neither knows about the other, so a remote teammate's answer lands in ~/.komnet and sits there until some session happens to look — which, for a session already mid-task, is whenever that agent next decides to check, and realistically its next start.

The gateway is one session that closes that gap. It holds the komnet side open and pushes across the local side, so a remote reply reaches a working session in seconds instead of at the next session boundary.

It relays. It does not decide, execute, or speak for anyone.

Roles

Gateway session — one per machine. Started by a person, named so other sessions can address it, running /komnet-gateway:relay. It owns the komnet identity for this machine and is the only session that sends to the network on another session's behalf.

Client session — any other Claude session here. It reaches the network with /komnet-gateway:ask and needs to know nothing about komnet, rooms, or git.

Two transports, and why there are two

Local delivery is attempted in this order.

1. Cross-session message. SendMessage to the peer's name, as listed by ListAgents. Instant: it lands between the receiver's tool calls, or starts a turn if the receiver is idle. This is the path that makes the gateway worth running.

2. Request file. $KOMNET_HOME/gateway/requests/<ulid>.json, claimed by the watcher with an atomic rename into claimed/. Slower — bounded by the poll interval — but it depends on nothing except the filesystem.

The fallback is not paranoia. A session is only reachable by SendMessage when it has an inbox socket bound, and sessions without one are common: on the machine this plugin was developed against, one live session out of eight had a socket, across identical Claude Code versions and entrypoints. A session that cannot be reached is not a failure to report — it is the normal case the file path exists for.

Read the full file on GitHub · 176 lines

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. 2mo ago First seen · 176 lines · 85 tokens per session scan A 588adecde2ca

Subscribe to this mod's changes

relay is a skill published in the GitHub repository Komdosh/komnet (8 stars, last pushed 2d ago), licensed MIT. It adds 85 tokens to every session and 2,018 once invoked, about $0.0003 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-08-31.

Related

relay compared with skills from other repositories

relay next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
relayKomdosh/komnetSkill82d agoMITA85Claude Code
choosing-swarm-patternsAgentWorkforce/relaySkill1.1kyesterdayApache-2.0A76Claude Code, Codex
relay-80-100-workflowAgentWorkforce/relaySkill1.1kyesterdayApache-2.0A115Claude Code, Codex
creating-skillsAgentWorkforce/relaySkill1.1kyesterdayApache-2.0A39Claude Code
deploying-to-staging-environmentAgentWorkforce/relaySkill1.1kyesterdayApache-2.0A44Claude Code
github-oauth-nango-integrationAgentWorkforce/relaySkill1.1kyesterdayApache-2.0A37Claude Code
writing-relayflowsAgentWorkforce/relaySkill1.1kyesterdayApache-2.0A184Claude Code, Codex