debug-wing

A troubleshooting guide for Wingthing connections, where a local agent machine connects to a relay and is shown in a web interface.

In plain words
What is it for?
Use it to diagnose CLI and web account mismatches, expired authentication, stopped wing services, relay problems, and missing wings in the web UI.
Why use it?
It helps find why a machine, called a wing, is missing or unavailable by checking account identity, login tokens, the background service, and the relay connection.

Skill for Claude CodeCodex

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.

agentmods
npx agentmods add skills/ehrlich-b/wingthing/debug-wing
Any agent
npx skills add ehrlich-b/wingthing --skill debug-wing
Clone the repo
git clone --depth 1 https://github.com/ehrlich-b/wingthing

Made for: Claude Code, Codex.

Per session 31 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 993 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. Scan, not verified.
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 $0.00031 $0.00993
Opus 5 $0.00015 $0.00496
Sonnet 5 $0.00006 $0.00199
Haiku 4.5 $0.00003 $0.00099

Measured 2d ago against content hash ea0446c37ba1, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

debug-wing scanned grade A with 1 finding 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 2d 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.

Makes network callslowCapability

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

allowed-tools: Read, Glob, Grep, Bash(wt whoami), Bash(wt wing status), Bash(wt doctor), Bash(wt support), Bash(cat *), Bash(tail *), Bash(head *), Bash(curl *), Bash(ps *), Bash(grep *)
docs/skills/debug-wing/SKILL.md · 102 lines

How it starts

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

Wing Connectivity Debugger

You are a support engineer debugging why a user's wing isn't working. You have deep knowledge of wingthing's architecture: the wing daemon connects to a relay via WebSocket, the web UI discovers wings via /api/app/wings, and the whole chain depends on matching user accounts between CLI auth and web auth.

The #1 Cause of "No Wings in UI"

Account mismatch. The CLI (wt login) and web UI (GitHub/Google OAuth) create separate user accounts if different OAuth providers are used. The wing is associated with the CLI user, the browser session is a different user, so listAccessibleWings returns nothing.

Diagnostic Steps

Run these in order. Stop and report as soon as you find the issue.

Step 1: Who am I?

wt whoami

This shows the account the CLI is authenticated as (name, email, provider, wing_id). If it fails with "token expired", run wt logout && wt login.

Compare this with the account shown in the web UI (Settings page or the "signed in as" line on the empty state). If they don't match, that's the problem.

Step 2: What's the daemon and relay status?

wt wing status

This shows:

  • Daemon PID and whether it's running
  • Account identity (verified against the relay)
  • Relay connection state (connected/disconnected/auth_failed)
  • Wing ID
  • Active egg sessions

If "not running": wt start. If "auth_failed": wt logout && wt login && wt start. If "token expired": same fix.

Step 3: Collect diagnostic bundle

wt support

This creates a zip at /tmp/wt-support-<timestamp>.zip containing:

  • meta.json: wing_id, hostname, platform, version, daemon PID, token expiry, account info
  • wing.log: last 10,000 lines
  • egg.log: last 1,000 lines
  • doctor.txt: agent detection results
  • wing.yaml and wing.status: config and state files

Email the zip to [email protected] for relay-side investigation.

Step 4: Check the daemon log

tail -100 ~/.wingthing/wing.log

Read the full file on GitHub · 102 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. 2d ago First seen · 102 lines · 31 tokens per session scan A ea0446c37ba1

Subscribe to this mod's changes

debug-wing is a skill published in the GitHub repository ehrlich-b/wingthing (52 stars, last pushed 3d ago), licensed MIT. It adds 31 tokens to every session and 993 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

systematic-debugging

Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes.

obra/superpowers · 21 tokens

brainstorming

You MUST use this before any creative work - creating features, building components, adding functionality, or modifying behavior. Explores user intent, requirements and design before implementation.

obra/superpowers · 37 tokens

chat-pet-sprite-creation

Use when creating or changing VS Code chat pet sprite art, sprite sheets, state animations, eye treatments, Stable/Insiders variants, or pet transitions under src/vs/workbench/contrib/chat/browser/widget/media/chatPet.

microsoft/vscode · 53 tokens

cpu-profile-analysis

Analyze V8/Chrome CPU profiles (.cpuprofile) and DevTools trace files (Trace-.json). Use when: profiling performance, investigating slow functions, comparing code paths, finding bottlenecks, analyzing timeToRequest, understanding call trees from sampling profiler data, analyzing layout/paint/rendering, investigating…

microsoft/vscode · 71 tokens

babysit-pr

Babysit a GitHub pull request after creation by continuously polling review comments, CI checks/workflow runs, and mergeability state until the PR is merged/closed or user help is required. Diagnose failures, retry likely flaky failures up to 3 times, auto-fix/push branch-related issues when appropriate, and keep…

openai/codex · 114 tokens

imagegen

Generate or edit raster images when the task benefits from AI-created bitmap visuals such as photos, illustrations, textures, sprites, mockups, or transparent-background cutouts. Use when Codex should create a brand-new image, transform an existing image, or derive visual variants from references, and the output…

openai/codex · 113 tokens