What is AgentForge?
AgentForge is an agent-based simulation framework for Foundry and EVM smart contracts. It fills the gap between isolated unit tests and production by simulating how a protocol behaves when many autonomous agents — traders, arbitrageurs, liquidators, LLM-driven strategists — act simultaneously with competing strategies over time.Package:
@elata-biosciences/agentforge on npm| Layer | What it tests | Example |
|---|---|---|
| Unit tests | Individual functions | test_transfer() |
| Fuzz tests | Random inputs | testFuzz_transfer(uint256 amount) |
| AgentForge | Multi-actor emergent behavior | Traders, arbitrageurs, liquidators competing |
| Mainnet | Real users | Production |
Key Features
- Deterministic simulation — same seed + same scenario = identical results
- Multi-action agents — agents can execute up to 3 actions per tick (e.g., trade + gossip)
- LLM-driven agents — persona-based agents with structured prompt assembly and OODA loop
- Gossip bus — bounded inter-agent communication with channels, budgets, and trust primitives
- Exploration/Replay workflow — discover behaviors with LLM agents, then replay deterministically
- Studio dashboard — Bloomberg Terminal-inspired UI with charts, timeline, gossip analysis, and ML toolkit
- Protocol adapters (Packs) — plug into any EVM protocol via the
Packinterface - CI-ready — exit codes, stable artifact naming, and GitHub Actions integration
Quick Start
Writing Your First Agent
Define an agent that observes state and decides actions each tick:Run Artifacts
Every run produces durable artifacts:Demo Integrations
- Uniswap v4 Fork Demo — deterministic + LLM agents simulating v4 pool mechanisms
- Elata Protocol — app launchpad with bonding curves