Install the extension
Install the Visual Studio Code Extension to get started.
Programmatically assemble prompts for LLMs using JavaScript.
Install the extension
Install the Visual Studio Code Extension to get started.
Configure your LLMs
Configure the secrets to access your LLMs.
Write your first script
Follow Getting Started to write your first script.
Read the docs
Learn more about GenAIScript in the Scripting Reference.
GenAIScript brings essential LLM prompt tooling into a cohesive scripting environment.
Stylized JavaScript
Build prompts programmatically using JavaScript or TypeScript.
Fast Development Loop
Edit, Debug, Run, Test your scripts in Visual Studio Code or with a command line.
Reuse and Share Scripts
Scripts are files! They can be versioned, shared, forked, …
Data Schemas
Define, validate, repair data using schemas.
Ingest text from PDFs, DOCX, ...
Ingest tables from CSV, XLSX, ..
Generate Files
Extract files and diff from the LLM output. Preview changes in Refactoring UI.
File search
Grep or fuzz search files
Browser automation
Browse and scrape the web with Playwright.
RAG built-in
GitHub Models and GitHub Copilot
Run models through GitHub using GitHub Models or GitHub Copilot.
Local Models
Run your scripts with Open Source models, like Phi-3, using Ollama, LocalAI…
LLM Tools
Register JavaScript functions as LLM tools
or use built-in @agentic tools
Code Interpreter
Let the LLM run code in a sandboxed execution environment.
Containers
Run code in Docker containers.
LLM Composition
Run LLMs to build your LLM prompts.
Prompty
Run or convert Prompty files using GenAIScript.
Automate with CLI
Automate using the CLI, integrate reports in your CI/CD pipeline.
Pull Request Reviews
Integrate into your Pull Requests checks through comments, reviews or description updates. Supports GitHub Actions and Azure DevOps pipelines.
Tests and Evals
Build reliable prompts using tests and evals powered by promptfoo.