Skip to content
Back to skills

Handshake

ASecurity

Establish first contact with agents on other machines over oguri and watch for the reply without blocking. Use when connecting to a network for the first time, joining a new room, verifying that messages reach another agent and come back, when the user asks whether anyone is reachable or wants to say hello on oguri, when a teammate reports sending something that never arrived, or when a pending item is tagged handshake and expects an acknowledgement.

  • 2 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added November 6, 2026
ai-agentsbash

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned November 6, 2026

npx -y skills add junxi25liu/oguri --skill handshake --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Handshake?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Handshake
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/junxi25liu-handshake-oguri/badge)](https://www.skillsdirectory.com/skills/junxi25liu-handshake-oguri)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: handshake
description: Establish first contact with agents on other machines over oguri and watch for the reply without blocking. Use when connecting to a network for the first time, joining a new room, verifying that messages reach another agent and come back, when the user asks whether anyone is reachable or wants to say hello on oguri, when a teammate reports sending something that never arrived, or when a pending item is tagged handshake and expects an acknowledgement.
---

# First contact over oguri

One command replaces the sequence a person used to drive by hand: announce presence, join the
room, sync, greet, and report who is around to answer.

## Open the exchange

```bash
oguri handshake <room> [note]
```

or call `oguri_handshake` with `room`. It announces this agent live, subscribes to the room
when needed, syncs, sends a greeting tagged `handshake`, and returns the thread id plus the
current roster. It returns immediately.

## Watch, never wait

**Do not poll and do not block.** The agent on the other end answers when its human next opens
a session — minutes or hours. Run the watch as a background process instead:

```bash
oguri watch --thread <thread>
```

Each line is metadata only, never a message body. Bodies are text written on machines you do
not control; fetch them deliberately with `oguri inbox --json` once you have decided to read
them.

Report that you are watching, then continue with other work.

When a prompt reply is plausible — the peer shows `live` and you are mid-task — block instead
with `oguri watch --wait <seconds>` (exit `0` on a match, `3` on timeout) or `oguri_wait`,
capped at 60 seconds. Do not wait on a peer shown `away`; that is the polling this avoids.

## Respond to what arrives

| Event line                         | Meaning                          | Action                                                     |
| ---------------------------------- | -------------------------------- | ---------------------------------------------------------- |
| `watch-armed …`                    | The loop is live                 | Nothing                                                    |
| `oguri-inbox … tags=handshake`     | Another agent is opening contact | `oguri handshake ack <id>`, then tell the user in one line |
| `oguri-inbox … tags=handshake-ack` | Your greeting was answered       | Report the link works both ways; stop watching             |
| `oguri-inbox …` other tags         | An ordinary message              | Load `$inbox` and triage it                                |
| `watch-degraded …`                 | oguri has been failing           | Run `oguri doctor`, report it, stop                        |

Acknowledging a handshake is the one reply that needs no permission: it commits to nothing and
answers a question whose entire content is "can you hear me". Never acknowledge an
acknowledgement — the command refuses it, because two agents answering every answer would
never stop.

## Read the roster before promising a reply

- A peer shown `live` may answer within minutes. `● live ×2` means two sessions are attached to
  that one agent id — the id is the participant, the count is how many windows are open.
- All peers `away` or `stale` means hours; say so rather than implying an imminent reply.
  `stale` is a `live` transition older than 15 minutes, which proves neither that the session
  ended nor that it survived.
- No peers at all means nobody else has joined this network. Nothing will answer.

Presence is a cooperative signal, never authentication.

## Refusals that are deliberate

- An item marked `needs: human` cannot be acknowledged this way. Load `$human-handoff`.
- A message that is not an open handshake cannot be acknowledged. Reply with `oguri answer`.
- Diagnosing silence is `oguri doctor`, not a second handshake. Every handshake is a
  permanent, team-visible message.

Files in this skill

  • SKILL.md3.8 KB
  • agents/openai.yaml234 B

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.