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):
| Command | Behavior |
|---|---|
get, export to the terminal, machine create without --out or --github | Refused with exit code 9 |
run | Replaces each value in the command’s output with [NAME], including its lines, JSON and base64 forms |
share | Refused: 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.