> For the complete documentation index, see [llms.txt](https://magic-mirror.gitbook.io/magicmi/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://magic-mirror.gitbook.io/magicmi/running-magicmirror/batch-mode.md).

# batch-mode

## Quick Start

Contracts in a directory can be executed in a batch,  i.e., MagicMirror will fuzz them one by one until all `.sol` contract files are fuzzed. When a contract file contains multiple contracts, MagicMirror will fuzz all and only the fully implemented contracts that are not inherited by another contract, since such contracts are often only used as parent contracts in most cases and not deployed on their own. &#x20;

As an example, to start fuzzing all contracts in `./sample_contracts/`, execute the following command.&#x20;

\*Note, the command is meant to be executed in the same directory where the `magic_mirror`executable resides.&#x20;

```
./magic_mirror batch-mode --folder_dir ./sample_contracts
```

The output format will be the same as `single-file-mode`. that was previously mentioned [here](https://magic-mirror.gitbook.io/magicmi/running-magicmirror/single-file-mode). &#x20;


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://magic-mirror.gitbook.io/magicmi/running-magicmirror/batch-mode.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
