Claude Code-style CLI for autonomous multi-agent workflows.
Pan Agents is a full CLI application built on Zero Agent — with interactive REPL, multi-agent P2P networking via Gensyn AXL, tool sharing, ENS identity, and decentralized LLM inference through 0G Compute.
Everything you need for
autonomous agents in a CLI.
Interactive REPL Shell
Claude Code-style interactive terminal with slash commands, tab completion, multi-line input support (backslash continuation), and real-time decision engine integration. Type natural language — Pan figures out what to do.
Multi-Agent P2P Networking
Run multiple agent instances that auto-discover each other on ports 9002–9010 via Gensyn AXL. Share tools between agents with /share, import peer tools with /import, send messages, and inspect the live mesh topology.
Dual LLM Backends
Choose between OpenRouter (any model) or 0G Compute (decentralized inference). Decision engine routes tasks through LLM with structured JSON output, fallback logic, and 12s timeout guard. Temperature locked at 0 for deterministic decisions.
Decision Engine
Dual BackendAny model via API. Structured JSON mode. 12s timeout.
Decentralized inference. No API key needed. On-chain verified.
If LLM fails: deterministic rule-based fallback classifies intent (chat, task, question) and returns safe decisions. Zero downtime.
On-Chain Agent Profile
5 ENS text records store agent identity on-chain. Auto-detected from wallet. Other agents can look up capabilities and tool registry before connecting.
ENS Identity on Sepolia
Every agent gets an on-chain ENS identity with auto-detection from wallet. Publish description, capabilities, tool registry pointer, AXL peer ID, and project URL as text records. Reverse-lookup resolves .eth names automatically.
Secure Tool Sandbox
All generated and imported tools run in isolated-vm with 16MB memory limit, dangerous globals nullified, fetch bridge serialization, hostname allowlist, and 14 import-safety regex patterns. Peer-shared tools go through the same safety checks.
Built on Zero Agent Core
Pan uses @zero-agents/core for SelfEvolvingAgent, ExperienceMemory, StrategyAdapter, EvolutionEngine, ToolImprover, ToolRegistry, ReflectionEngine, and ENSIdentityManager. All 13 modules working together under a CLI interface.
Multi-Agent Networking
Run multiple Pan agent instances. They discover each other, share tools, and communicate — all via Gensyn AXL P2P protocol.
Each agent scans ports 9002–9010 for peers. No manual configuration — agents find each other automatically within seconds of startup.
Interactive CLI Demo
Watch Pan Agents in action — REPL shell, tool management, P2P networking, and task execution.
Architecture Stack
8 Zero Agent core modules + 5 Pan-specific layers = a complete autonomous agent CLI.
Zero Agent Core
@zero-agents/core — 8 modules
SelfEvolvingAgent
Main agent orchestrator. Receives tasks, coordinates strategy, delegates to modules.
ExperienceMemory
DJB2-hash indexed records. Task, strategy, tool, score (0-100), reflection data.
StrategyAdapter
5 strategies via term-extraction similarity. Confidence 0.6-0.9. Auto-selects best approach.
EvolutionEngine
LLM tool generation. 0G Compute or OpenAI. Sandbox eval at 70% threshold. 3 retries max.
ToolImprover
Semver patch on failure. Sends code + error to LLM. Quality-gated persistence.
ToolRegistry
Local JSON or 0G Storage. Search by name/description. Version tracking.
ReflectionEngine
Deterministic post-task analysis. No API calls. Score 0-100 with structured output.
ENSIdentityManager
5 text records on Sepolia. Auto-detect wallet ENS. On-chain agent profile.
Pan Agents Layer
CLI application — 5 modules
REPL Shell
Interactive terminal with slash commands, tab completion, multi-line input, rich menu UI.
AXL Client
Peer discovery (ports 9002-9010). Tool share/import. P2P messaging. Mesh topology.
Decision Engine
OpenRouter + 0G Compute dual backend. Structured JSON decisions. Fallback logic.
Tool Sandbox
isolated-vm execution. 16MB limit. 14 import-safety patterns. Peer tool safety checks.
CLI Commands
agent, tools, identity, network, model, eval, ask, doctor, init — full CLI toolkit.
A real CLI for autonomous agents.
Built on a framework that never forgets.
Pan Agents combines Zero Agent's self-evolving architecture with an interactive shell, multi-agent P2P networking, and decentralized compute — all in your terminal.