gage attachment
The gage attachment command manages attachments. An attachment is a set of
files added from a directory for scanners to read, such as a Claude Code config
directory. It may be named, and it may target one or more stored objects such
as sessions. Datasets hold attachments the way they hold sessions.
Commands that take attachments accept a name, an ID, or a unique ID prefix.
attachment add
Add an attachment from a directory.
Files are selected by path globs relative to the root, as in a shell.
settings.json is the one file at the root, **/settings.json is every file
by that name, * and ? do not cross /, and {a,b} and [a-z] are
supported. Excludes use the same form, and a directory an exclude matches is
not entered. At least one include is required; **/* selects every file. An
attachment holds at most 10 MiB and 1000 files.
Adding again under the same key updates the attachment, with any new targets
added to it. A named add without --key is keyed by its name, root, and
patterns. An unnamed add without --key always creates a new attachment.
--scanner prepares an existing dataset for a scan: each scanner attaches the
files its tasks read. A scan runs these attach tasks itself on a dataset it
creates, but not on a dataset given with gage scan --dataset.
To add an attachment already in the store to a dataset, use
gage dataset link.
attachment list
List attachments.
attachment show
Show an attachment and its files.
attachment delete
Delete attachments from the store.
Each attachment is removed from every dataset that holds it and marked removed
in the store. To take an attachment out of one dataset and keep it in the
store, use gage dataset unlink.