Skip to content
| Marketplace
Sign in
Visual Studio Code>Linters>PromptScopeNew to Visual Studio Code? Get it now.
PromptScope

PromptScope

Mohammad Khalid Anwar

|
1 install
| (0) | Free
Explore predicted Copilot instruction scopes and lint workspace instruction files locally.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

PromptScope

Understand which repository instruction files are predicted to cover the file you are editing, and catch malformed metadata, unmatched patterns, and missing relative links before asking an AI coding agent to work.

Free to use. No Copilot subscription, model account, or API key required.

Open the step-by-step user guide — sample workspaces, explanations, expected results, and a downloadable test checklist. Run PromptScope: Open User Guide or click the book icon in the Workspace Instructions view title to open it in your browser. The hosted page needs an internet connection; save its HTML for offline use.

Documentation repository · Report an issue. The repository currently hosts the user guide, not the extension source. Share only sanitized examples in public issues.

Scope predictions are not confirmation that an agent loaded or followed an instruction. This extension provides a workspace-only Copilot scope preview, not access to an agent's effective prompt.

Features

  • Workspace Instructions sidebar: discover supported instruction files, inspect their predicted applicability, and open their sources.
  • Predicted scope count: click Rules: N predicted in the status bar for a read-only, source-separated preview. The count represents instruction files, not individual requirements.
  • Focused-file badge: see the predicted file count beside the focused file in the standard Explorer when file decorations are enabled.
  • Visible diagnostics: click Instruction issues: N to reveal clickable diagnostic rows in the sidebar, independently of Problems-panel filters.
  • Live linting: receive feedback on unsaved instruction edits and refresh after relevant file changes.
  • Multi-root workspaces: keep scope predictions separated by workspace root.
  • Starter instructions: choose editable language and task templates, review their exact contents, and create only the files you want without replacing existing files.

Quick start

  1. Install the extension and open a folder in VS Code.

  2. Create .github/copilot-instructions.md with a repository convention:

    Use descriptive names and add tests for behavior changes.
    
  3. Create .github/instructions/typescript.instructions.md:

    ---
    name: TypeScript conventions
    applyTo: "src/**/*.ts"
    ---
    Use explicit return types for exported functions.
    Avoid any.
    
  4. Create and open src/demo.ts:

    export function greet(name: string): string {
      return `Hello, ${name}`;
    }
    
  5. Click the PromptScope icon in the Activity Bar. Alternatively, run View: Open View and select Workspace Instructions.

  6. With just these two instruction files, the status bar shows Rules: 2 predicted for src/demo.ts.

  7. Click the count to inspect both sources. Click Instruction issues to inspect any diagnostics.

A root-level notes.txt would have only the repository-wide instruction predicted. The TypeScript instruction would remain listed as available.

Supported instruction locations

Paths are relative to each open workspace root and filenames are case-sensitive in the classifier.

Location Current behavior
.github/copilot-instructions.md Predicted repository-wide scope for a selected file in that root.
.github/instructions/**/*.instructions.md Matches applyTo patterns against the selected file's workspace-relative path.
AGENTS.md and nested AGENTS.md Predicts directory scope for the selected file, including descendant directories.
CLAUDE.md and nested CLAUDE.md Inventory only; marked unsupported in this Copilot profile.

applyTo must be a string. Comma-separated patterns and brace expressions such as src/**/*.{ts,tsx} are supported by the local matcher. A description alone does not produce a file-scope prediction.

Understanding states

State Meaning
predicted The selected file matches the extension's workspace scope model. Loading is not confirmed.
available The file is discovered but does not currently have a predicted match. It may be outside the selected scope, lack applyTo, or have no selected target in its root.
invalid Metadata errors prevent a scope prediction.
unsupported The file is inventoried but not modeled as active in this profile.

Opening an instruction file makes it the selected target. The combined preview preserves the previous target while it is open. With no selected workspace file, no files are predicted.

Lint diagnostics

Diagnostics appear in the Problems panel, under instruction files in Workspace Instructions, and in the preview's workspace diagnostics section. Issue counts cover all scanned instruction files across workspace roots, not just the focused file.

Check Severity Example
Malformed YAML or non-mapping frontmatter Error An unclosed YAML list.
Missing closing frontmatter delimiter Error An opening --- with no closing ---.
Incorrect metadata field type Error applyTo: ["src/**/*.ts"] instead of a string.
Empty instruction body Warning Metadata without any guidance beneath it.
Missing relative inline Markdown link target Warning [Guide](missing-guide.md) when the target is absent from the index.
Pattern with no indexed matches Information applyTo: "future/**/*.py" before such files exist.

A no-match information message does not mean the rule should be deleted. It reports only the current indexed snapshot. Its marker selects the applyTo key.

Relative links resolve from the instruction file's directory. Checks are best-effort: code examples, external URLs, anchors, absolute paths, and paths outside the workspace are not checked. Reference-style Markdown links and arbitrary file paths in prose are not validated.

Try the diagnostics

  • Change applyTo to "missing-folder/**/*.py" in the quick-start instruction to see a no-match information message.
  • Add [Guide](missing-guide.md) to a root AGENTS.md to see a missing-link warning.
  • Create the referenced file to clear that warning, or correct the link.
  • Click a diagnostic row to select its source location.

Commands

Open the Command Palette with Ctrl+Shift+P on Windows/Linux or Cmd+Shift+P on macOS.

