Peer Drop Watcher logo

Peer Drop Watcher

Community
sherifican
peer-drop-watcher

Build a watcher that reliably catches when a PEER AGENT drops a file into a shared directory, so a human never has to relay "the other agent sent you something". Invoke when a user says "set a watcher on the other agent", "why do I keep having to tell you when a file lands", "watch the passback/inbox/drop folder", or when two agents exchange files and keep missing each other's messages. The procedure forces four properties most hand-written watchers lack — drain-before-arm, a shared definition of what counts as a message, self-echo exclusion, and a distinguishable dead-link state.

Overview

Publishersherifican
RepositoryAgent-FleetOps
Skill namepeer-drop-watcher
Stars
34
Forks
0
Bundled files
Instructions only
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • Self-contained

    Everything the model needs lives in the instructions — no extra files to sync.

  • Open source

    Published by sherifican on GitHub. Read the source before you install it.

Installation

Install the Peer Drop Watcher AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/sherifican/Agent-FleetOps/tree/main/skills/peer-drop-watcher
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/sherifican/Agent-FleetOps.git /tmp/Agent-FleetOps
mkdir -p .claude/skills
cp -r /tmp/Agent-FleetOps/skills/peer-drop-watcher .claude/skills/peer-drop-watcher
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Peer Drop Watcher in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Peer Drop Watcher on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Peer Drop Watcher is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

Peer Drop Watcher — catch the peer's file without a human in the loop

Two agents exchanging files through a shared directory will each happily set watchers on their own sub-agents and still fail to notice each other. The human ends up as the message bus, saying "the other one sent you something" several times an hour. That is the problem this skill removes.

The mechanism is not hard. Every failure here is in the four properties below, and a watcher missing any one of them looks identical to a working watcher right up until it silently drops a message.

Framing note: the failure modes and measurements below come from the authors' own two-box setup (two agents, one shared directory over a local link). They are evidence for the rules they sit under, not universal constants. Your transport and paths will differ; the four properties do not.

The contract you operate under

  1. Prove it red before you trust it green. A watcher is a guard. Stage a real file into the drop directory and confirm the watcher fires; then confirm it stays quiet when nothing lands. If you cannot make it fire on demand, you have not built a watcher — see guard/teeth_prover.py for the general form of this rule.
  2. Ask about anything you cannot determine. The drop path, which file types count as a message, and whether the peer writes bookkeeping files into the same tree are all things you must know exactly. Ask one concrete question with your best guess offered rather than assuming.

The four properties

1. Drain before you arm — the baseline-reset bug

The default shape of a naive watcher is: record "now", then poll for anything newer. Everything that landed while the watcher was not running is now permanently invisible, because arming moved the baseline past it.

This is the single most expensive bug in this class, because it fires exactly when you are busy — you are writing a long reply, the peer drops a file, you finish and re-arm, and the re-arm swallows it. In the authors' setup this cost a full build cycle: an agent waited on a reply that had already arrived.

The fix: persist the mark to disk and, on arm, first check for anything newer than the persisted mark. Report those immediately as a DRAINED set, then continue watching.

  === DRAINED (landed while not watching) ===
  2026-08-25 23:44   1975   <path>/NOTE_....md

Only advance the mark once a drop has actually been reported.

2. One shared definition of "a message"

If the watcher decides what counts as a peer message and some other tool (a preflight, a stop gate, an inbox check) decides separately, they will drift — and because they often share a mark file, the drift is invisible. In the authors' setup a review caught a watcher scanning three roots and six extensions while the paired preflight scanned one root and four, with both writing the same mark.

The fix: extract the definition — roots, extensions, exclusions — into a single sourced file that every tool reads. Not a copied constant in each. One file, sourced.

3. Exclude your own echo

A shared directory usually carries bookkeeping alongside payload: acknowledgement logs, receipt files, ingest records, lock files. If the watcher counts those, it fires on its own side's writes and reports a peer message that does not exist.

The fix: whitelist payload, do not blacklist noise. A whitelist fails closed (a new bookkeeping file is ignored by default); a blacklist fails open (a new bookkeeping file fires a false alarm until someone notices). Exclude acknowledgement and receipt subdirectories explicitly.

4. A dead link must not look like silence

"No files have arrived" and "I cannot reach the peer" produce the same output from a naive watcher: nothing. That is the worst possible collision, because a broken link presents as a quiet peer and you wait indefinitely on a message that can never come.

The fix: a tri-state exit. Something arrived / nothing arrived within the window / CANNOT_CHECK. Give the unreachable case its own distinct exit code and say so out loud. CANNOT_CHECK is not silence, and it is not a clear — see skills/honesty-stop-gate for the same distinction applied to turn-ending claims.

Process-liveness check — beware the platform trap

A watcher that has died is worse than no watcher, so tools that depend on one usually check it is alive. The obvious implementation — search the process table for the watcher's command line — is not portable. On some shells and platforms the process table does not expose command lines to that query at all, so the check reports "watcher dead" on every single run regardless of truth.

That is a check that cannot pass, which is the mirror image of a check that cannot fail and just as useless.

The fix: have the watcher write a PID file on start and remove it on exit; check liveness by testing that PID directly. Verify your liveness check on the actual target platform before shipping it. Apply the Instrument self-defeat controls.

Verification before you call it done

Do not report a working watcher on the basis that you started it. Confirm all four:

  • Fires: stage a file into the drop directory; the watcher reports it and exits/notifies.
  • Drains: stop the watcher, stage a file, restart the watcher — the staged file is reported as DRAINED, not swallowed.
  • Ignores its own echo: write a bookkeeping/ack file; the watcher stays quiet.
  • Distinguishes a dead link: break the connection (or point it at an unreachable path); the watcher reports CANNOT_CHECK, not "nothing arrived".

Relationship to the send side

This skill is the receive half. Its complement is guard/passback_send_check.py, which asks whether the peer actually holds what you think you sent — evidence taken from the recipient, never from your own send log. Together they close the loop: the sender confirms delivery, the receiver learns of arrival. Neither substitutes for the other; a file can be confirmed-sent and still never noticed.

Frequently asked questions

What does the Peer Drop Watcher AI skill do?

Build a watcher that reliably catches when a PEER AGENT drops a file into a shared directory, so a human never has to relay "the other agent sent you something". Invoke when a user says "set a watcher on the other agent", "why do I keep having to tell you when a file lands", "watch the passback/inbox/drop folder", or when two agents exchange files and keep missing each other's messages. The procedure forces four properties most hand-written watchers lack — drain-before-arm, a shared definition of what counts as a message, self-echo exclusion, and a distinguishable dead-link state.

Why use Peer Drop Watcher on TypingMind?

Because you install it once and use it with any model. Peer Drop Watcher is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Peer Drop Watcher in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/sherifican/Agent-FleetOps/tree/main/skills/peer-drop-watcher. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use Peer Drop Watcher?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Peer Drop Watcher?

As many as you like. As long as a model supports skills, you can use Peer Drop Watcher with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Peer Drop Watcher AI skill free?

Yes. It is published on GitHub by sherifican under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