Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Use when agent or environment module names are unknown, need validation, or the user asks which modules are available in the workspace.
| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-07 | ✗→✓ | ▲ Improved | -31% | 0% |
| case-08 | ✗→✓ | ▲ Improved | -23% | 0% |
| case-09 | ✗→✓ | ▲ Improved | -32% | 0% |
| case-10 | ✗→✓ | ▲ Improved | -17% | 0% |
| case-11 | ✗→✓ | ▲ Improved | -33% | 0% |
Scan and query available agent classes and environment modules in the AgentSociety2 workspace.
Do NOT use when:
Use the Python interpreter from .env. See CLAUDE.md for setup.
Run commands from the workspace root through .agentsociety/bin/ags.py.
| Action | Command | |--------|---------| | List all modules | $PYTHON_PATH .agentsociety/bin/ags.py scan-modules list | | List short names | $PYTHON_PATH .agentsociety/bin/ags.py scan-modules list --short | | Filter by type | $PYTHON_PATH .agentsociety/bin/ags.py scan-modules list --type agent (or env) | | Custom modules only | $PYTHON_PATH .agentsociety/bin/ags.py scan-modules list --custom-only | | Full descriptions | $PYTHON_PATH .agentsociety/bin/ags.py scan-modules list --full | | JSON output | $PYTHON_PATH .agentsociety/bin/ags.py scan-modules list --json | | Module info | $PYTHON_PATH .agentsociety/bin/ags.py scan-modules --workspace PATH info --type TYPE --name NAME | | Search by keyword | $PYTHON_PATH .agentsociety/bin/ags.py scan-modules --workspace PATH search --keyword KEYWORD [--type TYPE] | | Export to JSON | $PYTHON_PATH .agentsociety/bin/ags.py scan-modules --workspace PATH export --output FILE | | Validate module | $PYTHON_PATH .agentsociety/bin/ags.py scan-modules --workspace PATH validate --type TYPE --name NAME |
Common options: --workspace PATH to target a specific workspace directory. scan_modules.py now accepts --workspace either before or after the subcommand, but prefer the form before the subcommand in examples for consistency.
bash$PYTHON_PATH .agentsociety/bin/ags.py scan-modules --workspace PATH info --type TYPE --name NAME [--json]
Shows: full description, constructor parameters, file location, import path, prefill parameters.
bash$PYTHON_PATH .agentsociety/bin/ags.py scan-modules --workspace PATH search --keyword KEYWORD [--type TYPE] [--json]
bash$PYTHON_PATH .agentsociety/bin/ags.py scan-modules --workspace PATH export --output FILE
bash$PYTHON_PATH .agentsociety/bin/ags.py scan-modules --workspace PATH validate --type TYPE --name NAME
Checks that the module can be imported and instantiated.
packages/agentsociety2/agentsociety2/agent/person.pypackages/agentsociety2/agentsociety2/contrib/env/packages/agentsociety2/agentsociety2/contrib/agent/<workspace>/custom/agents/ and <workspace>/custom/envs/Note: packages/agentsociety2/agentsociety2/custom/ contains template files copied to workspace during init — it is not a runtime module location.
Use the class name as the type identifier:
| Class Name | Type Identifier | |------------|-----------------| | PersonAgent | PersonAgent | | SimpleSocialSpace | SimpleSocialSpace | | PrisonersDilemmaEnv | PrisonersDilemmaEnv |
| Mistake | Fix | |---------|-----| | Using snake_case names as type identifiers (e.g., person_agent) | Use the exact class name (e.g., PersonAgent) | | Skipping validate before relying on a module | Always run validate after discovering a module you plan to use | | Searching with wrong --type filter | Use --type agent for agents, --type env for environments; omit --type to search both |
Predecessors: None Successors: hypothesis, experiment-config Required Sub-Skills: None
Called as an optional discovery and validation helper by hypothesis and experiment-config.
Other measured skills in the registry, with their headline benchmark lift.