AI-Native Workflow
Hush keeps secrets encrypted at rest in the current v3 repository model and gives AI assistants safe commands for the normal workflow.
Current security model
The canonical repository state lives here:
.hush/manifest.encrypted.hush/files/**.encrypted.hush/manifest.encryptedstores repository metadata, identities, bundles, targets, and imports.hush/files/**.encryptedstores the actual secret entries plus readershush run -- <command>decrypts only for the active process or materialized target
That gives AI assistants a safe interface without relying on “just don’t read .env files” instructions.
Commands for AI agents
hush bootstrap
Create the current v3 repository shell:
hush bootstraphush config
Inspect and update current repository state:
hush config showhush config active-identityhush config show fileshush set
Add or update a secret safely:
hush set DATABASE_URLhush set API_KEY --guihush inspect
Show configured secret names with masked values:
hush inspecthush has
Check whether a key exists:
hush has DATABASE_URL -qhush run
Run with secrets in memory:
hush run -- npm run devhush run --target production -- npm run buildhush doctor
Diagnose root discovery, key resolution, and store configuration. Use when bootstrap fails or key resolution is unclear:
hush doctorhush doctor --new-repoLegacy bridge only
If a repo still uses legacy v2 files, use the migration bridge once:
hush migrate --from v2hush migrate --from v2 --cleanupThat is the supported path from hush.yaml repos to the current .hush/ model.
Common AI workflows
”Set up Hush in this repo”
- Run
hush bootstrap - Run
hush config show - Run
hush set DATABASE_URL - Run
hush run -- npm start
”Check whether a secret exists"
hush has STRIPE_SECRET_KEY -q && echo "Ready" || echo "Missing""Show me the current config"
hush config showhush config active-identity"This repo is still legacy”
hush migrate --from v2Project instructions for AI tools
Use project instructions like this:
# Secrets Management (Hush v3)
Current model:- `.hush/manifest.encrypted`- `.hush/files/**.encrypted`
Use these commands:- `hush bootstrap`- `hush config show`- `hush config active-identity`- `hush inspect`- `hush has <KEY>`- `hush set <KEY>`- `hush run -- <command>`
Legacy bridge only:- `hush migrate --from v2`- `hush migrate --from v2 --cleanup`
Do not teach or recreate `hush.yaml`, `hush init`, or `hush encrypt` as the current repository model.Why this matters
Hush gives AI assistants a stable, encrypted repository surface and a small set of safe commands. The assistant can help inspect state and manage changes without switching the project back to the older v2 file model.