PaperBanana is an open-source tool that generates academic diagrams, statistical plots, and other research illustrations from text descriptions. Researchers can use it through a command-line interface, Python API, local web interface, or MCP server, while the catalogue add-ons support agent-driven use.
Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx agentmods add instructions/llmsresearch/paperbanana/copilot-instructionsgit clone --depth 1 https://github.com/llmsresearch/paperbananaWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/instructions/llmsresearch/paperbanana/copilot-instructions)<a href="https://agentmods.dev/instructions/llmsresearch/paperbanana/copilot-instructions"><img src="https://agentmods.dev/badge/instructions/llmsresearch/paperbanana/copilot-instructions.svg" alt="Measured on agentmods" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.00890 | $0.00890 |
| Opus 5 | $0.00445 | $0.00445 |
| Sonnet 5 | $0.00178 | $0.00178 |
| Haiku 4.5 | $0.00089 | $0.00089 |
Grade A, and why
paperbanana copilot-instructions.md scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 5d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 54 lines — stays where its author put it; the contents beside it link to each section on GitHub.
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.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 5d ago First seen · 54 lines · 890 tokens per session scan A d99d7d72b342
paperbanana copilot-instructions.md is an instructions file published in the GitHub repository llmsresearch/paperbanana (2,311 stars, last pushed 18d ago), licensed MIT. It adds 890 tokens to every session, about $0.0044 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
Other instructions, from other repositories
gemini-web-wrapper AGENTS.md
AGENTS.md instructions for Ven0m0/gemini-web-wrapper, covering agents.md — gemini web wrapper, instruction precedence, repository map, source of truth and working rules.
gemini-web-wrapper CLAUDE.md
Claude Code instructions for Ven0m0/gemini-web-wrapper, a project described as: A Bun + FastAPI monorepo for running a mobile-friendly AI workspace in the browser, backed by a configurable LLM gateway and repository indexing APIs.
langchain AGENTS.md
AGENTS.md instructions for langchain-ai/langchain, covering global development guidelines for the langchain monorepo, corridor security analysis, project architecture and context, monorepo structure and development tools & commands.
ollama AGENTS.md
AGENTS.md instructions for ollama/ollama, covering agents.md and building.
AionUi AGENTS.md
AGENTS.md instructions for iOfficeAI/AionUi, covering aionui - project guide, code conventions, file & directory structure, naming and ui library & icons.
ollama CLAUDE.md
Claude Code instructions for ollama/ollama: See AGENTS.md for the shared agent instructions for this repository.