A Python patcher that rewrites six prompt-template tracks in the WorkBuddy desktop client at once, with a Windows batch file and a macOS one-click bundle.
- v3.9
- Published at
- 15h ago
- 541
- Stars
- 3,815
- Download
- Synced at
- 8h ago
Latest release
v3.9Nov 26, 2026, 01:04 PMDownloads slow? Switch the source anytime above
README
Project Overview
The usual approach is to find a template, edit it, restart, discover another place was missed, and repeat. This repo folds six injection tracks into one command: system templates, quick mode, root proxy templates, plugin cache, per-turn reminders and the global SOUL.md. A missing track ends the run with exit code 1.
| Item | Value |
|---|---|
| Role | Prompt injection for the WorkBuddy client |
| Stack | Python + Windows BAT |
| Version | v3.8 |
| License | Not declared |
| Platforms | Windows, macOS |
| Traction | ~478 stars |
Key Features
- Two editions: handles the China edition and WorkBuddy AI international (v5.9.4+) side by side, copes with spaces in install paths, and patches both when they coexist on one machine.
- Missing-tag fallback: from client 5.11.x the
welcomemodetemplate may be a root-proxy mode with no XML tags at all; the script detects that and prependscontent_policy. - Process locks: closes
WorkBuddy.exe,WorkBuddyAI.exeandworkbuddy-editor-sdk-supervisor.exebefore patching or restoring. - Factory backup: seals the original templates on first run, restores them losslessly in one step, and adds newly introduced modes to the backup.
- Diagnostics:
--verifyprints a six-track summary,--json-reportprints JSON with version fingerprints.
Three Steps
- Launch WorkBuddy once and sign in so the client unpacks its plugin cache, then quit it completely.
- On Windows double-click the one-click
.bat; on macOS double-click the matching.command. - Reopen the client and send a message to see whether anything changed.
Command Line
python batch_patch_prompts.py --auto # full deploy
python batch_patch_prompts.py --verify --verbose # check only, per-track detail
python batch_patch_prompts.py --dry-run --auto # dry run, writes nothing
python batch_patch_prompts.py --auto --require-closed
python batch_patch_prompts.py --auto --json-reportExit code 0 means all six tracks are green, 1 means a gap, 2 means the gate blocked the run because the client was open.
Caveats
- A silent client upgrade resets the templates; rerun the script afterwards.
- No license is declared, so confirm terms before redistributing.
- The README recommends DeepSeek-V4.1-Flash and warns against GLM-5.3-Flash; that is the author's preference, not a capability of the script.
- It edits local client files, so keep the one-click restore handy.
What it saves is the rework from missing a layer, not the quality of the prompt itself.
Release history
Sort