Skip to content
| Marketplace
Sign in
Visual Studio Code>AI>Copilot Context ManagerNew to Visual Studio Code? Get it now.
Copilot Context Manager

Copilot Context Manager

Howlin

|
5 installs
| (0) | Free
Build, manage, and apply system prompts for GitHub Copilot. Guided wizard with domain templates (HIPAA, PCI-DSS, FedRAMP, etc.), AI-powered prompt generation, and one-click application to workspace or global instructions.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Copilot Context Manager

Build, manage, and silently inject your system prompt into every Copilot Chat message.

Stop re-pasting your system prompt. Store it once, switch between role-specific prompts instantly, and use @context [your question] to answer anything with your full instructions already in context — no banners, no broken chat flow.


Features

📝 Prompt Library

  • Store multiple system prompts for different roles: backend dev, frontend, DevOps, code review, etc.
  • Switch active prompts instantly from the status bar or Command Palette
  • Import from any .md or .txt file; export to share or back up

🔄 Soft Re-injection with @context

  • @context [your question] silently prepends your full system prompt before answering — only a single italic line ↩ Prompt: Name appears in chat, keeping the conversation clean
  • No visible prompt dump, no broken history, no lost context

🏗️ Prompt Builder Wizard

  • 5-step guided wizard walks you from domain description → finished prompt
  • 10 built-in domain templates to start from
  • Or use @context /build [description] to generate a prompt with AI, then save it directly to your library

🌐 Domain Templates

  • Healthcare / HIPAA — HIPAA-aware, clinical terminology, audit trails
  • Finance / PCI-DSS — PCI-DSS, fraud prevention, financial data handling
  • Government / FedRAMP — FedRAMP, FISMA, security controls
  • Education / FERPA — FERPA, accessibility (WCAG 2.1 AA), LMS integration
  • Web / REST API — REST best practices, OpenAPI, Node.js/Python/Go
  • Mobile (React Native / Flutter) — cross-platform, app store compliance
  • Data / ML — Pandas, NumPy, scikit-learn, Jupyter, model evaluation
  • DevOps / Infrastructure — IaC, CI/CD, cloud-native, SRE practices
  • Game Dev / Unreal Engine C++ — UE5 C++, Blueprints, profiling
  • Embedded / Real-Time Systems — bare-metal C/C++, RTOS, safety standards
  • General — blank slate with sensible defaults

🔗 Automatic Sync

  • Sync your active prompt to .github/copilot-instructions.md (workspace) so Copilot picks it up on every message without @context
  • Sync globally to ~/.github/copilot-instructions.md for cross-project coverage
  • Save individual prompts as ~/.github/prompts/[id].prompt.md

Quick Start

  1. Install the extension — the status bar shows your active prompt immediately
  2. Create or import a prompt:
    • Ctrl+Shift+P → Copilot Context: New Prompt — write one from scratch
    • Ctrl+Shift+P → Copilot Context: Import Prompt from File — import an existing .md / .txt
    • Ctrl+Shift+P → Copilot Context: Build Prompt with Wizard — guided 5-step builder
  3. Use it: type @context [your question] in Copilot Chat — your prompt is silently prepended

@context Chat Commands

Command Description
@context [question] Answer the question with your system prompt silently prepended
@context (no text) Sync instructions file, show one-line confirmation
@context /reinject Same as no-text — refresh instructions file silently
@context /build [description] AI-generate a prompt from a description, then save it
@context /show Print your active prompt in a code block
@context /list List all prompts in your library
@context /set Open the prompt switcher picker
@context /apply Sync active prompt to workspace .github/copilot-instructions.md

Status Bar

The status bar item shows: $(copilot) [Prompt Name]

Click it for a quick-action menu: switch context, build a new prompt, apply to workspace, open editor.


Managing Prompts

Prompts are stored in .vscode/copilot-prompts.json in your workspace:

{
  "activeContext": "backend-dev",
  "contexts": [
    {
      "id": "backend-dev",
      "name": "Backend Development",
      "description": "Node.js / TypeScript API work",
      "prompt": "You are an expert backend engineer specializing in Node.js and TypeScript..."
    },
    {
      "id": "code-review",
      "name": "Code Review",
      "description": "Thorough review mode",
      "prompt": "You are a senior engineer performing a detailed code review..."
    }
  ]
}

Template Variables

Use these placeholders in your prompt — they resolve at injection time:

Variable Resolves to
{{workspaceName}} Current workspace folder name
{{fileName}} Currently open file path
{{languageId}} Language of the active editor
{{timestamp}} Current ISO timestamp

Command Palette Commands

Command Description
Copilot Context: Build Prompt with Wizard Launch the 5-step guided prompt builder
Copilot Context: New Prompt Create a prompt from scratch
Copilot Context: Select Active Context Switch the active prompt
Copilot Context: Edit Prompts (JSON) Open the raw prompts file
Copilot Context: Import Prompt from File Import .md / .txt as a new prompt
Copilot Context: Export Active Prompt Save active prompt to a file
Copilot Context: Copy Prompt to Clipboard Copy prompt text
Copilot Context: Delete a Prompt Remove a prompt from the library
Copilot Context: Apply to Workspace Sync to .github/copilot-instructions.md
Copilot Context: Apply Globally Sync to ~/.github/copilot-instructions.md
Copilot Context: Show Current Prompt Display active prompt in editor panel
Copilot Context: Quick Action Open the status bar action menu

Settings

Setting Default Description
copilotContext.promptsFile .vscode/copilot-prompts.json Path to the prompts storage file
copilotContext.enableStatusBar true Show status bar indicator
copilotContext.defaultScope workspace Default sync scope: workspace, global, or both

License

MIT

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