Agent and waiver commands
Commands that let agents publish, and that waive leak findings a person has checked.
Grants that let coding agents publish, and waivers for leak findings a person has checked. Making either needs a person at a console. Each card shows the command’s own help: ghostbranch <command> --help prints the same. Every command also takes the global flags.
agents allow
Section titled “agents allow”ghostbranch agents allow [flags]agents allow lets coding agents on this machine publish to one repo pair with --yes, without the console code, for 1h, 6h (the default), 1d, 7d, 15d, 30d or 90d, or --until-revoked. Making the grant itself needs a person to type a code at a console, so an agent cannot grant itself. Agents still need a green gate and a clean leak scan for every publish. Grants live on this machine only.
| Flag | Value | Default | Description |
|---|---|---|---|
| --for | <string> | — | how long: 1h, 6h (default), 1d, 7d, 15d, 30d or 90d |
| --plan | — | — | preview the grant without making it |
| --until-revoked | — | — | never expire; take it back with ghostbranch agents revoke |
More in Letting agents publish.
agents status
Section titled “agents status”ghostbranch agents statusMore in Letting agents publish.
agents revoke
Section titled “agents revoke”ghostbranch agents revoke [flags]| Flag | Value | Default | Description |
|---|---|---|---|
| --all | — | — | revoke every grant in this workspace (also clears a grants.json that isn't valid JSON; a file from a newer Ghostbranch is kept); with --repo, every grant for that repo |
| --plan | — | — | preview what would be revoked |
More in Letting agents publish.
waivers add
Section titled “waivers add”ghostbranch waivers add <feature> <id>... [flags]waivers add lets a publish go ahead despite leak findings a person has checked and judged safe, such as a fake key in a test fixture. It rebases, strips and scans the feature again on this machine (no push, no CI), shows each finding at the console, and needs a person to type a code: an agent cannot waive. A waiver covers exactly that content in that file; changed content is a new finding. Findings in the commit message, branch or PR text are never waivable: change the text instead. Waivers live on this machine only.
| Flag | Value | Default | Description |
|---|---|---|---|
| --plan | — | — | show what would be waived without waiving it |
| --reason | <string> | — | why these findings are safe to publish (recorded in the ledger) |
More in When the gate finds a leak.
waivers list
Section titled “waivers list”ghostbranch waivers listMore in When the gate finds a leak.
waivers revoke
Section titled “waivers revoke”ghostbranch waivers revoke <id>... | --all [flags]| Flag | Value | Default | Description |
|---|---|---|---|
| --all | — | — | revoke every waiver in this workspace (also clears a waivers.json that isn't valid JSON; a file from a newer Ghostbranch is kept) |
| --plan | — | — | preview what would be revoked |
More in When the gate finds a leak.