Make HandyLLM and hprompt a breeze in VS Code (and compatible editors).
Features
Hprompt syntax highlight
See demo below:
Also highlights hprompt / hpr fenced code blocks in both Markdown editor and Markdown Preview.
Run hprompt file
Run the active hprompt file from the action button, or right click an .hprompt file, or issue from the command palette Run Hprompt (keyboard shortcut configured).
You can change handyllm command used in the terminal by setting handyllm.commandName (needs installation of HandyLLM CLI).
See gif below:
Create starter hprompt file
Issue from command palette New Hprompt File, or New File and then select Hprompt File.
See gif below:
Other Useful Enhancements
Editor decorations for Hprompt frontmatter and role lines. You can customize their appearance via settings.
Foldable & sticky-scroll headings for easier navigation.
Snippets for relatively complex Hprompt constructs.
Frontmatter YAML validation with real-time feedback. Requires installation of the YAML extension and proper schema configuration (see next section).
Frontmatter Validation Setup
Follow these steps to enable YAML validation for Hprompt frontmatter.