mirage-ai[ast-grep] extra.
config.max_memory sets the Rust engine’s WebAssembly memory ceiling for run, scan, and outline. It defaults to 16 MiB. Set it in bytes or with a size such as 32MB. The engine starts at 6 MiB and grows in 64 KiB pages up to the smaller of the configured ceiling and the available workspace budget. The host runtime, compiled modules, and concurrent requests also use isolate memory.
The setting belongs to each installation. The workspace API accepts the same clis block in the config object of POST /v1/workspaces. To register the CLI in an existing workspace:
scan --inline-rules for a YAML rule on the command line. A plain scan discovers sgconfig.yml in the working directory or its ancestors and loads YAML files from its ruleDirs. Repeat --globs to select paths during a recursive search. The command tree and available flags appear in ast-grep --help and each subcommand’s help.
License
See compatibility and licenses.