Skip to content

armgit / avibe

Public Imported from GitHub
0

Make your computer a home for your AI partner. Avibe is the local-first Agent OS: Vibey, its built-in AI partner, works out of the box, and Claude Code, Codex & OpenCode run unchanged beside it — reach them from your browser, phone, or any chat app.

chore(rebrand): update avibe repo links and skill slug

Call White3aef22054536
diff --git a/.agents/skills/use-avibe b/.agents/skills/use-avibe
new file mode 120000
index 000000000..a09a29b58
--- /dev/null
+++ b/.agents/skills/use-avibe
@@ -0,0 +1 @@
+../../skills/use-avibe
\ No newline at end of file
diff --git a/core/system_prompt_injection.py b/core/system_prompt_injection.py
index 873fceedb..9f58fa02d 100644
--- a/core/system_prompt_injection.py
+++ b/core/system_prompt_injection.py
@@ -33,7 +33,7 @@ _BASE_CAPABILITIES_BODY = """\
Avibe is the local-first Agent OS: it turns this machine into the runtime an agent lives in, and the user operates that runtime through Web or IM surfaces such as Slack, Discord, Telegram, WeChat, and Lark/Feishu. \
The user is interacting with you through Avibe.
-If the user asks you to configure, repair, or operate Avibe itself, read `https://github.com/avibe-bot/avibe/raw/master/skills/use-vibe-remote/SKILL.md` before making changes. Use it for configuration file locations, scope rules, routing behavior, scheduled-task operations, and troubleshooting steps.
+If the user asks you to configure, repair, or operate Avibe itself, read `https://github.com/avibe-bot/avibe/raw/master/skills/use-avibe/SKILL.md` before making changes. Use it for configuration file locations, scope rules, routing behavior, scheduled-task operations, and troubleshooting steps.
Avibe provides optional capabilities:
diff --git a/docs/INCUS_TENANTS.md b/docs/INCUS_TENANTS.md
index 302f791b2..6eec4c2f7 100644
--- a/docs/INCUS_TENANTS.md
+++ b/docs/INCUS_TENANTS.md
@@ -121,7 +121,7 @@ To test a branch or fork:
```bash
python3 scripts/incus_tenant.py create branch-test \
- --install-package-spec 'git+https://github.com/cyhhao/vibe-remote.git@master' \
+ --install-package-spec 'git+https://github.com/avibe-bot/avibe.git@master' \
--ui-host-port 15126
```
diff --git a/docs/INCUS_TENANTS_ZH.md b/docs/INCUS_TENANTS_ZH.md
index ded82817d..100f57520 100644
--- a/docs/INCUS_TENANTS_ZH.md
+++ b/docs/INCUS_TENANTS_ZH.md
@@ -110,7 +110,7 @@ python3 scripts/incus_tenant.py create paid-01 \
```bash
python3 scripts/incus_tenant.py create branch-test \
- --install-package-spec 'git+https://github.com/cyhhao/vibe-remote.git@master' \
+ --install-package-spec 'git+https://github.com/avibe-bot/avibe.git@master' \
--ui-host-port 15126
```
diff --git a/docs/INSTALL_FOR_AI.md b/docs/INSTALL_FOR_AI.md
index 410baaf4f..3519727c1 100644
--- a/docs/INSTALL_FOR_AI.md
+++ b/docs/INSTALL_FOR_AI.md
@@ -27,7 +27,7 @@ command -v codex || true
On Windows, prefer the WSL guide unless the user explicitly wants native PowerShell:
-- https://github.com/cyhhao/vibe-remote/blob/master/docs/WINDOWS_WSL.md
+- https://github.com/avibe-bot/avibe/blob/master/docs/WINDOWS_WSL.md
## Step 2: Install Avibe
@@ -37,12 +37,12 @@ macOS / Linux:
curl -fsSL https://avibe.bot/install.sh | bash
```
-Open source — view the [script on GitHub](https://github.com/cyhhao/vibe-remote/blob/master/install.sh). The short URL is a 307 redirect to that file.
+Open source — view the [script on GitHub](https://github.com/avibe-bot/avibe/blob/master/install.sh). The short URL is a 307 redirect to that file.
Windows PowerShell:
```powershell
-irm https://raw.githubusercontent.com/cyhhao/vibe-remote/master/install.ps1 | iex
+irm https://raw.githubusercontent.com/avibe-bot/avibe/master/install.ps1 | iex
```
Verify:
@@ -111,9 +111,9 @@ In the wizard, help the user choose:
Platform docs:
-- Slack: https://github.com/cyhhao/vibe-remote/blob/master/docs/SLACK_SETUP.md
-- Discord: https://github.com/cyhhao/vibe-remote/blob/master/docs/DISCORD_SETUP.md
-- Telegram: https://github.com/cyhhao/vibe-remote/blob/master/docs/TELEGRAM_SETUP.md
+- Slack: https://github.com/avibe-bot/avibe/blob/master/docs/SLACK_SETUP.md
+- Discord: https://github.com/avibe-bot/avibe/blob/master/docs/DISCORD_SETUP.md
+- Telegram: https://github.com/avibe-bot/avibe/blob/master/docs/TELEGRAM_SETUP.md
- WeChat: use the in-app wizard.
- Lark / Feishu: use the in-app wizard.
diff --git a/docs/INSTALL_FOR_AI_ZH.md b/docs/INSTALL_FOR_AI_ZH.md
index d2d0e834e..5c516f24b 100644
--- a/docs/INSTALL_FOR_AI_ZH.md
+++ b/docs/INSTALL_FOR_AI_ZH.md
@@ -27,7 +27,7 @@ command -v codex || true
Windows 用户默认推荐 WSL:
-- https://github.com/cyhhao/vibe-remote/blob/master/docs/WINDOWS_WSL_ZH.md
+- https://github.com/avibe-bot/avibe/blob/master/docs/WINDOWS_WSL_ZH.md
## 第 2 步:安装 Avibe
@@ -37,12 +37,12 @@ macOS / Linux:
curl -fsSL https://avibe.bot/install.sh | bash
```
-开源脚本,源码在 [GitHub](https://github.com/cyhhao/vibe-remote/blob/master/install.sh) 上;该短链只是到这个文件的 307 重定向。
+开源脚本,源码在 [GitHub](https://github.com/avibe-bot/avibe/blob/master/install.sh) 上;该短链只是到这个文件的 307 重定向。
Windows PowerShell:
```powershell
-irm https://raw.githubusercontent.com/cyhhao/vibe-remote/master/install.ps1 | iex
+irm https://raw.githubusercontent.com/avibe-bot/avibe/master/install.ps1 | iex
```
验证:
@@ -111,9 +111,9 @@ vibe
平台文档:
-- Slack: https://github.com/cyhhao/vibe-remote/blob/master/docs/SLACK_SETUP_ZH.md
-- Discord: https://github.com/cyhhao/vibe-remote/blob/master/docs/DISCORD_SETUP_ZH.md
-- Telegram: https://github.com/cyhhao/vibe-remote/blob/master/docs/TELEGRAM_SETUP_ZH.md
+- Slack: https://github.com/avibe-bot/avibe/blob/master/docs/SLACK_SETUP_ZH.md
+- Discord: https://github.com/avibe-bot/avibe/blob/master/docs/DISCORD_SETUP_ZH.md
+- Telegram: https://github.com/avibe-bot/avibe/blob/master/docs/TELEGRAM_SETUP_ZH.md
- 微信:使用应用内向导。
- 飞书 / Lark:使用应用内向导。
diff --git a/docs/WINDOWS_WSL.md b/docs/WINDOWS_WSL.md
index 38a72f4a2..badd9a4bf 100644
--- a/docs/WINDOWS_WSL.md
+++ b/docs/WINDOWS_WSL.md
@@ -188,7 +188,7 @@ In the `Ubuntu terminal`, run:
curl -fsSL https://avibe.bot/install.sh | bash
```
-Open source — view the [script on GitHub](https://github.com/cyhhao/vibe-remote/blob/master/install.sh). The short URL is a 307 redirect to that file.
+Open source — view the [script on GitHub](https://github.com/avibe-bot/avibe/blob/master/install.sh). The short URL is a 307 redirect to that file.
After installation finishes, still in the same Ubuntu terminal, run:
diff --git a/docs/WINDOWS_WSL_ZH.md b/docs/WINDOWS_WSL_ZH.md
index e43a6b832..b165046ea 100644
--- a/docs/WINDOWS_WSL_ZH.md
+++ b/docs/WINDOWS_WSL_ZH.md
@@ -190,7 +190,7 @@ cd ~/work
curl -fsSL https://avibe.bot/install.sh | bash
```
-开源脚本,源码在 [GitHub](https://github.com/cyhhao/vibe-remote/blob/master/install.sh) 上;该短链只是到这个文件的 307 重定向。
+开源脚本,源码在 [GitHub](https://github.com/avibe-bot/avibe/blob/master/install.sh) 上;该短链只是到这个文件的 307 重定向。
安装完成后,继续在同一个 Ubuntu 终端里执行:
diff --git a/docs/opencode-poll-loop-refactor/NEXT_STEPS.md b/docs/opencode-poll-loop-refactor/NEXT_STEPS.md
index 039ae34c5..8e731a911 100644
--- a/docs/opencode-poll-loop-refactor/NEXT_STEPS.md
+++ b/docs/opencode-poll-loop-refactor/NEXT_STEPS.md
@@ -27,7 +27,7 @@
**How to test:**
```bash
-cd /Users/cyh/vibe-remote
+cd /Users/cyh/avibe
git checkout refactor/unify-opencode-poll-loop
# Install in editable mode
@@ -129,7 +129,7 @@ gh pr create \
--head refactor/unify-opencode-poll-loop
# Or visit:
-# https://github.com/cyhhao/vibe-remote/pull/new/refactor/unify-opencode-poll-loop
+# https://github.com/avibe-bot/avibe/pull/new/refactor/unify-opencode-poll-loop
```
### 3. Handle PR #28 Decision 🔀
@@ -283,7 +283,7 @@ vibe
tail -f ~/.vibe_remote/logs/vibe_remote.log
# Create PR (via web)
-# https://github.com/cyhhao/vibe-remote/pull/new/refactor/unify-opencode-poll-loop
+# https://github.com/avibe-bot/avibe/pull/new/refactor/unify-opencode-poll-loop
```
## Decision Points
diff --git a/docs/opencode-poll-loop-refactor/REFACTOR_PLAN.md b/docs/opencode-poll-loop-refactor/REFACTOR_PLAN.md
index 1a5b11a46..aadd8172b 100644
--- a/docs/opencode-poll-loop-refactor/REFACTOR_PLAN.md
+++ b/docs/opencode-poll-loop-refactor/REFACTOR_PLAN.md
@@ -165,7 +165,7 @@ async def _process_question_answer(request, pending):
QUESTION_WAIT_TIMEOUT_SECONDS = 30 # Change from 30*60
# Start vibe in editable mode
-cd /Users/cyh/vibe-remote
+cd /Users/cyh/avibe
uv tool install --force --editable .
vibe
diff --git a/docs/opencode-poll-loop-refactor/REFACTOR_SUMMARY.md b/docs/opencode-poll-loop-refactor/REFACTOR_SUMMARY.md
index f0fc8547f..32462f150 100644
--- a/docs/opencode-poll-loop-refactor/REFACTOR_SUMMARY.md
+++ b/docs/opencode-poll-loop-refactor/REFACTOR_SUMMARY.md
@@ -378,7 +378,7 @@ async def handle_message(request):
2. **Create PR:**
```bash
- # Visit: https://github.com/cyhhao/vibe-remote/pull/new/refactor/unify-opencode-poll-loop
+ # Visit: https://github.com/avibe-bot/avibe/pull/new/refactor/unify-opencode-poll-loop
```
3. **PR Description should include:**
@@ -448,7 +448,7 @@ async def handle_message(request):
## References
-- **PR #28:** https://github.com/cyhhao/vibe-remote/pull/28
+- **PR #28:** https://github.com/avibe-bot/avibe/pull/28
- **Refactor Branch:** `refactor/unify-opencode-poll-loop`
- **Original Session:** `ses_4236ce232ffeQskkTiEnEreZtj`
- **Main File:** `modules/agents/opencode_agent.py`
diff --git a/docs/opencode-poll-loop-refactor/TESTING_GUIDE.md b/docs/opencode-poll-loop-refactor/TESTING_GUIDE.md
index 2169c3541..864e93dbc 100644
--- a/docs/opencode-poll-loop-refactor/TESTING_GUIDE.md
+++ b/docs/opencode-poll-loop-refactor/TESTING_GUIDE.md
@@ -50,7 +50,7 @@ This guide covers testing the refactored OpenCode agent poll loop that unifies q
### 1. Install Editable Version
```bash
-cd /Users/cyh/vibe-remote
+cd /Users/cyh/avibe
git checkout refactor/unify-opencode-poll-loop
# Install in editable mode so changes take effect immediately
diff --git a/docs/plans/agent-native-resume-session-list.md b/docs/plans/agent-native-resume-session-list.md
index fa8c26dad..8f8da82be 100644
--- a/docs/plans/agent-native-resume-session-list.md
+++ b/docs/plans/agent-native-resume-session-list.md
@@ -178,7 +178,7 @@ Directory encoding rule:
- absolute path with `/` replaced by `-`
- example:
- - `/Users/cyh/vibe-remote`
+ - `/Users/cyh/avibe`
- `-Users-cyh-vibe-remote`
#### Metadata source
diff --git a/docs/plans/rebrand-avibe.md b/docs/plans/rebrand-avibe.md
index 301bf70fb..ca0c3357c 100644
--- a/docs/plans/rebrand-avibe.md
+++ b/docs/plans/rebrand-avibe.md
@@ -50,10 +50,10 @@ From `pyproject.toml`, `AGENTS.md`, live CLI, and a repo-wide grep:
### Machine-critical endpoint inventory (the parts that can strand old users)
| Endpoint | Location | After-transfer risk |
|---|---|---|
-| **Self update-check** | `core/update_checker.py` checks versions from PyPI (`https://pypi.org/pypi/vibe-remote/json`) and reads GitHub release bodies from `api.github.com/repos/cyhhao/vibe-remote/releases/tags` for update-notification policy. | **HIGH** — the version source must move to `avibe-os` when the new package ships; the GitHub release-body lookup must move to `avibe-bot/avibe` at transfer and/or rely on GitHub's redirect only for old clients. |
-| Install one-liner | Public entry is already `avibe.bot`; the hosted backend currently redirects to `raw.githubusercontent.com/cyhhao/vibe-remote/master/install.sh` / `.ps1`. `install.sh` / `install.ps1` themselves still use `REPO="cyhhao/vibe-remote"`. | MED — `raw.githubusercontent.com` does NOT reliably redirect after rename. Fix: update the avibe.bot backend redirect target to the new repo path at transfer time, and update script fallback repo metadata in this branch. |
+| **Self update-check** | `core/update_checker.py` checks versions from PyPI (`https://pypi.org/pypi/vibe-remote/json`) and reads GitHub release bodies from `api.github.com/repos/cyhhao/vibe-remote/releases/tags` for update-notification policy before the transfer. | **HIGH** — the version source must move to `avibe-os` when the new package ships; the GitHub release-body lookup must move to `avibe-bot/avibe` at transfer and/or rely on GitHub's redirect only for old clients. |
+| Install one-liner | Public entry is already `avibe.bot`; before transfer the hosted backend redirected to `raw.githubusercontent.com/cyhhao/vibe-remote/master/install.sh` / `.ps1`, and the scripts used `REPO="cyhhao/vibe-remote"`. | MED — `raw.githubusercontent.com` does NOT reliably redirect after rename. Fix: update the avibe.bot backend redirect target to the new repo path at transfer time, and update script fallback repo metadata in this branch. |
| npm entry | `npm/avibe/bin/avibe.js` hardcodes the two raw install URLs | MED — update raw URLs. (We already hold the `avibe` npm name via `npm/avibe`.) |
-| Agent system-prompt link | `core/system_prompt_injection.py` → `github.com/cyhhao/vibe-remote/raw/master/skills/use-vibe-remote/SKILL.md` | LOW-MED — `github.com/.../raw/` web path redirects better than raw.githubusercontent; update anyway. |
+| Agent system-prompt link | `core/system_prompt_injection.py` → `github.com/avibe-bot/avibe/raw/master/skills/use-avibe/SKILL.md` | LOW-MED — `github.com/.../raw/` web path redirects better than raw.githubusercontent; update anyway. |
| Package URLs | `pyproject.toml` `[project.urls]` ×4 | LOW — update on transfer. |
| Show Runtime archive | `core/show_runtime.py` → `avibe-bot/vibe-show-runtime` | NONE — already on-brand. |
| Docs / README / VISION / skill examples / tests | many `cyhhao/vibe-remote` strings | LOW — bulk sweep. |
@@ -71,7 +71,7 @@ table above, (c) brand/display strings, (d) the runtime-home-dir migration.
- **W3 — Distribution: `avibe-os` + `vibe-remote` shim** (§5b).
- **W4 — Brand/display copy** via `vibe/i18n/` + `ui/src/i18n/{en,zh}.json`, README, package description. Never hardcode. EN/ZH lockstep.
- **W5 — Docs** (`avibe-docs`), EN/ZH 1:1; commit + push to `main` (no PR) per that repo's convention.
-- **W6 — Skill + integrations**: `use-vibe-remote` skill name + SKILL.md raw URL.
+- **W6 — Skill + integrations**: `use-avibe` skill name + SKILL.md raw URL.
- **W7 — IM bot re-registration** (external; Slack/Discord/Telegram/Lark display names, OAuth redirects, app-directory review — start early).
## 5. Backward-compat designs (the careful part)
@@ -237,7 +237,7 @@ Some references are likely mixed-purpose and need per-occurrence judgment:
current defaults, legacy compatibility, or migration targets.
- `/data/vibe_remote` and regression paths: preserve existing state unless an
isolated migration path is explicitly tested.
-- `use-vibe-remote` skill naming: update public/raw links and prose, but avoid
+- `use-avibe` skill naming: update public/raw links and prose, but avoid
breaking existing skill lookup until a compatibility alias is defined.
- `vibe-remote` in dependency metadata: current real package should become
`avibe-os`, while old-package references remain only for shim/migration.
@@ -339,7 +339,7 @@ runtime compatibility surfaces.
- Regression/container data paths such as `/data/vibe_remote` and existing
three-regression state roots must be preserved unless an isolated migration is
explicitly tested. Do not reset regression state.
-- `use-vibe-remote` skill name, raw URL, and tests need compatibility handling.
+- `use-avibe` skill name, raw URL, and tests need compatibility handling.
Update public prose/URLs, but keep an alias or old lookup path until callers
are migrated.
@@ -521,9 +521,10 @@ Updated:
Still intentionally retained:
- Main `core/system_prompt_injection.py` is already Avibe-branded and still
- points the `use-vibe-remote` skill URL at `avibe-bot/avibe`; do not change it
+ points the `use-avibe` skill URL at `avibe-bot/avibe`; do not change it
to an `avibe.bot` redirect before the 3.0.0 release.
-- `skills/use-vibe-remote` keeps its slug/path for agent compatibility.
+- `skills/use-avibe` is the current skill slug/path; stale skill references
+ should not remain in new prompt injection.
- `VIBE_REMOTE_HOME`, `~/.vibe_remote`, `vibe_remote.log`, cookie names,
OpenCode metadata keys, legacy release markers, and `vibe-remote` shim /
uninstall references remain compatibility surfaces.
diff --git a/docs/plans/show-runtime-manifest-cache.md b/docs/plans/show-runtime-manifest-cache.md
index 0e771079f..6a44c9244 100644
--- a/docs/plans/show-runtime-manifest-cache.md
+++ b/docs/plans/show-runtime-manifest-cache.md
@@ -118,7 +118,7 @@ The installed Vibe Remote package includes a pinned manifest lock, for example:
"archives": {
"darwin-arm64": {
"name": "vibe-show-runtime-node-darwin-arm64.tgz",
- "url": "https://github.com/cyhhao/vibe-remote/releases/download/gh-v2.3.7rc1/vibe-show-runtime-node-darwin-arm64.tgz",
+ "url": "https://github.com/avibe-bot/avibe/releases/download/gh-v2.3.7rc1/vibe-show-runtime-node-darwin-arm64.tgz",
"sha256": "…",
"size": 18300000
}
diff --git a/docs/plans/use-vibe-remote-skill.md b/docs/plans/use-avibe-skill.md
similarity index 85%
rename from docs/plans/use-vibe-remote-skill.md
rename to docs/plans/use-avibe-skill.md
index c52d0cedb..6820d25b9 100644
--- a/docs/plans/use-vibe-remote-skill.md
+++ b/docs/plans/use-avibe-skill.md
@@ -2,7 +2,7 @@
## Background
-- We want a reusable skill at `skills/use-vibe-remote/` that teaches agents how to maintain a local Vibe Remote installation.
+- We want a reusable skill at `skills/use-avibe/` that teaches agents how to maintain a local Vibe Remote installation.
- The skill should be usable as a default skill for agents that operate inside or alongside Vibe Remote.
- The highest-value use case is translating natural-language requests such as "enable this Slack channel and route it to Codex with GPT-5.4 high reasoning" into safe, accurate config edits.
@@ -15,7 +15,7 @@
## Solution
-- Add `skills/use-vibe-remote/SKILL.md` with agent-oriented instructions.
+- Add `skills/use-avibe/SKILL.md` with agent-oriented instructions.
- Keep the skill self-contained: include the runtime path map, config schema overview, precedence rules, backend capability matrix, operational guardrails, and concrete request-to-edit recipes.
- Anchor OpenCode/Codex/Claude backend notes to official docs where practical.
- Call out implementation caveats where the repo schema exposes a field that is not the main runtime source of truth.
@@ -25,6 +25,6 @@
- [x] Inspect Vibe Remote config/state/runtime source files and existing docs.
- [x] Create a task worktree from `origin/master`.
- [x] Draft this plan document.
-- [x] Author `skills/use-vibe-remote/SKILL.md`.
+- [x] Author `skills/use-avibe/SKILL.md`.
- [x] Validate the skill with `askill validate`.
- [x] Run a reviewer pass and address findings.
diff --git a/docs/plans/workbench-dispatch-architecture.md b/docs/plans/workbench-dispatch-architecture.md
index 8cdba4c27..cbde2c1d2 100644
--- a/docs/plans/workbench-dispatch-architecture.md
+++ b/docs/plans/workbench-dispatch-architecture.md
@@ -382,7 +382,7 @@ blocked until it's moved to `core/services/`.
1. **PR-A** — Open PR from `feature/workbench-shell` (commits 01-13 + this document = 14 commits)
into `master` for Codex review. Keep the review loop running via `background-watch-hook`.
-2. **Worktree setup** — Create `~/vibe-remote-project/.worktrees/vibe-remote/refactor/services-layer/`
+2. **Worktree setup** — Create `~/vibe-remote-project/.worktrees/avibe/refactor/services-layer/`
from latest master once PR-A merges (or branch from `feature/workbench-shell` if we want to
start before merge — to be decided based on PR-A timing).
3. **C1** — Extract `core/services/sessions.py` + `core/services/dispatch.py` + contract
diff --git a/skills/use-avibe/SKILL.md b/skills/use-avibe/SKILL.md
new file mode 100644
index 000000000..8b58cd05d
--- /dev/null
+++ b/skills/use-avibe/SKILL.md
@@ -0,0 +1,1028 @@
+---
+name: use-avibe
+slug: use-avibe
+description: Safely inspect and modify local Avibe configuration, routing, runtime settings, watches, scheduled tasks, Avibe Cloud remote access, and operational state.
+version: 0.4.0
+---
+
+# Use Avibe
+
+Use this skill when the user asks you to configure, repair, explain, or operate a local Avibe installation.
+
+Typical requests include:
+
+- enable a Slack, Discord, Telegram, Lark/Feishu, or WeChat scope
+- route one channel or DM user to OpenCode, Claude, or Codex
+- set a working directory for a channel or DM user
+- choose a backend model, subagent, or reasoning level
+- show or hide intermediate message types
+- configure an outbound proxy (`proxy_url`) for an IM platform that cannot reach its API directly
+- pair, start, stop, or inspect Avibe Cloud remote Web UI access
+- create, update, inspect, pause, resume, or remove a managed background watch with `vibe watch`
+- create, inspect, run, pause, resume, or remove a scheduled task with `vibe task`
+- run a one-shot Agent job with `vibe agent run`, including async background runs
+- inspect or cancel concrete Agent Run records with `vibe runs`
+- check or apply Avibe updates (`vibe check-update`, `vibe upgrade`)
+- inspect logs, run doctor, check service status, or explain where Avibe stores state
+- decide whether a requested change belongs in Avibe config or in the host backend's own config
+
+Follow this skill as an operations playbook for agents, not as end-user marketing copy.
+
+## Core Rules
+
+1. Prefer the Web UI API for Avibe configuration changes. Do not hand-edit config files for routine work.
+2. Read current API state before mutating. Merge the user's requested change into the current payload.
+3. Preserve unrelated scopes, platforms, users, and secrets.
+4. Treat secrets as opaque. Do not print, invent, rotate, or overwrite tokens unless the user explicitly provides replacements.
+5. Use the smallest viable API call and verify by reading back the API response.
+6. For `POST /settings`, preserve every existing channel for that platform; the endpoint replaces the platform's channel map.
+7. For `POST /api/users`, merge each edited user with its current user payload first; missing user fields are not a patch.
+8. Make every persistent-state change through the Web UI API or the `vibe` CLI. Avibe's internal storage is opaque — do not read, query, or hand-edit it.
+9. `POST /config` persists the new payload but does not restart running platform adapters by itself. When the change is platform credentials, `proxy_url`, or other transport-level settings, plan an explicit restart afterwards; prefer the delayed CLI form (`vibe restart --delay-seconds 60`) when triggering it from inside an active conversation. The only credential save that restarts on its own is the WeChat QR-login completion through `POST /wechat/qr_login/poll`.
+10. Do not restart the service by default. Use `POST /doctor`, `GET /status`, and read-back checks first.
+11. Only start, stop, restart, or reload Avibe when the user explicitly asks or when a change cannot take effect otherwise; explain why before doing it.
+12. If an agent must restart Avibe from an active conversation, use `vibe restart --delay-seconds 60` so the current session can receive the reply before the restart lands.
+13. Tell the user whether the change is global or scope-specific.
+
+## API First Workflow
+
+Use this order when changing Avibe configuration:
+
+1. Determine the Web UI base URL.
+ - Default is `http://127.0.0.1:5123`.
+ - If the user has a custom UI host or port (from `ui.setup_host` / `ui.setup_port`), use that exact origin.
+ - When Avibe Cloud remote access is active, the public origin (e.g. `https://<slug>.avibe.bot`) also speaks the same API and requires OIDC session cookies — prefer the local origin from the host running Avibe.
+ - Check liveness with `GET /health` or `GET /status`.
+2. Decide whether the request belongs in:
+ - `POST /config` for global defaults, platform credentials, runtime config, agent defaults, UI config, remote-access provider settings, update policy, or global display toggles
+ - `POST /settings` for channel-level routing, working directory, visibility, enablement, and mention policy
+ - `/api/users` and `/api/bind-codes` for DM user binding and user-scope settings
+ - `/remote-access/*` for Avibe Cloud pairing and tunnel control
+ - host backend config instead of Avibe when the request is OpenCode, Claude Code, or Codex native behavior
+3. Fetch the current state from the matching GET endpoint.
+4. Merge the requested change in memory.
+5. Send the mutating request through the Web UI API with CSRF protection.
+6. Read back the changed resource and verify the effective payload.
+7. Run `POST /doctor` only when the change affects runtime health, platform credentials, or backend availability.
+8. Report the changed scope or global keys and whether a restart was avoided or still required.
+
+## Calling the Web UI API
+
+Mutating API calls require:
+
+- same-origin `Origin` or `Referer` header
+- CSRF cookie named `vibe_csrf_token`
+- matching `X-Vibe-CSRF-Token` header
+
+Use this local curl pattern:
+
+```bash
+BASE="http://127.0.0.1:5123"
+COOKIE_JAR="$(mktemp)"
+CSRF="$(
+ curl -fsS -c "$COOKIE_JAR" "$BASE/api/csrf-token" \
+ | python3 -c 'import json,sys; print(json.load(sys.stdin)["csrf_token"])'
+)"
+
+curl -fsS -b "$COOKIE_JAR" -c "$COOKIE_JAR" \
+ -H "Origin: $BASE" \
+ -H "X-Vibe-CSRF-Token: $CSRF" \
+ -H "Content-Type: application/json" \
+ -X POST "$BASE/doctor" \
+ --data '{}'
+```
+
+For `DELETE`, use the same cookie jar, `Origin`, and CSRF header.
+
+When the Web UI is served through Avibe Cloud, the same calls require an authenticated OIDC session cookie issued by `/auth/callback`. Prefer hitting `127.0.0.1:5123` directly from the local machine for maintenance work.
+
+Do not log full request bodies when they contain tokens or secrets.
+
+### Reusable local API helper
+
+For multi-step maintenance, use the bundled helper at `scripts/vibe_api.py` instead of hand-writing curl commands. The helper handles CSRF, same-origin headers, cookies, JSON encoding, and readable error output.
+
+Resolve paths relative to this skill directory. If the skill is installed at `skills/use-avibe`, run:
+
+Usage examples:
+
+```bash
+export VIBE_UI_BASE="http://127.0.0.1:5123"
+
+python3 skills/use-avibe/scripts/vibe_api.py GET /health
+python3 skills/use-avibe/scripts/vibe_api.py GET '/settings?platform=slack'
+python3 skills/use-avibe/scripts/vibe_api.py POST /doctor '{}'
+python3 skills/use-avibe/scripts/vibe_api.py POST /config '{"show_duration":true}'
+python3 skills/use-avibe/scripts/vibe_api.py DELETE '/api/users/U123?platform=slack'
+```
+
+Payload can be passed as inline JSON, as `@payload.json`, or as `-` to read JSON from stdin.
+
+For scope updates, still fetch and merge first:
+
+```bash
+API_HELPER="skills/use-avibe/scripts/vibe_api.py"
+
+python3 "$API_HELPER" GET '/settings?platform=slack' > /tmp/slack_settings.json
+python3 - <<'PY'
+import json
+from pathlib import Path
+
+settings = json.loads(Path("/tmp/slack_settings.json").read_text())
+channels = settings.get("channels") or {}
+channels["C123"] = {
+ **channels.get("C123", {}),
+ "enabled": True,
+ "show_message_types": channels.get("C123", {}).get("show_message_types") or ["assistant"],
+ "custom_cwd": channels.get("C123", {}).get("custom_cwd"),
+ "require_mention": channels.get("C123", {}).get("require_mention"),
+ "routing": {
+ **(channels.get("C123", {}).get("routing") or {}),
+ "agent_backend": "codex",
+ "codex_model": "gpt-5.4",
+ "codex_reasoning_effort": "high",
+ },
+}
+Path("/tmp/slack_payload.json").write_text(json.dumps({"platform": "slack", "channels": channels}))
+PY
+python3 "$API_HELPER" POST /settings @/tmp/slack_payload.json
+python3 "$API_HELPER" GET '/settings?platform=slack'
+```
+
+## Runtime Layout
+
+Avibe stores runtime data under `~/.avibe/` by default (or `AVIBE_HOME` if set). For backward compatibility, `VIBE_REMOTE_HOME` is still honored when set, and existing default `~/.vibe_remote/` homes may be migrated to `~/.avibe/` with `~/.vibe_remote` kept as a back-symlink. The only paths an agent normally needs:
+
+- `~/.avibe/config/config.json` — global config; mutate through `POST /config`, not by editing the file
+- `~/.avibe/logs/vibe_remote.log` — main application log; read via `POST /logs`
+- `~/.avibe/screenshots/` — default output directory for `vibe screenshot`
+- `~/.avibe/state/user_preferences.md` — shared long-term preference file (safe to read and update)
+
+Agent harness state is managed through `vibe agent run`, `vibe task`, `vibe watch`, and `vibe runs` (or their API endpoints), not by editing persistence files. Everything else under `state/` and `runtime/` is internal — treat it as opaque.
+
+## API Endpoint Reference
+
+### Health and inspection
+
+- `GET /health`
+ - returns `{"status":"ok"}` when the Web UI server is reachable
+- `GET /status`
+ - returns runtime status, running state, PID metadata, and last action
+- `GET /doctor`
+ - reads the latest persisted doctor result
+- `POST /doctor`
+ - runs doctor immediately and returns the result
+- `POST /logs`
+ - payload: `{"lines": 500, "source": "service"}`
+ - `source` can be `service` or another source listed in the response; use `all` for aggregated logs
+- `GET /version`
+ - returns current version and update metadata
+- `GET /api/csrf-token`
+ - issues the `vibe_csrf_token` cookie and returns the matching token value for `X-Vibe-CSRF-Token`
+- `GET /platforms`
+ - returns the static catalog of supported IM platforms only (id, config_key, title/description i18n keys, credential field names, capabilities). It does not include enablement or credential-presence state — fetch `/config` to see which platforms are enabled and whether credentials are configured.
+
+### Global config
+
+- `GET /config`
+ - returns the current V2 config payload
+- `POST /config`
+ - accepts a partial object, deep-merges it with current config, validates it through `V2Config.from_payload`, then persists it
+ - use for platform credentials, enabled platforms, primary platform, runtime defaults, agent defaults, UI config, remote-access provider settings, update policy, and global toggles
+ - the handler only persists and (for `remote_access`) reconciles the cloudflared tunnel; running platform adapters keep using their previous credentials and transport until a restart. Plan a `vibe restart --delay-seconds 60` after any credential, `proxy_url`, or transport-level change.
+
+Important config payload shape:
+
+```json
+{
+ "platform": "slack",
+ "platforms": {
+ "enabled": ["slack", "discord", "telegram", "lark", "wechat"],
+ "primary": "slack"
+ },
+ "mode": "self_host",
+ "version": "v2",
+ "slack": {
+ "bot_token": "xoxb-...",
+ "app_token": "xapp-...",
+ "signing_secret": "...",
+ "team_id": "T...",
+ "team_name": "...",
+ "app_id": "A...",
+ "require_mention": false,
+ "disable_link_unfurl": false,
+ "proxy_url": null
+ },
+ "discord": {
+ "bot_token": "...",
+ "application_id": "...",
+ "require_mention": false,
+ "thread_auto_archive_minutes": 10080,
+ "guild_allowlist": null,
+ "guild_denylist": null,
+ "proxy_url": null
+ },
+ "telegram": {
+ "bot_token": "123:abc",
+ "require_mention": true,
+ "forum_auto_topic": true,
+ "use_webhook": false,
+ "webhook_url": null,
+ "webhook_secret_token": null,
+ "allowed_chat_ids": null,
+ "allowed_user_ids": null,
+ "proxy_url": null
+ },
+ "lark": {
+ "app_id": "...",
+ "app_secret": "...",
+ "require_mention": false,
+ "domain": "feishu",
+ "proxy_url": null
+ },
+ "wechat": {
+ "bot_token": "...",
+ "base_url": "https://ilinkai.weixin.qq.com",
+ "cdn_base_url": "https://novac2c.cdn.weixin.qq.com/c2c",
+ "require_mention": false,
+ "proxy_url": null
+ },
+ "runtime": {
+ "default_cwd": "/path/to/workdir",
+ "log_level": "INFO"
+ },
+ "agents": {
+ "default_backend": "opencode",
+ "opencode": {
+ "enabled": true,
+ "cli_path": "opencode",
+ "default_agent": null,
+ "default_model": null,
+ "default_reasoning_effort": null,
+ "error_retry_limit": 1
+ },
+ "claude": {
+ "enabled": true,
+ "cli_path": "claude",
+ "default_model": null,
+ "idle_timeout_seconds": 600
+ },
+ "codex": {
+ "enabled": true,
+ "cli_path": "codex",
+ "default_model": null,
+ "idle_timeout_seconds": 600
+ }
+ },
+ "ui": {
+ "setup_host": "127.0.0.1",
+ "setup_port": 5123,
+ "open_browser": true
+ },
+ "remote_access": {
+ "provider": "vibe_cloud",
+ "vibe_cloud": {
+ "enabled": false,
+ "backend_url": "https://avibe.bot",
+ "public_url": "",
+ "instance_id": "",
+ "client_id": "",
+ "issuer": "",
+ "authorization_endpoint": "",
+ "token_endpoint": "",
+ "jwks_uri": "",
+ "redirect_uri": "",
+ "tunnel_token": "",
+ "instance_secret": "",
+ "session_secret": "",
+ "cloudflared_path": "",
+ "dev_login_hint": ""
+ }
+ },
+ "update": {
+ "auto_update": true,
+ "check_interval_minutes": 60,
+ "idle_minutes": 30,
+ "notify_admins": true
+ },
+ "ack_mode": "typing",
+ "language": "en",
+ "show_duration": false,
+ "include_time_info": true,
+ "include_user_info": true,
+ "reply_enhancements": true
+}
+```
+
+Discord server access belongs to `/settings`, not `/config`. Store enabled
+servers under `guilds`, next to channel settings:
+
+```json
+{
+ "platform": "discord",
+ "guilds": {
+ "900740769198006293": { "enabled": true }
+ },
+ "channels": {
+ "1067738479234138202": { "enabled": true }
+ }
+}
+```
+
+When switching the active platform, update `platforms.primary` and make sure `platforms.enabled` contains the new primary. Keep the legacy `platform` field aligned for readability, but `platforms.primary` is the real multi-platform source of truth.
+
+Per-platform fields worth knowing about:
+
+- every platform inherits `proxy_url` from the shared `BaseIMConfig`. Set it when the host machine cannot reach the upstream API directly. Accepts standard HTTP/HTTPS proxy URLs and any `socks*://` URL (`socks4`, `socks4a`, `socks5`, `socks5h`). SOCKS variants route through `aiohttp_socks`.
+- `slack.disable_link_unfurl` suppresses link previews when posting messages.
+- `discord.thread_auto_archive_minutes` must be one of `60`, `1440`, `4320`, or `10080`.
+- `discord.guild_allowlist` / `guild_denylist` are legacy input lists; current runtime server access lives in `/settings` under `guilds`.
+- `telegram.forum_auto_topic` enables automatic topic creation in forum chats; `use_webhook` plus `webhook_url` / `webhook_secret_token` switches Telegram delivery to the webhook transport.
+- `telegram.allowed_chat_ids` / `allowed_user_ids` restrict which chats and users Telegram will respond to.
+- `wechat.cdn_base_url` controls the CDN host used for fetching WeChat media; the default `novac2c.cdn.weixin.qq.com` is the official c2c CDN.
+- `update.auto_update`, `check_interval_minutes`, and `idle_minutes` control unattended upgrades; `notify_admins` posts the upgrade announcement to bound admins.
+- `ui.setup_host`, `setup_port`, and `open_browser` configure the local Web UI server; changing host or port requires `POST /ui/reload`.
+
+Secret-bearing config fields that you should not print:
+
+- `slack.bot_token`
+- `slack.app_token`
+- `slack.signing_secret`
+- `discord.bot_token`
+- `telegram.bot_token`
+- `telegram.webhook_secret_token`
+- `lark.app_id` (treat as a sensitive identifier)
+- `lark.app_secret`
+- `wechat.bot_token`
+- `gateway.workspace_token`
+- `gateway.client_secret`
+- `remote_access.vibe_cloud.tunnel_token`
+- `remote_access.vibe_cloud.instance_secret`
+- `remote_access.vibe_cloud.session_secret`
+- `remote_access.vibe_cloud.client_id`
+- any `proxy_url` value that embeds credentials such as `user:pass@host`
+
+### Channel settings
+
+- `GET /settings?platform=<platform>`
+ - returns channel settings, user settings, and bind codes for one platform
+- `POST /settings`
+ - payload: `{"platform": "<platform>", "channels": {...}}`
+ - validates message visibility and routing, normalizes Claude reasoning, persists the full channel map for that platform
+
+Important: `POST /settings` replaces the entire `channels` map for the selected platform. To change one channel:
+
+1. `GET /settings?platform=<platform>`
+2. copy `response.channels`
+3. merge or add one channel entry
+4. `POST /settings` with the full merged `channels` object
+5. `GET /settings?platform=<platform>` again and verify
+
+Channel entry shape:
+
+```json
+{
+ "enabled": true,
+ "show_message_types": ["assistant"],
+ "custom_cwd": "/path/to/repo",
+ "require_mention": null,
+ "routing": {
+ "agent_backend": "codex",
+ "model": "gpt-5.4",
+ "reasoning_effort": "high",
+ "opencode_agent": null,
+ "opencode_model": null,
+ "opencode_reasoning_effort": null,
+ "claude_agent": null,
+ "claude_model": null,
+ "claude_reasoning_effort": null,
+ "codex_agent": "reviewer",
+ "codex_model": "gpt-5.4",
+ "codex_reasoning_effort": "high"
+ }
+}
+```
+
+Field meanings:
+
+- `enabled`: whether this channel is allowed to use Avibe
+- `show_message_types`: visible intermediate messages; allowed values are `system`, `assistant`, `toolcall`
+- `custom_cwd`: scope-level working directory override; empty string or `null` means use global default
+- `require_mention`: `null` inherits the platform default, `true` requires mention, `false` disables mention gating for that channel
+- `routing.agent_backend`: `opencode`, `claude`, `codex`, or `null` to inherit default
+- `routing.model`: canonical scope-level model override for the selected backend
+- `routing.reasoning_effort`: canonical scope-level reasoning override for the selected backend
+- `routing.<backend>_agent`: backend-specific subagent
+- `routing.<backend>_model` / `routing.<backend>_reasoning_effort`: legacy aliases accepted on input and derived on read-back; do not treat them as independent state
+
+### DM users and bind codes
+
+- `GET /api/users?platform=<platform>`
+ - returns bound DM users for one platform
+- `POST /api/users`
+ - payload: `{"platform": "<platform>", "users": {...}}`
+ - merges included users into existing users and preserves each existing user's `dm_chat_id`
+- `POST /api/users/<user_id>/admin`
+ - payload: `{"platform": "<platform>", "is_admin": true}`
+- `DELETE /api/users/<user_id>?platform=<platform>`
+ - removes a bound user; this is the reliable way to revoke DM access
+- `GET /api/bind-codes`
+ - returns all bind codes
+- `POST /api/bind-codes`
+ - payload: `{"type": "one_time"}` or `{"type": "expiring", "expires_at": "2026-04-18"}`
+- `DELETE /api/bind-codes/<code>`
+ - deactivates a bind code
+- `GET /api/setup/first-bind-code`
+ - returns an existing valid setup bind code or creates a new one-time code
+
+Important: user updates are not field patches. Before changing a user's routing, cwd, visibility, or enabled flag, read the current user object and send the merged full user entry.
+
+User entry shape:
+
+```json
+{
+ "display_name": "Alice",
+ "is_admin": false,
+ "bound_at": "2026-03-20T12:34:56+00:00",
+ "enabled": true,
+ "show_message_types": ["assistant"],
+ "custom_cwd": "/path/to/repo",
+ "routing": {
+ "agent_backend": "claude",
+ "model": "claude-sonnet-4-6",
+ "reasoning_effort": "high",
+ "opencode_agent": null,
+ "opencode_model": null,
+ "opencode_reasoning_effort": null,
+ "claude_agent": "reviewer",
+ "claude_model": "claude-sonnet-4-6",
+ "claude_reasoning_effort": "high",
+ "codex_agent": null,
+ "codex_model": null,
+ "codex_reasoning_effort": null
+ }
+}
+```
+
+DM caveat: current DM authorization checks whether the user is bound, not whether `enabled` is true. If the user wants to revoke DM access, use `DELETE /api/users/<user_id>?platform=<platform>` instead of only setting `enabled` to false.
+
+### Platform discovery and validation
+
+- `GET /slack/manifest`
+ - returns Slack app manifest JSON for setup
+- `POST /slack/auth_test`
+ - payload: `{"bot_token": "xoxb-..."}`
+- `POST /slack/channels`
+ - payload: `{"bot_token": "xoxb-...", "browse_all": false}`
+- `POST /discord/auth_test`
+ - payload: `{"bot_token": "..."}`
+- `POST /discord/guilds`
+ - payload: `{"bot_token": "..."}`
+- `POST /discord/channels`
+ - payload: `{"bot_token": "...", "guild_id": "..."}`
+- `POST /telegram/auth_test`
+ - payload: `{"bot_token": "123:abc"}`
+- `POST /telegram/chats`
+ - payload: `{"include_private": false}`
+- `POST /lark/auth_test`
+ - payload: `{"app_id": "...", "app_secret": "...", "domain": "feishu"}`
+- `POST /lark/chats`
+ - payload: `{"app_id": "...", "app_secret": "...", "domain": "feishu"}`
+- `POST /lark/temp_ws/start`
+ - payload: `{"app_id": "...", "app_secret": "...", "domain": "feishu"}`
+- `POST /lark/temp_ws/stop`
+ - payload: `{}`
+- `POST /wechat/qr_login/start`
+ - payload: `{"base_url": "https://ilinkai.weixin.qq.com"}` or `{}`
+- `POST /wechat/qr_login/poll`
+ - payload: `{"session_key": "..."}`
+
+WeChat QR login is special: when login is confirmed and a token is returned, the API auto-binds the WeChat user and schedules an internal service restart so the new token can take effect. Do not add an extra restart unless the user asks.
+
+### Remote access (Avibe Cloud)
+
+These endpoints drive the managed `avibe.bot` tunnel that exposes the local Web UI to other devices. They are paired with the `remote_access.vibe_cloud` block under `/config`.
+
+- `GET /remote-access/status`
+ - returns `enabled`, `paired`, `public_url`, `running` (tunnel up), `pid`, `pid_state`, plus `binary_found` / `binary_path` / `binary_version` for the resolved `cloudflared` executable. Use `running: true` to assert the tunnel is up.
+- `POST /remote-access/vibe-cloud/pair`
+ - payload: `{"pairing_key": "vrp_..."}`
+ - exchanges the one-time key for an OIDC client, tunnel token, and persists the full `remote_access.vibe_cloud` block; on success Avibe launches the cloudflared tunnel
+- `POST /remote-access/start`
+ - payload: `{}`
+ - starts the cloudflared tunnel using the persisted pairing config
+- `POST /remote-access/stop`
+ - payload: `{}`
+ - stops the cloudflared tunnel; configuration is preserved so `start` can resume later
+- `GET /auth/callback`
+ - OIDC redirect target used by avibe.bot during sign-in. Browser-driven; do not call directly from automation.
+- `GET /api/session`
+ - always returns `200` with an auth-state payload, never `401`. Three shapes: `{"remote": false}` when remote access is not configured for this request, `{"remote": true, "authenticated": false}` when remote access is on but the caller has no valid session cookie, and `{"remote": true, "authenticated": true, "email": "..."}` when signed in. Check `authenticated` to gate behavior; do not poll for HTTP status codes.
+- `POST /auth/logout`
+ - clears the avibe.bot session cookie on this device. Does not stop the tunnel.
+
+The session cookie is bound to the tunnel session and expires after roughly 24 hours; the server slides the TTL when activity reaches the half-life. Do not invent custom auth headers — rely on the existing cookie issued by `/auth/callback`.
+
+Treat `tunnel_token`, `instance_secret`, `session_secret`, and `client_id` from `remote_access.vibe_cloud` as opaque secrets.
+
+### Backend and local helper endpoints
+
+- `GET /cli/detect?binary=<name-or-path>`
+ - detects a CLI binary path
+- `POST /agent/<name>/install`
+ - `name` must be `opencode`, `claude`, or `codex`
+- `POST /opencode/options`
+ - payload: `{"cwd": "/path/to/repo"}`
+ - returns OpenCode model, agent, and reasoning option data for that cwd
+- `POST /opencode/setup-permission`
+ - intentionally writes OpenCode native config to set `permission` to `allow`
+- `GET /claude/agents?cwd=/path/to/repo`
+- `GET /codex/agents?cwd=/path/to/repo`
+- `GET /claude/models`
+- `GET /codex/models`
+- `POST /browse`
+ - payload: `{"path": "~", "show_hidden": false}`
+
+### Control endpoints
+
+- `POST /control`
+ - payload: `{"action": "start"}`, `{"action": "stop"}`, or `{"action": "restart"}`
+- `POST /ui/reload`
+ - payload: `{"host": "127.0.0.1", "port": 5123}`
+- `POST /upgrade`
+ - payload: `{}`
+ - triggers an in-place upgrade to the latest released version using the same code path as `vibe upgrade`
+
+Avoid these for routine configuration. `POST /control` starts, stops, or restarts the service. `POST /ui/reload` restarts only the Web UI server to apply host or port changes. `POST /upgrade` reinstalls Avibe and then restarts the service. Use them only with explicit user intent or a concrete need.
+
+When the restart is initiated by an agent from an active conversation, use the CLI delayed form `vibe restart --delay-seconds 60` so the transport does not cut off the current reply.
+
+## Scope and Precedence Rules
+
+### Backend selection
+
+Backend resolution priority is:
+
+1. scope-level routing override from `/settings` or `/api/users`
+2. platform router fallback
+3. global default backend from `/config`
+
+If the user names a specific channel or DM and wants a specific backend, use the scope API, not global `/config`.
+
+### Working directory
+
+Working directory resolution is:
+
+1. `custom_cwd` on the target channel or user scope
+2. `runtime.default_cwd` from `/config`
+
+### Message visibility
+
+`show_message_types` is scope-local. Preserve existing values unless the user wants an explicit replacement.
+
+If a user asks for "vault messages", "internal messages", or "tool execution messages", map that request to `show_message_types`. Current Avibe does not expose a separate `vault` field.
+
+### Mention policy
+
+`require_mention` works like this:
+
+- `null`: inherit platform default from `/config`
+- `true`: require mention in that channel
+- `false`: do not require mention in that channel
+
+## Recipes
+
+### Route one Slack channel to Codex
+
+Goal:
+
+- enable Slack channel `C123`
+- route it to Codex
+- use Codex subagent `reviewer`
+- use model `gpt-5.4`
+- set reasoning `high`
+
+API flow:
+
+1. `GET /settings?platform=slack`
+2. merge `channels.C123`
+3. `POST /settings` with all Slack channels
+4. read back `GET /settings?platform=slack`
+
+Merged channel entry:
+
+```json
+{
+ "enabled": true,
+ "show_message_types": ["assistant"],
+ "custom_cwd": null,
+ "require_mention": null,
+ "routing": {
+ "agent_backend": "codex",
+ "model": "gpt-5.4",
+ "reasoning_effort": "high",
+ "opencode_agent": null,
+ "opencode_model": null,
+ "opencode_reasoning_effort": null,
+ "claude_agent": null,
+ "claude_model": null,
+ "claude_reasoning_effort": null,
+ "codex_agent": "reviewer",
+ "codex_model": "gpt-5.4",
+ "codex_reasoning_effort": "high"
+ }
+}
+```
+
+### Route one channel to OpenCode with a subagent
+
+Use `/settings` and set:
+
+- `routing.agent_backend = "opencode"`
+- `routing.opencode_agent = "<agent>"`
+- `routing.model = "<model>"` if requested
+- `routing.reasoning_effort = "<effort>"` if requested
+
+If the user wants OpenCode-native defaults, providers, MCP servers, skills, plugins, or API credentials, use OpenCode config instead of Avibe scope routing.
+
+### Route one scope to Claude with model and reasoning
+
+Use `/settings` for a channel or `/api/users` for a DM user and set:
+
+- `routing.agent_backend = "claude"`
+- `routing.claude_agent = "<agent>"` if requested
+- `routing.model = "<model>"`
+- `routing.reasoning_effort = "<effort>"`
+
+The API normalizes Claude reasoning for incompatible model combinations; verify by reading back the saved payload.
+
+### Change the global default working directory
+
+Use `POST /config`:
+
+```json
+{
+ "runtime": {
+ "default_cwd": "/path/to/workdir"
+ }
+}
+```
+
+Do not overwrite scope-level `custom_cwd` entries.
+
+### Show tool execution messages in one channel
+
+Use `/settings` and add `toolcall` to the target channel's `show_message_types`.
+
+Preserve existing `system` and `assistant` values unless the user asked for a full replacement.
+
+### Switch primary platform
+
+Use `POST /config` and keep `platforms.enabled` complete:
+
+```json
+{
+ "platform": "discord",
+ "platforms": {
+ "enabled": ["slack", "discord"],
+ "primary": "discord"
+ }
+}
+```
+
+Make sure the target platform config section exists and validates. Do not delete old platform config unless the user explicitly asks.
+
+### Configure an outbound proxy for an IM platform
+
+When the host cannot reach a platform API directly, set `proxy_url` on that platform's config block.
+
+Use `POST /config` with only the proxy field for the affected platform:
+
+```json
+{
+ "telegram": {
+ "proxy_url": "http://proxy.internal:3128"
+ }
+}
+```
+
+Notes:
+
+- `proxy_url` accepts `http://`, `https://`, and any `socks*://` scheme (`socks4`, `socks4a`, `socks5`, `socks5h`). The SOCKS variants route through `aiohttp_socks` (bundled).
+- Set the field to `null` (or omit it on a fresh save) to disable the proxy.
+- `POST /config` only persists the new value; running platform adapters keep their old transport until the service restarts. After saving, run `vibe restart --delay-seconds 60` (or `POST /control {"action":"restart"}` with the user's confirmation) so the proxy applies to live connections.
+- Do not paste credentialed proxy URLs (`user:pass@host`) into logs or chat replies; mask the credentials portion when reporting back.
+
+### Pair Avibe Cloud remote access
+
+Goal: connect the local Web UI to `avibe.bot` so it is reachable from another device.
+
+1. The user signs in at `https://avibe.bot`, creates a remote-access bot, and copies the one-time pairing key (format `vrp_...`).
+2. Call `POST /remote-access/vibe-cloud/pair` with `{"pairing_key": "vrp_..."}` from the local Web UI origin.
+3. Verify with `GET /remote-access/status` — `enabled: true`, `paired: true`, `public_url` populated, `running: true`.
+4. Have the user open `public_url` and sign in with the same avibe.bot account.
+
+Alternatively, drive the same flow from the CLI:
+
+```bash
+vibe remote # guided flow
+vibe remote pair vrp_abc123 # paste key directly
+vibe remote status --json # inspect tunnel state
+vibe remote stop # stop tunnel; keep config
+vibe remote start # bring tunnel back up
+```
+
+Treat the pairing key, tunnel token, instance secret, and session secret as opaque. Never echo them in chat replies.
+
+### Generate a DM bind code
+
+Use `POST /api/bind-codes`:
+
+```json
+{
+ "type": "one_time"
+}
+```
+
+For an expiring code:
+
+```json
+{
+ "type": "expiring",
+ "expires_at": "2026-04-18"
+}
+```
+
+Do not expose bind codes unless the user explicitly asks for them.
+
+## Agent Harness: Runs, Tasks, and Watches
+
+Use the harness commands when the user wants an agent to leave the current turn and continue later, repeatedly, or in the background. The mental model is:
+
+- `vibe agent run`: run one concrete Agent job now; add `--async` when it should continue in the background
+- `vibe task`: save a time trigger that creates Agent Runs later
+- `vibe watch`: save a condition trigger that waits for a process, file, log, CI, review, or other signal, then creates a follow-up Agent Run
+- `vibe runs`: inspect and cancel concrete run records
+
+Agents should prefer these managed harness commands over ad-hoc detached shells when the work should be inspectable, resumable, or report back to the conversation.
+
+Preferred CLI shape:
+
+- one-shot direct run: `vibe agent run --agent '<agent-name>' --message '...'`
+- one-shot async run: `vibe agent run --async --session-id '<session-id>' --message '...'`
+- recurring task: `vibe task add --session-id '<session-id>' --cron '<expr>' --message '...'`
+- one-off task: `vibe task add --session-id '<session-id>' --at '<ISO-8601>' --message '...'`
+- immediate rerun: `vibe task run <id>`
+- managed background watch: `vibe watch add --session-id '<session-id>' --message '...' -- <cmd>` (or `--shell '<cmd>'` to pass a single shell string)
+- update a watch: `vibe watch update <id> --name '...' --timeout 1200`
+- inspect a run: `vibe runs show <run-id>`
+- cancel a run: `vibe runs cancel <run-id>`
+
+Delivery controls (apply to `vibe agent run --create-session`, `vibe task add`, and `vibe watch add`):
+
+- `--session-id` controls which Agent Session Avibe continues using
+- when you want to keep the current session, use the current Agent Session ID
+- if no usable Agent Session ID is available, confirm the target session first instead of guessing
+- use `--post-to channel` when the task or watch should keep the same Agent Session but publish to the parent channel
+- use `--deliver-key '<key>'` only when delivery must go to a different explicit target than the continued session
+- do not combine `--post-to` and `--deliver-key` in the same command
+- `--message` and `--message-file` are the current user-message flags for task, watch, and agent-run commands
+- `vibe task add` stores the message template and creates Agent Runs when the time trigger fires
+- `vibe agent run --async` queues one Agent Run immediately without storing a task definition
+- `vibe watch add` uses `--message` as the instruction template for the Agent Run created after the waiter reaches a reportable state
+
+Legacy compatibility:
+
+- `--session-key` is still accepted for old scripts; do not use it in new examples or instructions unless the user explicitly asks for legacy targeting
+- `--prompt` / `--prompt-file` are deprecated compatibility inputs. Do not use them in new invocations; use `--message` / `--message-file`.
+- `vibe hook send` is deprecated. Do not use it for new one-shot async work; use `vibe agent run --async`.
+
+Operational guidance:
+
+- use `vibe task list` before editing or deleting an existing task; use `vibe watch list` before touching a managed watch
+- if this is the first time using `vibe task add`, `vibe agent run`, `vibe runs`, or `vibe watch add`, read the matching `--help` output first — watches accept additional flags like `--shell`, `--timeout` (per-cycle), `--lifetime-timeout` (overall), `--forever`, `--retry-exit-code`, and `--retry-delay`
+- use `vibe task update <id>` to keep the same task ID while changing name, schedule, message, agent, or target
+- use `vibe watch update <id> ...` when you must rename, retarget, or change the waiter/options
+- use `vibe task list --brief` and `vibe watch list --brief` for scheduling-focused summaries
+- `vibe task list` hides completed one-shot tasks by default; use `vibe task list --all` when you need full history
+- use `vibe task show <id>`, `vibe watch show <id>`, or `vibe runs show <run-id>` to inspect stored fields and runtime state
+- use `vibe task pause` / `vibe task resume` and `vibe watch pause` / `vibe watch resume` to disable a task or watch without deleting it
+- treat `warnings` from task, watch, agent-run, or runs commands as delivery-risk hints to fix proactively
+
+## Backend Capability Matrix
+
+Current Avibe routing support is:
+
+| Backend | Channel/User backend select | Subagent | Model | Reasoning |
+| --- | --- | --- | --- | --- |
+| OpenCode | yes | yes | yes | yes |
+| Claude | yes | yes | yes | yes |
+| Codex | yes | yes | yes | yes |
+
+Behavior notes:
+
+- OpenCode subagents are selected through `routing.opencode_agent` or through prefix routing such as `reviewer: ...`.
+- Claude subagents are selected through `routing.claude_agent` or prefix routing.
+- Codex subagents are selected through `routing.codex_agent` or prefix routing.
+- Claude reasoning is selected through `routing.claude_reasoning_effort`; common values are `low`, `medium`, and `high`, and some models also allow `max`.
+- If a Claude reasoning value is invalid for the chosen model, the API normalizes or drops that override and falls back to the backend default.
+
+## Subagent and Prefix Routing
+
+If the user asks for subagents, remember:
+
+- OpenCode, Claude, and Codex support prefix-triggered subagent selection like `planner: draft a migration plan`
+- when a subagent definition provides its own default model or reasoning setting, that subagent-level value overrides the channel default
+- Claude subagents are discovered from markdown files under:
+ - `~/.claude/agents/`
+ - project `.claude/agents/`
+- Codex custom agents are discovered from TOML files under:
+ - `~/.codex/agents/`
+ - project `.codex/agents/`
+- OpenCode subagent and model defaults come from the OpenCode runtime/config rather than only from Avibe's own config
+
+## Host Backend Guidance
+
+When the request belongs to the host backend, do not force it into Avibe config.
+
+### OpenCode
+
+Use OpenCode-native config when the user wants to change:
+
+- personal default model
+- global reasoning behavior
+- provider and API keys
+- MCP servers
+- skills, plugins, tools, or project-local OpenCode behavior
+
+Important locations:
+
+- `~/.config/opencode/opencode.json`: global OpenCode config
+- project `opencode.json`: project-level OpenCode config file
+- `.opencode/`: project-local OpenCode config directory
+- `~/.config/opencode/agents/`: global OpenCode agents
+- `.opencode/agents/`: project-local OpenCode agents
+- `~/.config/opencode/skills/`: global OpenCode skills
+- `.opencode/skills/`: project-local OpenCode skills
+
+Relevant docs:
+
+- config: `https://opencode.ai/docs/config/`
+- skills: `https://opencode.ai/docs/skills`
+- plugins: `https://opencode.ai/docs/plugins/`
+- MCP servers: `https://opencode.ai/docs/mcp-servers/`
+
+Inside Avibe, OpenCode scope routing controls backend choice, subagent, model, and reasoning effort. Use `POST /opencode/setup-permission` only for the specific permission helper.
+
+### Claude Code
+
+Use Claude-native config when the user wants to change:
+
+- Claude subagent definitions
+- Claude skills
+- CLAUDE instructions and project rules
+
+Important locations:
+
+- `~/.claude/agents/`: global Claude subagents
+- `.claude/agents/`: project subagents
+- `~/.claude/skills/`: global Claude skills
+- `.claude/skills/`: project skills
+
+Relevant docs:
+
+- subagents: `https://docs.anthropic.com/en/docs/claude-code/sub-agents`
+
+Inside Avibe, Claude scope routing controls backend choice, model, subagent, and reasoning effort.
+
+### Codex
+
+Use Codex-native config when the user wants to change:
+
+- personal default model
+- global reasoning defaults
+- MCP servers, approvals, or sandbox policy
+- Codex CLI profiles and behavior outside Avibe
+
+Important locations:
+
+- `~/.codex/config.toml`: global Codex config
+- `.codex/config.toml`: project-local Codex config
+- `~/.codex/agents/`: global Codex custom agents
+- `.codex/agents/`: project-local Codex custom agents
+
+Relevant docs:
+
+- config basics: `https://developers.openai.com/codex/config-basic/`
+- config reference: `https://developers.openai.com/codex/config-reference/`
+- CLI overview: `https://developers.openai.com/codex/cli`
+- subagents: `https://developers.openai.com/codex/subagents`
+
+Inside Avibe, Codex scope routing controls backend choice, subagent, model, and reasoning effort.
+
+## CLI Reference
+
+Use the CLI only when the Web UI API cannot cover the request, when the user explicitly asks for the command, or when restarting/upgrading from an active conversation.
+
+Service lifecycle:
+
+- `vibe` — start Avibe if needed and open the local Web UI; it does not stop an already-running service
+- `vibe status` — print service status, PID metadata, and last action
+- `vibe stop` — stop main service, Web UI, and any background helpers
+- `vibe restart` — stop and re-start the service. Pass `--delay-seconds N` when triggering from inside an active conversation so the current reply has time to deliver before the restart lands.
+- `vibe doctor` — run diagnostics and print the latest result
+- `vibe version` — print the installed version
+
+Updates:
+
+- `vibe check-update` — query the release feed and print whether an upgrade is available
+- `vibe upgrade` — reinstall Avibe to the latest release. The CLI does not restart the service for you; it prints "Please restart vibe..." and exits. Run `vibe restart` (or `vibe restart --delay-seconds 60` from inside an active conversation) yourself after the upgrade reports success. The Web UI's `POST /upgrade` endpoint is the path that performs an automatic restart.
+
+Remote access:
+
+- `vibe remote` — guided Avibe Cloud pairing
+- `vibe remote pair <key>` — pair using an existing one-time key
+- `vibe remote status [--json]` — show tunnel + OIDC state
+- `vibe remote start` / `vibe remote stop` — manage the cloudflared tunnel after pairing
+
+Screenshots:
+
+- `vibe screenshot` — capture the local desktop to `~/.avibe/screenshots/`
+- `vibe screenshot --output <path>` / `--json` — pick an explicit output path or get machine-readable output
+
+Scheduled tasks:
+
+- `vibe task add`, `vibe task update`, `vibe task list [--all|--brief]`, `vibe task show <id>`, `vibe task run <id>`, `vibe task pause <id>`, `vibe task resume <id>`, `vibe task remove <id>`
+
+Agent runs:
+
+- `vibe agent run` — run one Agent job now; add `--async` for one-shot background work
+- `vibe runs list`, `vibe runs show <id>`, `vibe runs cancel <id>` — inspect and manage concrete Agent Run records
+
+Watches:
+
+- `vibe watch add`, `vibe watch update <id>`, `vibe watch list [--brief]`, `vibe watch show <id>`, `vibe watch pause <id>`, `vibe watch resume <id>`, `vibe watch remove <id>`
+
+For any subcommand, prefer `<command> --help` before composing a new invocation. The delivery flags shared by harness commands are `--session-id`, `--post-to`, and `--deliver-key`, with command-specific mutual exclusion rules. Use `--message` / `--message-file` for user messages. `vibe task add` and `vibe watch add` take `--name`; only `vibe task add` takes `--cron` / `--at` / `--timezone`; `vibe agent run` takes `--async`; and `vibe watch add` takes its own waiter options (`--shell` or a positional command after `--`, `--cwd`, `--timeout`, `--forever`, `--lifetime-timeout`, `--retry-exit-code`, `--retry-delay`). Do not copy flags between task, watch, and agent-run commands without checking help.
+
+## Troubleshooting
+
+Start with evidence:
+
+1. `GET /status`
+2. `POST /doctor`
+3. `POST /logs` with a small line count and focused source
+4. read back `/config`, `/settings`, or `/api/users` for the affected scope
+
+Common cases:
+
+- config does not apply: verify the API read-back first; only restart if the changed field is startup-only
+- backend missing: confirm backend is enabled, CLI path is executable, and `/cli/detect` finds it
+- channel does not respond: verify `/settings?platform=<platform>` contains the channel and `enabled` is true
+- wrong repository/cwd: inspect `custom_cwd` and `runtime.default_cwd`
+- DM access denied: inspect `/api/users?platform=<platform>` and bind-code state
+- platform cannot reach API: inspect `proxy_url` on that platform's config block; check logs for proxy/TLS errors; for SOCKS proxies confirm `aiohttp_socks` is installed
+- remote URL is unreachable: `GET /remote-access/status` should show `running: true` and `binary_found: true`; if not, run `POST /doctor` and check the configured `cloudflared_path`
+- remote session expired: instruct the user to re-sign in at the public URL (24h TTL with sliding renewal); use `POST /auth/logout` to clear a stale session on the current device
+- upgrade did not apply: inspect the response from `POST /upgrade` (auto-restart on success) or `vibe upgrade` (does not auto-restart — run `vibe restart` manually), then verify with `vibe status` that the new PID is running
+- startup failure: use `GET /status`, `POST /doctor`, then inspect logs
+
+Do not use `vibe restart`, `POST /control {"action":"restart"}`, or `POST /ui/reload` as a first response to config problems.
+
+If a restart is still required and you are replying through an active Avibe conversation, use `vibe restart --delay-seconds 60` so the current reply can be delivered before the restart lands.
+
+## Safety Boundaries
+
+Always follow these constraints:
+
+- never delete unrelated platform scopes
+- never blank out tokens or secrets as part of an unrelated config task
+- never claim a backend feature exists if current Avibe behavior does not support it
+- never read, query, or hand-edit Avibe's internal state storage — go through the Web UI API or `vibe` CLI
+- never expose bind codes, pairing keys, tunnel tokens, instance secrets, or session secrets unless the user explicitly asks
+- never paste a credentialed `proxy_url` (`user:pass@host`) back into chat — mask the credentials portion when echoing the value
+- always say when a requested change actually belongs in OpenCode, Claude Code, or Codex config instead of Avibe
+
+## Escalation
+
+If the user still cannot solve a problem after API read-back checks, doctor, and log inspection, point them to the Avibe repository:
+
+- repo: `https://github.com/avibe-bot/avibe`
+
+Use that link when:
+
+- the behavior looks like a real bug rather than a local misconfiguration
+- the user is asking for a feature Avibe does not support yet
+- backend integration behavior appears inconsistent with the documented configuration surface
+
+If the user wants to contribute back, suggest opening an issue or a pull request in that repository.
+
+## Response Pattern
+
+When you complete an Avibe maintenance task, report back with:
+
+1. which API endpoint changed the state
+2. whether the change is global or scope-specific
+3. which keys changed
+4. the read-back or doctor evidence
+5. whether a restart was avoided, deferred, or still required and why
diff --git a/skills/use-avibe/scripts/vibe_api.py b/skills/use-avibe/scripts/vibe_api.py
new file mode 100755
index 000000000..b7b6dc248
--- /dev/null
+++ b/skills/use-avibe/scripts/vibe_api.py
@@ -0,0 +1,121 @@
+#!/usr/bin/env python3
+"""Small Avibe Web UI API helper for agents.
+
+This helper intentionally uses only the Python standard library so it can run
+inside local machines and regression containers without installing packages.
+"""
+
+from __future__ import annotations
+
+import argparse
+import hashlib
+import json
+import os
+import sys
+import tempfile
+import urllib.error
+import urllib.parse
+import urllib.request
+from http.cookiejar import MozillaCookieJar
+from pathlib import Path
+from typing import Any
+
+MUTATING_METHODS = {"POST", "PUT", "PATCH", "DELETE"}
+DEFAULT_BASE = "http://127.0.0.1:5123"
+
+
+class VibeApiClient:
+ def __init__(self, base_url: str, cookie_jar_path: Path | None = None, timeout: float = 30.0):
+ self.base_url = base_url.rstrip("/")
+ self.timeout = timeout
+ self.cookie_jar_path = cookie_jar_path or self._default_cookie_jar_path(self.base_url)
+ self.cookie_jar_path.parent.mkdir(parents=True, exist_ok=True)
+ self.cookie_jar = MozillaCookieJar(str(self.cookie_jar_path))
+ if self.cookie_jar_path.exists():
+ try:
+ self.cookie_jar.load(ignore_discard=True, ignore_expires=True)
+ except Exception:
+ # Stale or corrupt cookie jars should not block maintenance.
+ pass
+ self.opener = urllib.request.build_opener(urllib.request.HTTPCookieProcessor(self.cookie_jar))
+
+ @staticmethod
+ def _default_cookie_jar_path(base_url: str) -> Path:
+ digest = hashlib.sha256(base_url.encode("utf-8")).hexdigest()[:12]
+ return Path(tempfile.gettempdir()) / f"vibe_api_{digest}.cookies"
+
+ def call(self, method: str, path: str, payload: Any = None) -> Any:
+ method = method.upper()
+ url = urllib.parse.urljoin(self.base_url + "/", path.lstrip("/"))
+ data = None if payload is None else json.dumps(payload).encode("utf-8")
+ headers = {"Accept": "application/json"}
+ if method in MUTATING_METHODS:
+ headers["Origin"] = self.base_url
+ headers["Content-Type"] = "application/json"
+ headers["X-Vibe-CSRF-Token"] = self.get_csrf_token()
+
+ request = urllib.request.Request(url, data=data, headers=headers, method=method)
+ try:
+ with self.opener.open(request, timeout=self.timeout) as response:
+ body = response.read().decode("utf-8")
+ self.cookie_jar.save(ignore_discard=True, ignore_expires=True)
+ return json.loads(body) if body else {}
+ except urllib.error.HTTPError as exc:
+ body = exc.read().decode("utf-8", errors="replace")
+ message = body or exc.reason
+ raise SystemExit(f"HTTP {exc.code} {method} {path}: {message}") from exc
+ except urllib.error.URLError as exc:
+ raise SystemExit(f"Request failed {method} {path}: {exc.reason}") from exc
+
+ def get_csrf_token(self) -> str:
+ payload = self.call("GET", "/api/csrf-token")
+ token = payload.get("csrf_token") if isinstance(payload, dict) else None
+ if not token:
+ raise SystemExit("Missing csrf_token from /api/csrf-token")
+ return str(token)
+
+
+def _load_payload(value: str | None) -> Any:
+ if value is None:
+ return None
+ if value == "-":
+ return json.load(sys.stdin)
+ if value.startswith("@"):
+ return json.loads(Path(value[1:]).read_text(encoding="utf-8"))
+ return json.loads(value)
+
+
+def main(argv: list[str] | None = None) -> int:
+ parser = argparse.ArgumentParser(
+ description="Call the local Avibe Web UI API with CSRF handling.",
+ )
+ parser.add_argument("method", help="HTTP method, for example GET, POST, DELETE")
+ parser.add_argument("path", help="API path, for example /settings?platform=slack")
+ parser.add_argument(
+ "payload",
+ nargs="?",
+ help="JSON payload, @file.json, or - for stdin. Omit for GET/DELETE without a body.",
+ )
+ parser.add_argument(
+ "--base",
+ default=os.environ.get("VIBE_UI_BASE", DEFAULT_BASE),
+ help=f"Web UI base URL. Defaults to VIBE_UI_BASE or {DEFAULT_BASE}.",
+ )
+ parser.add_argument(
+ "--cookie-jar",
+ default=os.environ.get("VIBE_API_COOKIE_JAR"),
+ help="Cookie jar path. Defaults to a per-base temp file.",
+ )
+ parser.add_argument("--timeout", type=float, default=30.0, help="Request timeout in seconds.")
+ args = parser.parse_args(argv)
+
+ cookie_jar_path = Path(args.cookie_jar).expanduser() if args.cookie_jar else None
+ client = VibeApiClient(args.base, cookie_jar_path=cookie_jar_path, timeout=args.timeout)
+ payload = _load_payload(args.payload)
+ result = client.call(args.method, args.path, payload)
+ print(json.dumps(result, indent=2, sort_keys=True))
+ return 0
+
+
+if __name__ == "__main__":
+ raise SystemExit(main())
diff --git a/tests/test_native_session_providers.py b/tests/test_native_session_providers.py
index 35a6796b5..025c30356 100644
--- a/tests/test_native_session_providers.py
+++ b/tests/test_native_session_providers.py
@@ -22,12 +22,12 @@ def test_claude_provider_falls_back_to_history_jsonl(tmp_path: Path) -> None:
history_path = tmp_path / "history.jsonl"
projects_root.mkdir(parents=True, exist_ok=True)
- working_path = "/Users/cyh/vibe-remote"
+ working_path = "/Users/cyh/avibe"
history_path.write_text(
"\n".join(
[
- '{"display":"old prompt","timestamp":1766078000000,"project":"/Users/cyh/vibe-remote","sessionId":"sess_a"}',
- '{"display":"latest prompt","timestamp":1766079000000,"project":"/Users/cyh/vibe-remote","sessionId":"sess_a"}',
+ '{"display":"old prompt","timestamp":1766078000000,"project":"/Users/cyh/avibe","sessionId":"sess_a"}',
+ '{"display":"latest prompt","timestamp":1766079000000,"project":"/Users/cyh/avibe","sessionId":"sess_a"}',
'{"display":"other project","timestamp":1766079100000,"project":"/Users/cyh/other","sessionId":"sess_b"}',
]
),
@@ -53,9 +53,9 @@ def test_claude_provider_scans_candidate_jsonl_when_history_has_results(tmp_path
history_path = tmp_path / "history.jsonl"
projects_root.mkdir(parents=True, exist_ok=True)
- working_path = "/Users/cyh/vibe-remote"
+ working_path = "/Users/cyh/avibe"
history_path.write_text(
- '{"display":"history prompt","timestamp":1766079000000,"project":"/Users/cyh/vibe-remote","sessionId":"sess_history"}',
+ '{"display":"history prompt","timestamp":1766079000000,"project":"/Users/cyh/avibe","sessionId":"sess_history"}',
encoding="utf-8",
)
@@ -64,7 +64,7 @@ def test_claude_provider_scans_candidate_jsonl_when_history_has_results(tmp_path
(candidate_dir / "sess_sdk.jsonl").write_text(
"\n".join(
[
- '{"type":"user","timestamp":"2026-03-27T09:59:00Z","cwd":"/Users/cyh/vibe-remote","message":{"content":"sdk prompt"}}',
+ '{"type":"user","timestamp":"2026-03-27T09:59:00Z","cwd":"/Users/cyh/avibe","message":{"content":"sdk prompt"}}',
'{"type":"assistant","timestamp":"2026-03-27T10:00:00Z","message":{"content":"sdk reply"}}',
]
),
@@ -110,7 +110,7 @@ def test_claude_provider_does_not_scan_unrelated_project_jsonl(tmp_path: Path, m
projects_root.mkdir(parents=True, exist_ok=True)
history_path.write_text("", encoding="utf-8")
- working_path = "/Users/cyh/vibe-remote"
+ working_path = "/Users/cyh/avibe"
candidate_dir = projects_root / encode_project_path(working_path)
candidate_dir.mkdir(parents=True, exist_ok=True)
target_jsonl = candidate_dir / "sess_target.jsonl"
@@ -150,14 +150,14 @@ def test_claude_provider_uses_global_index_fallback_without_scanning_all_jsonl(t
projects_root.mkdir(parents=True, exist_ok=True)
history_path.write_text("", encoding="utf-8")
- working_path = "/Users/cyh/vibe-remote"
+ working_path = "/Users/cyh/avibe"
indexed_dir = projects_root / "-Users-cyh"
indexed_dir.mkdir(parents=True, exist_ok=True)
session_jsonl = indexed_dir / "sess_idx.jsonl"
session_jsonl.write_text(
"\n".join(
[
- '{"type":"user","timestamp":"2026-03-27T09:59:00Z","cwd":"/Users/cyh/vibe-remote","message":{"content":"hello"}}',
+ '{"type":"user","timestamp":"2026-03-27T09:59:00Z","cwd":"/Users/cyh/avibe","message":{"content":"hello"}}',
'{"type":"assistant","timestamp":"2026-03-27T10:00:00Z","message":{"content":"reply from indexed session"}}',
]
),
@@ -170,7 +170,7 @@ def test_claude_provider_uses_global_index_fallback_without_scanning_all_jsonl(t
"entries": [
{
"sessionId": "sess_idx",
- "projectPath": "/Users/cyh/vibe-remote",
+ "projectPath": "/Users/cyh/avibe",
"created": "2026-03-27T09:59:00Z",
"modified": "2026-03-27T10:00:00Z",
"firstPrompt": "hello",
diff --git a/tests/test_reply_enhancer_platform.py b/tests/test_reply_enhancer_platform.py
index 536c2e3c0..2b755ea29 100644
--- a/tests/test_reply_enhancer_platform.py
+++ b/tests/test_reply_enhancer_platform.py
@@ -82,7 +82,7 @@ class ReplyEnhancerPlatformTests(unittest.IsolatedAsyncioTestCase):
self.assertIn("## Silent replies", prompt)
self.assertIn("<silent>reason not shown to the user</silent>", prompt)
self.assertIn(
- "If the user asks you to configure, repair, or operate Avibe itself, read `https://github.com/avibe-bot/avibe/raw/master/skills/use-vibe-remote/SKILL.md` before making changes.",
+ "If the user asks you to configure, repair, or operate Avibe itself, read `https://github.com/avibe-bot/avibe/raw/master/skills/use-avibe/SKILL.md` before making changes.",
prompt,
)
self.assertIn("## Send files", prompt)
@@ -171,7 +171,7 @@ class ReplyEnhancerPlatformTests(unittest.IsolatedAsyncioTestCase):
def test_process_reply_accepts_markdown_link_style_quick_reply_button(self):
reply = process_reply(
"Done.\n\n---\n"
- "[:eyes: 看 PR](<https://github.com/cyhhao/vibe-remote/pull/298>) | "
+ "[:eyes: 看 PR](<https://github.com/avibe-bot/avibe/pull/298>) | "
"[:rocket: 等评审完合并] | [:test_tube: 先回归测一遍]"
)
@@ -184,7 +184,7 @@ class ReplyEnhancerPlatformTests(unittest.IsolatedAsyncioTestCase):
def test_process_reply_accepts_slack_angle_link_style_quick_reply_button(self):
reply = process_reply(
"Done.\n\n---\n"
- "<https://github.com/cyhhao/vibe-remote/pull/298|:eyes: 看 PR> | "
+ "<https://github.com/avibe-bot/avibe/pull/298|:eyes: 看 PR> | "
"[:rocket: 等评审完合并] | [:test_tube: 先回归测一遍]"
)
@@ -195,7 +195,7 @@ class ReplyEnhancerPlatformTests(unittest.IsolatedAsyncioTestCase):
)
def test_process_reply_ignores_bare_angle_link_as_quick_reply_button(self):
- text = "Done.\n\n---\n<https://github.com/cyhhao/vibe-remote/pull/298>"
+ text = "Done.\n\n---\n<https://github.com/avibe-bot/avibe/pull/298>"
reply = process_reply(text)
self.assertEqual(reply.text, text)
@@ -215,7 +215,7 @@ class ReplyEnhancerPlatformTests(unittest.IsolatedAsyncioTestCase):
# the label as the payload and the URL discarded.
reply = process_reply(
"Done.\n\n---\n"
- "[👀 我先确认] | [🔗 看 PR](https://github.com/cyhhao/vibe-remote/pull/451) | [✅ 直接合并]"
+ "[👀 我先确认] | [🔗 看 PR](https://github.com/avibe-bot/avibe/pull/451) | [✅ 直接合并]"
)
self.assertEqual(reply.text, "Done.")
@@ -530,7 +530,7 @@ class ReplyEnhancerPlatformTests(unittest.IsolatedAsyncioTestCase):
context,
"result",
"Done.\n---\n"
- "[:eyes: 看 PR](<https://github.com/cyhhao/vibe-remote/pull/298>) | "
+ "[:eyes: 看 PR](<https://github.com/avibe-bot/avibe/pull/298>) | "
"[:rocket: 等评审完合并]",
)
diff --git a/tests/test_resume_session.py b/tests/test_resume_session.py
index b3f0ba6ad..031b67ef7 100644
--- a/tests/test_resume_session.py
+++ b/tests/test_resume_session.py
@@ -114,7 +114,7 @@ class _StubController(Controller):
return f"{getattr(context, 'platform', None) or 'test'}::{self._get_settings_key(context)}"
def get_cwd(self, context: MessageContext) -> str:
- return "/Users/cyh/vibe-remote"
+ return "/Users/cyh/avibe"
class ResumeSessionTests(unittest.IsolatedAsyncioTestCase):
@@ -130,7 +130,7 @@ class ResumeSessionTests(unittest.IsolatedAsyncioTestCase):
agent="claude",
agent_prefix="cc",
native_session_id="sess_abc",
- working_path="/Users/cyh/vibe-remote",
+ working_path="/Users/cyh/avibe",
created_at=None,
updated_at=None,
sort_ts=10.0,
@@ -251,7 +251,7 @@ class ResumeSessionTests(unittest.IsolatedAsyncioTestCase):
codex_agent.prepare_resume_binding.assert_awaited_once_with(
base_session_id="slack_169999.123",
session_key="slack::C111",
- working_path="/Users/cyh/vibe-remote",
+ working_path="/Users/cyh/avibe",
)
async def test_handle_resume_session_submission_prepares_claude_binding(self):
@@ -274,7 +274,7 @@ class ResumeSessionTests(unittest.IsolatedAsyncioTestCase):
claude_agent.prepare_resume_binding.assert_awaited_once_with(
base_session_id="slack_169999.123",
session_key="slack::C111",
- working_path="/Users/cyh/vibe-remote",
+ working_path="/Users/cyh/avibe",
)
async def test_handle_resume_session_submission_skips_resume_prepare_when_backend_has_no_hook(self):
@@ -439,7 +439,7 @@ class ResumeSessionTests(unittest.IsolatedAsyncioTestCase):
agent="codex",
agent_prefix="cx",
native_session_id="thread_123",
- working_path="/Users/cyh/vibe-remote",
+ working_path="/Users/cyh/avibe",
created_at=None,
updated_at=None,
sort_ts=100.0,
@@ -466,7 +466,7 @@ class ResumeSessionTests(unittest.IsolatedAsyncioTestCase):
trigger_id, sessions, channel_id, thread_id, host_ts = im_client.resume_calls[0]
self.assertEqual((trigger_id, channel_id, thread_id, host_ts), ("TRIG", "CCHAN", "TS1", "TS1"))
self.assertEqual([item.native_session_id for item in sessions], ["thread_123"])
- self.assertEqual(ctrl.native_session_service.calls, [("/Users/cyh/vibe-remote", 100)])
+ self.assertEqual(ctrl.native_session_service.calls, [("/Users/cyh/avibe", 100)])
async def test_handle_resume_in_existing_thread_is_rejected(self):
# /resume is scope-level only: invoking it inside an existing thread must be
@@ -503,7 +503,7 @@ class ResumeSessionTests(unittest.IsolatedAsyncioTestCase):
agent="opencode",
agent_prefix="oc",
native_session_id="oc_disabled",
- working_path="/Users/cyh/vibe-remote",
+ working_path="/Users/cyh/avibe",
created_at=None,
updated_at=None,
sort_ts=200.0,
@@ -514,7 +514,7 @@ class ResumeSessionTests(unittest.IsolatedAsyncioTestCase):
agent="codex",
agent_prefix="cx",
native_session_id="cx_enabled",
- working_path="/Users/cyh/vibe-remote",
+ working_path="/Users/cyh/avibe",
created_at=None,
updated_at=None,
sort_ts=100.0,
@@ -573,7 +573,7 @@ class ResumeSessionTests(unittest.IsolatedAsyncioTestCase):
agent="codex",
agent_prefix="cx",
native_session_id="session_telegram_123",
- working_path="/Users/cyh/vibe-remote",
+ working_path="/Users/cyh/avibe",
created_at=None,
updated_at=None,
sort_ts=100.0,
@@ -602,7 +602,7 @@ class ResumeSessionTests(unittest.IsolatedAsyncioTestCase):
self.assertEqual(trigger_id, ctx)
self.assertEqual((channel_id, thread_id, host_ts), ("TGCHAN", "MSG1", "MSG1"))
self.assertEqual([item.native_session_id for item in sessions], ["session_telegram_123"])
- self.assertEqual(ctrl.native_session_service.calls, [("/Users/cyh/vibe-remote", 25)])
+ self.assertEqual(ctrl.native_session_service.calls, [("/Users/cyh/avibe", 25)])
async def test_command_handlers_handle_resume_wechat_lists_recent_sessions(self):
settings = _StubSettingsManager()
@@ -616,7 +616,7 @@ class ResumeSessionTests(unittest.IsolatedAsyncioTestCase):
agent="claude",
agent_prefix="cc",
native_session_id="claude-1",
- working_path="/Users/cyh/vibe-remote",
+ working_path="/Users/cyh/avibe",
created_at=None,
updated_at=datetime(2026, 3, 27, 14, 32),
sort_ts=10.0,
@@ -627,7 +627,7 @@ class ResumeSessionTests(unittest.IsolatedAsyncioTestCase):
agent="codex",
agent_prefix="cx",
native_session_id="codex-1",
- working_path="/Users/cyh/vibe-remote",
+ working_path="/Users/cyh/avibe",
created_at=None,
updated_at=datetime(2026, 3, 27, 14, 10),
sort_ts=9.0,
@@ -665,7 +665,7 @@ class ResumeSessionTests(unittest.IsolatedAsyncioTestCase):
agent="opencode",
agent_prefix="oc",
native_session_id="oc-1",
- working_path="/Users/cyh/vibe-remote",
+ working_path="/Users/cyh/avibe",
created_at=None,
updated_at=None,
sort_ts=10.0,
@@ -676,7 +676,7 @@ class ResumeSessionTests(unittest.IsolatedAsyncioTestCase):
agent="claude",
agent_prefix="cc",
native_session_id="cc-2",
- working_path="/Users/cyh/vibe-remote",
+ working_path="/Users/cyh/avibe",
created_at=None,
updated_at=None,
sort_ts=9.0,
@@ -746,7 +746,7 @@ class ResumeSessionTests(unittest.IsolatedAsyncioTestCase):
agent="opencode",
agent_prefix="oc",
native_session_id="oc_disabled",
- working_path="/Users/cyh/vibe-remote",
+ working_path="/Users/cyh/avibe",
created_at=None,
updated_at=None,
sort_ts=200.0,
@@ -757,7 +757,7 @@ class ResumeSessionTests(unittest.IsolatedAsyncioTestCase):
agent="codex",
agent_prefix="cx",
native_session_id="cx_enabled",
- working_path="/Users/cyh/vibe-remote",
+ working_path="/Users/cyh/avibe",
created_at=None,
updated_at=None,
sort_ts=100.0,
diff --git a/tests/test_show_runtime_manifest.py b/tests/test_show_runtime_manifest.py
index 3f0f57e13..ba4bb0497 100644
--- a/tests/test_show_runtime_manifest.py
+++ b/tests/test_show_runtime_manifest.py
@@ -26,7 +26,7 @@ def test_generate_show_runtime_manifest_records_all_platform_archives(tmp_path:
manifest = build_manifest(
archive_dir=archive_dir,
tag="gh-v2.4.0rc1",
- repo="cyhhao/vibe-remote",
+ repo="avibe-bot/avibe",
runtime_ref="runtime-sha",
output=output,
)
@@ -36,7 +36,7 @@ def test_generate_show_runtime_manifest_records_all_platform_archives(tmp_path:
written = json.loads(output.read_text(encoding="utf-8"))
assert written["runtime_version"] == "runtime-sha"
assert written["archives"]["linux-x64"]["url"] == (
- "https://github.com/cyhhao/vibe-remote/releases/download/gh-v2.4.0rc1/"
+ "https://github.com/avibe-bot/avibe/releases/download/gh-v2.4.0rc1/"
"vibe-show-runtime-node-linux-x64.tgz"
)
assert written["archives"]["linux-x64"]["size"] == len(b"runtime-linux-x64")
@@ -52,7 +52,7 @@ def test_generate_show_runtime_manifest_fails_when_platform_archive_missing(tmp_
build_manifest(
archive_dir=archive_dir,
tag="v2.4.0",
- repo="cyhhao/vibe-remote",
+ repo="avibe-bot/avibe",
runtime_ref="runtime-sha",
output=tmp_path / "manifest.json",
)
diff --git a/tests/test_telegram_bot.py b/tests/test_telegram_bot.py
index 160dd8c23..73d3e6114 100644
--- a/tests/test_telegram_bot.py
+++ b/tests/test_telegram_bot.py
@@ -612,7 +612,7 @@ def test_resume_menu_uses_short_callback_ids() -> None:
agent="codex",
agent_prefix="cx",
native_session_id="session_abcdefghijklmnopqrstuvwxyz",
- working_path="/Users/cyh/vibe-remote",
+ working_path="/Users/cyh/avibe",
created_at=None,
updated_at=None,
sort_ts=100.0,
diff --git a/tests/test_wait_for_github_issue_activity.py b/tests/test_wait_for_github_issue_activity.py
index 283ce1449..cb066d139 100644
--- a/tests/test_wait_for_github_issue_activity.py
+++ b/tests/test_wait_for_github_issue_activity.py
@@ -39,7 +39,7 @@ def test_render_new_issues_ignores_pull_requests() -> None:
}
output, issue_cursor = module._render_new_issues(
- repo="cyhhao/vibe-remote",
+ repo="avibe-bot/avibe",
state=state,
issue_cursor=0,
event_limit=8,
@@ -64,7 +64,7 @@ def test_render_issue_comments_includes_new_comment() -> None:
}
output, issue_comment_cursor = module._render_issue_comments(
- repo="cyhhao/vibe-remote",
+ repo="avibe-bot/avibe",
issue_number=24,
state=state,
issue_comment_cursor=0,
@@ -91,7 +91,7 @@ def test_render_issue_comments_ignores_self_authored_comment_but_advances_cursor
}
output, issue_comment_cursor = module._render_issue_comments(
- repo="cyhhao/vibe-remote",
+ repo="avibe-bot/avibe",
issue_number=24,
state=state,
issue_comment_cursor=0,
@@ -127,7 +127,7 @@ def test_fetch_issue_comment_state_stops_after_cursor() -> None:
with patch.object(module, "list_paginated_with_count", side_effect=_fake_list_paginated_with_count):
state, request_count = module._fetch_issue_comment_state(
- "cyhhao/vibe-remote",
+ "avibe-bot/avibe",
24,
token="token",
stop_after_id=302,
@@ -163,7 +163,7 @@ def test_fetch_new_issue_state_tracks_raw_cursor_and_request_count() -> None:
with patch.object(module, "list_paginated_with_count", side_effect=_fake_list_paginated_with_count):
state, request_count = module._fetch_new_issue_state(
- "cyhhao/vibe-remote",
+ "avibe-bot/avibe",
token="token",
stop_after_id=401,
)
@@ -221,7 +221,7 @@ def test_main_uses_raw_issue_cursor_for_new_issue_paging() -> None:
patch.object(module, "get_token", return_value="token"),
patch.object(module, "get_authenticated_login", return_value=None),
patch.object(module.time, "sleep", return_value=None),
- patch("sys.argv", ["wait_issue.py", "--repo", "cyhhao/vibe-remote", "--new-issues", "--interval", "1"]),
+ patch("sys.argv", ["wait_issue.py", "--repo", "avibe-bot/avibe", "--new-issues", "--interval", "1"]),
redirect_stdout(stdout),
):
rc = module.main()
@@ -264,7 +264,7 @@ def test_main_uses_since_raw_issue_cursor_for_initial_new_issue_fetch() -> None:
[
"wait_issue.py",
"--repo",
- "cyhhao/vibe-remote",
+ "avibe-bot/avibe",
"--new-issues",
"--since-issue-id",
"400",
@@ -314,7 +314,7 @@ def test_main_uses_since_issue_cursor_for_initial_new_issue_fetch_without_raw_cu
[
"wait_issue.py",
"--repo",
- "cyhhao/vibe-remote",
+ "avibe-bot/avibe",
"--new-issues",
"--since-issue-id",
"400",
@@ -360,7 +360,7 @@ def test_main_bootstraps_new_issue_watch_from_first_page_only() -> None:
patch.object(module, "get_token", return_value="token"),
patch.object(module, "get_authenticated_login", return_value=None),
patch.object(module.time, "sleep", return_value=None),
- patch("sys.argv", ["wait_issue.py", "--repo", "cyhhao/vibe-remote", "--new-issues", "--interval", "1"]),
+ patch("sys.argv", ["wait_issue.py", "--repo", "avibe-bot/avibe", "--new-issues", "--interval", "1"]),
redirect_stdout(stdout),
):
rc = module.main()
@@ -400,7 +400,7 @@ def test_main_uses_since_issue_comment_cursor_for_initial_issue_fetch() -> None:
[
"wait_issue.py",
"--repo",
- "cyhhao/vibe-remote",
+ "avibe-bot/avibe",
"--issue",
"24",
"--since-issue-comment-id",
@@ -461,7 +461,7 @@ def test_main_reduces_unauthenticated_new_issue_interval_after_bootstrap() -> No
[
"wait_issue.py",
"--repo",
- "cyhhao/vibe-remote",
+ "avibe-bot/avibe",
"--new-issues",
"--allow-unauthenticated",
"--interval",
@@ -487,7 +487,7 @@ def test_main_returns_retry_exit_code_for_retryable_initial_issue_http_error() -
patch.object(module, "_fetch_issue_comment_state", side_effect=err),
patch.object(module, "get_token", return_value="token"),
patch.object(module, "get_authenticated_login", return_value=None),
- patch("sys.argv", ["wait_issue.py", "--repo", "cyhhao/vibe-remote", "--issue", "24"]),
+ patch("sys.argv", ["wait_issue.py", "--repo", "avibe-bot/avibe", "--issue", "24"]),
patch("sys.stderr", stderr),
):
rc = module.main()
@@ -505,7 +505,7 @@ def test_main_returns_terminal_exit_code_for_non_retryable_initial_issue_http_er
patch.object(module, "_fetch_issue_comment_state", side_effect=err),
patch.object(module, "get_token", return_value="token"),
patch.object(module, "get_authenticated_login", return_value=None),
- patch("sys.argv", ["wait_issue.py", "--repo", "cyhhao/vibe-remote", "--issue", "24"]),
+ patch("sys.argv", ["wait_issue.py", "--repo", "avibe-bot/avibe", "--issue", "24"]),
patch("sys.stderr", stderr),
):
rc = module.main()
@@ -523,7 +523,7 @@ def test_main_returns_retry_exit_code_for_initial_issue_network_error() -> None:
patch.object(module, "_fetch_issue_comment_state", side_effect=err),
patch.object(module, "get_token", return_value="token"),
patch.object(module, "get_authenticated_login", return_value=None),
- patch("sys.argv", ["wait_issue.py", "--repo", "cyhhao/vibe-remote", "--issue", "24"]),
+ patch("sys.argv", ["wait_issue.py", "--repo", "avibe-bot/avibe", "--issue", "24"]),
patch("sys.stderr", stderr),
):
rc = module.main()
diff --git a/tests/test_wait_for_github_pr_activity.py b/tests/test_wait_for_github_pr_activity.py
index 7e6c0c23a..deb0e0fa3 100644
--- a/tests/test_wait_for_github_pr_activity.py
+++ b/tests/test_wait_for_github_pr_activity.py
@@ -41,7 +41,7 @@ def test_render_activity_includes_codex_pr_body_reaction() -> None:
}
output, review_cursor, review_comment_cursor, issue_comment_cursor, reaction_cursor, pr_status = module._render_activity(
- repo="cyhhao/vibe-remote",
+ repo="avibe-bot/avibe",
pr_number=153,
state=state,
review_cursor=0,
@@ -86,7 +86,7 @@ def test_render_activity_ignores_non_codex_or_non_plus_one_reactions() -> None:
}
output, *_rest = module._render_activity(
- repo="cyhhao/vibe-remote",
+ repo="avibe-bot/avibe",
pr_number=153,
state=state,
review_cursor=0,
@@ -118,7 +118,7 @@ def test_render_activity_ignores_self_authored_issue_comment_but_advances_cursor
}
output, review_cursor, review_comment_cursor, issue_comment_cursor, reaction_cursor, pr_status = module._render_activity(
- repo="cyhhao/vibe-remote",
+ repo="avibe-bot/avibe",
pr_number=153,
state=state,
review_cursor=0,
@@ -157,7 +157,7 @@ def test_render_activity_ignores_self_authored_review_but_advances_cursor() -> N
}
output, review_cursor, review_comment_cursor, issue_comment_cursor, reaction_cursor, pr_status = module._render_activity(
- repo="cyhhao/vibe-remote",
+ repo="avibe-bot/avibe",
pr_number=153,
state=state,
review_cursor=0,
@@ -195,7 +195,7 @@ def test_render_activity_includes_self_authored_comment_when_disabled() -> None:
}
output, *_rest = module._render_activity(
- repo="cyhhao/vibe-remote",
+ repo="avibe-bot/avibe",
pr_number=153,
state=state,
review_cursor=0,
@@ -231,7 +231,7 @@ def test_render_activity_includes_self_authored_review_when_disabled() -> None:
}
output, *_rest = module._render_activity(
- repo="cyhhao/vibe-remote",
+ repo="avibe-bot/avibe",
pr_number=153,
state=state,
review_cursor=0,
@@ -265,7 +265,7 @@ def test_render_activity_includes_pr_status_change() -> None:
}
output, review_cursor, review_comment_cursor, issue_comment_cursor, reaction_cursor, pr_status = module._render_activity(
- repo="cyhhao/vibe-remote",
+ repo="avibe-bot/avibe",
pr_number=153,
state=state,
review_cursor=0,
@@ -302,7 +302,7 @@ def test_render_activity_reports_open_to_draft_transition() -> None:
}
output, *_rest, pr_status = module._render_activity(
- repo="cyhhao/vibe-remote",
+ repo="avibe-bot/avibe",
pr_number=153,
state=state,
review_cursor=0,
@@ -335,7 +335,7 @@ def test_render_activity_reports_draft_to_open_transition() -> None:
}
output, *_rest, pr_status = module._render_activity(
- repo="cyhhao/vibe-remote",
+ repo="avibe-bot/avibe",
pr_number=153,
state=state,
review_cursor=0,
@@ -368,7 +368,7 @@ def test_render_activity_reports_closed_to_open_transition() -> None:
}
output, *_rest, pr_status = module._render_activity(
- repo="cyhhao/vibe-remote",
+ repo="avibe-bot/avibe",
pr_number=153,
state=state,
review_cursor=0,
@@ -401,7 +401,7 @@ def test_render_activity_prioritizes_closed_over_draft() -> None:
}
output, *_rest, pr_status = module._render_activity(
- repo="cyhhao/vibe-remote",
+ repo="avibe-bot/avibe",
pr_number=153,
state=state,
review_cursor=0,
@@ -434,7 +434,7 @@ def test_render_activity_skips_unchanged_pr_status() -> None:
}
output, review_cursor, review_comment_cursor, issue_comment_cursor, reaction_cursor, pr_status = module._render_activity(
- repo="cyhhao/vibe-remote",
+ repo="avibe-bot/avibe",
pr_number=153,
state=state,
review_cursor=0,
@@ -469,7 +469,7 @@ def test_render_new_pull_requests_includes_new_prs() -> None:
}
output, pr_cursor = module._render_new_pull_requests(
- repo="cyhhao/vibe-remote",
+ repo="avibe-bot/avibe",
state=state,
pr_cursor=0,
event_limit=8,
@@ -497,7 +497,7 @@ def test_fetch_new_pr_state_stops_after_cursor() -> None:
with patch.object(module, "list_paginated_with_count", side_effect=_fake_list_paginated_with_count):
state, request_count = module._fetch_new_pr_state(
- "cyhhao/vibe-remote",
+ "avibe-bot/avibe",
token="token",
stop_after_id=405,
)
@@ -538,7 +538,7 @@ def test_main_uses_since_pr_cursor_for_initial_new_pr_fetch() -> None:
[
"wait_pr.py",
"--repo",
- "cyhhao/vibe-remote",
+ "avibe-bot/avibe",
"--new-prs",
"--since-pr-id",
"405",
@@ -583,7 +583,7 @@ def test_main_bootstraps_new_pr_watch_from_first_page_only() -> None:
patch.object(module, "get_token", return_value="token"),
patch.object(module, "get_authenticated_login", return_value=None),
patch.object(module.time, "sleep", return_value=None),
- patch("sys.argv", ["wait_pr.py", "--repo", "cyhhao/vibe-remote", "--new-prs", "--interval", "1"]),
+ patch("sys.argv", ["wait_pr.py", "--repo", "avibe-bot/avibe", "--new-prs", "--interval", "1"]),
redirect_stdout(stdout),
):
rc = module.main()
@@ -639,7 +639,7 @@ def test_main_detects_pr_status_change_during_polling() -> None:
patch.object(module, "get_token", return_value="token"),
patch.object(module, "get_authenticated_login", return_value=None),
patch.object(module.time, "sleep", return_value=None),
- patch("sys.argv", ["wait_pr.py", "--repo", "cyhhao/vibe-remote", "--pr", "153", "--interval", "1"]),
+ patch("sys.argv", ["wait_pr.py", "--repo", "avibe-bot/avibe", "--pr", "153", "--interval", "1"]),
redirect_stdout(stdout),
):
rc = module.main()
@@ -693,7 +693,7 @@ def test_main_reduces_unauthenticated_new_pr_interval_after_bootstrap() -> None:
[
"wait_pr.py",
"--repo",
- "cyhhao/vibe-remote",
+ "avibe-bot/avibe",
"--new-prs",
"--allow-unauthenticated",
"--interval",
@@ -719,7 +719,7 @@ def test_main_returns_retry_exit_code_for_retryable_initial_pr_http_error() -> N
patch.object(module, "_fetch_state", side_effect=err),
patch.object(module, "get_token", return_value="token"),
patch.object(module, "get_authenticated_login", return_value=None),
- patch("sys.argv", ["wait_pr.py", "--repo", "cyhhao/vibe-remote", "--pr", "153"]),
+ patch("sys.argv", ["wait_pr.py", "--repo", "avibe-bot/avibe", "--pr", "153"]),
patch("sys.stderr", stderr),
):
rc = module.main()
@@ -737,7 +737,7 @@ def test_main_returns_terminal_exit_code_for_non_retryable_initial_pr_http_error
patch.object(module, "_fetch_state", side_effect=err),
patch.object(module, "get_token", return_value="token"),
patch.object(module, "get_authenticated_login", return_value=None),
- patch("sys.argv", ["wait_pr.py", "--repo", "cyhhao/vibe-remote", "--pr", "153"]),
+ patch("sys.argv", ["wait_pr.py", "--repo", "avibe-bot/avibe", "--pr", "153"]),
patch("sys.stderr", stderr),
):
rc = module.main()
@@ -755,7 +755,7 @@ def test_main_returns_retry_exit_code_for_initial_pr_network_error() -> None:
patch.object(module, "_fetch_state", side_effect=err),
patch.object(module, "get_token", return_value="token"),
patch.object(module, "get_authenticated_login", return_value=None),
- patch("sys.argv", ["wait_pr.py", "--repo", "cyhhao/vibe-remote", "--pr", "153"]),
+ patch("sys.argv", ["wait_pr.py", "--repo", "avibe-bot/avibe", "--pr", "153"]),
patch("sys.stderr", stderr),
):
rc = module.main()