Skip to content
Tibor Šeděnka

Hold

working example, library, no model by default

Some apps let an AI assistant press buttons for you.

Hold is a small rulebook inside the page. Each time your assistant wants to press something, Hold decides whether to let it happen, show it to you first, or leave the call to you.

Try:Then pick the other requests below.

What you ask your assistant

What Hold decides

Done

Archive last month’s newsletter. Undo puts it back.

How Hold decides

It asks two questions each time. Is this what you asked for? And how much could go wrong: can Undo take it back, does it reach more than one person or thing, does it move more than €500?

Done
It happens straight away, with Undo beside it. That’s for what Undo can take back, when it reaches one person or thing and moves €500 or less.
Check first
It’s ready, and waits for one press from you. That’s for what can’t be undone but stays that small, and for what Undo can take back but goes past either limit.
Your call
It stops, asks you and says why. That’s for what can’t be undone and reaches more than one person or thing, or moves more than €500.

If your words don’t clearly ask for it, Hold is one step more careful. If they ask for something else, or tell your assistant not to, it’s always your call.

One sentence for both of you

Hold also writes the sentence under each answer, from facts the page knows, so your assistant can’t reword it. A page that uses Hold gives your assistant the same sentence, word for word, so what you approve and what your assistant was told can’t drift apart.

On this page

Hold runs in your browser here, with no AI behind it. Nothing you pick leaves the page.

It also decides on two other examples on this site: How much to ask and Two hands.

What it doesn’t do

Hold isn’t a lock. It decides how much the page asks you, but an assistant that goes around the page, straight to the app’s server, isn’t held by it. The server still has to check what’s allowed.

For developers

Hold is a package with no dependencies, inside this site’s code. It isn’t published. Its three answers are do, propose and ask. The match is read from the words of the request: a verb and an object of the action, in English, not grammar. The weight reads the action’s facts against a floor of one person or thing and €500.

No model reads anything by default. A page can add one as a second reader of the match, never of the weight, so no model can make a wide action that can’t be undone stop asking.

The sentence is terms(action). A page puts the same string under its button, in the data-agent-confirm attribute an agent reads, and at the end of its WebMCP tool’s answer (forWebMcp). poppyTerms writes the sentence as the summary of an operation in Poppy, the Personal Agent Protocol, whose operations extension asks for approval of exact terms.

On How much to ask, each tool answer is Hold’s words, then the item’s sentence. On Two hands, an agent’s press of Book waits for the person, because Hold weighs it.