Cleans pasted AI/web scripts
Paste Clean + Format (Ctrl+Shift+Alt+V) strips markdown fences, PS> prompts, and smart quotes from copied text so the script runs without hand-editing.
Small, sharp, no nonsense.
A Tauri desktop PowerShell editor built for the paste-run-debug loop: clean AI- or web-copied scripts, run with F5 against PowerShell 5.1 or 7, and copy a Markdown debug bundle of output, exit code, and PSScriptAnalyzer findings straight back into the chat.
param($ComputerName)$s = New-PSSession -ComputerName $ComputerNameInvoke-Command -Session $s { Get-Service -Name 'WinRM'}Copy-PSForgeDebugBundle -Session $sPaste Clean + Format (Ctrl+Shift+Alt+V) strips markdown fences, PS> prompts, and smart quotes from copied text so the script runs without hand-editing.
Detects installed Windows PowerShell 5.1 and PowerShell 7 hosts and gates F5 on PSScriptAnalyzer findings via a configurable warn/block run gate.
Copy Debug Bundle produces a single Markdown block with script text, terminal output, exit code, and analyzer problems for pasting into a ticket or AI thread.
The real PowerShell workflow, most of the time, is: paste a script someone handed you, run it, read the error, fix one line, run it again. PSForge is built around that loop — a Monaco editor, an integrated terminal, F5 to run, PSScriptAnalyzer telling you what’s wrong before you run it, and one-click debug bundles for the chat or ticket where the script came from. No VS Code, no profile gymnastics, just the loop.
PSForge is tuned for this workflow:
The default layout gives the terminal a large part of the window so run output is easy to read.
Download the latest installer from:
https://github.com/Swatto86/psforge/releases
Current published release: v1.4.20.
| Platform | Artifacts |
|---|---|
| Windows | portable .exe, .msi, setup .exe |
| macOS | Universal .dmg |
| Linux | .deb, .rpm, AppImage |
The in-app updater checks GitHub Releases on startup unless disabled in Settings.
Open Settings and enable Assistant mode if you want paste-run-debug defaults in one toggle. It configures the editor for cleaned paste, scratch save, clear terminal before run, and analyzer-aware execution.
Useful settings:
| Setting | Suggested value |
|---|---|
| Clean Paste | On |
| Run after Paste Clean + Format | On if you want one-gesture execution |
| Run when Ctrl+V was cleaned | Off to avoid accidental execution on small edits |
| Save before F5 | On |
| Auto-save untitled to scratch | On |
| Clear terminal before run | On |
| PSSA run gate | Warn |
| Working directory | File folder or pinned preset |
Project-level .psforge.json can define working directory and analyzer behavior next to scripts.
| Keys | Action |
|---|---|
Ctrl+Shift+Alt+V | Paste Clean + Format |
Ctrl+V | Normal paste with cleanup when enabled |
F5 | Run script, or debug when breakpoints exist |
F8 | Run selection or current line |
Shift+F5 | Stop |
Ctrl+Shift+P | Command palette |
Ctrl+Shift+E | Explain selection with AI |
Ctrl+F1 | Shortcut list |
Ctrl+J | Snippets |
Use Copy Debug Bundle when asking for help. It copies a Markdown bundle containing script text, terminal output, exit code, and PSScriptAnalyzer problems. You can also copy the last F5 run or the full terminal output. This is faster and less error-prone than copying each pane separately.
git clone https://github.com/Swatto86/psforge.git
cd psforge
npm ci
npm run tauri dev
Quality/build commands:
npm test
npm run build
npm run tauri build
Set the working directory mode in Settings or add a .psforge.json file beside the script.
Open the Problems panel. Fix the reported issues, or change the PSSA run gate when you intentionally want warning-only behavior.
Use Ctrl+Shift+Alt+V to clean and format pasted content.
https://github.com/Swatto86/psforgehttps://github.com/Swatto86/psforge/releases