Skip to content
| Marketplace
Sign in
Visual Studio Code>Education>GuardRailsNew to Visual Studio Code? Get it now.
GuardRails

GuardRails

Mrigank Pawagi

|
110 installs
| (1) | Free
Generating guarding rails for your code
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

GuardRails

VSCode extension to help developers set up guardrails around their functions, by helping them disambiguate purpose statements.

  • The VSCode extension is available on the Visual Studio Code Marketplace.
  • A dataset on the performance of GuardRails in comparison with Copilot Chat is available here.

Demo

Requirements

  1. Python

Note: GuardRails is fully tested only on Windows and currently provides experimental support for Linux.

Installing Python Dependencies for trimming and mutations

$ python -m pip install hypothesis hypothesis[cli] hypothesis[ghostwriter] black
$ python -m pip install git+https://github.com/mrigankpawagi/mutpy.git#egg=mutpy
$ python -m pip install func-timeout

Features

  1. Copilot suggestion trimmer (for Python)

    • Control + Shift + / after opening suggestions panel (Control + Enter)
    • Suggests a differentiating doctest if there are multiple valid suggestions and if the function arguments have type hinting.
  2. Copilot suggestion mutator-trimmer (for Python)

    • Control + Shift + ; after opening suggestions panel (Control + Enter)
    • Suggests a differentiating doctest if there are multiple valid suggestions or mutants and if the function arguments have type hinting.
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft