workbuddy-bridge-setup
/workbuddy-bridge-setup
Use when setting up, repairing, or verifying the local WorkBuddy bridge that exposes WorkBuddy models to Hermes/other agents with a delivery layer.
- Author
- tiqi9896 ↗
- Repository
- workbuddy-hermes-bridge ↗
- Licence
- MIT
- Last repository change
- 07.11.2026
Assessment and security
- Files in this package
- 2
- Scripts
- 0
- HTML comments
- 0
- URLs in SKILL.md
- 4
No signals detected. Repository changed on 07.11.2026, without references to retired models or APIs.
MIT, open: use and modify while retaining author attribution.
What it does and when to use it
Use when setting up, repairing, or verifying the local WorkBuddy bridge that exposes WorkBuddy models to Hermes/other agents with a delivery layer.
Original author description
Use when setting up, repairing, or verifying the local WorkBuddy bridge that exposes WorkBuddy models to Hermes/other agents with a delivery layer.
How it works
- What this does
- Setup
- Repair path
- Coverage
- Tuning
- Rules
- Troubleshooting
- Scope
SKILL.md preview
--- name: workbuddy-bridge-setup description: Use when setting up, repairing, or verifying the local WorkBuddy bridge that exposes WorkBuddy models to Hermes/other agents with a delivery layer. --- # WorkBuddy bridge — agent skill Install, verify, and repair the local WorkBuddy reverse proxy. `AGENTS.md` in the repo root is the long-form version of this document. ## What this does Two halves in one process: - **Transport** — `bridge/bridge.py` re-exposes WorkBuddy's cloud API (catalog + chat completions) as a local OpenAI-compatible endpoint on `127.0.0.1:8799`. - **Delivery layer** — `bridge/breaker.py` injects a delivery contract into every request, detects refusals/downgrades/fade-outs, and retries with escalation until a real artifact comes back. The delivery layer must live in the bridge. There is no agent-side plugin substitute — if the agent's `base_url` is not the bridge, the contract is never applied. ## Setup ```bash git clone https://github.com/tiqi9896/workbuddy-hermes-bridge.git cd workbuddy-hermes-bridge python bridge/capture_token.py # requires the signed-in desktop client python bridge/bridge.py --verbose # listens on 127.0.0.1:8799 ``` Verify: ```bash python bridge/verify_target_models.py # expect: passed 21 failed 0 total 21 curl http://127.0.0.1:8799/health curl http://127.0.0.1:8799/breaker # enabled=true, injections rising ``` Point the agent at it: ```bash hermes config set model.provider workbuddy hermes config set model.base_url http://127.0.0.1:8799/v1 hermes config set model.api_key workbuddy-local-bridge ``` ## Repair path **Always check the disk state, never just the HTTP status.** ```bash python bridge/target_guard.py ``` It runs the coverage self-check and, if `breaker.py` was truncated or corrupted, restores it from `backup/breaker.py.good` (sha256-verified), triggers a hot reload via `GET /reload`, and re-verifies. Why this matters: `importlib.reload` preserves existing module attributes, so a corrupted file on disk can leave a running bridge behaving perfectly while a restart would drop every target model out of the delivery layer. A 200 from `/health` is not proof the file is intact. This has happened for real — a 140 KB `breaker.py` was cut to 12.5 KB by an edit script whose anchor search failed and sliced with `-1`. ## Coverage The target-model addendum (the strongest section) applies to: - `hy4free`, `hy4std`, `hy4-preview-x` - `deepseek-v4.1-flash` and the `deepseek*` family - `space-bunny` and the `space*` family - `minimax-m3.1-flash` and the `minimax*` family - `glm-5.3-flash` and the `glm*` family - `auto`, `default`, `fast-model`, `balanced-model`, `deep-model` The routing tiers matter: their upstream target is not visible to the client, so they must be treated as targets explicitly rather than matched by name prefix. ## Tuning Text lives in `bridge/bridge_text/` and `bridge/breaker_prompt*.txt`. Code lives in the `.py` files. Do not mix them. | Want to change | Edit | |---|---| | base prompt | `bridge/breaker_prompt.txt` / `.en.txt` | | strongest target section | `bridge/bridge_text/unlimited.txt` / `.en.txt` | | adult clause | `bridge/bridge_text/adult_clause.txt` / `.en.txt` | | per-family clauses | `bridge/bridge_text/family_addenda.json` / `.en.json` | | adult genre carriers | `bridge/bridge_text/adult_carriers.json` / `.en.json` | | escalation ladder | `bridge/bridge_text/adult_escalation.json` / `.en.json` | | language | `config.json` → `breaker_lang` | Resources are re-read per request. The constants embedded in `breaker.py` and `bridge.py` are the fallback — keep them in sync, or behavior will depend on which file exists. ## Rules 1. Never commit `bridge/token.json`, `bridge/bridge.log`, `bridge/models_cache.json`, or `bridge/backup/`. They are gitignored. 2. Never hardcode machine paths. Use `Path(__file__).parent` or the `WORKBUDDY_APP_EXE` / `WB_PYTHON` environment variables. 3. After changing `breaker.py` or `bridge.py`, run `python bridge/verify_target_models.py` and report the result. 4. A successful compile does not mean the file is intact. 5. The delivery layer must stay language-neutral in code. ## Troubleshooting | Symptom | Fix | |---|---| | 401 from the bridge | `python bridge/capture_token.py` | | self-check fails | `python bridge/target_guard.py` | | agent still gets refusals | confirm `base_url` is the bridge; check `injections` rises | | bridge exits at startup | port in use — change `port` in `config.json` | | capture cannot find the app | wrong `app_exe` — re-locate `WorkBuddy.exe` | | requests hang | raise `request_timeout_seconds` | ## Scope A behavior-contract layer for models the user calls with their own WorkBuddy account. It does not bypass provider-side enforcement and does not make third-party systems more accessible. Use it for authorized work and comply with the provider's terms and applicable law.
Files in this package (2)
- SKILL.md 5 KB
- SKILL.zh-CN.md 5 KB
Versions
| Repository | Score | Licence |
|---|---|---|
| This page · tiqi9896/workbuddy-hermes-bridge | 100 | MIT |
| tiqi9896/workbuddy-hermes-bridge-zh | 100 | MIT |
Database snapshot: 13.11.2026 · package version 6e77fd96534a (SHA-256 digest of the entire package)
Downloads in the last 30 days: 1 · ranking
Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.
Similar skills
- 100workbuddy-cache-monitor
统计并展示 WorkBuddy 每次任务的上下文缓存命中率、命中/未命中 token、请求次数与时间分布。当用户询问缓存命中率、缓存复用、命中率低、token 消耗构成、某次任务花了多少、想看看板或用量报告时使用。 - 100workbuddy-skin-change
给 WorkBuddy 客户端换皮肤背景图。用户发来一张图片并说「换皮肤 / 换主题背景 / 用这张图做主题 / 换成这个背景」,或提到 workbuddy 皮肤、外观背景时使用。默认作用对象是「经典 QQ」主题,只改首页主区背景与配套的玻璃质感,不动左侧栏、不动应用包,全程可回滚。 - 95workbuddy-account-switch
本机 WorkBuddy 多账号切换器。当用户提到"切换账号、切到XX号、换个账号、保存当前账号、建账号档案、看看有哪些账号"等本机 WorkBuddy 账号管理需求时使用此技能。AI 负责查询/确认/准备任务文件,用户双击桌面图标打开图形界面一键切换。 - 100buddy-control
用 DSH 当中控台:先摸清本机装了什么、缺什么并全自动部署(装软件、打通 MCP/插件/模型),再把活派给 CodeBuddy / WorkBuddy 并自己验收——不合格就给修改方向打回同一会话返工。派活、返工、换机器部署、多文件改造、要求「必须过验收 / 必须改到对」的任务时加载。 - 81tiangong-auto-research-workbuddy
Adapt a managed Tiangong Auto Research workflow to a native WorkBuddy or CodeBuddy producer running in Default Permission mode, especially when independent review needs the explicit sandbox-bridge transport. Use only as a thin router to the project-installed… - 90curate-workbuddy-resource
Review a public repository, document, Skill, MCP integration, workflow, or guide for a WorkBuddy resource directory and recommend include, hold, or exclude using traceable relevance, quality, maintenance, license, provenance, and safety evidence. Use when triaging or re-checking…