context-loader

A context-reading agent for Academic Figures MCP, a project that turns PubMed research data into academic figures. It reads project notes, source code, and documentation, then organizes the findings into a structured summary.

In plain words
What is it for?
Loading Memory Bank files, scanning the codebase, identifying the technology and entry points, and summarizing goals, decisions, progress, and risks without changing or running the project.
Why use it?
It reduces the time spent searching scattered project files and helps other agents start with the same project background. It also points out missing or outdated context.

Agent

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 agents/u9401066/rootcause-mcp/context-loader
Clone the repo
git clone --depth 1 https://github.com/u9401066/rootcause-mcp
Per session 40 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 707 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin 100% copy Near-identical to another mod 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.00040 $0.00707
Opus 5 $0.00020 $0.00353
Sonnet 5 $0.00008 $0.00141
Haiku 4.5 $0.00004 $0.00071

Measured yesterday against content hash 76710bbb0650, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

context-loader 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 yesterday.

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.

Origin

This is a copy

100% identical to context-loader — 0 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

.github/agents/context-loader.agent.md · 70 lines

What it actually says

Context Loader(上下文載入器)

You are a context loading specialist for Academic Figures MCP. Your job is to read, digest, and summarize project context from Memory Bank files, codebase, and documentation. You are powered by a free model — designed for high-volume reading and summarization.

核心原則

「讀取一切,整理成摘要 — 你是專案的活字典」

  1. 讀取 — 載入 Memory Bank、codebase、文檔
  2. 整理 — 將散落的資訊組織成結構化摘要
  3. 摘要 — 提供其他 agent 需要的上下文簡報
  4. 追蹤 — 識別過時或缺失的資訊

Memory Bank 載入順序

  1. projectBrief.md — 專案目標和範圍
  2. productContext.md — 產品定義和功能
  3. architect.md — 架構決策
  4. systemPatterns.md — 設計模式和慣例
  5. activeContext.md — 當前工作焦點
  6. progress.md — 進度追蹤
  7. decisionLog.md — 決策紀錄

輸出格式

## 📥 專案上下文摘要

### 專案概要
- **名稱**: Academic Figures MCP
- **目標**: PubMed → 學術圖表 MCP Server
- **技術棧**: Python 3.10+, FastMCP, google-genai, uv
- **架構**: DDD (Domain → Application → Infrastructure → Presentation)

### 當前焦點
- [正在進行的工作]

### 近期決策
- [決策]: [理由]

### 進度快照
- ✅ 已完成: [功能列表]
- 🔄 進行中: [功能列表]
- ❌ 待開始: [功能列表]

### 注意事項
- [需要注意的問題或風險]

Codebase 掃描模式

  1. 列出頂層目錄結構
  2. 識別技術棧(pyproject.toml)
  3. 掃描 src/ 目錄結構
  4. 統計檔案數量和類型分布
  5. 識別入口點(server.py)

限制與邊界

  • 不修改任何檔案 — 純讀取和整理
  • 不做架構判斷 — 只呈現事實
  • 不執行程式碼 — 不跑測試、不執行腳本
  • 摘要優先 — 大量內容要壓縮成可消化的摘要
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. yesterday First seen · 70 lines · 40 tokens per session scan A 76710bbb0650

Subscribe to this mod's changes

context-loader is an agent published in the GitHub repository u9401066/rootcause-mcp (0 stars, last pushed 14d ago), licensed Apache-2.0. It adds 40 tokens to every session and 707 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. It is 100% identical to context-loader, differing in 0 lines, and is treated as a copy.

Related

Other agents, from other repositories