Built on Zero Agent · Live Demo

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.

pan
$.\pan.ps1 doctor
PASS Pan config: .pan-agents/config.json loaded
PASS Node.js runtime: v24.15.0
PASS 0G private key: configured
PASS ENS private key: configured
PASS Gensyn AXL: reachable on port 9002
$

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.

pan-repl
$
/status
Agent: auto-agent | ENS: amir.eth | Model: openrouter
$
Return the number 2 as JSON
◌ understanding request...
→ Strategy: reuse-tool (confidence: 0.92)
→ Tool: json-number.tool v1.2.0
{"result":2}
$
$
AXL Mesh Topology
3 peers online
auto-agent:9002
amir.eth
5 tools
research-agent:9003
research.eth
3 tools
execute-agent:9004
exec.eth
7 tools
Auto-discover Tool share P2P message

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.ts

Decision Engine

Dual Backend
OpenRouter

Any model via API. Structured JSON mode. 12s timeout.

tencent/hy3-preview:free
0G Compute

Decentralized inference. No API key needed. On-chain verified.

ZERO_G_PRIVATE_KEY
Fallback ChainAlways works

If LLM fails: deterministic rule-based fallback classifies intent (chat, task, question) and returns safe decisions. Zero downtime.

amir.eth
ENS Identity · Sepolia Testnet
Published

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.

Text RecordsSepolia
description & capabilities
zeroagent.toolRegistry (0G root hash)
zeroagent.axlPeerId (P2P identity)
url (project link)
Ethereum Sepolia0GStorage + ComputeAXLGensyn P2P

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.

Module Stack
13 modules
SelfEvolvingAgentcore
ExperienceMemorycore
StrategyAdaptercore
EvolutionEnginecore
ToolImprovercore
ToolRegistrycore
ReflectionEnginecore
ENSIdentityManagercore
AXL Clientpan
REPL Shellpan
Decision Enginepan
CLI Commandspan
Tool Sandboxpan

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.

Auto-Discovery
pan-repl
> $ .\pan.ps1
[axl] listening on 127.0.0.1:9002 as amir.eth
[axl] peers: research.eth (9003)

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.

pan agents
$ .\pan.ps1
╭─────────────────────────────────────╮
│ ★ Pan Agents ★ │
│ v0.1.0 · amir.eth · port 9002 │
╰─────────────────────────────────────╯
Model: openrouter (tencent/hy3-preview:free)
AXL: connected (1 peer online)
> >
1 / 8auto-playing: on

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.

Built with:@zero-agents/corecommanderchalkviemzodoradotenvisolated-vm

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.

Open Source (MIT)Built for ETHGlobal Open Agents 2026TypeScript · Node.js 22+