context-validator

context-validator is an agent for Claude Code from a-ariff/ariff-claude-plugins. It costs 6 tokens per session (440 once invoked), scanned A, original, MIT.

An agent that checks whether enough workspace, environment, and conversation information is available before an action. It verifies items such as the current folder, accessible files, installed tools, dependencies, and relevant earlier decisions.

In plain words
What is it for?
Use it at the start of complex tasks, before changing files, when switching areas of a codebase, or when previous context may no longer be reliable.
Why use it?
It catches stale context, missing files, wrong directories, and unavailable dependencies before they cause errors. This is especially useful during multi-step work or after a long pause.

Agent for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: model in frontmatter.

Part of the context-validator plugin — 1 agent shipped together

Good fit Use it at the start of complex tasks, before changing files, when switching areas of a codebase, or when previous context may no longer be reliable.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/a-ariff/ariff-claude-plugins/context-validator
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.

Clone the repo
git clone --depth 1 https://github.com/a-ariff/ariff-claude-plugins

Made for: Claude Code.

Or install context-validator, the plugin that ships this one along with the rest of its 1 agent.

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

README.md
[![agentmods](https://agentmods.dev/badge/agents/a-ariff/ariff-claude-plugins/context-validator/github.svg)](https://agentmods.dev/agents/a-ariff/ariff-claude-plugins/context-validator)
Your own site
<a href="https://agentmods.dev/agents/a-ariff/ariff-claude-plugins/context-validator"><img src="https://agentmods.dev/badge/agents/a-ariff/ariff-claude-plugins/context-validator/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-validator

Your own site · 80×15
<a href="https://agentmods.dev/agents/a-ariff/ariff-claude-plugins/context-validator"><img src="https://agentmods.dev/badge/agents/a-ariff/ariff-claude-plugins/context-validator.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 6 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 440 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.00006 $0.00440
Opus 5.5 $0.00002 $0.00176
Sonnet 5.5 $0.00001 $0.00088
Haiku 4.5 $0.00001 $0.00044

Measured 1mo ago against content hash 963b8a4fa63f, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

context-validator 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 1mo 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.

plugins/context-validator/agents/context-validator.md · 90 lines

What it actually says

Context Validator Agent

Purpose

Ensures sufficient context exists before proceeding with any action. Validates workspace state, file availability, and environment readiness.

When to Invoke

  • At the start of any multi-step task
  • Before file modifications
  • When switching between different parts of a codebase
  • After long conversation gaps where context may be stale

Validation Checklist

Workspace Context

□ Current working directory is correct
□ Required files are accessible
□ File contents match expected state
□ No uncommitted changes that could conflict

Environment Context

□ Required tools are installed (node, npm, python, etc.)
□ Environment variables are set
□ Dependencies are installed
□ Correct runtime version is active

Conversation Context

□ Previous decisions are still relevant
□ User hasn't changed requirements
□ Referenced files still exist
□ No external changes have occurred

Context Gathering Commands

# Workspace state
pwd && ls -la
git status

# Environment state
node -v && npm -v
python --version
which [tool]

# File state
cat [filename] | head -50
wc -l [filename]

Response Pattern

📋 **Context Validation**

| Check | Status | Details |
|-------|--------|---------|
| Working Directory | ✅/❌ | `/path/to/project` |
| Required Files | ✅/❌ | [list files] |
| Dependencies | ✅/❌ | [status] |
| Environment | ✅/❌ | [versions] |

**Missing Context:**
- [What's missing]

**Action Required:**
- [Steps to resolve]

Stale Context Detection

Watch for these signals:

  • Time gap > 30 minutes since last action
  • User mentions "earlier" or "before"
  • File modification timestamps don't match expectations
  • Git shows unexpected changes

Strict Mode

Will not proceed until all required context is validated and confirmed.

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. 1mo ago First seen · 90 lines · 6 tokens per session scan A 963b8a4fa63f

Subscribe to this mod's changes

context-validator is an agent published in the GitHub repository a-ariff/ariff-claude-plugins (14 stars, last pushed 6mo ago), licensed MIT. It adds 6 tokens to every session and 440 once invoked, about $0.0000 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

Other agents, from other repositories

autoresearch-orchestrator

Use this agent to run an autoresearch experiment session end-to-end — setup, baseline, and a batch of edit→measure→keep/discard experiments — and return a structured checkpoint. Typical triggers include the /run-autoresearch command dispatching a new optimization goal, resuming an existing session found in…

proyecto26/autoresearch-ai-plugin · 115 tokens

task-executor

Use this agent to monitor or debug autonomous task execution. Examples - "Why did my task fail?", "Show me the output from the last task run", "Check if the taskrunner is still running".

Stackbilt-dev/cc-taskrunner · 45 tokens

flow-optimizer

Keitaro flow health and optimization agent. Checks flow structure, weight distribution, filter configuration, dead landings, and suggests rebalancing.

iso73-ops/claude-keitaro · 33 tokens

landing-generator

Generates landing page and prelanding HTML content for affiliate verticals. Creates advertorials, quiz funnels, product pages, white pages, and registration forms optimized for conversion.

iso73-ops/claude-keitaro · 38 tokens

campaign-analyzer

Keitaro campaign performance analyzer. Pulls reports via API, evaluates campaign health, identifies kill/scale candidates, checks for spending without conversions.

iso73-ops/claude-keitaro · 33 tokens

frontend-design-enhancer

Enhances frontend design quality by applying aesthetic principles, avoiding generic AI defaults, implementing distinctive typography/color/animations, and creating polished user experiences.

bejranonda/LLM-Autonomous-Agent-Plugin-for-Claude · 32 tokens