paperbanana copilot-instructions.md

paperbanana copilot-instructions.md is an instructions file for GitHub Copilot from llmsresearch/paperbanana. It costs 890 tokens per session, scanned A, original, MIT.

A project instruction file for PaperBanana, an agent-based framework that creates academic diagrams from written descriptions.

In plain words
What is it for?
Use it when installing, testing, linting, formatting, or modifying PaperBanana, including its planning, visualization, and critique pipeline.
Why use it?
It records the project’s installation, testing, linting, formatting, architecture, and external-provider requirements in one place. This helps coding agents work within the repository’s expected process.

Instructions file for GitHub Copilot

About the project

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.

llmsresearch/paperbanana · 2,311 stars · on GitHub

Install

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.

agentmods
npx agentmods add instructions/llmsresearch/paperbanana/copilot-instructions
Clone the repo
git clone --depth 1 https://github.com/llmsresearch/paperbanana

Made for: GitHub Copilot.

Wrote 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.

agentmods badge for paperbanana copilot-instructions.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/llmsresearch/paperbanana/copilot-instructions.svg)](https://agentmods.dev/instructions/llmsresearch/paperbanana/copilot-instructions)
Your own site
<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>
Per session 890 This file is loaded in full into every session.
When invoked 890 The same file — it is already loaded in full.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce 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

Measured 5d ago against content hash d99d7d72b342, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

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.

.github/copilot-instructions.md · 54 lines

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 via pydantic-settings (config.py). Settings loads from env vars, .env file, or YAML config.
  • paperbanana/agents/ — Seven agents (Optimizer, Retriever, Planner, Stylist, Visualizer, Critic, plus InputOptimizer with parallel sub-tasks), all inheriting from BaseAgent. Each agent wraps a VLM provider and a prompt template loaded from prompts/.
  • paperbanana/providers/ — Abstract VLMProvider and ImageGenProvider base classes in base.py. Concrete implementations in vlm/ (OpenAI, Gemini, OpenRouter) and image_gen/ (OpenAI, Google Imagen, OpenRouter). ProviderRegistry is the factory that creates providers from Settings.
  • prompts/ — Text prompt templates organized by type (diagram/, plot/, evaluation/). Templates use {placeholder} formatting, loaded by BaseAgent.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 including generate_diagram, continue_run, generate_plot, evaluate_diagram, and evaluate_plot.
  • data/reference_sets/ — 13 curated methodology diagram examples used for in-context learning by the Retriever agent.

Read the full file on GitHub · 54 lines

Changes

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.

  1. 5d ago First seen · 54 lines · 890 tokens per session scan A d99d7d72b342

Subscribe to this mod's changes

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.