Skip to content
| Marketplace
Sign in
Visual Studio Code>Linters>Context CheckNew to Visual Studio Code? Get it now.
Context Check

Context Check

Jubin Soni

|
1 install
| (1) | Free
Keep your AGENTS.md honest — automatically. Lint AI agent context files (AGENTS.md, CLAUDE.md) against your actual repository. Deterministic, offline, no API keys.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info
Context Check

Context Check

Keep your AGENTS.md honest — automatically.

Version Installs Rating CI License: MIT

Context Check lints AI agent context files (AGENTS.md, CLAUDE.md, and friends) against your actual repository — flagging commands, paths, and casing that have gone stale, right inside VS Code.

Free and open source. No account, no API key, no telemetry — every check runs locally and is deterministic.

Context Check demo


Why

Agent context files drift. You rename an npm script, move a folder, or switch tools — but the AGENTS.md you handed your AI still points at the old world, so your agent confidently runs commands that no longer exist.

Without Context Check With Context Check
Stale AGENTS.md, no warnings The same file with findings surfaced

Features

  • Stale command detection — a command like npm run build that no longer exists in package.json, with a "did you mean build:prod?" suggestion.
  • Dead path detection — a referenced file or directory that isn't there.
  • Case-mismatch detection — a path that resolves on macOS but breaks case-sensitive Linux CI, with a one-click casing fix.
  • Quick fixes — apply the suggested fix from the editor lightbulb or the sidebar.
  • Dedicated sidebar — an Activity Bar view grouping every finding by file.
  • Status bar count — the active file's issue count at a glance.
  • Deterministic & explainable — every finding maps to a rule you can read. No LLM guessing.

Getting Started

1. Install

Search "Context Check" in the VS Code Extensions panel, or install from the Marketplace.

2. Open a context file

Open a repo that has an AGENTS.md or CLAUDE.md. Findings appear immediately in the editor and the Problems panel, and refresh every time you save.

Inline error with the fix lightbulb

3. Fix issues

Click the lightbulb (⌘.) on a finding to apply its fix — replace a stale command with the real script, or correct a path's casing.

Applying a quick fix


The sidebar

Click the Context Check icon in the Activity Bar to open the Findings view. It groups every issue across your workspace by file, and shows a badge with the total count.

Findings grouped by file Apply a fix inline
Sidebar with issue count badge Inline apply-fix wrench on each issue
  • Re-check (the refresh button in the view's title bar) re-scans the whole workspace.
  • Click a finding to jump straight to it in the editor.
  • The wrench on a fixable finding applies its fix without opening the file.

Once everything is fixed, the view is clean:

Clean state after applying all fixes


What it checks

Rule Severity Meaning
stale-command Error A command names a task the repo doesn't define. Suggests the closest match.
dead-path Error / Warning A referenced path doesn't exist. Error for explicit paths, warning for prose mentions.
case-mismatch-path Error A path exists but with different casing — breaks case-sensitive CI.

Commands

All actions are available from the sidebar and the Command Palette (Cmd+Shift+P / Ctrl+Shift+P → type "Context Check").

Command Description
Context Check: Check workspace Scan every context file in the workspace and report all findings.

Settings

Setting Default Description
contextcheck.enable true Enable or disable Context Check diagnostics.

Privacy

Context Check runs entirely on your machine. It reads your context files and your repository's manifests (package.json, etc.) to verify claims. It makes no network requests, stores no data, and sends no telemetry.


Requirements

  • VS Code 1.85 or later.
  • A workspace containing an AGENTS.md or CLAUDE.md file.

Contributing

Issues and pull requests are welcome at github.com/jubins/contextcheck.


License

MIT © Jubin Soni

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2026 Microsoft