> ## Documentation Index
> Fetch the complete documentation index at: https://docs.xenoci.com/llms.txt
> Use this file to discover all available pages before exploring further.

# What gets sent

> What leaves your machine when box runs a job, and what never does

XenoCI Box sends your project folder to the Mac so it can build it. This page is what goes, what never goes and how to check before anything leaves

## What is sent

* The project folder (`--path`, default the current folder) and nothing outside it
* Only files whose content changed since the last job: each file is checked by its SHA-256, and the Mac already has the rest
* A `.box/setup` script, even when `.gitignore` leaves out `.box/`, so it can run on the Mac before the build

## What is never sent

* Anything `.gitignore` or a `.boxignore` file leaves out
* `.env` and `.env.*` files (`.env.example`, `.env.sample` and `.env.template` are kept), even when they are not in `.gitignore`
* `.git`, `node_modules`, `Pods`, `DerivedData`, `.build`, `.swiftpm`, `xcuserdata`, `.DS_Store`, `.box` (your job results) and `box-out`
* Your environment variables, keychain, signing files outside the folder and anything else on your machine

A single file over 512 MiB, or more than 200,000 files, stops the job before upload with a message to add them to `.gitignore` or `.boxignore`

## Check before you send

```bash theme={"system"}
box build --dry-run
```

It lists every file that would go with its size and sends nothing. Here the folder has a `.env` and a `build/` folder that `.gitignore` lists; neither is in the list

```text theme={"system"}
$ box build --dry-run
         7  .gitignore
       986  BoxDemo/BoxDemoApp.swift
       108  BoxDemoTests/BoxDemoTests.swift
       790  project.yml
       427  scripts/archive.sh
box: 5 files, 2318 bytes would be sent (only the changed ones are uploaded)
```

On a real job the upload line says the same

```text theme={"system"}
box: upload: 5 files checked, 1 new (7 bytes), .gitignore respected, .env never sent (snapshot snap_VTGWj0R2Esc7IrfQ)
```

## How long it is kept

* The workspace on the Mac or Android machine is kept between jobs of the same project, so the next build is incremental
* A workspace that goes unused for 7 days is deleted. `box purge --yes` empties it now
* Results come back to `.box/out/<job>/` on your machine

## Error reports

When a command fails, box sends the team an error report: the command name, exit code, step times, box version, OS, CPU, our error code and message (with paths, addresses, tokens and e-mails removed) and the job id. No code, file contents, environment values or paths. Turn it off with `box telemetry off`, `BOX_TELEMETRY=0` or `DO_NOT_TRACK=1`

```text theme={"system"}
$ box telemetry status
error reports on: a failed command sends its name, exit code, step times, box version, OS, error code and job id (no code, paths, tokens or file contents)
```

## AI features

When a build or test fails, box sends its evidence (the end of the log, test results, crash stacks, and for `--compare` the changed screens) to an AI model on Microsoft Azure, or Anthropic when Azure does not answer, for the `ai:` line, `box why` and the `--compare` verdict. Tokens, keys, passwords and user folder paths are masked first. Source files and environment values are not sent, and neither uses it for training. `box ai off` stops it for your account. The [Terms](https://xenoci.com/terms#ai) and the [Privacy Policy](https://xenoci.com/privacy) have the details

```text theme={"system"}
$ box ai status
box AI on: a failed job's log tail, test results and crash stacks, and changed screens, go to Microsoft Azure or Anthropic for the ai: line, box why and --compare (not used for training). `box ai off` stops it (this server has the AI features switched off right now, so nothing is sent)
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.