context-mode

context-mode is a skill for Claude Code, Codex from pedroiff0/awesome-skills. It costs 29 tokens per session (292 once invoked), scanned A, original, MIT.

A set of rules for reducing context use while exploring large codebases, logs, search results, and batch outputs.

In plain words
What is it for?
Use it for targeted file viewing, symbol searches, large-log analysis, repository exploration, and high-volume command runs.
Why use it?
It helps an AI agent find relevant information without loading unnecessary amounts of text into its working context.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions subagents.

Good fit Use it for targeted file viewing, symbol searches, large-log analysis, repository exploration, and high-volume command runs.

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

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/pedroiff0/awesome-skills/context-mode/github.svg)](https://agentmods.dev/skills/pedroiff0/awesome-skills/context-mode)
Your own site
<a href="https://agentmods.dev/skills/pedroiff0/awesome-skills/context-mode"><img src="https://agentmods.dev/badge/skills/pedroiff0/awesome-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/pedroiff0/awesome-skills/context-mode"><img src="https://agentmods.dev/badge/skills/pedroiff0/awesome-skills/context-mode.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 29 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 292 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.00029 $0.00292
Opus 5 $0.00015 $0.00146
Sonnet 5 $0.00006 $0.00058
Haiku 4.5 $0.00003 $0.00029

Measured 9d ago against content hash a21f54c779ac, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, 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 9d 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.

skills/autonomous-ai-agents/context-mode/SKILL.md · 29 lines

What it actually says

Context Mode & Token Optimization

This skill provides operational patterns for navigating massive repositories while conserving context tokens using indexed searches, AST filters, and structured outputs.

When to Use

  • Reading large log files (>500 lines) or analyzing multi-megabyte code repositories.
  • Performing symbol lookups across hundreds of files without flooding context.
  • Running high-volume batch executions or lint sweeps.

Operational Guidelines

  1. Targeted Line Range Views: Avoid dumping entire files; view slices using line offsets (view_file with StartLine and EndLine).
  2. Grep Before View: Use ripgrep (grep_search) to locate exact function definitions or usages before loading the containing file.
  3. Subagent Offloading: For deep exploratory research, invoke an isolated research subagent (invoke_subagent) to read docs and summarize findings back to parent 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. 9d ago First seen · 29 lines · 29 tokens per session scan A a21f54c779ac

Subscribe to this mod's changes

context-mode is a skill published in the GitHub repository pedroiff0/awesome-skills (1 stars, last pushed 2d ago), licensed MIT. It adds 29 tokens to every session and 292 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-31.

Related

Other skills, from other repositories

dx-roaster

Brutally honest developer-experience audit for a GitHub repo. Scores 10 DX dimensions (time-to-first-success, README clarity, visual proof, install, quick-start, docs, examples, community, trust, marketing), writes a shareable roast in the requested tone (brutal/honest/kind), produces a prioritized action plan ranked…

Varnan-Tech/opendirectory · 130 tokens

mnemosyne-maintenance

Use when: upgrading Mnemosyne, diagnosing slow/hung consolidation (mnemosynesleep), fixing missing embeddings, or troubleshooting import/version mismatches.

AtlasOmnia/donna-starter · 40 tokens

review-workflow

A review workflow for GitHub pull requests and issues, including judging whether changes can be merged or an issue can be closed. It requires read-only review, REST API access, and testing changes in practice.

ggg123124/vrchat-assistant · 46 tokens

code-review

When the user wants a thorough code review of changes, a PR, a file, or a feature branch. Use when the user says "review this," "code review," "check my code," "what's wrong with this," "review my PR," "look over this," "critique this," "review before merge," or when submitting code for quality assessment. Performs…

ggg123124/vrchat-assistant · 96 tokens

specification-compliance-review

Use this skill when an implementation is described as partial, passing, or complete and the task is to determine whether it actually satisfies an explicit specification. This is not a generic code review and not a re-run of the test suite. The central question is: does every normative requirement have both a correct…

AtlasOmnia/donna-starter · 35 tokens

dsh-requesting-code-review

A pre-commit code review process with separate checks for general quality and for matching the requested specification. A commit is a saved set of code changes in Git.

xl188/XLSkills · 96 tokens