Skip to content

[capabilities.deny]

Typeobject

Lists denied command patterns plus the section-default env-var and network denies that apply across every granted command. Universal network denies that also block non-command surfaces (python, web) live under [security] universal_deny_domains.

Typearray<string>Default[]

Section-default network deny list. Applies as one Grant::NetworkDenyCommandWide per host — fires unconditionally for every granted command’s egress (no pick_best involvement; denies stack), distinct from [security] universal_deny_domains which also blocks non-command surfaces.

Typearray<string>Default[]

Universal env-var deny list — stripped from every spawn and rejected on every agent-typed NAME=VALUE prefix.

Typearray<string | object>
Array items

One entry in [capabilities.deny.commands] patterns.

Typestring

"sw_vers" — block the command unconditionally.

Typeobject

{ command, domains } — the command may still run (if the allow side grants it) but its network egress is denied to the listed domains in addition to any section-default deny.

Typestringrequired
Typearray<string>Default[]
Typeobject

Combines a default_files list with a paths list to grant the cartesian product. Shorthand paths entries reuse default_files; explicit entries override it.

Typearray<string>Default[]

File glob shorthand applied to every bare-string paths entry. E.g. ["*.rs", "*.toml"] plus a paths entry "src/**" yields the rules src/**/*.rs and src/**/*.toml.

Typearray<string | object>

Path globs. Each entry is one of [RawPathEntry]‘s variants.

Array items

One entry in a filesystem capability section’s paths list.

Three shapes, tried in order:

  • Shorthand string ("src/**"): inherits default_files, prompt = false.
  • Explicit form ({ path, files, prompt? }): fully specified, independent of default_files. files is required.
  • Shorthand-with-flags ({ path, prompt? }, no files): inherits default_files. Only useful with prompt = true; bare { path = "x" } has no advantage over the string form.
Typestring

"src/**" — uses the section’s default_files.

Typeobject

{ path, files, prompt? } — explicit, overrides default_files. files MUST be present here; entries without it are tried as the next variant.

Typearray<string>required
Typestringrequired
TypebooleanDefaultfalse
Typeobject

{ path, prompt? } — inherits default_files like the bare string form but adds the prompt flag.

Typestringrequired
TypebooleanDefaultfalse
Typeobject

Combines a default_files list with a paths list to grant the cartesian product. Shorthand paths entries reuse default_files; explicit entries override it.

Typearray<string>Default[]

File glob shorthand applied to every bare-string paths entry. E.g. ["*.rs", "*.toml"] plus a paths entry "src/**" yields the rules src/**/*.rs and src/**/*.toml.

Typearray<string | object>

Path globs. Each entry is one of [RawPathEntry]‘s variants.

Array items

One entry in a filesystem capability section’s paths list.

Three shapes, tried in order:

  • Shorthand string ("src/**"): inherits default_files, prompt = false.
  • Explicit form ({ path, files, prompt? }): fully specified, independent of default_files. files is required.
  • Shorthand-with-flags ({ path, prompt? }, no files): inherits default_files. Only useful with prompt = true; bare { path = "x" } has no advantage over the string form.
Typestring

"src/**" — uses the section’s default_files.

Typeobject

{ path, files, prompt? } — explicit, overrides default_files. files MUST be present here; entries without it are tried as the next variant.

Typearray<string>required
Typestringrequired
TypebooleanDefaultfalse
Typeobject

{ path, prompt? } — inherits default_files like the bare string form but adds the prompt flag.

Typestringrequired
TypebooleanDefaultfalse