AgileRL Multi-Agent And Wrappers
Use this sub-skill for AgileRL multi-agent reinforcement learning with PettingZoo parallel environments, MADDPG, MATD3, IPPO, AsyncPettingZooVecEnv, make_multi_agent_vect_envs, multi-agent replay buffers, agent grouping, asynchronous-agent wrappers, and curriculum/Skill wrappers.
Read First
references/workflows.md for PettingZoo vectorization and multi-agent training flow.
references/api-reference.md for major algorithms, vector envs, wrappers, and buffers.
references/configuration.md for agent IDs, homogeneous groups, and nested net_config.
references/troubleshooting.md for ordering, wrapper, and vector-env issues.
scripts/inspect_multi_agent_setup.py --help for a no-training config probe.
Boundaries
- Use
../hpo-and-mutation/SKILL.md for tournament/mutation probabilities.
- Use
../evolvable-modules/SKILL.md for network architecture details.
- Use
../training-workflows/SKILL.md for single-agent Gymnasium workflows.
- This sub-skill owns PettingZoo and multi-agent-specific spaces, IDs, vectorization, wrappers, and replay layout.
Multi-Agent Flow
- Create a PettingZoo parallel environment factory.
- Vectorize with
make_multi_agent_vect_envs(...) or AsyncPettingZooVecEnv.
- Capture
agent_ids, observation_spaces, and action_spaces in the same order.
- Define
net_config globally, per agent, or per homogeneous group.
- Create a population with
create_population(algo="MADDPG" | "MATD3" | "IPPO", ...).
- Use
MultiAgentReplayBuffer for off-policy multi-agent algorithms.
- Configure HPO and call the matching multi-agent training helper.
Supported Patterns
MADDPG and MATD3: multi-agent off-policy actor-critic workflows.
IPPO: independent PPO-style on-policy workflow, including homogeneous group parameter-sharing patterns.
AsyncAgentsWrapper: asynchronous-turn handling for supported algorithms.
Skill/curriculum wrappers: hierarchical curriculum-style workflows when the environment exposes lower-level skills.
Safe Validation
python scripts/inspect_multi_agent_setup.py --agents speaker_0 listener_0
The helper validates ID prefixes, synthetic spaces, and grouped config shape. It does not import external PettingZoo environments or train.
1---2name: multi-agent-and-wrappers3description: "Use AgileRL multi-agent PettingZoo workflows, MADDPG/MATD3/IPPO,4 vector envs, wrappers, agent grouping, and multi-agent replay setup."5disable-model-invocation: true6metadata:7 source: https://skillmd.com/skills/vectorspacelab/multi-agent-and-wrappers8 disco-role: operating9license: Apache 2.010---1112# AgileRL Multi-Agent And Wrappers1314Use this sub-skill for AgileRL multi-agent reinforcement learning with PettingZoo parallel environments, `MADDPG`, `MATD3`, `IPPO`, `AsyncPettingZooVecEnv`, `make_multi_agent_vect_envs`, multi-agent replay buffers, agent grouping, asynchronous-agent wrappers, and curriculum/Skill wrappers.1516## Read First1718- `references/workflows.md` for PettingZoo vectorization and multi-agent training flow.19- `references/api-reference.md` for major algorithms, vector envs, wrappers, and buffers.20- `references/configuration.md` for agent IDs, homogeneous groups, and nested `net_config`.21- `references/troubleshooting.md` for ordering, wrapper, and vector-env issues.22- `scripts/inspect_multi_agent_setup.py --help` for a no-training config probe.2324## Boundaries2526- Use `../hpo-and-mutation/SKILL.md` for tournament/mutation probabilities.27- Use `../evolvable-modules/SKILL.md` for network architecture details.28- Use `../training-workflows/SKILL.md` for single-agent Gymnasium workflows.29- This sub-skill owns PettingZoo and multi-agent-specific spaces, IDs, vectorization, wrappers, and replay layout.3031## Multi-Agent Flow32331. Create a PettingZoo parallel environment factory.342. Vectorize with `make_multi_agent_vect_envs(...)` or `AsyncPettingZooVecEnv`.353. Capture `agent_ids`, `observation_spaces`, and `action_spaces` in the same order.364. Define `net_config` globally, per agent, or per homogeneous group.375. Create a population with `create_population(algo="MADDPG" | "MATD3" | "IPPO", ...)`.386. Use `MultiAgentReplayBuffer` for off-policy multi-agent algorithms.397. Configure HPO and call the matching multi-agent training helper.4041## Supported Patterns4243- `MADDPG` and `MATD3`: multi-agent off-policy actor-critic workflows.44- `IPPO`: independent PPO-style on-policy workflow, including homogeneous group parameter-sharing patterns.45- `AsyncAgentsWrapper`: asynchronous-turn handling for supported algorithms.46- `Skill`/curriculum wrappers: hierarchical curriculum-style workflows when the environment exposes lower-level skills.4748## Safe Validation4950```bash51python scripts/inspect_multi_agent_setup.py --agents speaker_0 listener_052```5354The helper validates ID prefixes, synthetic spaces, and grouped config shape. It does not import external PettingZoo environments or train.