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.
Python agentagent-osaiai-agentsai-partnerchatopsclaudeclaude-codecodexdevtoolsdiscord-botlark-botllmlocal-firstlong-term-memoryopencodeslack-botvibe-codingvibeywechat
docs(tasks): refresh task and hook messaging
cyhb31ce31d9b7d
diff --git a/README.md b/README.mdindex a196cca0d..d88b1d19b 100644--- a/README.md+++ b/README.md@@ -156,6 +156,14 @@ When your agent needs input — file selection, confirmation, options — your c+### Scheduled Tasks & Async Hooks++Ask your agent to schedule work for later, repeat a prompt on a cron, or queue a one-shot async follow-up after a long-running job.++- Persist recurring or one-off prompts with `vibe task`+- Queue a single async send with `vibe hook send`+- Keep session context and delivery target separate when needed+---## How It Works@@ -224,6 +232,8 @@ vibe # Start everythingvibe status # Check if runningvibe stop # Stop everythingvibe doctor # Diagnose issues+vibe task # Create and manage scheduled tasks+vibe hook # Queue one-shot async sends```---diff --git a/README_ZH.md b/README_ZH.mdindex 773505693..065e15251 100644--- a/README_ZH.md+++ b/README_ZH.md@@ -156,6 +156,14 @@ Agent 需要输入时 — 文件选择、确认、选项 — 聊天 App 弹出+### 定时任务与异步 Hook++你可以让 Agent 把工作安排到稍后执行、按 cron 周期性触发,或者在长任务结束后异步补发一条消息。++- 用 `vibe task` 保存周期性或一次性提示+- 用 `vibe hook send` 队列化一次性的异步发送+- 需要时可把会话上下文和消息投递目标拆开+---## 工作原理@@ -224,6 +232,8 @@ vibe # 启动一切vibe status # 检查运行状态vibe stop # 停止一切vibe doctor # 诊断问题+vibe task # 创建和管理定时任务+vibe hook # 队列化一次性异步发送```---diff --git a/core/handlers/settings_handler.py b/core/handlers/settings_handler.pyindex 414d19be5..0302e32ff 100644--- a/core/handlers/settings_handler.py+++ b/core/handlers/settings_handler.py@@ -344,6 +344,7 @@ class SettingsHandler(BaseHandler):(self._t("info.howItWorksCommandsLabel"), self._t("info.howItWorksCommandsDesc")),(self._t("info.howItWorksResumeLabel"), self._t("info.howItWorksResumeDesc")),(self._t("info.howItWorksWorkDirLabel"), self._t("info.howItWorksWorkDirDesc")),+ (self._t("info.howItWorksTasksLabel"), self._t("info.howItWorksTasksDesc")),(self._t("info.howItWorksSettingsLabel"), self._t("info.howItWorksSettingsDesc")),],footer=self._t("info.howItWorksFooter", agent=agent_label),diff --git a/docs/CLI.md b/docs/CLI.mdindex 74929159d..ec0dda2fc 100644--- a/docs/CLI.md+++ b/docs/CLI.md@@ -117,6 +117,37 @@ vibe doctor- Agent CLI availability (Claude Code, OpenCode, Codex)- Runtime environment+### `vibe task`++Create, inspect, update, run, pause, resume, or remove scheduled tasks.++```bash+vibe task add --session-key 'slack::channel::C123' --cron '0 * * * *' --prompt 'Share the hourly summary.'+vibe task list --brief+vibe task update <task-id> --cron '*/30 * * * *'+vibe task run <task-id>+vibe task remove <task-id>+```++Use `vibe task add --help` and `vibe task update --help` for the full command surface, including:++- `--session-key` for session continuity+- `--post-to channel` to publish into the parent channel while keeping thread context+- `--deliver-key` for an explicit delivery target+- `--cron` and `--at` scheduling+- `--name`, `--timezone`, and prompt file support++### `vibe hook send`++Queue one asynchronous turn without storing a scheduled task definition.++```bash+vibe hook send --session-key 'slack::channel::C123' --prompt 'The export finished. Share the summary.'+vibe hook send --session-key 'slack::channel::C123::thread::171717.123' --post-to channel --prompt 'Share the benchmark result in the channel.'+```++Use this when you want one delayed or background follow-up without persisting a task in `scheduled_tasks.json`.+### `vibe version`Show the installed version.@@ -236,6 +267,9 @@ The web UI (`http://127.0.0.1:5123`) provides the same controls:|------|-------------|| `~/.vibe_remote/config/config.json` | Main configuration || `~/.vibe_remote/state/settings.json` | Channel routing settings |+| `~/.vibe_remote/state/scheduled_tasks.json` | Persisted scheduled task definitions |+| `~/.vibe_remote/state/task_requests/` | Queued task run and hook execution requests |+| `~/.vibe_remote/state/user_preferences.md` | Shared long-term user preference notes || `~/.vibe_remote/logs/vibe_remote.log` | Application logs || `~/.vibe_remote/logs/opencode_server.json` | OpenCode server PID file |diff --git a/docs/CLI_ZH.md b/docs/CLI_ZH.mdindex af10d5161..b817c8343 100644--- a/docs/CLI_ZH.md+++ b/docs/CLI_ZH.md@@ -117,6 +117,37 @@ vibe doctor- Agent CLI 可用性(Claude Code、OpenCode、Codex)- 运行时环境+### `vibe task`++创建、查看、更新、立即执行、暂停、恢复或删除定时任务。++```bash+vibe task add --session-key 'slack::channel::C123' --cron '0 * * * *' --prompt 'Share the hourly summary.'+vibe task list --brief+vibe task update <task-id> --cron '*/30 * * * *'+vibe task run <task-id>+vibe task remove <task-id>+```++更完整的参数说明请直接看 `vibe task add --help` 和 `vibe task update --help`。其中重点包括:++- 用 `--session-key` 指定会话连续性+- 用 `--post-to channel` 在保留 thread 上下文的同时把消息发到父频道+- 用 `--deliver-key` 指定显式投递目标+- 用 `--cron` / `--at` 控制定时方式+- 以及 `--name`、`--timezone`、`--prompt-file` 等参数++### `vibe hook send`++队列化一次异步 turn,不会把任务定义持久化到 `scheduled_tasks.json`。++```bash+vibe hook send --session-key 'slack::channel::C123' --prompt 'The export finished. Share the summary.'+vibe hook send --session-key 'slack::channel::C123::thread::171717.123' --post-to channel --prompt 'Share the benchmark result in the channel.'+```++适合“只异步补发一次消息,不想保存成定时任务”的场景。+### `vibe version`显示已安装的版本。@@ -236,6 +267,9 @@ Web UI (`http://127.0.0.1:5123`) 提供相同的控制功能:|------|------|| `~/.vibe_remote/config/config.json` | 主配置文件 || `~/.vibe_remote/state/settings.json` | 频道路由设置 |+| `~/.vibe_remote/state/scheduled_tasks.json` | 持久化的定时任务定义 |+| `~/.vibe_remote/state/task_requests/` | task run 与 hook 的请求队列 |+| `~/.vibe_remote/state/user_preferences.md` | 共享的长期用户偏好笔记 || `~/.vibe_remote/logs/vibe_remote.log` | 应用日志 || `~/.vibe_remote/logs/opencode_server.json` | OpenCode 服务器 PID 文件 |diff --git a/vibe/i18n/en.json b/vibe/i18n/en.jsonindex 20541bd1f..6c2e45141 100644--- a/vibe/i18n/en.json+++ b/vibe/i18n/en.json@@ -96,6 +96,8 @@"howItWorksResumeDesc": "Switch from desktop to mobile without losing momentum. Reopen recent Claude Code, OpenCode, or Codex sessions from this working directory and continue instantly.","howItWorksWorkDirLabel": "File Attachments","howItWorksWorkDirDesc": "Attach images or files to your message — the agent can read them directly.",+ "howItWorksTasksLabel": "Scheduled Tasks & Hooks",+ "howItWorksTasksDesc": "Ask the agent to schedule recurring or one-off prompts, or queue a single async follow-up after a long-running job.","howItWorksSettingsLabel": "Flexible Settings","howItWorksSettingsDesc": "Mention @bot to switch agents, models, reasoning effort, or hide verbose message types.","howItWorksFooter": "Just type to chat with {agent}. No special commands needed!",diff --git a/vibe/i18n/zh.json b/vibe/i18n/zh.jsonindex 2fad5d578..2e6a05a23 100644--- a/vibe/i18n/zh.json+++ b/vibe/i18n/zh.json@@ -96,6 +96,8 @@"howItWorksResumeDesc": "从电脑切到手机也不断档。可直接恢复当前工作目录下最近的 Claude Code、OpenCode 或 Codex 会话,接着继续。","howItWorksWorkDirLabel": "文件附件","howItWorksWorkDirDesc": "直接在消息中附带图片或文件,Agent 可以读取。",+ "howItWorksTasksLabel": "定时任务与 Hook",+ "howItWorksTasksDesc": "可以让 Agent 安排周期性或一次性提示,也可以在长任务结束后异步补发一条消息。","howItWorksSettingsLabel": "灵活设置","howItWorksSettingsDesc": "通过 @bot 随时切换 Agent、模型、推理强度,或隐藏冗余消息类型。","howItWorksFooter": "直接输入消息即可与 {agent} 对话,无需特殊命令!",