> ## 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.

> ## Agent Instructions
> ## XenoCI Box CI
> To move a repository's macOS CI jobs onto box, follow https://docs.xenoci.com/ci/agent.md. The user only presses Install on GitHub or makes one GitLab runner token; the agent does the rest.
> - Check: `box ci status` (exit 4: sign in first, https://docs.xenoci.com/setup.md).
> - GitHub organization: `box ci connect --org --no-browser --no-wait`, give the user the printed link (https://github.com/apps/xenoci-with-organizations/installations/new), then repeat `box ci accounts` until the owner appears. Personal account: `--personal` (https://github.com/apps/xenoci-with-personal/installations/new).
> - GitHub workflow: change only `runs-on: macos-*` to `runs-on: xenoci` on a branch and open a pull request.
> - GitLab: the user makes a project runner with tag `xenoci` and gives you the `glrt-` token; pipe it to `box ci gitlab connect -` (self-managed: `--url <gitlab url>`), then add `tags: [xenoci]` to the macOS jobs.
> - Watch: `box ci jobs`, `box ci logs <job id> --follow`. Failed job: `box ci jobs --failed`, then `box ci debug <job id>` (failing step, hint, last 200 log lines).

# App size and cold launch time

> box records your app size and cold launch time on every build and shows the change since the last one

Every `box build`, `box screenshot` and `box run` measures your app. You see the result in one line after the job, with the change since the last measured build of the same project and platform.

```text theme={"system"}
box: app 12.4 MB (+300 KB since bj_x1Y2z3), cold launch 820 ms (-40 ms)
```

## What is measured

* **App size.** The exact byte size of the built `.app`, every file in it.
* **Device build size.** With `box build --device-build` on iOS, the size of `device-build.zip` is shown too.
* **Cold launch time.** `box screenshot` and `box run` stop the app, launch it and time it from launch to the first frame that is not the home screen.

A build of a Debug app on a simulator or emulator is not your release app on a phone. Use the numbers to compare builds with each other, not as your store size or real-device launch time.

## History

```sh theme={"system"}
box metrics
box metrics --project shop --limit 20
box metrics --json
```

Each row shows the job, platform, project, kind, time, app size, its change, cold launch time and its change. Newest builds come first. Builds that measured nothing are not listed.

Agents can use the `app_metrics` tool of `box mcp`. It returns the same rows for the current folder's project, or for every project with `all: true`.

## API

`GET /v1/metrics?project=&platform=&limit=` returns your account's measured jobs, newest first, up to 100. Each row has `metrics` (`app_bytes`, `app_kind`, and `ipa_bytes` and `launch_ms` when measured) and `delta` against the measurement before it. `GET /v1/jobs/<id>` includes `metrics` and `metrics_previous`.

Measuring is free. It adds no job minutes beyond the build or launch you asked for.


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