---
url: >-
  https://adk.nht.io/api/@nhtio/adk/batteries/sandbox/variables/ALLOWED_RIPGREP_FLAGS.md
description: Flags emitted by the sandbox's own ripgrep adapter.
---

# Variable: ALLOWED\_RIPGREP\_FLAGS

```ts
const ALLOWED_RIPGREP_FLAGS: readonly [
  "--files",
  "--hidden",
  "--follow",
  "--no-ignore",
  "--glob",
  "--iglob",
  "--max-depth",
  "--json",
];
```

Defined in: [src/batteries/sandbox/escape.ts:22](https://github.com/NHTIO/ADK/blob/v1.20260824.1/src/src/batteries/sandbox/escape.ts#L22)

Flags emitted by the sandbox's own ripgrep adapter.

## Remarks

EVERY flag the adapter actually emits must appear here, or the adapter rejects its own argv and the
capability fails for every invocation. `--json` is `searchContent`'s output format and is exactly such
a flag; omitting it made content search unusable while name search (which does not use it) worked.
The argv TERMINATOR `--` is deliberately absent: it is not a flag, and it is filtered out before
validation rather than admitted here, so this list stays a list of flags.
