distributed-agent-runtime-operations
Diagnose and recover persistent agent backends with desktop/mobile clients, reverse proxies, tunnels, pairing, and split-horizon routing.
Skill by semyonfox
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/semyonfox-distributed-agent-runtime-operations
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: agent-building
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/distributed-agent-runtime-operations
What's inside
- Skill name
distributed-agent-runtime-operations- Description
- Diagnose and recover persistent agent backends with desktop/mobile clients, reverse proxies, tunnels, pairing, and split-horizon routing.
- License
- MIT
- Instructions
- 84 lines in SKILL.md · view on GitHub
Files (1)
- SKILL.md
SKILL.md (first lines)
# Distributed Agent Runtime Operations Use for a persistent local/server agent backend which is accessed by desktop or mobile clients through LAN proxies, public tunnels, pairing links, or remote-control transports. ## Operating model Treat the system as separate layers, each requiring its own proof: 1. Client runtime and its saved connection/session state. 2. Client DNS, routing, IPv4/IPv6, clock, and TLS trust. 3. LAN reverse proxy and split-horizon DNS. 4. Public edge/tunnel transport. 5. Server process owner, listener, and backend state. A successful HTTP request from the server does **not** prove the affected client can fetch, authenticate, or open a WebSocket. ## Read-only diagnosis 1. Identify the intended owner before changing anything: systemd user service, desktop launcher, Docker tunnel connector, etc. Never add a second backend process to "test" a persistent service. 2. Probe backend origin, public hostname, and forced LAN-proxy hostname independently. Record HTTP status, remote IP, and latency. 3. Locate the failing device from an active TCP connection, a fleet inventory, or user context. Run the same certificate-verified fetch from that device through SSH. 4. On the device, inspect: - DNS results and configured resolvers; - whether IPv6 records exist while the device lacks IPv6 routing; - time/NTP status; - desktop/mobile app process state and structured logs; - the exact backend/client versions. 5. Test WebSocket routes only with valid auth/tickets; an unauthenticated `401` only proves that the HTTP route is reachable, not that pairing works. ## Client/runtime recovery - Desktop applications may run a separate local backend, often on the same nominal port as the server but on another host. Distinguish these explicitly. - If the desktop runtime itself is stale, terminate its **known top-level PID** cleanly, wait for children/listeners to exit, and launch it using the live graphical session environment. Do not use broad `pkill -f` expressions which can kill SSH or unrelated Electron processes. - Preserve the desktop app's known secure-storage option when relaunching; do not silently downgrade password storage. - Do not blank/reset client state merely because pairing fails. Back up and inspect connection state first; reset only when the user explicitly asks for a blank slate. ## DNS and TLS pitfalls - Multiple DHCP DNS servers can race. A client may bypass a local split-horizon record even when the server itself resolves locally. - A Cloudflare Origin CA certificate is valid between Cloudflare and an origin, but ordinary clients do not trust it. Do not direct a normal LAN client to an Nginx endpoint using only that certificate unless the client trust store was intentionally configured. Either deploy a publicly trusted certificate for the LAN vhost or use the public edge path. - Prefer the same HTTPS hostname for LAN and WAN. Do not tell browser/Electron clients to use raw `http://LAN-IP:port` unless the application explicitly supports it. ## Version alignment For nightly/fast-moving agent software, compare the server runtime version with the desktop/mobile build. A package registry can advance before a desktop artifact is published. When a mismatch plausibly coincides with connection failure: 1. Identify the newest mutually available build. 2. Preserve service state; change only the scoped runtime package. 3. Verify native dependencies required by the backend after install. 4. Restart the canonical process owner, wait for warm-up, and reprobe all paths. 5. Generate a new pairing credential only after both ends are stable. ## Scheduled-agent and gateway failures When a scheduled agent reports a transport-style error (for example a broken pipe), first distinguish **agent execution**, **scheduled workload**, and **delivery**: 1. Inspect the scheduler log for the job ID and the request/retry sequence. A provider-stream failure can occur before the workload gets any tool call; it is not evidence that the monitored backup/service failed. 2. Inspect the job's latest status and delivery error separately. A successful execution with a Discord delivery failure is a routing problem, not a failed health check. 3. Trigger one scoped manual run of the existing job after checking its safety prompt and side-effect boundaries. Treat a successful rerun as recovery evidence, while preserving the original log evidence for the actual cause. 4. If the provider's event-stale watchdog prematurely terminates otherwise healthy Codex streams, raise its configured stale-event timeout conservatively, retain a backup of the prior environment file, and restart the canonical gateway owner before expecting the new value to take effect. 5. Never claim the workload was repaired solely because the provider retry succeeded; report both the completed rerun and any remaining restart/config activation step. ## Controlled recovery When the user explicitly requests a clean backend reset: 1. Stop the canonical service and verify its listener disappears. 2. Restart the named tunnel/proxy connector, not the entire Docker host. 3. Start the canonical service normally. 4. Wait for local readiness; startup probes may transiently refuse or time out. 5. Verify local origin, public edge, and LAN proxy independently. 6. Do not claim the client is fixed until the client-side probe or user confirms it. ## Pairing credential handling Pair URLs/tokens are time-limited access credentials. Keep them out of logs, diagnostics, screenshots, and shared channels by default. Deliver them in a shared channel only when the user explicitly asks. Label credentials by device/purpose and regenerate rather than reusing an uncertain old token. ## Reporting Lead with the failing layer, not a generic "service is healthy." State which probes were run from the actual client, what was changed, and the remaining client action. Do not conflate server HTTP health with authenticated real-time connection health.
From semyonfox/dotfiles, MIT.
More from semyonfox/dotfiles
- 0.592score
creative
semyonfox
Use when generating or transforming creative artifacts such as diagrams, infographics, sketches, motion pieces, generative art, slides, or stylized text and…
SkillAFreshness: A★ 1Claude Code +9 - 0.588score
autonomous-ai-agents
semyonfox
Use when delegating code or repo work to external autonomous coding agents, choosing among Claude Code, Codex, and OpenCode, or repairing T3 Code mobile APK…
SkillAFreshness: A★ 1Claude Code +9 - 0.551score
audio-learning-production
semyonfox
Use when producing engaging, hosted two-voice audio lessons.
SkillBFreshness: B★ 1Claude Code +9 - 0.549score
apple-automation
semyonfox
Class-level macOS and Apple-device automation: screen-driven computer use, AppleScript, screenshots, and Find My workflows.
SkillBFreshness: B★ 1Claude Code +9 - 0.549score
docker-maintenance
semyonfox
Safely refresh, recover, and verify a multi-stack Docker host, including Watchtower maintenance and zombie-container recovery.
SkillBFreshness: B★ 1Claude Code +9 - 0.546score
backup-recovery-operations
semyonfox
Design, operate, verify, and document selective local/offsite backup and recovery systems.
SkillBFreshness: B★ 1Claude Code +9 - 0.544score
curiosity-led-teaching
semyonfox
Teach Semyon technical or academic material through bounded curiosity, active prediction, real-project relevance, and visible closure.
SkillBFreshness: B★ 1Claude Code +9 - 0.544score
availability-observability
semyonfox
Audit and present host, network-uplink, and service availability from existing system evidence before adding monitoring.
SkillBFreshness: B★ 1Claude Code +9 - 0.543score
agent-skill-library-management
semyonfox
Use when centralizing or deploying Claude/Codex skills.
SkillBFreshness: B★ 1Claude Code +9 - 0.543score
docx
semyonfox
Create, read, edit, template, and review Word .docx files.
SkillBFreshness: B★ 1Claude Code +9 - 0.543score
editor-mcp-integration
semyonfox
Use for Blender, Unity, or Unreal MCP setup.
SkillBFreshness: B★ 1Claude Code +9 - 0.543score
chaptered-audio-learning
semyonfox
Use for multi-chapter audio learning series.
SkillBFreshness: B★ 1Claude Code +9
Signals
- Stars
- 1
- Forks
- 0
- Open issues
- 0
- Last commit (this folder)
- Aug 12, 2026 (2 months ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Repository
- github.com/semyonfox/dotfiles
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from semyonfox
- 0.592score
creative
semyonfox
Use when generating or transforming creative artifacts such as diagrams, infographics, sketches, motion pieces, generative art, slides, or stylized text and…
SkillAFreshness: A★ 1Claude Code +9 - 0.588score
autonomous-ai-agents
semyonfox
Use when delegating code or repo work to external autonomous coding agents, choosing among Claude Code, Codex, and OpenCode, or repairing T3 Code mobile APK…
SkillAFreshness: A★ 1Claude Code +9 - 0.551score
audio-learning-production
semyonfox
Use when producing engaging, hosted two-voice audio lessons.
SkillBFreshness: B★ 1Claude Code +9 - 0.549score
apple-automation
semyonfox
Class-level macOS and Apple-device automation: screen-driven computer use, AppleScript, screenshots, and Find My workflows.
SkillBFreshness: B★ 1Claude Code +9 - 0.549score
docker-maintenance
semyonfox
Safely refresh, recover, and verify a multi-stack Docker host, including Watchtower maintenance and zombie-container recovery.
SkillBFreshness: B★ 1Claude Code +9 - 0.546score
backup-recovery-operations
semyonfox
Design, operate, verify, and document selective local/offsite backup and recovery systems.
SkillBFreshness: B★ 1Claude Code +9
Cite this page
distributed-agent-runtime-operations skill. Agent Mart. https://agentmart.dev/skills/semyonfox-distributed-agent-runtime-operations (last updated 2026-10-24)