context-mode

context-mode is a skill for Claude Code from akillness/jeo-skills. It costs 124 tokens per session (1,504 once invoked), scanned A, original, MIT.

A context-management system for coding-agent sessions. It runs temporary scripts in separate processes, indexes content with FTS5 full-text search, records context-saving measurements, and supports session recovery; it is not an operating-system security sandbox.

In plain words
What is it for?
It helps install, inventory, verify, diagnose, and measure context-mode on Claude Code, Codex CLI, Gemini, and related tools.
Why use it?
It helps avoid using the agent's conversation space for every script or piece of indexed content. It also provides measurements and recovery tools for supported coding-agent sessions.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: mentions Claude Code; mentions Codex; built for openclaw.

Good fit It helps install, inventory, verify, diagnose, and measure context-mode on Claude Code, Codex CLI, Gemini, and related tools.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/akillness/jeo-skills/context-mode
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 akillness/jeo-skills --skill context-mode
Clone the repo
git clone --depth 1 https://github.com/akillness/jeo-skills

Made for: Claude Code.

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-mode

README.md
[![agentmods](https://agentmods.dev/badge/skills/akillness/jeo-skills/context-mode/github.svg)](https://agentmods.dev/skills/akillness/jeo-skills/context-mode)
Your own site
<a href="https://agentmods.dev/skills/akillness/jeo-skills/context-mode"><img src="https://agentmods.dev/badge/skills/akillness/jeo-skills/context-mode/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-mode

Your own site · 80×15
<a href="https://agentmods.dev/skills/akillness/jeo-skills/context-mode"><img src="https://agentmods.dev/badge/skills/akillness/jeo-skills/context-mode.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 124 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,504 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.00124 $0.01504
Opus 5.5 $0.00050 $0.00602
Sonnet 5.5 $0.00025 $0.00301
Haiku 4.5 $0.00012 $0.00150

Measured 15d ago against content hash aae47df0a23c, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

context-mode 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 15d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/preflight.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

.agent-skills/context-mode/SKILL.md · 130 lines

How it starts

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

Context Mode operator

context-mode is a portable MCP server plus host adapters. It keeps selected command, file, web, and session data in subprocesses/SQLite, then returns selected output or FTS5 results. It is not an OS/security sandbox, proxy, shell-output wrapper, workspace index, graph, or durable wiki. Child code retains normal user filesystem/network authority, and a background child can outlive the call.

Hook capture and ctx_search can retain sensitive tool/session output. Before enabling capture, approve scope, sensitivity, storage root and permissions, sharing, retention, and purge policy. Never index credentials, tokens, secrets, or private data without a reviewed handling plan.

When to use this skill

  • Audit an install, runtime, MCP registration, host adapter, storage root, duplicate entry, or recovery path.
  • Plan or perform one explicitly approved install, upgrade, purge, hook/config change, or fixed-workload measurement.
  • Explain host-specific MCP, plugin, hook, routing, and no-hook limits.

Route out

  • Proxy compression or persistent routing → headroom.
  • Shell output/token wrappers → rtk.
  • Workspace hybrid/vector/BM25 search → zvec-grep.
  • Code/corpus graph → graphify.
  • Durable project memory/wiki → opencontext or llm-wiki.

Instructions

1. Freeze scope and read the right reference

Record host, OS/architecture, and goal: inventory, MCP-only, hooks/plugin, upgrade, or measurement. Read references/upstream.md when the branch needs the pinned runtime/storage rules, host matrix, install commands, tool contract, cross-host postinstall, benchmark claims, or source/license citations. Do not move main for version claims.

Run the non-mutating helper before any host inspection:

python3 .agent-skills/context-mode/scripts/preflight.py --json
python3 "$SKILLS_ROOT/context-mode/scripts/preflight.py" --json

The first command is for a repository checkout; the second is for an installed skill root. The helper inventories Node/npm/npx/Bun/context-mode paths and host facts without executing those tools or reading Claude/Codex settings, caches, sessions, credentials, or env files. With --repo PATH, it may inspect only the public source shape and bounded local Git HEAD; --expect-commit FULL_SHA requires --repo and is the only commit comparison pin. It never invokes context-mode/npm, writes configuration, or makes network calls.

Read the full file on GitHub · 130 lines

Files

What ships with it

3 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 15d ago Changed · +1 lines aae47df0a23c
  2. 1mo ago First seen · 129 lines · 124 tokens per session scan A 37365f457860

Subscribe to this mod's changes

context-mode is a skill published in the GitHub repository akillness/jeo-skills (63 stars, last pushed yesterday), licensed MIT. It adds 124 tokens to every session and 1,504 once invoked, about $0.0005 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-10-13.

Related

context-mode compared with skills from other repositories

context-mode next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
context-modeakillness/jeo-skillsSkill63yesterdayMITA124Claude Code
knowledge-ingestopenclaw/openclawSkill396ktodayMITA80Claude Code, Codex
forgetasgeirtj/system_prompts_leaksSkill74ktodayCC0-1.0A0Claude Code, Codex
mem0-oss-to-platformmem0ai/mem0Skill70k5d agoApache-2.0A217Claude Code, Codex
Cortexdanielmiessler/LifeOSSkill21k14d agoMITA184Claude Code
memoryopensquilla/opensquillaSkill7.2k6d agoApache-2.0A44Claude Code, Codex
ha-data-storesshiwenwen/hope-agentSkill1.9ktodayMITA115Claude Code, Codex