Command Action
PromptScope: Refresh Explorer Rescan instruction files and update diagnostics.
PromptScope: Preview Predicted Instructions Open the read-only preview for the selected target.
PromptScope: Show Instruction Diagnostics Focus the sidebar and reveal the first instruction file with issues.
PromptScope: Add Starter Instructions Select templates, preview their contents, and create editable instruction files without overwriting existing ones.
PromptScope: Open User Guide Open the hosted step-by-step guide in your default browser.

Add starter instructions

  1. Open a trusted workspace folder and run PromptScope: Add Starter Instructions, or click + in the Workspace Instructions view. An empty view also offers an Add Starter Instructions link.
  2. In a multi-root workspace, choose the destination root explicitly.
  3. Select only the templates relevant to the project. Nothing is selected by default.
  4. Review the read-only preview, including destination paths, complete contents, and any skipped existing files. Choose Create files to proceed, or Cancel / Escape to leave the workspace unchanged.
  5. Edit the generated .github/instructions/promptscope-<template>.instructions.md files normally. Narrow applyTo patterns for specific folders when appropriate; the first new file opens automatically.

The initial catalog includes JavaScript/TypeScript, Python, Java, C#, Go, Rust, C/C++, React, HTML/CSS, SQL, Terraform, and Markdown. Testing, security, documentation, and code-review templates provide task guidance without applyTo: attach them manually or use agent-supported selection. They remain available, not file-scope predicted; their descriptions do not prove automatic activation.

Templates are starting recommendations, not universal standards or proof of coverage/compliance. Overlapping packs (for example React and TypeScript) can both match a file. Selecting a language with no matching files can produce an informational diagnostic. Existing destinations, including open unsaved documents, are skipped; extension updates never synchronize or replace generated contents. A destination that appears during review stops creation. Symlinked instruction directories are not supported for creation.

Example: working in a monorepo

A repository might define shared conventions in root AGENTS.md, frontend guidance in .github/instructions/frontend.instructions.md, and service-specific rules in services/payments/AGENTS.md.

When editing a payments file, inspect the preview to see the predicted shared and service-specific sources. When switching to a frontend file, the scope changes. If a refactor leaves a pattern pointing at an old directory or a link pointing at a moved document, the linter can highlight that mismatch against the indexed snapshot.

Use the preview to review overlapping guidance manually. The extension does not detect semantic conflicts automatically or enforce those rules on generated code.

Privacy and behavior

  • The extension analyzes workspace filenames and supported instruction contents in the VS Code extension host.
  • It does not call an AI service, send instruction contents to a server, or implement telemetry.
  • It does not execute commands found in instructions or modify existing instruction files. Add Starter Instructions creates new files only after confirmation.
  • Open User Guide opens a fixed public GitHub Pages URL only when invoked. It does not include workspace data in the link; the browser and hosting service handle the page request.
  • It does not scan user-level instruction locations or change VS Code settings.
  • In a remote workspace, analysis uses VS Code's workspace and extension-host infrastructure; it is not a promise that remote files are processed on your local computer.
  • VS Code and other installed extensions have their own independent network and privacy behavior.

Scope and limitations

  • Only the standard locations listed above are modeled. Custom discovery directories, user and organization rules, parent-repository rules, and agent settings are not modeled.
  • Matching uses minimatch with dotfile matching enabled. Actual agents may differ in discovery, pattern semantics, task-based selection, manual attachment, and directory loading.
  • The preview preserves source boundaries. It is not a precedence-resolved effective prompt or proof of compliance.
  • The disk file index is capped at 20,000 files per workspace root. Open workspace documents are also considered. A notice identifies a truncated index; instruction discovery and lint results can be incomplete.
  • Disk indexing excludes directories named node_modules, .git, out, dist, build, coverage, and .vscode-test. An open document can still be considered.
  • Instruction files larger than 256 KiB are skipped with a notice.
  • Missing-link diagnostics use the indexed snapshot, not a complete filesystem existence check. Excluded files, empty directories, or a truncated index can cause a link target to appear missing.
  • This release has been exercised on Windows in VS Code 1.149.0. The manifest allows VS Code 1.96.0 and later, but older versions, other operating systems, and remote environments have not been verified. Large-monorepo performance has not been benchmarked.
  • VS Code for the Web is not supported by this Node-based extension entry point.

Troubleshooting

I cannot find a warning or information message. Click Instruction issues in the status bar. Its sidebar rows are independent of Problems filters. In Problems, clear the text filter, enable Warnings and Infos, and disable Active File Only if necessary.

An expected instruction is missing. Check the supported location and exact filename, selected workspace root, and scan notices. Run PromptScope: Refresh Explorer. For scan errors, open View > Output and select PromptScope.

The count seems wrong. It counts predicted instruction files for the focused editor, not individual rules or actual agent attachments. Opening an instruction file changes the target. Check the preview's target and each source's explanation.

I have two copies running. If you previously installed a development VSIX under local-development, disable that copy before testing the MohammadKhalidAnwar release.

When reporting a problem, include the extension version, VS Code version, operating system, and a minimal sanitized example. Avoid sharing credentials, confidential instructions, or private source code.

Publisher website

Visit OmniX Labs.

License

MIT License. Copyright (c) 2026 Mohammad Khalid Anwar. See the included LICENSE file for the full terms. Bundled third-party dependencies retain their own licenses and notices.

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
  • Your Privacy Choices
  • Consumer Health Privacy
© 2026 Microsoft