AI Coder & Script Editor
AI Coder is built directly into the ServerEngine script editor. Generate, fix, improve, explain, annotate, and beautify scripts using your favourite AI model — powered by your own API key.
AI Coder Overview
AI Coder
Integrated directly into the script editor
- Generate scripts from a natural language prompt
- Fix errors and bugs automatically
- Improve and optimise existing scripts
- Explain what a script does in plain language
- Annotate scripts with inline comments
- Beautify with consistent indentation and block structure
- Format output for ServerEngine logging
- Powered by your own API key
Hover to see details
Script Editor
A full-featured editor with powerful integrated tools
- AI Coder built-in for instant AI assistance
- Open script directly in PowerShell ISE
- Open script directly in Visual Studio Code
- Flowchart generator — visualise script logic
- Syntax highlighting for PowerShell and Python
- Save and run scripts directly from the editor
Hover to see details
AI Coder Actions
Generate
Create a script from a plain language description
Generate
Describe what you need in plain English and AI Coder writes the full script — ready to run or refine further.
Fix
Automatically detect and repair errors in your script
Fix
Paste a broken script and AI Coder identifies the issues, explains them, and returns a corrected version.
Improve
Optimise and enhance scripts for performance and clarity
Improve
AI Coder refactors your script for better performance, readability, and maintainability without changing its behaviour.
Explain
Get a plain-language breakdown of what any script does
Explain
Select any script — AI Coder returns a clear, step-by-step explanation of its logic in plain English, ideal for onboarding or auditing.
Annotate
Add inline comments throughout your script automatically
Annotate
AI Coder adds meaningful comments to every block and key line, making scripts self-documenting for your whole team.
Beautify
Enforce consistent indentation and clean block structure
Beautify
One click reformats your entire script with consistent indentation and clean block structure — no manual cleanup needed.
Log
Format script output for ServerEngine’s logging system
Log
AI Coder rewrites your script’s output statements to match ServerEngine’s logging format — making every run fully traceable in the job log.
Model Selection
The correct AI is automatically assigned per model ID
Model Selection
You pick your preferred model for the AI is assigned automatically but can be overridden with a different AI ex. OpenRouter.
Supported AI Models
ChatGPT
openai.com
Hover for details
ChatGPT
GPT-5 and GPT-4.1 series offer a range from ultra-fast nano models for quick generation to mini variants for more complex script tasks. Great all-round reliability.
Claude
anthropic.com
Hover for details
Claude
Claude excels at nuanced code understanding, explanation, and annotation. Opus for complex tasks, Sonnet for balanced speed and quality, Haiku for rapid generation.
DeepSeek
deepseek.com
Hover for details
DeepSeek
DeepSeek-Coder is purpose-built for code generation and performs exceptionally well on PowerShell and Python. DeepSeek-Chat handles explanation and annotation tasks.
OpenRouter
openrouter.ai
Hover for details
OpenRouter
Access Google Gemini, Qwen, and GPT through a single API key. Qwen3-Coder-Next and GPT-3.5-Turbo are our top recommendations for fast, high-quality script generation.
Script Editor Tools
Flowchart Generator
Visualise your script logic automatically
- Auto-generate a flowchart from any script
- Visualise branching logic, loops, and conditions
- Great for documentation and code reviews
- Supports PowerShell scripts
- One click directly from the script editor
Hover to see details
External Editor Integration
Open scripts in your favourite external editor instantly
- Open directly in PowerShell ISE with one click
- Open directly in Visual Studio Code with one click
- Changes sync back to ServerEngine automatically
- Use your full IDE feature set for complex editing
- Quick access buttons always visible in the editor
Hover to see details
Open in PowerShell ISE
PowerShell ISE
Launch the current script directly in PowerShell ISE for full debugging, breakpoints, and step-through execution.
Open in Visual Studio Code
Visual Studio Code
Open the script in VS Code instantly and use extensions, IntelliSense, and git integration for professional editing.
Generate Flowchart
Generate Flowchart
Instantly visualise the script’s logic as a flowchart — branches, loops, and conditions mapped automatically.
AI Coder Panel
AI Coder Panel
Open the AI Coder panel to Generate, Fix, Improve, Explain, Annotate, Beautify or Log your script — all from one place inside the editor.