Skip to main content

About Custom Commands

Custom commands are user-defined slash commands stored as .md files that appear in the / autocomplete menu in chat. They let you create reusable prompts for common workflows — code reviews, deployment checklists, bug fix templates, and more.
Custom Commands are available as a Public Beta opt-in from the Settings page in VSCode 0.789.0+. They are also being rolled out server-side for Community (Vanguard) tier users.

Creating a Command

Create a markdown file in one of the supported command directories:

Command Locations

Commands are discovered from multiple locations in order of precedence: When commands with the same name exist in multiple locations, the command from the higher-precedence location is used.

Using Commands

Type / in the chat input to open the autocomplete menu, then select or search for your command. You can also type the command name directly:
Arguments can be passed after the command name:

Frontmatter

Command files support optional YAML frontmatter for metadata: Example.augment/commands/deploy-staging.md:

Template Substitution

Commands support template variables for dynamic content: Example using $ARGUMENTS:

Namespacing

Organize commands in subdirectories using the namespace:command syntax:

Best Practices

  1. Use kebab-case naming — e.g., deploy-staging.md, run-tests.md
  2. Include clear descriptions in frontmatter for better discoverability
  3. Use workspace commands for team-shared workflows
  4. Use user commands for personal preferences across projects
  5. Organize with subdirectories for related command groups
  6. Break complex workflows into numbered steps

See Also