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(vibe): clarify session scope guidance
cyh732facc00f79
diff --git a/core/reply_enhancer.py b/core/reply_enhancer.pyindex 59fcb476b..f76a35d61 100644--- a/core/reply_enhancer.py+++ b/core/reply_enhancer.py@@ -197,20 +197,17 @@ Use `vibe hook send --session-key ... --prompt ...` for one-shot asynchronous seCurrent conversation targeting:- Default session key: `{default_session_key}`- Channel-level session key: `{channel_session_key}`-- Current thread ID: `{thread_id}`Rules:- `session_key` controls the conversation scope that Vibe Remote will continue using.-- The default session key should usually stay at the current thread scope when a thread exists.-- Use the channel-level session key when the work should continue outside the current thread and create or reuse a channel-scoped conversation.+- When you do not want to keep the current session and instead want to start or reuse a higher-level session, usually use the higher-level session key. For example, if the default key is `slack::channel::C123::thread::171717.123`, then `slack::channel::C123` creates or reuses the channel-scoped session.- `--post-to` changes the delivery target, not the session scope. Use `--post-to channel` when the session should stay thread-scoped but the follow-up message should be posted to the parent channel.- Use `--cron "<expr>"` for recurring tasks or `--at "<ISO-8601>"` for one-off stored tasks.- Use `vibe watch list`, `vibe watch show`, `vibe watch pause`, `vibe watch resume`, and `vibe watch remove` to manage background work after creation.- Prefer `vibe watch add` over ad-hoc `nohup` or shell-detached jobs when the user wants a managed background task.-- Use `--timeout <seconds>` on watches for per-cycle timeouts, and `--lifetime-timeout <seconds>` only when a forever watch also needs an overall lifetime cap.- If `--timezone` is omitted, the task uses the local system timezone at creation time.-- Use `--prompt "..."` or `--prompt-file <path>` for task and hook content.-- Run `vibe task add --help`, `vibe watch add --help`, or `vibe hook send --help` for the full command reference.+- Use `--prompt "..."` or `--prompt-file <path>` for task and hook content. Use `--prefix "..."` on watches for the follow-up instruction that is prepended before waiter stdout; when both exist, Vibe Remote joins them with a blank line.+- If this is your first time using these commands, read `vibe task add --help`, `vibe watch add --help`, or `vibe hook send --help` before creating anything. The help text and relevant skills explain not just the argument syntax but also runtime effects such as how follow-up messages are built and how tasks or watches are stored and managed."""@@ -259,11 +256,9 @@ def _build_scheduled_tasks_prompt(context: MessageContext, *, fallback_platform:include_thread=False,fallback_platform=fallback_platform,)- thread_id = context.thread_id or "(none)"return _SCHEDULED_TASKS_PROMPT.format(default_session_key=default_key,channel_session_key=channel_key,- thread_id=thread_id,)diff --git a/skills/background-watch-hook/SKILL.md b/skills/background-watch-hook/SKILL.mdindex 52cddb266..d3ffb3c30 100644--- a/skills/background-watch-hook/SKILL.md+++ b/skills/background-watch-hook/SKILL.md@@ -2,7 +2,7 @@name: background-watch-hookslug: background-watch-hookdescription: Use `vibe watch` to run a background waiter that returns to the same conversation later. Best for reviews, CI, files, logs, and other wait-now-continue-later workflows.-version: 0.6.0+version: 0.6.1---# Background Watch Hook@@ -63,7 +63,7 @@ Use `--forever` when the same waiter should re-arm after each detected event ins## `vibe watch` Parameters To Remember- `--session-key`: where the follow-up should go-- `--prefix`: what the next turn should do with the waiter result+- `--prefix`: the instruction text prepended before waiter stdout in the follow-up; when both exist they are joined with a blank line- `--name`: optional label for later management- `--forever`: re-arm after each detected event- `--timeout`: per-cycle timeout@@ -130,9 +130,11 @@ vibe watch add \Use the current Vibe Remote context:-- current channel if the follow-up can return there-- current thread if the follow-up must stay in thread context-- `--post-to channel` only when the user wants to keep thread context but publish in the parent channel+- `session_key` controls which session Vibe Remote will continue using+- keep the current session key when the follow-up should continue the same session+- when you do not want to keep the current thread session and instead want to start or reuse the higher-level session, use the higher-level key+- example: `slack::channel::C123::thread::171717.123` keeps the current thread session, while `slack::channel::C123` creates or reuses the channel-scoped session+- `--post-to channel` only when the follow-up should keep the session chosen by `session_key` but publish in the parent channelIf the current turn does not expose a usable target, ask instead of guessing.@@ -241,6 +243,7 @@ uv run --no-project scripts/wait_issue.py --repo cyhhao/vibe-remote --issue 157## Practical Advice- Keep prefixes action-oriented. Tell the next turn what to do with the waiter result.+- If this is the first time using `vibe watch add`, read `vibe watch add --help` first; the help text explains both argument syntax and runtime behavior such as how `--prefix` and waiter stdout become the follow-up message.- Prefer `vibe watch` over ad-hoc detached shells when the wait should survive the current turn cleanly.- Treat GitHub as just one example waiter, not the main point of the skill.- If a watch is no longer useful, remove it instead of leaving stale background work behind.diff --git a/skills/use-vibe-remote/SKILL.md b/skills/use-vibe-remote/SKILL.mdindex 170290c9e..3042589dc 100644--- a/skills/use-vibe-remote/SKILL.md+++ b/skills/use-vibe-remote/SKILL.md@@ -2,7 +2,7 @@name: use-vibe-remoteslug: use-vibe-remotedescription: Safely inspect and modify local Vibe Remote configuration, routing, runtime settings, watches, scheduled tasks, and operational state.-version: 0.1.7+version: 0.1.8---# Use Vibe Remote@@ -321,9 +321,16 @@ Preferred CLI shape:Delivery controls:-- use `--post-to channel` when the task should keep session context from a thread-bound `session_key` but publish to the parent channel+- `session_key` controls which session Vibe Remote continues using+- when you want to keep the current session, keep using the current `session_key`+- when you do not want to keep the current thread session and instead want to start or reuse the higher-level session, switch to the higher-level key+- example: `slack::channel::C123::thread::171717.123` keeps the current thread session, while `slack::channel::C123` creates or reuses the channel-scoped session+- use `--post-to channel` when the task or hook should keep the session chosen by `session_key` but publish to the parent channel- use `--deliver-key '<key>'` only when delivery must go to a different explicit target than `session_key`- do not combine `--post-to` and `--deliver-key` in the same command+- `vibe task add` stores the text from `--prompt` or `--prompt-file` and injects it each time the task runs+- `vibe hook send` queues the text from `--prompt` or `--prompt-file` once without storing a task+- `vibe watch add` uses `--prefix` as follow-up instruction text; on a successful cycle Vibe Remote prepends it before waiter stdout, joined with a blank line when both existSession key format:@@ -333,11 +340,13 @@ Session key format:Default rule:-- prefer the threadless session key unless the user explicitly asks to keep replies in the current thread+- default to the current session key when the follow-up should continue the same conversation+- switch to a higher-level key only when the user wants a new higher-level session instead of continuing the current oneOperational guidance:- use `vibe task list` before editing or deleting an existing task+- if this is the first time using `vibe task add`, `vibe watch add`, or `vibe hook send`, read the matching `--help` output first because it explains both parameter syntax and runtime effects- use `vibe task update <id>` to keep the same task ID while changing name, schedule, prompt, or target- use `vibe task list --brief` when you need a scheduling-focused summary instead of the full stored payload- `vibe task list` hides completed one-shot tasks by default; use `vibe task list --all` when you need the full historydiff --git a/tests/test_cli_task_command.py b/tests/test_cli_task_command.pyindex 191274d1b..90a7be926 100644--- a/tests/test_cli_task_command.py+++ b/tests/test_cli_task_command.py@@ -115,11 +115,26 @@ def test_task_add_help_includes_examples_and_threadless_guidance(capsys) -> Noneassert exc.value.code == 0captured = capsys.readouterr()- assert "Prefer a threadless session key by default." in captured.out+ assert "If this is your first time using this command, read this whole help entry before creating a task." in captured.out+ assert "`--session-key` chooses which session Vibe Remote will continue using when the task runs." in captured.outassert "--post-to" in captured.outassert "--deliver-key" in captured.out+++def test_hook_send_help_describes_runtime_effects(capsys) -> None:+ parser = cli.build_parser()++ with pytest.raises(SystemExit) as exc:+ parser.parse_args(["hook", "send", "--help"])++ assert exc.value.code == 0+ captured = capsys.readouterr()+ assert "If this is your first time using this command, read this whole help entry before queuing a hook." in captured.out+ assert "`vibe hook send` queues one asynchronous turn without persisting a scheduled task." in captured.out+ assert "`--post-to channel` changes where the message is posted, not which session is continued." in captured.out+ assert "`--prompt` and `--prompt-file` provide the one-shot async content that will be queued immediately." in captured.outassert "<platform>::channel::<channel_id>" in captured.out- assert "vibe task add --session-key 'slack::channel::C123'" in captured.out+ assert "vibe hook send --session-key 'slack::channel::C123'" in captured.outdef test_task_list_help_mentions_completed_one_shots_hidden_by_default(capsys) -> None:diff --git a/tests/test_cli_watch_command.py b/tests/test_cli_watch_command.pyindex 3c4b09f65..bd3cd61da 100644--- a/tests/test_cli_watch_command.py+++ b/tests/test_cli_watch_command.py@@ -68,6 +68,8 @@ def test_watch_add_help_mentions_shell_and_lifetime_timeout(capsys) -> None:assert "Pass either --shell '<command>' or a command after '--'." in captured.outassert "--lifetime-timeout" in captured.outassert "vibe watch add --session-key 'slack::channel::C123'" in captured.out+ assert "`--prefix` becomes the instruction text of the follow-up hook." in captured.out+ assert "If this is your first time using this command, read this whole help entry before creating a watch." in captured.outdef test_watch_add_parser_keeps_top_level_command_name() -> None:diff --git a/tests/test_reply_enhancer_platform.py b/tests/test_reply_enhancer_platform.pyindex d1cfb6a6b..86e98110e 100644--- a/tests/test_reply_enhancer_platform.py+++ b/tests/test_reply_enhancer_platform.py@@ -110,7 +110,10 @@ class ReplyEnhancerPlatformTests(unittest.IsolatedAsyncioTestCase):)self.assertIn("Default session key: `slack::channel::C1::thread::171717.123`", prompt)self.assertIn("Channel-level session key: `slack::channel::C1`", prompt)- self.assertIn("Current thread ID: `171717.123`", prompt)+ self.assertIn(+ "When you do not want to keep the current session and instead want to start or reuse a higher-level session, usually use the higher-level session key.",+ prompt,+ )self.assertIn("`--post-to` changes the delivery target, not the session scope. Use `--post-to channel` when the session should stay thread-scoped but the follow-up message should be posted to the parent channel.",prompt,@@ -123,13 +126,13 @@ class ReplyEnhancerPlatformTests(unittest.IsolatedAsyncioTestCase):"Prefer `vibe watch add` over ad-hoc `nohup` or shell-detached jobs when the user wants a managed background task.",prompt,)+ self.assertIn("If `--timezone` is omitted, the task uses the local system timezone at creation time.", prompt)self.assertIn(- "Use `--timeout <seconds>` on watches for per-cycle timeouts, and `--lifetime-timeout <seconds>` only when a forever watch also needs an overall lifetime cap.",+ "Use `--prompt \"...\"` or `--prompt-file <path>` for task and hook content. Use `--prefix \"...\"` on watches for the follow-up instruction that is prepended before waiter stdout; when both exist, Vibe Remote joins them with a blank line.",prompt,)- self.assertIn("If `--timezone` is omitted, the task uses the local system timezone at creation time.", prompt)self.assertIn(- "Run `vibe task add --help`, `vibe watch add --help`, or `vibe hook send --help` for the full command reference.",+ "If this is your first time using these commands, read `vibe task add --help`, `vibe watch add --help`, or `vibe hook send --help` before creating anything.",prompt,)self.assertIn("A shared user context and preferences file is available at ", prompt)diff --git a/vibe/cli.py b/vibe/cli.pyindex fe0d0149e..1d3141b14 100644--- a/vibe/cli.py+++ b/vibe/cli.py@@ -125,10 +125,15 @@ def _task_add_examples_text() -> str:<platform>::user::<user_id>::thread::<thread_id>Guidance:- Prefer a threadless session key by default.- Only append ::thread::<thread_id> when the task must continue inside a specific thread.- Use --post-to channel when the task should keep thread context but publish to the parent channel.+ If this is your first time using this command, read this whole help entry before creating a task.+ `--session-key` chooses which session Vibe Remote will continue using when the task runs.+ Keep the current session key when future runs should stay in the same session.+ When you want to leave the current thread session and start or reuse the higher-level session instead, use the higher-level key. Example:+ slack::channel::C123::thread::171717.123 -> keep the current thread session+ slack::channel::C123 -> create or reuse the channel-scoped session+ `--post-to channel` changes where the message is posted, not which session is continued.Use --deliver-key only when delivery must go to a different explicit target.+ `--prompt` and `--prompt-file` provide the stored task content that will be injected each time the task runs.Use --cron for recurring jobs and --at for one-shot jobs.--timezone controls how --cron and naive --at timestamps are interpreted.@@ -174,11 +179,16 @@ def _hook_send_examples_text() -> str:<platform>::user::<user_id>::thread::<thread_id>Guidance:+ If this is your first time using this command, read this whole help entry before queuing a hook.`vibe hook send` queues one asynchronous turn without persisting a scheduled task.- Prefer a threadless session key by default.- Only append ::thread::<thread_id> when the hook must continue in one specific thread.- Use --post-to channel when the hook should keep thread context but publish to the parent channel.+ `--session-key` chooses which session Vibe Remote will continue using for that one async turn.+ Keep the current session key when the hook should continue in the same session.+ When you want to leave the current thread session and start or reuse the higher-level session instead, use the higher-level key. Example:+ slack::channel::C123::thread::171717.123 -> keep the current thread session+ slack::channel::C123 -> create or reuse the channel-scoped session+ `--post-to channel` changes where the message is posted, not which session is continued.Use --deliver-key only when delivery must go to a different explicit target.+ `--prompt` and `--prompt-file` provide the one-shot async content that will be queued immediately.Examples:vibe hook send --session-key 'slack::channel::C123' --prompt 'The export finished. Share the summary.'@@ -214,11 +224,16 @@ def _watch_add_examples_text() -> str:<platform>::user::<user_id>::thread::<thread_id>Guidance:+ If this is your first time using this command, read this whole help entry before creating a watch.Use a watch when a script should wait in the background and send one hook only after a condition is met.- Prefer a threadless session key by default.- Only append ::thread::<thread_id> when follow-up must stay inside one specific thread.- Use --post-to channel when the watch should keep thread context but publish to the parent channel.+ `--session-key` chooses which session Vibe Remote will continue using for follow-up messages from the watch.+ Keep the current session key when follow-up should continue in the same session.+ When you want to leave the current thread session and start or reuse the higher-level session instead, use the higher-level key. Example:+ slack::channel::C123::thread::171717.123 -> keep the current thread session+ slack::channel::C123 -> create or reuse the channel-scoped session+ `--post-to channel` changes where the follow-up is posted, not which session is continued.Use --deliver-key only when delivery must go to a different explicit target.+ `--prefix` becomes the instruction text of the follow-up hook. On a successful cycle, Vibe Remote prepends `--prefix` before waiter stdout and joins them with a blank line when both exist.Pass either --shell '<command>' or a command after '--'.--timeout applies to each cycle. --lifetime-timeout applies only to the whole forever watch lifetime.@@ -1900,24 +1915,24 @@ def build_parser():task_add_parser.add_argument("--session-key",required=True,- help="Target session key. Prefer a threadless key unless the task must stay in one thread.",+ help="Conversation session key to continue when the task runs.",)delivery_group = task_add_parser.add_mutually_exclusive_group()delivery_group.add_argument("--post-to",choices=("thread", "channel"),- help="Delivery location override. Omit to follow --session-key directly.",+ help="Delivery location override. This changes where the message is posted, not which session is continued.",)delivery_group.add_argument("--deliver-key",- help="Explicit delivery target key. Use this only when messages must be delivered to a different target.",+ help="Explicit delivery target key. Use this only when delivery must go to a different target than the continued session.",)schedule_group = task_add_parser.add_mutually_exclusive_group(required=True)schedule_group.add_argument("--cron", help="Recurring schedule in 5-field crontab format")schedule_group.add_argument("--at", help="One-shot timestamp in ISO 8601 format")prompt_group = task_add_parser.add_mutually_exclusive_group(required=True)- prompt_group.add_argument("--prompt", help="Prompt text to send")- prompt_group.add_argument("--prompt-file", help="Read prompt text from a UTF-8 text file")+ prompt_group.add_argument("--prompt", help="Stored task content to inject each time the task runs")+ prompt_group.add_argument("--prompt-file", help="Read stored task content from a UTF-8 text file")task_add_parser.add_argument("--timezone", help="IANA timezone name used for --cron and naive --at values")task_update_parser = task_subparsers.add_parser(@@ -2052,21 +2067,21 @@ def build_parser():hook_send_parser.add_argument("--session-key",required=True,- help="Target session key. Prefer a threadless key unless the hook must stay in one thread.",+ help="Conversation session key to continue for this one-shot async turn.",)hook_delivery_group = hook_send_parser.add_mutually_exclusive_group()hook_delivery_group.add_argument("--post-to",choices=("thread", "channel"),- help="Delivery location override. Omit to follow --session-key directly.",+ help="Delivery location override. This changes where the message is posted, not which session is continued.",)hook_delivery_group.add_argument("--deliver-key",- help="Explicit delivery target key. Use this only when messages must be delivered to a different target.",+ help="Explicit delivery target key. Use this only when delivery must go to a different target than the continued session.",)hook_prompt_group = hook_send_parser.add_mutually_exclusive_group(required=True)- hook_prompt_group.add_argument("--prompt", help="Prompt text to send")- hook_prompt_group.add_argument("--prompt-file", help="Read prompt text from a UTF-8 text file")+ hook_prompt_group.add_argument("--prompt", help="One-shot async content to queue immediately")+ hook_prompt_group.add_argument("--prompt-file", help="Read one-shot async content from a UTF-8 text file")watch_parser = subparsers.add_parser("watch",@@ -2096,19 +2111,22 @@ def build_parser():watch_add_parser.add_argument("--session-key",required=True,- help="Target session key. Prefer a threadless key unless the follow-up must stay in one thread.",+ help="Conversation session key to continue for follow-up messages from this watch.",)watch_delivery_group = watch_add_parser.add_mutually_exclusive_group()watch_delivery_group.add_argument("--post-to",choices=("thread", "channel"),- help="Delivery location override. Omit to follow --session-key directly.",+ help="Delivery location override. This changes where the follow-up is posted, not which session is continued.",)watch_delivery_group.add_argument("--deliver-key",- help="Explicit delivery target key. Use this only when messages must be delivered to a different target.",+ help="Explicit delivery target key. Use this only when delivery must go to a different target than the continued session.",+ )+ watch_add_parser.add_argument(+ "--prefix",+ help="Optional follow-up instruction text prepended before waiter stdout, joined with a blank line when both exist.",)- watch_add_parser.add_argument("--prefix", help="Optional prompt prefix prepended before waiter stdout")watch_add_parser.add_argument("--cwd", help="Working directory for the waiter process")watch_add_parser.add_argument("--timeout",