A clipboard-driven code editing toolkit for working with AI assistants without IDE integration. Copy structured output, type a short alias, and edits apply with backups and syntax checking.
The AI formats edits in a structured clipboard format. You copy, press a hotkey, and the system applies them.
Each command reads structured content from your clipboard and applies it to files.
! prefixes (Claude-style shell commands).Read code and copy structured output to clipboard — for feeding context back to the AI.
AutoHotkey v2 bindings for instant execution. No terminal typing needed.
| Hotkey | Action | Details |
|---|---|---|
| Win + Shift + Enter | Execute clipboard | Auto-detects: batch (#-#), inspect (snap/context/outline), shell (!), or raw PowerShell |
| Win + Shift + C | Clipboard ↔ Sublime Text | Opens clipboard in Sublime with bidirectional sync — edits save back to clipboard |
| Win + Shift + P | Python probe | Run clipboard as Python script in the configured probe directory |
| Win + Shift + D | Set probe directory | Input dialog to set the working directory for probe runs |
| Win + Shift + R | Copy rules | Copy the AI rules template to clipboard for pasting into a chat session |
| Win + Shift + U | Open as URL | Opens clipboard as URL, auto-prepends https://, or falls back to Google search |
| Win + Shift + B | Browse to path | Opens clipboard path in Explorer — reveals files, opens folders |
| Win + Shift + A | Tile terminals | Arrange all Windows Terminal windows in a grid |
| Win + Shift + / | Toggle server | Show/hide the background PowerShell server window |
Watch simulated terminal sessions showing the system in action.
All files are portable — no hardcoded paths. See the setup guide below for installation.
set name path that survive profile reloads.Get everything running in about 5 minutes.
Install these if you don't have them:
PowerShell 7+ https://aka.ms/powershell
AutoHotkey v2 https://www.autohotkey.com/
Sublime Text https://www.sublimetext.com/ (optional, for clipboard bridge)
Put the scripts where your PowerShell profile can find them:
$scripts = "$env:USERPROFILE\Scripts"
New-Item -ItemType Directory -Force -Path "$scripts\profile"
New-Item -ItemType Directory -Force -Path "$scripts\autohotkey"
New-Item -ItemType Directory -Force -Path "$env:USERPROFILE\pocket"
New-Item -ItemType Directory -Force -Path "$env:USERPROFILE\backups"
Move downloaded files to their locations:
Scripts\profile\profile_clipboard_helpers.ps1
Scripts\profile\profile_set_shortcut.ps1
Scripts\autohotkey\clipboard_to_pwsh.ahk
Scripts\autohotkey\profile_hotkey_server.ps1
Scripts\autohotkey\profile_hotkey_launcher.ps1
Scripts\autohotkey\clip_watcher.ps1
pocket\rules_template.txt (rename to rules.txt and customize)
Add these lines to your $PROFILE:
$scripts = "$env:USERPROFILE\Scripts"
# Clipboard patch system
$ProfileScriptsRoot = Join-Path $scripts 'profile'
. (Join-Path $ProfileScriptsRoot 'profile_clipboard_helpers.ps1')
. (Join-Path $ProfileScriptsRoot 'profile_set_shortcut.ps1')
# Load dynamic shortcuts
$DynamicShortcutsFile = Join-Path $ProfileScriptsRoot 'profile_dynamic_shortcuts.ps1'
if (Test-Path $DynamicShortcutsFile) { . $DynamicShortcutsFile }
# Aliases
Set-Alias file Write-FromClipboard -Scope Global -Force
Set-Alias drop Apply-ClipboardFunctionPatch -Scope Global -Force
Set-Alias fold Apply-ClipboardFoldPatch -Scope Global -Force
Set-Alias ins Insert-ClipboardAtLine -Scope Global -Force
Set-Alias nix Remove-FileSection -Scope Global -Force
Set-Alias batch Invoke-ClipboardBatch -Scope Global -Force
Set-Alias probe Invoke-ClipboardProbe -Scope Global -Force
if (Test-Path Alias:diff) { Remove-Item Alias:diff -Force }
Set-Alias diff Compare-WithBackup -Scope Global -Force
Set-Alias rev Restore-LastBackup -Scope Global -Force
Double-click clipboard_to_pwsh.ahk to start the hotkey system. It will auto-launch the background PowerShell server. Add it to your startup folder if you want it on every boot.
$ahk = "$env:USERPROFILE\Scripts\autohotkey\clipboard_to_pwsh.ahk"
$startup = [Environment]::GetFolderPath("Startup")
Copy-Item $ahk $startup # auto-start on login
Open any AI chat, paste your rules file (Win+Shift+R), and start coding. The AI will format edits as batch blocks that you can apply with Win+Shift+Enter.