The stock prompt surface regrew ~3.4k tokens after the August diet, almost all from features added straight into the never-deferred core. This takes back the biggest pieces: - browser_vault: the five eager browser_vault_* tools (list, fill, unlock, save_login, enter_code) become one browser_vault tool with an action enum, deferred behind tool_search by default. It still rides with the browser (an empty vault keeps save_login reachable), so discovery holds; only a catalog line is paid per request. Results and errors name the new actions; the input-tool password note points at it through tool_call. - terminal: schema re-dieted (1,136 -> 651 Qwen tokens). Description and param docs no longer repeat each other; heartbeat / persist_on_release keep their rules in one line each; process(...) references name process_manage. - tool_search / tool_call: the keyword-query rule lives once, in the queries param; description and connector hint trimmed. - system prompt: the "Async handoff" block is removed. Its rule ships in the delegate_task description and in the background dispatch result the model reads at the moment it matters, and the polling loop it targeted is guarded structurally (#124724). Stock CLI surface (prompt-surface render, chars/4): 18,612 -> 16,524. Fresh install, Qwen3 tokenizer: 14,962 -> 13,120 (Sep 7 post-diet: 11,595). Live A/B harness: evals/prefix_rediet/.
22 lines
809 B
Python
22 lines
809 B
Python
"""``hermes vault`` subcommand parser."""
|
|
|
|
from __future__ import annotations
|
|
|
|
|
|
def build_vault_parser(subparsers) -> None:
|
|
"""Attach the local encrypted autofill vault subcommand."""
|
|
vault_parser = subparsers.add_parser(
|
|
"vault",
|
|
help="Manage the local encrypted autofill vault (add/list/rm credentials)",
|
|
description=(
|
|
"Store login credentials in a locally encrypted vault. The agent "
|
|
"sees handles and login identifiers (metadata); passwords are "
|
|
"injected server-side by browser_vault on the exact origin "
|
|
"they were saved for and never enter the conversation."
|
|
),
|
|
)
|
|
from hermes_cli.vault import register_cli, vault_command
|
|
|
|
register_cli(vault_parser)
|
|
vault_parser.set_defaults(func=vault_command)
|