context-loader

context-loader is a skill for Claude Code, Codex from mem0ai/mem0. It costs 46 tokens per session (275 once invoked), scanned A, original, Apache-2.0.

A context-loading skill searches saved project memories and adds relevant results to the agent's working context before a task begins. Working context is the information the agent can use while handling the task.

In plain words
What is it for?
It is used at session start, when changing context, for complex tasks, or when asking what the project already knows about a topic.
Why use it?
It reduces the need to repeat past decisions, project history, and coding conventions when switching tasks or returning to a project.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit It is used at session start, when changing context, for complex tasks, or when asking what the project already knows about a topic.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/mem0ai/mem0/context-loader
About the project

mem0 is memory infrastructure that lets AI agents and applications store and retrieve information across interactions. It supports agents and developers who need persistent context for AI systems.

mem0ai/mem0 · 69,767 stars · on GitHub · mem0.ai

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.

Any agent
npx skills add mem0ai/mem0 --skill context-loader
Clone the repo
git clone --depth 1 https://github.com/mem0ai/mem0

Made for: Claude Code, Codex.

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/skills/mem0ai/mem0/context-loader/github.svg)](https://agentmods.dev/skills/mem0ai/mem0/context-loader)
Your own site
<a href="https://agentmods.dev/skills/mem0ai/mem0/context-loader"><img src="https://agentmods.dev/badge/skills/mem0ai/mem0/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/skills/mem0ai/mem0/context-loader"><img src="https://agentmods.dev/badge/skills/mem0ai/mem0/context-loader.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 46 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 275 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. Third-party audits
  • Snyk pass 7 Sept 2026
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00046 $0.00275
Opus 5.5 $0.00018 $0.00110
Sonnet 5.5 $0.00009 $0.00055
Haiku 4.5 $0.00005 $0.00028

Measured 2mo ago against content hash 96d86048742b, 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 2mo 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.

integrations/pi-agent-plugin/skills/context-loader/SKILL.md · 33 lines

What it actually says

Context Loader

Pre-fetches relevant memories to prime context before working on a task or topic.

Steps

  1. Extract topics from current message/task. Identify: subject areas, people mentioned, project names, goal references.

  2. Call mem0_memory once with action="search" and a focused question about the task.

  3. Output compact context block (max 10 memories):

context-loader: loaded <N> memories for "<task summary>"
  - [decisions] <content> [mem0:<short_id>]
  - [preferences] <content> [mem0:<short_id>]
  - [lessons] <content> [mem0:<short_id>]
  1. If zero results: output nothing. Don't announce empty context.

Constraints

  • Read-only — never modify or delete memories
  • Max 10 memories returned (most relevant only)
  • Silent on empty — only surfaces findings if relevant context exists
  • Skip memories already visible in current session context
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. 2mo ago Changed · -15 lines · +1 tokens per session 96d86048742b
  2. 2mo ago Changed · -1 lines a9ae8be53ded
  3. 3mo ago First seen · 49 lines · 45 tokens per session scan A a00f2b0f3391

Subscribe to this mod's changes

context-loader is a skill published in the GitHub repository mem0ai/mem0 (69,767 stars, last pushed 4d ago), licensed Apache-2.0. It adds 46 tokens to every session and 275 once invoked, about $0.0002 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.

Related

context-loader compared with skills from other repositories

context-loader next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
context-loadermem0ai/mem0Skill70k4d agoApache-2.0A46Claude Code, Codex
browserwing-executorMemTensor/MemOSSkill13kyesterdayApache-2.0A42Claude Code, Codex
dev-browserMemTensor/MemOSSkill13kyesterdayApache-2.0A84Claude Code, Codex
ask-user-questionMemTensor/MemOSSkill13kyesterdayApache-2.0A44Claude Code, Codex
memos-memory-guideMemTensor/MemOSSkill13kyesterdayApache-2.0A131Claude Code, Codex
browserwing-adminMemTensor/MemOSSkill13kyesterdayApache-2.0B47Claude Code, Codex
safe-file-deletionMemTensor/MemOSSkill13kyesterdayApache-2.0C46Claude Code, Codex