context-loader

context-loader is an agent for coding agents from nicholasglazer/gnosis-mcp. It costs 30 tokens per session (434 once invoked), scanned A, original, MIT.

A lightweight agent that loads the project documents most relevant to a new task before coding begins. It uses document usage and search results to find architectural context.

In plain words
What is it for?
Use it to get a quick context summary, search for related documents, and read the most relevant documentation.
Why use it?
It reduces the need to manually search through project documentation before making changes.

Agent

Part of the gnosis plugin — 8 skills, 5 agents, 1 hook, 1 MCP server shipped together

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/nicholasglazer/gnosis-mcp/context-loader
Clone the repo
git clone --depth 1 https://github.com/nicholasglazer/gnosis-mcp

Or install gnosis, the plugin that ships this one along with the rest of its 8 skills, 5 agents, 1 hook, 1 MCP server.

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

README.md
[![agentmods](https://agentmods.dev/badge/agents/nicholasglazer/gnosis-mcp/context-loader.svg)](https://agentmods.dev/agents/nicholasglazer/gnosis-mcp/context-loader)
Your own site
<a href="https://agentmods.dev/agents/nicholasglazer/gnosis-mcp/context-loader"><img src="https://agentmods.dev/badge/agents/nicholasglazer/gnosis-mcp/context-loader.svg" alt="Measured on agentmods" height="20"></a>
Per session 30 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 434 The whole file, excluding the scripts and references it only reads on demand.
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.00030 $0.00434
Opus 5 $0.00015 $0.00217
Sonnet 5 $0.00006 $0.00087
Haiku 4.5 $0.00003 $0.00043

Measured 4d ago against content hash 3410de9f477b, 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 4d 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.

agents/context-loader.md · 53 lines

What it actually says

Context Loader

You are a fast, lightweight agent that primes the conversation with relevant documentation. Start with get_context for a usage-weighted summary, then drill into specific docs if needed.

Process

  1. Start with get_context — this gives you the most important docs based on actual usage:

    • With a topic: get_context(topic="the topic") — search results enriched with access counts
    • Without a topic: get_context() — top docs by access frequency + repository stats
  2. Drill deeper if needed — if get_context results aren't sufficient:

    • search_docs with 1-2 keyword variations
    • get_doc to read the most relevant full document
  3. Return a structured summary:

## Context: {topic}

**Key docs found:**
- {path1}: {one-line summary} (accessed {N} times)
- {path2}: {one-line summary} (accessed {N} times)

**Key facts:**
- {fact 1 from the docs}
- {fact 2 from the docs}
- {fact 3 from the docs}

**Relevant code paths:**
- {file/directory mentioned in docs}

**Stats:** {total_docs} docs, {total_chunks} chunks

Rules

  • Be fast — use haiku model, minimal tool calls
  • Always start with get_context — it's the most efficient single call
  • Max 1 get_context + 1 search + 1 full doc read
  • Keep summary under 300 words
  • If no relevant docs found, say so clearly — don't fabricate
  • This is a read-only agent — never modify anything
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. 4d ago First seen · 53 lines · 30 tokens per session scan A 3410de9f477b

Subscribe to this mod's changes

context-loader is an agent published in the GitHub repository nicholasglazer/gnosis-mcp (29 stars, last pushed 14d ago), licensed MIT. It adds 30 tokens to every session and 434 once invoked, about $0.0002 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.

Related

Other agents, from other repositories

abap-analyzer

Self-sufficient analyzer of ABAP sources for the L1 step of the abapwiki knowledge base. Operates raw-only: reads the files in raw/system-library/ without MCP. Receives sapname, saptype, devclass, rawsourcepath and an artifactpath; WRITES to file a structured YAML report with narrativesections, classified dependencies…

Gixsy95/abap_wiki · 114 tokens

abap-deepcheck

Independent adversarial judge that verifies the L1 analysis of an ABAP object. For each claim it checks whether the cited EVIDENCE lines really prove the SENTENCE; for each dependency it applies 4 checks (line exists, active statement, type, namespace). Runs in a separate session from the author, with a different…

Gixsy95/abap_wiki · 100 tokens

abap-functional-researcher

L2 functional researcher of the abapwiki knowledge base. For a slice (business process) it reads the members' L1 pages and the dependency graph, identifies the functional GAPS (why it exists, who launches it, semantics of the Z fields and of the magic numbers, standard integration, data lifecycle), classifies them and…

Gixsy95/abap_wiki · 147 tokens

abap-functional-author

L2 functional author of the abapwiki knowledge base (Phase 4). For a richtarget object of a slice it SYNTHESIZES the functional analysis sections (business purpose, trigger/actors, business rules, standard integration, data lifecycle) starting ONLY from already verified knowledge: the experts' answers, the…

Gixsy95/abap_wiki · 136 tokens

abap-functional-gate

L2 fidelity gate of the abapwiki knowledge base (Phase 4): independent adversarial judge that verifies the functional synthesis of an object (functional.yaml) or the process doc (process.yaml). For each FUN/PRC claim it checks that the cited evidence really PROVES it and that it does NOT contradict the L1 code…

Gixsy95/abap_wiki · 125 tokens

file-analyzer

Reads a batch of source files and produces FileSummary objects (summary, exports, relationships, tags) for vault-anything's raw layer.

burakolgun/vault-anything · 31 tokens