| name | houmao-agent-loop-pairwise |
| description | Use Houmao's manual tree loop-planning and run-control skill only when the user explicitly asks for `houmao-agent-loop-pairwise` to formulate a master-owned tree loop plan or operate that run through start, status, and stop. |
| license | MIT |
Houmao Agent Loop Tree
Terminology
- This pairwise-named package authors and operates tree loops.
pairwise loop is a legacy alias for tree loop behavior.
- Keep the package name, explicit invocation name, filenames, and existing runtime identifiers unchanged.
- The elemental driver-worker protocol is a local-close edge loop.
Use this Houmao skill only when the user explicitly asks for houmao-agent-loop-pairwise. This is a manual-invocation-only tree loop planner and run controller, not the default entrypoint for ordinary tree loop planning or tree loop run-control requests.
When explicitly invoked, this skill helps a user-controlled agent formulate or operate one tree loop run across named Houmao agents while keeping the user agent outside the execution loop.
houmao-agent-loop-pairwise is intentionally above the direct-operation skills and above the local-close edge loop pattern page in houmao-adv-usage-pattern. This skill does not invent a new runtime loop engine. It turns user intent into one explicit plan, owns the composed tree loop topology, renders the final control graph, and routes start or follow-up control to the maintained Houmao-owned skills that already own messaging, reminders, mailbox follow-up, and elemental local-close edge execution guidance.
The local-close edge loop page in houmao-adv-usage-pattern is the atomic immediate driver-worker edge protocol. This skill owns composed tree loop planning: multi-edge runs, recursive child-control edges, rendered control graphs, master-owned run planning, and run-control actions.
The trigger word houmao is intentional. Use the houmao-agent-loop-pairwise skill name directly when you intend to activate this Houmao-owned skill.
Scope
This packaged skill covers two lanes:
- authoring a tree loop plan from user intent
- operating an accepted run through
start, status, and stop
This packaged skill does not cover:
- making the user agent a participant in local-close receipts, results, or acknowledgements
- inventing a free-delegation policy when the plan is silent
- drawing arbitrary cyclic worker-to-worker execution as the default model
- replacing
houmao-agent-messaging, houmao-agent-gateway, houmao-agent-email-comms, or houmao-adv-usage-pattern
Workflow
- Confirm that the user explicitly asked for
houmao-agent-loop-pairwise and wants one tree loop plan or one run-control action rather than one ordinary direct-operation request.
- Keep the two planes separate from the start:
- control plane: user agent to designated master
- execution plane: master and downstream workers using the existing local-close edge loop pattern for each immediate driver-worker edge
- Treat the user agent as outside the execution loop. After the master accepts the run, the master owns liveness, supervision, downstream local-close dispatch, completion evaluation, and stop handling.
- If the user needs a new plan or a revised plan, load exactly one authoring page:
authoring/formulate-loop-plan.md
authoring/revise-loop-plan.md
authoring/render-loop-graph.md
- If the user already has a plan and wants to operate it, load exactly one operating page:
operating/start.md
operating/status.md
operating/stop.md
- Use the local references and templates only when they help normalize the plan or charter:
references/run-charter.md
references/delegation-policy.md
references/stop-modes.md
references/reporting-contract.md
references/plan-structure.md
templates/single-file-plan.md
templates/bundle-plan.md
- When a NetworkX node-link graph representation is available, use
houmao-mgr internals graph high ... as the first-class structural helper during authoring and revision.
- Route execution to the maintained Houmao-owned skills that own the lower-level surfaces.
Authoring Pages
Operating Pages
- Read operating/start.md when the user wants to send one normalized start charter to the designated master.
- Read operating/status.md when the user wants a periodic read-only status update from the designated master for one
run_id.
- Read operating/stop.md when the user wants to stop one active run, with
interrupt-first as the default stop posture unless graceful stop was requested explicitly.
References
Templates
Preferred Communication Channel
Mailbox-based communication through houmao-agent-email-comms is the preferred channel for inter-agent messaging in tree loop runs. Mailbox messages are durable, asynchronous, and auditable. Use houmao-agent-messaging prompt delivery only for control-plane signals that require immediate synchronous delivery (start charter, status request, stop request) when the target agent does not yet have an active gateway mail-notifier or when the signal must bypass the mailbox queue.
At run start, before delivering the start charter, enable gateway mail-notifier polling for every targeted participant that has a live gateway and mailbox binding. Use interval 5s unless the user or plan specifies another interval. This ensures participants can receive mailbox-routed work promptly once the run begins.
Routing Guidance
- Route plan delivery, status requests, and stop requests to
houmao-agent-messaging.
- Route gateway mail-notifier enablement and master reminder work to
houmao-agent-gateway.
- Route mailbox receipt, result, or follow-up semantics referenced by the plan to
houmao-agent-email-comms.
- Route routine authoring-time structural graph checks and deterministic Mermaid scaffolding to
houmao-mgr internals graph high analyze|slice|render-mermaid as the first-class helper surface when a NetworkX node-link graph representation is available; keep final tree-loop semantics, delegation policy, and graph review in this skill.
- Do not route normal tree loop planning to
houmao-mgr internals graph low; keep routine loop-skill graph work on the Houmao-aware graph high surface.
- Keep composed topology, recursive child-control edges, rendered graphs, run charters, and start/status/stop control in this skill.
- Route only atomic immediate driver-worker edge execution semantics to
houmao-adv-usage-pattern, specifically the elemental local-close edge loop pattern.
- Route project setup, specialist authoring, agent launch, or lifecycle management outside this loop-planning scope to their existing Houmao-owned skills.
Guardrails
- Do not auto-route ordinary tree loop planning or tree loop run-control requests here when the user did not explicitly ask for
houmao-agent-loop-pairwise.
- Do not make the user agent the upstream driver of the execution loop.
- Do not allow free delegation unless the plan says so explicitly.
- Do not treat
status polling as a keepalive signal; the master owns liveness after accepting the run.
- Do not default to graceful stop. Default to
interrupt-first unless the user explicitly requests graceful termination.
- Do not describe the final graph as an arbitrary agent-to-agent cycle when the real execution topology is tree loop local-close control plus a supervision loop.
- Do not push multi-edge topology, recursive child-control planning, rendered graph semantics, or run-control actions down into
houmao-adv-usage-pattern; those remain in this skill.
- Do not replace the existing elemental local-close edge loop pattern or restate its full mailbox and reminder protocol here; compose it through
houmao-adv-usage-pattern for each immediate driver-worker edge.
- Do not skip gateway mail-notifier enablement before start when targeted participants have a live gateway and mailbox binding, unless the user explicitly disables notifier setup.
- Do not use a mail-notifier interval other than
5s unless the user or plan specifies another interval.