jonnysteedman683-wq/vorpal/agent-simulation
Claude Code and agent skill by jonnysteedman683-wq/vorpal
- community
Checking that the SKILL.md file is still in the repository.
Use when building agent-based sims with evolution or RL.
Install
npx vskill@latest install jonnysteedman683-wq/vorpal/agent-simulationSKILL.md
The same SKILL.md was published earlier as jonnysteedman683-wq/vorpal/agent-simulation.
Agent-Based Simulation Development
Build simulations where AI agents evolve, learn, and exhibit emergent behavior.
Architecture Pattern
Brain Architecture Patterns
Genetic + Learned (dual inheritance)
Agents inherit brain weights (mutation across generations) AND learn within their lifetime (Q-learning, Hebbian). This creates two timescales of adaptation.
Multiple Brain Types
Give different agents different learning algorithms. Let evolution decide which wins:
- Q-learning with replay buffer (strategic, slow)
- Hebbian local learning (reactive, fast)
- Hybrid blending both systems
Action Count Migration (CRITICAL PITFALL)
When adding new actions to the brain, old saves break because weight matrices have wrong dimensions. In the deserializer:
- Check
q_network.out.out_dim != NEW_N_ACTIONS→ reinitialize output layer - Check
icm.n_actions != NEW_N_ACTIONS→ reinitialize ICM - Check
readout.n_outputs != NEW_N_ACTIONS→ reinitialize readout weights
Never assume saved action count matches current. Always compare and resize.
Simulation.__new__ Pitfall
When loading saves, using __new__() bypasses __init__. Every subsystem must be manually initialized in the load function. Create a checklist of all subsystems and verify each is initialized.
Emergent Civilization Systems
Layer systems from simple to complex:
- Foundation: lineage tracking, resource scarcity, agent memory
- Social: territory, communication signals, cultural memes
- Economic: conflict, trade routes, technology discovery
- Biological: aging, disease, parasites, symbiosis, migration
- Architectural: buildings with effects, upgrades, synergy bonuses
Procedural Terrain
- Multi-octave noise (coarse + medium + fine) for natural-looking landscapes
- Biome assignment: iterate thresholds HIGH-to-LOW (not low-to-high, which overwrites everything)
- Cache terrain as a surface for rendering performance
- Terrain affects agent movement speed
Save/Load System
- JSON for metadata + agent state, numpy arrays serialized as lists
- Save all subsystem state (lineage, culture, technology, etc.)
- Handle version migration gracefully (new fields get defaults)
- CLI:
python main.py --load [save_name]for quick resume
Economy Tuning
- Start generous (low hunger, cheap food) and tighten as agents evolve
- Auto-reseed threshold prevents population death spirals
- Task success rate should be high enough that agents can sustain themselves
- Multiple income sources (tasks, foraging, trading) prevents single-point failure
Pygame Rendering Tips
- Cache static terrain as a Surface, blit once per frame
- Draw structures larger than agents (1.5x) with labels for visibility
- Use color tinting for status (sick=green, parasitized=red, aging=dim)
- Stats bar at bottom with clickable buttons
- Mini-graphs for population/fitness history
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingEVOLVE/SKILLCLAW/default/skills/agent-simulation/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/jonnysteedman683-wq/vorpal/agent-simulation)