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-Powered Generation
Your Own API Key
Multi-Model Support
Integrated Editor
Flowchart Generator

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

AI Coder Details
Location:Integrated in Script Editor
API Key:Your own (OpenRouter / Anthropic)
Model selection:Auto-assigned per action
Actions:7 built-in AI actions
Script types:PowerShell, Python

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

Editor Details
External editors:PowerShell ISE, VS Code
Flowchart:Auto-generated from script logic
AI Coder:Built-in, always available
Languages:PowerShell, Python

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

ChatGPT

openai.com

gpt-5-mini gpt-5-nano gpt-4.1-mini gpt-4.1-nano

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

Claude

anthropic.com

claude-opus-4-6 claude-opus-4-5 claude-opus-4-1 claude-sonnet-4-5 claude-haiku-4-5

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

deepseek.com

deepseek-chat deepseek-coder

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

openrouter.ai

google/gemini-2.5-flash qwen/qwen3-coder-next openai/gpt-3.5-turbo

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.

For the best script generation results we recommend qwen/qwen3-coder-next or openai/gpt-3.5-turbo via OpenRouter — excellent speed, code quality, and cost efficiency. Model availability may change over time.

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

Flowchart Generator
Trigger:One click in script editor
Input:PowerShell scripts only
Output:Visual logic flowchart
Use for:Docs, review, onboarding

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

External Editors
PowerShell ISE:One-click launch
Visual Studio Code:One-click launch
Sync:Automatic on save
Access:Quick-action buttons in editor
Quick Action

Open in PowerShell ISE

PowerShell ISE

Launch the current script directly in PowerShell ISE for full debugging, breakpoints, and step-through execution.

Quick Action

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.

Quick Action

Generate Flowchart

Generate Flowchart

Instantly visualise the script’s logic as a flowchart — branches, loops, and conditions mapped automatically.

AI Coder

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.