opencontext CLAUDE.md

opencontext CLAUDE.md is an instructions file for coding agents from niawjunior/opencontext. It costs 278 tokens per session, scanned A, original, MIT.

Project instructions for keeping Open Context documentation aligned with code changes. Open Context is a system that stores project and module information for AI assistants.

In plain words
What is it for?
Finding the project and affected modules, reading their context, searching project context, and submitting updated module documentation for review.
Why use it?
It prevents project context from becoming outdated after code is changed.

Instructions file

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 instructions/niawjunior/opencontext/claude-md
Clone the repo
git clone --depth 1 https://github.com/niawjunior/opencontext

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 opencontext CLAUDE.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/niawjunior/opencontext/claude-md.svg)](https://agentmods.dev/instructions/niawjunior/opencontext/claude-md)
Your own site
<a href="https://agentmods.dev/instructions/niawjunior/opencontext/claude-md"><img src="https://agentmods.dev/badge/instructions/niawjunior/opencontext/claude-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 278 This file is loaded in full into every session.
When invoked 278 The same file — it is already loaded in full.
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.00278 $0.00278
Opus 5 $0.00139 $0.00139
Sonnet 5 $0.00056 $0.00056
Haiku 4.5 $0.00028 $0.00028

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

Security

Grade A, and why

opencontext CLAUDE.md 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 3d 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.md · 30 lines

What it actually says

@AGENTS.md

Project Context (Open Context) — IMPORTANT

This project uses Open Context for AI context management.

REQUIRED: Update context after code changes

After you finish writing or modifying code, you MUST update the relevant module context:

  1. Call resolve_project to get the project ID
  2. Call list_modules to find which module(s) you changed
  3. Call update_module_context with the updated context markdown for each affected module

This keeps the project documentation in sync. The context goes through a review flow — the developer will see a diff and approve/reject your update in the Open Context app.

How to access context

Use the MCP tools available to you:

  • resolve_project — auto-detect this project from your cwd
  • get_project_context — get the full context document
  • list_modules — see all modules and their coverage status
  • get_module_context — get detailed context for a specific module
  • search_context — search across all context

What triggers context updates

  • AI (you): Use update_module_context MCP tool after code changes (goes through approval)
  • Git hook: Auto-marks affected modules as stale on push
  • Manual: Developer clicks "Sync" on any module in Open 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. 3d ago First seen · 30 lines · 278 tokens per session scan A ce4f1bd6d710

Subscribe to this mod's changes

opencontext CLAUDE.md is an instructions file published in the GitHub repository niawjunior/opencontext (0 stars, last pushed 5mo ago), licensed MIT. It adds 278 tokens to every session, about $0.0014 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-31.