Catalog PyPI
PACKAGE EXPLORERView in registry

agentlantern

PyPI

Devtool to document and inspect LLM agent systems.

agentsaicrewaidevtoolsdocumentationllm
Versions collected1
Direct dependencies2From release 0.1.22
Last observed20 Oct, 22:32 UTC

README

Version 0.1.22 documentation

AgentLantern

Python TypeScript HTML CSS VitePress License: MIT Version

GitHub: https://github.com/brellsanwouo/agentlantern

AgentLantern is a CLI devtool that automatically documents multi-agent LLM systems and lets you watch them run live.

Point it at an agent project — it detects the framework, parses the architecture, and generates a browsable documentation site. For supported frameworks it also opens a live animated playground while the crew executes.

AgentLantern Play UI showing five AI agents, thought bubbles, and a central Tool Hub

Install

With pip:

pip install agentlantern

With uv (recommended — installs the lantern command globally):

uv tool install agentlantern

From source:

git clone https://github.com/brellsanwouo/agentlantern
cd agentlantern
uv tool install -e .
# or: pip install -e .

Requires Python 3.11+.

Quick Start

# Generate and browse documentation for your agent project
lantern web path/to/your-project

# Watch a CrewAI run live in the animated playground
lantern play path/to/your-project

# Generate docs only (written to <project>/docs/)
lantern docs path/to/your-project

# Lint the agent project for design issues
lantern lint path/to/your-project

Commands

CommandDescription
lantern docs [project] [-o DIR]Generate Markdown documentation
lantern web [project] [--port PORT]Generate and serve project docs over local HTTP on 0.0.0.0:9000 by default
lantern lint [project] [--strict] [--json]Static analysis — no LLM, no network
lantern inspect [project]Output project model as JSON
lantern play [project] [--name NAME]Live animated playground; if --name is omitted, the UI asks for a run name
lantern replay NAME [--speed N]Replay a saved run; use last for the newest saved replay

Supported Frameworks

FrameworkStatus
CrewAIFull analysis and live playground
LangGraphDetected — analysis coming soon
AutoGenDetected — analysis coming soon
SmolagentsDetected — analysis coming soon
Google ADKDetected — analysis coming soon

Detection is automatic — no configuration needed.

What Gets Generated

lantern docs writes these files into <project>/docs/:

FileContent
overview.mdProject snapshot, entrypoints, high-level flow
architecture.mdSystem map, key files, dependencies, env vars
agents.mdAgent roles, goals, tools, backstories
tasks.mdTask descriptions, agents, expected outputs
diagrams.mdMermaid diagrams: agent-task graph, execution flow, sequence
runbook.mdInstall, configure, run, static checks, troubleshooting
contact.mdProject contacts from pyproject.toml
index.htmlDocsify site (publishable to GitHub Pages)
agentlantern-docs.htmlSelf-contained shareable HTML bundle

Play UI

lantern play opens a pixel-art playground that visualizes a supported agent run:

  • START / STOP / RESTART controls
  • Run name field in the UI when --name is not provided
  • Up to 10 agents, each in their own named zone on the map
  • A central Tool Hub agents visually consult when tools are used
  • Timeline, Thoughts, Tools, Comms, and Log panels
  • Clickable agents with full per-agent history
  • Final report display on completion
  • Replay — save a run with --name my-run, replay it with lantern replay my-run, or open the newest saved run with lantern replay last

Linter

lantern lint analyzes your project statically:

AgentLantern Lint — my-crew (CrewAI)

  ✗  [E002]  crew.py:18   Task `analyze` references agent `researcher` which is not declared in agents.yaml.
  △  [W006]  agents.yaml:4   Agent `writer` is missing required field `backstory`.
  ·  [I001]  No tool detected — may be intentional for a pure LLM workflow.

  Summary: 1 error, 1 warning, 1 info

Rules: E001–E002 (errors), W001–W008 (warnings), I001–I004 (info).

Contributing

src/agentlantern/
├── core/            # BaseProject, BaseAnalyzer, BaseRenderer
├── frameworks/
│   ├── registry.py  # auto-detection
│   ├── crewai/      # full analyzer + renderer
│   ├── langgraph/   # stub
│   ├── autogen/     # stub
│   ├── smolagents/  # stub
│   └── google_adk/  # stub
├── docs.py          # doc orchestrator
├── play.py          # live playground server
└── cli.py

To add a new framework: create src/agentlantern/frameworks/<name>/analyzer.py implementing detect, analyze, get_renderer, then register it in registry.py.

License

MIT — see LICENSE

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Versions 1

Collected releases
VersionPublishedDirect dependenciesOpen version
0.1.2220 May 20262

Package advisories

0
No matching advisories collected

This describes our collected data; it is not a security assessment.

Repository

PENDING
brellsanwouo/agentlantern

Shared repository data · GitHub

License detected in repository
Not collected

Metadata history

Meaningful changes
Current collected state Current

Observed since 20 Oct, 22:32 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package:0616d36ad3861220e4247ccd648fb2dbe67605f3864770dcc4d2a9249ba15e2f