How llmsresearch/paperbanana works
PaperBanana turns research-method text, captions, or plot data into publication-style illustrations through generation and refinement, with CLI, Studio, and MCP entry points. The diagram shows the documented diagram/plot, batch, continuation, and evaluation capabilities, plus retrieval, provider, and reference-data layers. Source excerpts confirm several pipeline-to-agent calls; other links are limited to README statements or source-index references, so unsampled implementation details are not expanded into speculative flows.
Main entry points: workflow_runner.py Workflow runner · pipeline.py Generation pipeline · server.py MCP server · registry.py Provider registry
Components 23
User interfaces
- CLI
paperbanana/cli.py - Studio UI
paperbanana/studio/app.py - MCP server
mcp_server/server.py
Generation workflows
- Workflow runner
paperbanana/core/workflow_runner.py - Orchestrator
paperbanana/core/orchestrate.py - Generation pipeline
paperbanana/core/pipeline.py - Batch generation
paperbanana/core/batch.py - Plot data
paperbanana/core/plot_data.py - Source loading
paperbanana/core/source_loader.py - Venue styles
paperbanana/guidelines/venues.py
Illustration agents
- Caption agent
paperbanana/agents/caption.py - Critic agent
paperbanana/agents/critic.py - Diagram structurer
paperbanana/agents/structurer.py - Image visualizer
paperbanana/agents/visualizer.py
Providers and references
- Provider registry
paperbanana/providers/registry.py - VLM services
- Image generation
- Exemplar retrieval
paperbanana/reference/exemplar_retrieval.py - Reference store
paperbanana/reference/store.py
Evaluation and data
- Dataset cache
paperbanana/data/manager.py - VLM evaluation
paperbanana/evaluation/judge.py - Run analytics
paperbanana/analytics/loader.py
Other components
- Researcher
Connections 25
- Researcher → CLI: starts
README.md - Researcher → Studio UI: starts
README.md - Researcher → MCP server: requests tools
mcp_server/server.py - CLI → Workflow runner: runs workflows
paperbanana/cli.py - Studio UI → Workflow runner: runs workflows
- MCP server → Generation pipeline: generates
mcp_server/server.py - MCP server → VLM evaluation: evaluates
mcp_server/server.py - Workflow runner → Orchestrator: dispatches
paperbanana/core/workflow_runner.py - Workflow runner → Batch generation: runs batches
paperbanana/core/workflow_runner.py - Workflow runner → Plot data: loads plot data
paperbanana/core/workflow_runner.py - Workflow runner → Source loading: loads inputs
paperbanana/core/workflow_runner.py - Workflow runner → Venue styles: applies styles
paperbanana/core/workflow_runner.py - Orchestrator → Generation pipeline: invokes
paperbanana/core/orchestrate.py - Generation pipeline → Caption agent: generates captions
paperbanana/core/pipeline.py - Generation pipeline → Critic agent: requests critique
paperbanana/core/pipeline.py - Generation pipeline → Diagram structurer: builds structure
paperbanana/core/pipeline.py - Generation pipeline → Image visualizer: renders images
paperbanana/core/pipeline.py - Generation pipeline → Exemplar retrieval: retrieves examples
paperbanana/core/pipeline.py - Provider registry → VLM services: creates clients
paperbanana/providers/registry.py - Provider registry → Image generation: creates clients
paperbanana/providers/registry.py - Exemplar retrieval → Reference store: queries
paperbanana/reference/exemplar_retrieval.py - Reference store → Dataset cache: uses cache
paperbanana/reference/store.py - VLM evaluation → VLM services: scores images
paperbanana/evaluation/judge.py - Dataset cache → Researcher: supplies references
- Researcher → Run analytics: browses runs