agentleFS
llmsresearchllmsresearch/paperbanana/.github/copilot-instructions.md

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

Dec 2025: 0 mentionsJan 2026: 0 mentionsFeb 2026: 5 mentionsMar 2026: 0 mentionsApr 2026: 0 mentionsMay 2026: 1 mentionJun 2026: 1 mentionJul 2026: 0 mentionsAug 2026: 0 mentionsSep 2026: 0 mentionsOct 2026: 0 mentionsNov 2026: 0 mentions
Dec 2025Jun 2026Nov 2026
Mentions a month of the llmsresearch/paperbanana repository that our weekly crawl found: only 7 in all, so this is a hint, not a trend. There is no adoption data for this file yet.

Who's talking about llmsresearch/paperbanana

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

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
  1. Very specific:

    structlog for logging: Use structlog.get_logger() with keyword arguments, not f-strings in log calls.

    line 52

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
copilot-instructions.md

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.

Conventions

  • Async everywhere: The pipeline and all agents use async/await. Tests use pytest-asyncio with asyncio_mode = "auto".
  • Pydantic models for all data types: Inputs, outputs, configs, and intermediate results are Pydantic BaseModel subclasses. Use model_dump() for serialization.
  • Provider pattern: To add a new provider, implement VLMProvider or ImageGenProvider from providers/base.py, then register it in ProviderRegistry.
  • Prompt templates live in prompts/, not in code: Agent prompts are .txt files with {placeholder} substitution. Don't inline prompts in Python.
  • Config hierarchy: Settings merges env vars → .env file → 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).

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.