Delegating to agents

From Matymatyk-business/david-skills · View interactive version

Delegating to agents is an AI agent skill from the GitHub repository Matymatyk-business/david-skills. MUST be read ANY time another AI agent is involved — sending a prompt to or polling a Pi/Codex/Claude Code/Hermes/OpenCode agent, driving an agent running in another cmux pane/surface/terminal/tmux window, delegating or relaying ANYTHING to an agent in the same cmux workspace, spawning a sub-agent,

How to use this skill

Skill file

Delegating to Agents

Which agent to pick (most important)

Polling cadence — keep sleeps SHORT

General principle: when waiting on another agent, use short sleep intervals so you check often. Don't sleep 30. Start with sleep 3-5; if the agent isn't done, just sleep 5 again and re-check. Scale up only for genuinely heavy tasks.

Sending prompts — NEVER put newlines in the message body

When sending a prompt to a TUI agent (Pi, Hermes, Claude Code, Codex) via cmux send, tmux send-keys, or similar, the message text must be a single line. In these TUIs a newline = Enter, so a multi-line string submits after the first line and the rest arrive as separate mid-turn "Steering" messages — cutting off / fragmenting your prompt.

Fixes (pick one):

Managing a remote VPS via an agent

To have an agent manage a remote VPS, SSH in first and launch the agent ON the VPS (e.g. codex --yolo), then drive that on-box agent — it has full local context and avoids fragile per-command SSH round-trips. Don't run an agent locally and tell it to SSH for every step.

Agent characteristics

The 4 agents (compressed reference)

Background only — don't over-index on this. All four use the portable SKILL.md standard (~/.{agent}/skills/, project version wins; one folder can be symlinked across all). Pi, Codex, Hermes are model-agnostic (BYOK); Claude Code is Claude-centric.

Driving interactive CLIs

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.