Skip to main content

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.

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 Pack interface
  • CI-ready — exit codes, stable artifact naming, and GitHub Actions integration

Quick Start

Requirements: Node.js 18+ and optionally Foundry with Anvil for EVM simulations.

Writing Your First Agent

Define an agent that observes state and decides actions each tick:
Define a scenario that wires agents together:
Run it:

Run Artifacts

Every run produces durable artifacts:

Demo Integrations