load-context

load-context is a command for coding agents from joseairosa/recall. It costs 18 tokens per session (437 once invoked), scanned A, original, MIT.

A command for loading large files or groups of files into a chunk-based analysis system.

In plain words
What is it for?
Use it with logs, source files, document collections, or PDFs when you need to find errors, summarize content, or analyze patterns across large input.
Why use it?
It provides a way to analyze content that may be too large to process directly in one context.

Command

Part of the claude-plugin plugin — 7 commands, 3 agents, 5 hooks 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 commands/joseairosa/recall/load-context
Clone the repo
git clone --depth 1 https://github.com/joseairosa/recall

Or install claude-plugin, the plugin that ships this one along with the rest of its 7 commands, 3 agents, 5 hooks.

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

README.md
[![agentmods](https://agentmods.dev/badge/commands/joseairosa/recall/load-context.svg)](https://agentmods.dev/commands/joseairosa/recall/load-context)
Your own site
<a href="https://agentmods.dev/commands/joseairosa/recall/load-context"><img src="https://agentmods.dev/badge/commands/joseairosa/recall/load-context.svg" alt="Measured on agentmods" height="20"></a>
Per session 18 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 437 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.00018 $0.00437
Opus 5 $0.00009 $0.00218
Sonnet 5 $0.00004 $0.00087
Haiku 4.5 $0.00002 $0.00044

Measured 4d ago against content hash b7dfb0dc24ee, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

load-context 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.

claude-plugin/commands/load-context.md · 75 lines

What it actually says

/load-context Command

Load large files into Recall's RLM (Recursive Language Model) system for processing content that exceeds context window limits.

Usage

/load-context <file_path> [task_description]
/load-context <glob_pattern> [task_description]

Examples

/load-context /var/log/app.log "Find all errors and their causes"
/load-context src/**/*.ts "Analyze code patterns and potential issues"
/load-context ./large-document.pdf "Summarize key points"

Behavior

When invoked, this command will:

  1. Read the specified content:

    • Single file: Read the entire file
    • Glob pattern: Find matching files and concatenate content
  2. Analyze content size:

    • If <25K tokens: Suggest direct analysis (RLM not needed)
    • If >25K tokens: Proceed with RLM
  3. Create execution context:

    • Store content externally in Recall
    • Generate chain_id for tracking
    • Detect optimal decomposition strategy
  4. Return setup information:

    • Chain ID for subsequent commands
    • Estimated token count
    • Recommended strategy
    • Suggested next steps

Output

After loading, you'll receive:

RLM Context Created
-------------------
Chain ID: 01HXYZ...
Tokens: ~125,000
Strategy: filter (recommended)

Next steps:
1. Run /decompose 01HXYZ... to break down the analysis
2. Or manually call decompose_task with a custom strategy

Notes

  • Large files (>1MB) may take time to process
  • The task description helps optimize the decomposition strategy
  • Use glob patterns to analyze multiple related files together
  • Chain IDs are needed for all subsequent RLM operations
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 · 75 lines · 18 tokens per session scan A b7dfb0dc24ee

Subscribe to this mod's changes

load-context is a command published in the GitHub repository joseairosa/recall (175 stars, last pushed 4d ago), licensed MIT. It adds 18 tokens to every session and 437 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.