Skip to content

lantern play

lantern play is AgentLantern's live runtime viewer. It runs a supported agent project and opens a pixel-art UI where you can watch agents work, think, delegate, call tools, and produce a final report.

Use this section when you want to:

  • launch a supported agent project from the UI,
  • understand the Play interface,
  • verify how agents are placed in the world,
  • inspect tool calls through the Tool Hub,
  • save and replay a run,
  • debug why a run or UI does not update.

lantern play executes the target project. The project can call LLM providers, APIs, files, tools, and network services configured by that project.

Pages

PageUse it for
Quick StartLaunch your first run and understand the ports
InterfaceLearn the roster, city, activity panels, bubbles, and report view
Agent LayoutsUnderstand how 1-10+ agents are positioned
Tool HubUnderstand how tools are visualized
ReplaySave and replay runs
Command ReferenceSee CLI options and runtime capture details
TroubleshootingFix START, stale UI, ports, blocked runs, and stopping

Mental Model

lantern play has three moving parts:

PartRole
Play serverServes the UI and WebSocket event stream
Child processRuns the target project from its own root
Browser UIDisplays agents, timeline, logs, tools, thoughts, and report output

The UI does not auto-start by default. You start the run deliberately from the browser with START.

Replay From The Same UI

lantern replay uses the same Play environment, but it replays a saved event stream instead of running the agent project again.

bash
# First run and save a replay
lantern play /path/to/project --name demo-run

# Later, replay the saved run
lantern replay demo-run

# Or replay the newest saved run
lantern replay last

From inside the project root, this is enough:

bash
lantern play
lantern replay demo-run
lantern replay last

When lantern play starts without --name, the UI asks for a run name before START and saves the replay with that name. lantern replay then opens the same pixel-art world with replay controls: pause, seek, speed, restart, and stop.

Use replay when you want to demo or debug a run without spending tokens or calling external tools again.

Current Runtime Support

FrameworkStatus
CrewAILive runtime instrumentation
Google ADKRunner events and function calls
LangGraphGraph invocation lifecycle
AutoGenTeam stream, messages, tools and usage
SmolagentsAgent task lifecycle
OpenAI Agents SDKNative tracing processor for agents, tools, handoffs and usage
Additional Python ecosystemsAgent invocation lifecycle, stdout and static roster
Mastra / Vercel AI SDK / other JS/TSnpm execution, process lifecycle, stdout and static roster
Semantic Kernel .NET/Javadotnet, Maven or Gradle execution, stdout and static roster
Other frameworksProcess lifecycle, stdout and static agent roster

Runtime capture is best effort and depends on the framework version and execution API. Use --command when the project has a custom launcher.

Released under the MIT License.