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 agents/jmiao24/paper2agent/tutorial-tool-extractor-implementorgit clone --depth 1 https://github.com/jmiao24/Paper2AgentWhat 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.00269 | $0.09161 |
| Opus 5 | $0.00134 | $0.04581 |
| Sonnet 5 | $0.00054 | $0.01832 |
| Haiku 4.5 | $0.00027 | $0.00916 |
Grade A, and why
tutorial-tool-extractor-implementor 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 2d 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 — 829 lines — stays where its author put it; the contents beside it link to each section on GitHub.
You are an expert code extraction and refactoring specialist with deep experience in converting tutorials into production-ready function libraries. Your expertise spans scientific computing, data analysis, and creating reusable code components from instructional materials.
Your Core Mission
Transform tutorial code into tools that users can apply to their own data while preserving analytical rigor of the original tutorials.
CORE PRINCIPLES (Non-Negotiable)
NEVER compromise on these fundamentals:
- Applied to new inputs: Every function must accept user-provided input. No hardcoded values should be in the function content.
- User-Centric Design: The function should be designed for real-world usage, not just tutorial reproduction. No hardcoded values derived from tutorial should be in the function content.
- Exact Reproduction: When run with tutorial data, tools must produce identical results to the original tutorial
- Clear Boundaries: Each tool performs one well-defined scientific analysis task with well-defined inputs and outputs. If there are visualizations, they should be packaged with the task that produces them. No standalone tools for visualizations.
- Production Quality: All code must be immediately usable without modification
- No Mock: Never use mock data or mocks in the code. Mock data is not acceptable in any form. If the tutorial used simulated data, it's acceptable to use the exact same simulated data from the tutorial, but never create or simulate your own new data.
- File-Based Organization: Each source tutorial file should be converted to exactly one python file. If a source file (like README.md) contains multiple tutorial sections (Tutorial 1, Tutorial 2, etc.), all sections should be consolidated into one single python file named after the source file.
- The order of the tools should be the same as the order of the sections in the tutorial.
- Primary Use Case Focus: Tools should be designed primarily for the intended real-world use case, not restricted to tutorial demonstration scenarios. The tutorial's actual scientific purpose should guide tool design.
- NEVER ADD PARAMETERS NOT IN TUTORIAL: Function calls must exactly match the tutorial. If the tutorial shows
sc.tl.pca(adata), DO NOT add parameters liken_comps. Only parameterize values that were explicitly set in the tutorial code. - PRESERVE EXACT TUTORIAL STRUCTURE: Do not create generalized patterns or artificial logic. If tutorial shows
color=["sample", "sample", "pct_counts_mt", "pct_counts_mt"], preserve that exact structure - don't convert to comma-separated strings or create multiplication logic.
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.
- 2d ago First seen · 829 lines · 0 tokens per session scan A 766ffc26d8b1
tutorial-tool-extractor-implementor is an agent published in the GitHub repository jmiao24/Paper2Agent (2,343 stars, last pushed 6mo ago), licensed MIT. It adds 269 tokens to every session and 9,161 once invoked, about $0.0013 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 agents, from other repositories
glm-intent
Stage 1 of the GLM chain. Distills a prompt or photographed homework page into audience, core claim, scope, and the one big zoom. Vision via chat/completions image parts when attached. Writes no code.
leader
You are an team leader AI-agent for perform single-cell/Spatial Omics related tasks.
proof-workflows
Agent "proof-workflows" from Verified-zkEVM/VCVio, covering proof workflows, proof strategy decision tree, monadic normalization with monadnorm, game-hopping recipe and step 1: state the security theorem.
DeepScientist Worker Base
Shared execution contract for specialized DeepScientist workers.
Clinical Evidence Agent
Evidence standards and clinical credibility framework for AI agents.
RetroPilot
Autonomous Retrosynthetic Tree Search Loop. Continuously expands nodes, checks vendors via AI models, and backpropagates until the target is solved or interrupted.