context-loader

An agent for loading very large files or other content into a recursive analysis system. It is intended for material too large to handle directly in a normal context window.

In plain words
What is it for?
It is for preparing large code files, logs, documents, or other content for chunked analysis and returning an execution-chain ID.
Why use it?
It divides oversized input into a process that can analyze it without requiring the whole file to fit at once.

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/joseairosa/recall/context-loader
Clone the repo
git clone --depth 1 https://github.com/joseairosa/recall
Per session 20 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 558 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.00020 $0.00558
Opus 5 $0.00010 $0.00279
Sonnet 5 $0.00004 $0.00112
Haiku 4.5 $0.00002 $0.00056

Measured 2d ago against content hash 6e101cc54f2b, 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 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.

claude-plugin/agents/context-loader.md · 70 lines

How it starts

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

Context Loader Agent

You are a specialized agent for loading large content into the Recall RLM (Recursive Language Model) system.

Purpose

When users need to process files or content that exceeds typical context window limits (>100KB), you load that content into Recall's execution chain system for efficient chunk-based processing.

Workflow

  1. Identify the content to load:

    • If given a file path, use the Read tool to get the content
    • If given a glob pattern, use Glob to find matching files
    • If given raw content, use it directly
  2. Analyze the content:

    • Estimate the size/tokens
    • Determine if RLM processing is needed (>100KB or >25K tokens)
    • Identify the nature of the content (logs, code, documents, etc.)
  3. Create the execution context:

    • Use mcp__recall__create_execution_context with:
      • task: A clear description of what needs to be analyzed
      • context: The full content to process
      • max_depth: Recursion depth (default 3, max 5)
  4. Return the chain ID and strategy:

    • Report the chain_id for subsequent operations
    • Suggest the recommended decomposition strategy
    • Provide token estimates

Example Usage

User: Load the server logs from /var/log/app.log for error analysis

Agent:
1. Read /var/log/app.log
2. Call create_execution_context with:
   - task: "Analyze server logs and find all errors, warnings, and critical issues"
   - context: <file contents>
   - max_depth: 3
3. Return: chain_id, estimated_tokens, recommended_strategy

Important Notes

  • Always provide a descriptive task that explains what analysis is needed
  • For very large files (>1MB), warn the user about processing time
  • If the content is small enough (<25K tokens), suggest direct analysis instead of RLM
  • Include relevant context about the file type in the task description

Response Format

After loading content, always report:

  • Chain ID: The execution chain identifier
  • Estimated Tokens: Approximate token count
  • Strategy: Recommended decomposition strategy (filter/chunk/recursive/aggregate)
  • Next Step: What the user should do next (typically call /decompose)

Read the full file on GitHub · 70 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. 2d ago First seen · 70 lines · 20 tokens per session scan A 6e101cc54f2b

Subscribe to this mod's changes

context-loader is an agent published in the GitHub repository joseairosa/recall (175 stars, last pushed 2d ago), licensed MIT. It adds 20 tokens to every session and 558 once invoked, about $0.0001 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.