Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Coding agents

Summary: let a coding agent set up and use secrets without a value in its context.

secrets-chad agent prints the guide for agents; the same text is in skills/secrets-chad/SKILL.md. Install it as a skill, or point the agent at the command.

When the CLI detects an agent (SECRETS_AGENT=1, or variables that known agents set):

CommandBehavior
get, export to the terminal, machine create without --out or --githubRefused with exit code 9
runReplaces each value in the command’s output with [NAME], including its lines, JSON and base64 forms
shareRefused: a person compares the fingerprint

The agent can still fill secrets without seeing them:

secrets-chad generate SESSION_KEY
secrets-chad request DATABASE_URL STRIPE_KEY     # prints a link; a person enters the values in the browser
secrets-chad run -- npm test

The masking prevents accidents; an agent that wants to can transform a value to get around it. The real boundary is access: give the agent’s machine a device with read access to one environment (machines).

Spec: §11.11.