Wires multi-agent topologies (Org/Department/Team hierarchy) with routing strategies (RoundRobin, LoadAware, CapabilityMatch) and patterns (supervisor, swarm, network, hierarchical). Triggers on Team, swarm_loop, HandoffTool, Policy::narrow, or LangGraph supervisor porting.
Ships in atomr-agents-ai-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
agents-org provides the four-level hierarchy (Org →
Department → Team → unit) plus the four canonical multi-agent
patterns (supervisor / swarm / network / hierarchical), all built
from Callable, OrgRoutingStrategy, Policy::narrow, and
RichTool::ToolReturn::Command(Handoff).
Callable. An Org containing a
Department containing Teams is just nesting.OrgUnit carries an
Arc<dyn OrgRoutingStrategy> that picks among (label, CallableHandle) children.HandoffTool returns
ToolReturn::Command(ToolControl::Handoff { target, payload });
the surrounding pattern decides what "handoff" means.| Strategy | When |
|---|---|
RoundRobinRouter::new() | load balancing across identical workers |
LoadAwareRouter::for_size(n) | best-effort least-loaded child |
CapabilityMatchRouter | route based on the input's route string field — supervisor pattern |
use atomr_agents_org::{CapabilityMatchRouter, RoundRobinRouter};
use std::sync::Arc;
let routing: Arc<dyn OrgRoutingStrategy> = Arc::new(CapabilityMatchRouter);
use std::sync::Arc;
use atomr_agents_callable::CallableHandle;
use atomr_agents_org::{CapabilityMatchRouter, OrgUnit, Team};
use atomr_agents_core::TeamId;
use atomr_agents_strategy::Policy;
let team = Team {
id: TeamId::from("support"),
unit: OrgUnit {
label: "support".into(),
children: vec![
("L1-frontline".into(), frontline_agent),
("L2-specialist".into(), specialist_agent),
("escalation".into(), escalation_workflow),
],
routing: Arc::new(CapabilityMatchRouter),
policy: Policy::default(),
granted_toolsets: vec!["crm".into(), "kb".into()],
},
};
// Triage agent's tool call embeds the route:
team.call(serde_json::json!({"route": "L2", "ticket": "abc-123"}), ctx).await?;
// CapabilityMatchRouter substring-matches "L2" against child labels;
// L2-specialist runs.
use std::collections::HashMap;
use atomr_agents_org::{ActiveAgent, swarm_loop};
let active = ActiveAgent::new("planner");
let mut agents: HashMap<String, CallableHandle> = HashMap::new();
agents.insert("planner".into(), planner_agent_for(active.clone()));
agents.insert("executor".into(), executor_agent_for(active.clone()));
agents.insert("reviewer".into(), reviewer_agent_for(active.clone()));
let result = swarm_loop(
&agents,
&active,
serde_json::json!({"task": "deploy-pipeline"}),
/* max_iters */ 20,
).await?;
Each agent's tools include a HandoffTool that updates the
ActiveAgent slot on invocation. The loop terminates when an agent
returns {"done": true} or max_iters runs out.
Same as swarm; the only difference is who can hand off to whom — which the swarm helper doesn't constrain. An agent can hand off to any peer:
agents.insert("a".into(), agent_handing_off_to(active.clone(), "b"));
agents.insert("b".into(), agent_handing_off_to(active.clone(), "a")); // loops back
agents.insert("c".into(), terminating_agent());
use atomr_agents_org::{Department, Org};
use atomr_agents_core::{DepartmentId, OrgId};
let dept = Department {
id: DepartmentId::from("support"),
unit: OrgUnit {
label: "support".into(),
children: vec![
("L1".into(), Arc::new(team_l1) as CallableHandle),
("L2".into(), Arc::new(team_l2) as CallableHandle),
],
routing: Arc::new(CapabilityMatchRouter),
policy: dept_policy,
granted_toolsets: vec![],
},
};
let org = Org {
id: OrgId::from("co"),
unit: OrgUnit {
label: "root".into(),
children: vec![("support".into(), Arc::new(dept) as CallableHandle)],
routing: Arc::new(CapabilityMatchRouter),
policy: org_policy,
granted_toolsets: vec!["crm".into(), "kb".into(), "billing".into()],
},
parent_policy: None,
};
org.call({route: "support"}, ctx) runs the dept; the dept's
router picks L1 or L2; that team's router picks an agent.
use atomr_agents_strategy::Policy;
let parent = Policy {
allowed_toolsets: vec!["a".into(), "b".into(), "c".into()],
max_tokens_per_call: Some(10_000),
allowed_models: vec!["gpt-4o".into(), "claude-3-opus".into()],
..Default::default()
};
let child = Policy {
allowed_toolsets: vec!["b".into(), "d".into()],
max_tokens_per_call: Some(2_000),
allowed_models: vec![],
..Default::default()
};
let resolved = Policy::narrow(&parent, &child);
// resolved.allowed_toolsets == ["b"]
// resolved.max_tokens_per_call == Some(2_000)
// resolved.allowed_models == ["gpt-4o", "claude-3-opus"] (child empty inherits)
Empty child lists inherit; non-empty lists intersect with parent. Numeric caps take min.
use atomr_agents_org::NamespacedMemory;
let mem = NamespacedMemory::new(OrgId::from("co"), AgentId::from("a-1"))
.with_team(TeamId::from("support-l2"))
.with_team_write(true);
| Namespace | Reads | Writes |
|---|---|---|
Agent(self) | yes | yes |
Team(self.team) | yes | only when allow_team_write = true |
Org(self.org) | yes (cascade on agent reads) | always denied |
use atomr_agents_tool::HandoffTool;
let handoff = HandoffTool::new("specialist");
// Tool name: "handoff_to_specialist"
// On invoke: ToolReturn::Command(ToolControl::Handoff { target: "specialist", payload })
The target and payload fields can be overridden per-call if
the model supplies them in tool args. The surrounding pattern
(supervisor / swarm) decides what to do with the Handoff value.
docs/multi-agent-patterns.mdcrates/org/src/patterns.rs — supervisor / swarm / network / hierarchical testscrates/org/src/team.rsroute field. CapabilityMatchRouter reads
input.route (string). Without it, you fall through to the first
child.Policy::narrow intersects;
there's no way to add a toolset the parent didn't grant.NamespacedMemory::put(item with namespace=Org(_)) returns
PolicyDenied. Promote the write to a workflow step at the org
level.swarm_loop without a termination signal. Some agent must
return {"done": true} or the loop runs to max_iters and
returns the last output.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
Other plugins' skills for the same job
14 skills in this plugin
/atomr-agents-evalUse when writing eval suites, picking a `Scorer` (Contains / LlmJudge / Rubric / Pairwise), gating publication on `RegressionGate`, queuing items for human annotation, or wiring online eval. Triggers on `EvalSuite { ... }`, `EvalSuite::run`, `LlmJudgeScorer::new`, `PairwiseScorer::compare`, `RegressionGate::check`, or `Registry::publish_gated`./atomr-agents-hitlUse when adding human-in-the-loop pause/resume — dynamic `interrupt()` from a step, static breakpoints (`interrupt_before` / `interrupt_after`), or driving resume with `Command::{Continue, Resume, Update, Goto}`. Triggers on writing `Interruptible { ... }`, calling `ctrl.interrupt(...)`, or porting a LangGraph `interrupt()` / `Command(resume=...)` flow./atomr-agents-/atomr-agents-ai-skills:atomr-agents-multi-agentfrom atomr-agents-ai-skills
npx claudepluginhub rustakka/atomr-agents --plugin atomr-agents-ai-skills