PWN::AI::Agent::Swarm
Native multi-agent orchestration for pwn-ai. First-class sub-agents built on top of PWN::AI::Agent::Loop.run. Each persona is a full tool-calling agent — Memory, Skills, Learning, Metrics and Extrospection all apply — so the self-improvement loop covers the whole swarm. ~/.pwn/agents.yml # persona registry ~/.pwn/swarm/<swarm_id>/bus.jsonl # append-only message bus ~/.pwn/swarm/<swarm_id>/personas.json# persona -> PWN::Sessions id Cross-session / cross-process communication == another pwn-ai (or a PWN::Cron job) calling Swarm.ask/debate with the same swarm_id and reading the same bus.jsonl. No daemon required.
When to use
Call PWN::AI::Agent::Swarm from pwn_eval when the task needs this module.
Do not reimplement it in shell.
Methodologies
Generated from pwn/ai/agent/swarm.rb. Prefer the public class methods below.
Class methods take (opts = {}) and read opts.
How to call
PWN::AI::Agent::Swarm.help
PWN::AI::Agent::Swarm.personas(opts)
Public methods
personasspawnretirecreatelistbus_appendbus_tailaskdebatebroadcastsolvemap_targetsfact_recordfacts_promptclaimpack_specialistspecialist_rolesensure_specialistschild_inboxchild_honestyhonesty_unmetview_graphmigrate_personasauthorshelp
Source
pwn/ai/agent/swarm.rb
Verification
PWN::AI::Agent::Swarm.respond_to?(:personas) after the
module is loaded. Read the source for parameter names.