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
fix(cli): name Vault deletion 'vault remove' like every other group (#2983)
Call Whitec8760f8befff
diff --git a/docs/plans/2026-10-13-vault-agent-delete-requests.md b/docs/plans/2026-10-13-vault-agent-delete-requests.mdindex 728164a4d..0671d5c46 100644--- a/docs/plans/2026-10-13-vault-agent-delete-requests.md+++ b/docs/plans/2026-10-13-vault-agent-delete-requests.md@@ -15,7 +15,7 @@ Reuse the request queue, approval surfaces, notification delivery, and callbacks## Change contract1. Every agent-initiated delete is a request, for standard/protected and- static/keypair secrets. `vibe vault rm NAME [--reason TEXT] [--no-callback]`+ static/keypair secrets. `vibe vault remove NAME [--reason TEXT] [--no-callback]`creates a pending `delete` request and returns its ID immediately, neverdeleting and with no bypass flag. Default value-free guidance:"Waiting for the user to approve deleting NAME in Avibe. Avibe resumes this@@ -64,7 +64,7 @@ Reuse the request queue, approval surfaces, notification delivery, and callbacks8. IM notifications include `delete`, with backend `type.delete` i18n and theexisting Vaults deep link. Approval remains on the Web.9. Update `skills/use-avibe-vault/SKILL.md`, bump its version, and document- `vibe vault rm NAME --reason "..."` as an approval request that resumes the+ `vibe vault remove NAME --reason "..."` as an approval request that resumes theSession after the decision; never rerun it. CLI examples must parse.10. Out of scope: single-field deletion, changing the Web direct-delete flow,bulk deletion, and the parallel multi-field feature.@@ -98,7 +98,7 @@ Avibe service, real home/keychain, or external tenant mutation. Tests run throug- Integrate the released multi-field implementation and Vaults UX from master;preserve whole-secret deletion, grant invalidation, and resident-scope release.-- Reject `vibe vault rm NAME.field` with `vault_field_delete_forbidden` and point+- Reject `vibe vault remove NAME.field` with `vault_field_delete_forbidden` and pointto the Vaults page for single-field removal. The skill is version `0.4.0`.- A delete card snapshots `_field_metadata(secret)` at creation. Pending UI readsrefresh its `kind`, `default_field`, `fields`, and optional `fields_state` fromdiff --git a/docs/plans/vault-protected-delete-authz.md b/docs/plans/vault-protected-delete-authz.mdindex fe6f5e382..fc11f4cc7 100644--- a/docs/plans/vault-protected-delete-authz.md+++ b/docs/plans/vault-protected-delete-authz.md@@ -29,7 +29,7 @@ not verify passkeys today and does not hold the VMK.The current delete paths are uneven:-- `vibe vault rm` checks metadata first and refuses protected secrets with+- `vibe vault remove` checks metadata first and refuses protected secrets with`protected_delete_forbidden`.- The Vaults page has a client-side destructive confirmation dialog, includingstronger warnings for signing keys.@@ -62,7 +62,7 @@ Non-goals for the first implementation:Blocked:-- Local agent via CLI: already blocked by `vibe vault rm`; the service guard+- Local agent via CLI: already blocked by `vibe vault remove`; the service guardshould also make future CLI regressions fail closed.- Local agent via HTTP: cannot delete a protected secret unless it can complete aserver-issued WebAuthn challenge for that exact delete operation.diff --git a/skills/use-avibe-vault/SKILL.md b/skills/use-avibe-vault/SKILL.mdindex e01d650c7..12944e4aa 100644--- a/skills/use-avibe-vault/SKILL.md+++ b/skills/use-avibe-vault/SKILL.md@@ -73,9 +73,9 @@ Sign a 32-byte digest with a keypair secret. Standard keys may return the signat`vibe vault sign WALLET_KEY --digest 0000000000000000000000000000000000000000000000000000000000000001 --scheme ecdsa-secp256k1-recoverable --command "sign deployment transaction"`Ask the user to delete a Vault secret. Every agent-initiated delete needs one-click user approval, including standard, protected, static, and keypair secrets:-`vibe vault rm OLD_TOKEN --reason "Rotated credential"`+`vibe vault remove OLD_TOKEN --reason "Rotated credential"`This returns a pending request ID without deleting anything. With the normal callback, Avibe resumes this Session after the user decides; do not rerun `rm`. With `--no-callback`, or when the request has no resolvable Session, check explicitly with `vibe vault await <request_id>`; do not rerun `rm`. If a repeated `rm` reuses a pending request created by another Session, use the returned request ID with `vibe vault await <request_id>` rather than expecting a callback for the current Session.-`vibe vault rm` always requests whole-secret deletion. It rejects `NAME.field`; remove a single field from the Vaults page instead.+`vibe vault remove` always requests whole-secret deletion. It rejects `NAME.field`; remove a single field from the Vaults page instead.For more details, run `vibe vault --help`.diff --git a/tests/test_vault_cli.py b/tests/test_vault_cli.pyindex 3dc3ce938..212c50e61 100644--- a/tests/test_vault_cli.py+++ b/tests/test_vault_cli.py@@ -591,7 +591,7 @@ def test_rm_requests_deletion_for_protected_secret_and_leaves_it(capfd):with cli._open_vault_engine().begin() as conn:vault_service.create_secret(conn, name="PROTECTED_RM", protection="protected", sealed=_sealed("protected-rm"))- code = cli.cmd_vault_rm(_ns(name="PROTECTED_RM"))+ code = cli.cmd_vault_remove(_ns(name="PROTECTED_RM"))captured = capfd.readouterr()assert code == 0@@ -608,7 +608,7 @@ def test_rm_requests_deletion_for_protected_secret_and_leaves_it(capfd):def test_rm_requests_deletion_for_standard_secret_and_leaves_it(capfd):_create_standard_secret("STANDARD_RM")- code = cli.cmd_vault_rm(_ns(name="STANDARD_RM"))+ code = cli.cmd_vault_remove(_ns(name="STANDARD_RM"))captured = capfd.readouterr()assert code == 0@@ -623,7 +623,7 @@ def test_rm_requests_deletion_for_standard_secret_and_leaves_it(capfd):def test_rm_no_callback_points_to_await(capfd):_create_standard_secret("NO_CALLBACK_RM")- code = cli.cmd_vault_rm(_ns(name="NO_CALLBACK_RM", no_callback=True))+ code = cli.cmd_vault_remove(_ns(name="NO_CALLBACK_RM", no_callback=True))payload = json.loads(capfd.readouterr().out)assert code == 0@@ -636,9 +636,9 @@ def test_rm_reuses_pending_request_without_repeating_notification(capfd, monkeyppublished: list[dict] = []monkeypatch.setattr(cli, "_publish_cli_vaults_updated", lambda **kwargs: published.append(kwargs))- assert cli.cmd_vault_rm(_ns(name="REUSED_RM")) == 0+ assert cli.cmd_vault_remove(_ns(name="REUSED_RM")) == 0first = json.loads(capfd.readouterr().out)- assert cli.cmd_vault_rm(_ns(name="REUSED_RM")) == 0+ assert cli.cmd_vault_remove(_ns(name="REUSED_RM")) == 0second = json.loads(capfd.readouterr().out)assert first["request_id"] == second["request_id"]@@ -677,9 +677,9 @@ def test_rm_reused_callback_enabled_request_keeps_auto_resume_guidance(capfd, mo)monkeypatch.setattr(cli, "_publish_cli_vaults_updated", lambda **kwargs: None)- assert cli.cmd_vault_rm(_ns(name="CALLBACK_REUSE_RM", session_id="ses_rm_callback")) == 0+ assert cli.cmd_vault_remove(_ns(name="CALLBACK_REUSE_RM", session_id="ses_rm_callback")) == 0first = json.loads(capfd.readouterr().out)- assert cli.cmd_vault_rm(_ns(name="CALLBACK_REUSE_RM", session_id="ses_rm_callback", no_callback=True)) == 0+ assert cli.cmd_vault_remove(_ns(name="CALLBACK_REUSE_RM", session_id="ses_rm_callback", no_callback=True)) == 0second = json.loads(capfd.readouterr().out)assert first["request_id"] == second["request_id"]@@ -730,13 +730,13 @@ def test_rm_passes_remote_authority_for_acl_and_request_snapshot(capfd, monkeypamonkeypatch.setattr(cli, "caller_resource_user_context", lambda _context: editor)monkeypatch.setattr(cli, "_publish_cli_vaults_updated", lambda **kwargs: None)- assert cli.cmd_vault_rm(_ns(name="PRIVATE_REMOTE_RM", session_id="ses_remote_rm")) == 1+ assert cli.cmd_vault_remove(_ns(name="PRIVATE_REMOTE_RM", session_id="ses_remote_rm")) == 1assert "vault_access_forbidden" in capfd.readouterr().errwith cli._open_vault_engine().connect() as conn:assert conn.execute(select(vault_requests.c.id).where(vault_requests.c.secret_name == "PRIVATE_REMOTE_RM")).first() is Nonemonkeypatch.setattr(cli, "caller_resource_user_context", lambda _context: owner)- assert cli.cmd_vault_rm(_ns(name="ALLOWED_REMOTE_RM", session_id="ses_remote_rm")) == 0+ assert cli.cmd_vault_remove(_ns(name="ALLOWED_REMOTE_RM", session_id="ses_remote_rm")) == 0capfd.readouterr()with cli._open_vault_engine().connect() as conn:row = conn.execute(select(vault_requests).where(vault_requests.c.secret_name == "ALLOWED_REMOTE_RM")).mappings().one()@@ -744,22 +744,22 @@ def test_rm_passes_remote_authority_for_acl_and_request_snapshot(capfd, monkeypadef test_rm_rejects_single_field_delete(capfd):- code = cli.cmd_vault_rm(_ns(name="LOGIN.password"))+ code = cli.cmd_vault_remove(_ns(name="LOGIN.password"))payload = json.loads(capfd.readouterr().err)assert code == 1assert payload["code"] == "vault_field_delete_forbidden"- assert payload["error"] == "vibe vault rm deletes whole secrets; remove single fields in the Vaults page."+ assert payload["error"] == "vibe vault remove deletes whole secrets; remove single fields in the Vaults page."def test_rm_missing_secret_still_reports_not_found(capfd):- code = cli.cmd_vault_rm(_ns(name="MISSING_RM"))+ code = cli.cmd_vault_remove(_ns(name="MISSING_RM"))captured = capfd.readouterr()assert code == 1payload = json.loads(captured.err)assert payload["code"] == "secret_not_found"- assert payload["help_command"] == "vibe vault rm --help"+ assert payload["help_command"] == "vibe vault remove --help"def test_access_request_cli_uses_caller_session(tmp_path, capfd, monkeypatch):diff --git a/tests/test_vibe_cli.py b/tests/test_vibe_cli.pyindex aff4335ae..1bcaec516 100644--- a/tests/test_vibe_cli.py+++ b/tests/test_vibe_cli.py@@ -141,6 +141,7 @@ def test_top_level_help_lists_only_public_commands(capsys):["hook", "send", "--session-id", "ses1", "--message", "hi"],["task", "ls"],["watch", "rm", "watch1"],+ ["vault", "rm", "OLD_TOKEN"],["agent", "run", "--agent", "a", "--async", "--message", "hi"],["agent", "run", "--session-id", "ses1", "--send-now", "--message", "hi"],["agent", "run", "--agent", "a", "--create-session", "--message", "hi"],diff --git a/vibe/cli.py b/vibe/cli.pyindex 28d29d660..bc70eba35 100644--- a/vibe/cli.py+++ b/vibe/cli.py@@ -8338,15 +8338,15 @@ def cmd_vault_tags(args):return 1-def cmd_vault_rm(args):+def cmd_vault_remove(args):from storage import vault_servicefrom storage.models import agent_sessions- help_command = "vibe vault rm --help"+ help_command = "vibe vault remove --help"try:if "." in str(getattr(args, "name", "")):raise TaskCliError(- "vibe vault rm deletes whole secrets; remove single fields in the Vaults page.",+ "vibe vault remove deletes whole secrets; remove single fields in the Vaults page.",code="vault_field_delete_forbidden",help_command=help_command,)@@ -17457,7 +17457,7 @@ def build_parser():)vault_subparsers = vault_parser.add_subparsers(dest="vault_command",- metavar="{list,find,tags,edit,rm,run,fetch,access,sign,await,request,export,inject,key}",+ metavar="{list,find,tags,edit,remove,run,fetch,access,sign,await,request,export,inject,key}",)vault_subparsers.required = True@@ -17503,20 +17503,20 @@ def build_parser():_add_pagination_args(vault_tags_parser, help_command="vibe vault tags --help")_add_json_noop(vault_tags_parser)- vault_rm_parser = vault_subparsers.add_parser(- "rm",+ vault_remove_parser = vault_subparsers.add_parser(+ "remove",help="Request user approval to delete a secret",description="Ask the user to delete a secret by name. Returns a request ID; never deletes without approval.",formatter_class=argparse.RawDescriptionHelpFormatter,- error_help_command="vibe vault rm --help",+ error_help_command="vibe vault remove --help",)- vault_rm_parser.add_argument("name", help="Secret name to delete")- vault_rm_parser.add_argument("--reason", help="Why the secret should be deleted (shown to the user)")- vault_rm_parser.add_argument(+ vault_remove_parser.add_argument("name", help="Secret name to delete")+ vault_remove_parser.add_argument("--reason", help="Why the secret should be deleted (shown to the user)")+ vault_remove_parser.add_argument("--no-callback", action="store_true",help="Don't auto-resume this Session after the decision; check it with 'vibe vault await'",)- _add_json_noop(vault_rm_parser)+ _add_json_noop(vault_remove_parser)vault_edit_parser = vault_subparsers.add_parser("edit",@@ -18726,7 +18726,7 @@ _CLI_COMMAND_FLOORS: dict[tuple[str, ...], Optional[str]] = {("vault", "inject"): "editor",("vault", "export"): "editor",("vault", "edit"): "editor",- ("vault", "rm"): "editor",+ ("vault", "remove"): "editor",("vault", "key", "export"): "owner",("vault", "key", "import"): "owner",# Show: reading a page is Viewer work and writing to one is Editor work; the@@ -18998,8 +18998,8 @@ def _dispatch_parsed_command(parser: argparse.ArgumentParser, args) -> None:sys.exit(cmd_vault_tags(args))if args.vault_command == "edit":sys.exit(cmd_vault_edit(args))- if args.vault_command == "rm":- sys.exit(cmd_vault_rm(args))+ if args.vault_command == "remove":+ sys.exit(cmd_vault_remove(args))if args.vault_command == "run":sys.exit(cmd_vault_run(args))if args.vault_command == "fetch":