context-loader

context-loader is an agent for Claude Code from nicholasglazer/gnosis-mcp. It costs 30 tokens per session (577 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 for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: model in frontmatter.

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

Good fit Use it to get a quick context summary, search for related documents, and read the most relevant documentation.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/nicholasglazer/gnosis-mcp/context-loader
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.

Clone the repo
git clone --depth 1 https://github.com/nicholasglazer/gnosis-mcp

Made for: Claude Code.

Or install gnosis, the plugin that ships this one along with the rest of its 8 skills, 7 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/github.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/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for context-loader

Your own site · 80×15
<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="Reviewed on agentmods" width="80" 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 577 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.00030 $0.00577
Opus 5.5 $0.00012 $0.00231
Sonnet 5.5 $0.00006 $0.00115
Haiku 4.5 $0.00003 $0.00058

Measured 1mo ago against content hash bf930ab3c790, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 1mo 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 · 62 lines

How it starts

The opening of the file, as written. The whole thing — 62 lines — stays where its author put it; the contents beside it link to each section on GitHub.

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
  • Read-only by construction — your tool list holds three read tools and no write, edit, or shell tool. Never claim to have changed anything.

Done, and what to return when it isn't

Done when the summary above is returned and every "key fact" line traces to a doc path that get_context or get_doc actually returned.

If the corpus comes back empty, try one or two search_docs variants before concluding. If those are empty too, return the skeleton with **Key docs found:** none, the exact queries you tried, and the likely causes: corpus never ingested (/gnosis:status), server pointed at the wrong GNOSIS_MCP_DATABASE_URL, or a genuinely uncovered topic. Never invent docs or facts to fill the template.

Read the full file on GitHub · 62 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. 1mo ago Changed · +9 lines bf930ab3c790
  2. 1mo 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 9d ago), licensed MIT. It adds 30 tokens to every session and 577 once invoked, about $0.0001 per session on Opus 5.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.