paperbanana
Copilot instructions2.4k starsChanged 10 months agoMITView on GitHub
CI runs lint, tests (Python 3.10–3.12 on Linux/macOS/Windows), and package build. Tests must pass without a GOOGLE_API_KEY—all tests mock external providers. PaperBanana is an agentic framework that generates publication-quality academic diagrams from text. It implements a two-phase multi-agent pipeline: Phase 1 — Linear Planning: Retriever → Planner → Stylist Phase 2 — Iterative Refinement: Visualizer ↔ Critic (up to N rounds) Key architectural layers:
- Reads credentials
- Installs packages
Trending
Quiet since June.thin dataabout the whole repository
Who's talking about llmsresearch/paperbanana
- A Hacker News story“Show HN: Implementation of Google's PaperBanana (diagram generation from text)”Hacker News · Feb 4, 2026 · 3 points
- @informapirata.mastodon.uno.ap.brid.gy“Implementazione open source ed estensione di PaperBanana di Google Research per figure accademiche, …”Bluesky · Feb 15, 2026 · 2 likes
- dwzhu-pku/PaperBanana“About the unofficial version of Paperbanana that has appeared on the site”GitHub · Feb 24, 2026 · 1 reactions
- A Hacker News story“Show HN: Open-source PaperBanana – academic diagrams from text via agents”Hacker News · Feb 6, 2026 · 1 points
- JSONbored/awesome-claude“content(mcp): add PaperBanana MCP Server”GitHub · Jun 6, 2026
The biggest 5 of 7 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 7
Talked about on GitHub, Hacker News and Bluesky (7 times).
On GitHub · 4
- Feb 24, 2026About the unofficial version of Paperbanana that has appeared on the site — dwzhu-pku/PaperBanana1 reaction · 1 comment
- Jun 6, 2026content(mcp): add PaperBanana MCP Server — JSONbored/awesome-claude0 reactions · 3 comments
- May 21, 2026implement something like https://github.com/llmsresearch/paperbanana with a skill — lucharo/genimg0 reactions
- Feb 15, 2026[MCP Catalog] New MCP server candidate: io.github.llmsresearch/paperbanana — obot-platform/mcp-catalog0 reactions
On Hacker News · 2
- Feb 4, 2026Show HN: Implementation of Google's PaperBanana (diagram generation from text)3 points · 1 comment
- Feb 6, 2026Show HN: Open-source PaperBanana – academic diagrams from text via agents1 point
On Bluesky · 1
- Feb 15, 2026Implementazione open source ed estensione di PaperBanana di Google Research per figure accademiche, diagrammi e immagini di ricerca… — @informapirata.mastodon.uno.ap.brid.gy2 likes and reposts
In this repository3 other files it gives its agents.
- evaluate-diagramSkill
- generate-diagramSkill
- generate-plotSkill
The file
We split this copilot-instructions.md into the rules it gives an agent
1 rule. About 0 are common, 0 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 52
structlog for logging: Use structlog.get_logger() with keyword arguments, not f-strings in log calls.
≈ “Common” is an estimate: at least 1 in 5 of the 1,644 Copilot instructions files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Copilot Instructions for PaperBanana
Build & Test
# Install for development
pip install -e ".[dev,openai,google]"
# Run full test suite
pytest tests/ -v
# Run a single test file
pytest tests/test_pipeline/test_types.py -v
# Run a single test by name
pytest tests/ -k "test_critique_result_needs_revision" -v
# Lint
ruff check paperbanana/ mcp_server/ tests/ scripts/
# Format
ruff format paperbanana/ mcp_server/ tests/ scripts/CI runs lint, tests (Python 3.10–3.12 on Linux/macOS/Windows), and package build. Tests must pass without a GOOGLE_API_KEY—all tests mock external providers.
Architecture
PaperBanana is an agentic framework that generates publication-quality academic diagrams from text. It implements a two-phase multi-agent pipeline:
Phase 1 — Linear Planning: Retriever → Planner → Stylist
Phase 2 — Iterative Refinement: Visualizer ↔ Critic (up to N rounds)
Key architectural layers:
paperbanana/core/— Pipeline orchestrator (pipeline.py), Pydantic data types (types.py), config viapydantic-settings(config.py).Settingsloads from env vars,.envfile, or YAML config.paperbanana/agents/— Seven agents (Optimizer, Retriever, Planner, Stylist, Visualizer, Critic, plus InputOptimizer with parallel sub-tasks), all inheriting fromBaseAgent. Each agent wraps a VLM provider and a prompt template loaded fromprompts/.paperbanana/providers/— AbstractVLMProviderandImageGenProviderbase classes inbase.py. Concrete implementations invlm/(OpenAI, Gemini, OpenRouter) andimage_gen/(OpenAI, Google Imagen, OpenRouter).ProviderRegistryis the factory that creates providers fromSettings.prompts/— Text prompt templates organized by type (diagram/,plot/,evaluation/). Templates use{placeholder}formatting, loaded byBaseAgent.load_prompt().paperbanana/evaluation/— VLM-as-Judge system. Scores on 4 dimensions (Faithfulness, Readability, Conciseness, Aesthetics) with hierarchical aggregation.mcp_server/— FastMCP server exposing tools includinggenerate_diagram,continue_run,generate_plot,evaluate_diagram, andevaluate_plot.data/reference_sets/— 13 curated methodology diagram examples used for in-context learning by the Retriever agent.
Conventions
- Async everywhere: The pipeline and all agents use
async/await. Tests usepytest-asynciowithasyncio_mode = "auto". - Pydantic models for all data types: Inputs, outputs, configs, and intermediate results are Pydantic
BaseModelsubclasses. Usemodel_dump()for serialization. - Provider pattern: To add a new provider, implement
VLMProviderorImageGenProviderfromproviders/base.py, then register it inProviderRegistry. - Prompt templates live in
prompts/, not in code: Agent prompts are.txtfiles with{placeholder}substitution. Don't inline prompts in Python. - Config hierarchy:
Settingsmerges env vars →.envfile → YAML config → CLI overrides. API keys come from environment only (OPENAI_API_KEY,GOOGLE_API_KEY,OPENROUTER_API_KEY). - Ruff for all linting/formatting: Line length 100, target Python 3.10. Select rules: E, F, I, N, W.
- structlog for logging: Use
structlog.get_logger()with keyword arguments, not f-strings in log calls. - Entry points: CLI via Typer (
paperbanana.cli:app), MCP server via FastMCP (mcp_server.server:main).
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

