Repository navigation
Conversation
hkonsti
changed the base branch from
main
to
hkonsti/google-large-document-upload
November 20, 2026 21:57
Base automatically changed from
hkonsti/google-large-document-upload
to
main
November 20, 2026 22:06
A vault keeps secrets beside its entries: a name (an environment
variable's), a value and a note. An agent sees a secret's name and note,
never its value, which only the person reads, on the vault's page.
Use secrets gives the named secrets to a sandbox command as environment
variables (sandbox_exec {secrets}), and what the command writes back has
each value shown as [secret NAME]; Save secrets adds, replaces and
deletes them without reading any back. Both are off by default.
…immed What a sandbox command writes back now has the values of every secret the agent may use shown by their names, not only those the call asked for: a value one command wrote to a file, another may print. Masking keeps a value out of the agent's answers by accident; an agent set on reading what its command is given can always, which the comments, the agent's instructions and the secret's dialog now say. A secret's value is kept without the spaces and line breaks around it, which a paste brings along and a command's output may leave off.
Masking replaces every value in one pass, so a short secret's value is never found again inside the [secret NAME] shown for a longer one. A secret that can't be read is left out of what a command is given and masked with, and logged, rather than failing every sandbox command of every agent that may use the vault's secrets. One name asked for from two vaults is refused: a command has one variable of each name, and the second would quietly replace the first. A secret's name is checked against the vault's others as it is written, with the vault's other writes of secrets held off by a lock, so two at once can't both take a name and leave neither usable. Secret values are taken out of every tool's answer in one place, not in each kind of tool, so a command on such a record can't answer with one.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds Secrets to the vault: API keys and tokens that agents' sandbox commands can use but agents never see. Memory, which was part of this PR, is now its own PR stacked on this one (#379).
Secrets
secretswith a name (an env var name, unique per vault), a value and a note.agent-side/tools.tsvia a newField.secretflag, and left out of search.sandbox_exec {secrets: ["NAME"]}gives the named secrets to the command as environment variables. If two vaults have the same name, the agent asks forvault/NAME. The log keeps only the names.sandbox_exec, whether or not it asked for secrets, the output has the values of every secret the agent may use shown as[secret NAME]. That covers a value one command wrote to a file and a later one printed. An agent that wants a value it was given can always get it, for example by encoding it. Use secrets means trusting that agent with the value, and the permission's description says so.listOldVaultRecordsno longer treatssecretsas old data to convert.Also
PageTabstakes an optionaltoolbarslot for this.Not in this PR
Tests
sandbox_execwith secrets, secret values withheld from agents, updated catalog and tool lists.