# fix-nightly-failures

Adopt this skill: https://proskills.md/skills/other/mentra-community-mentraos-agents-skills-fix-nightly-failures

Page: https://proskills.md/skills/other/mentra-community-mentraos-agents-skills-fix-nightly-failures
This document is the public skill bundle for that page. It contains SKILL.md and every helper file the catalog carries. No login is required.

## File: .agents/skills/fix-nightly-failures/SKILL.md
size: 15062
sha: 61c05146482f796a6bee656ee77049103a512074
upstream: https://github.com/mentra-community/mentraos/blob/dev/.agents/skills/fix-nightly-failures/SKILL.md

```text
---
name: fix-nightly-failures
description: Diagnose an ongoing or finished Mentra nightly suite, group demonstrated shared failures, implement fixes, and carry PRs through independent Codex review and merge. Use when a chat is pointed at a nightly suite; deployment and a new full suite are separate work.
---

# Fix nightly failures

Own the source repair loop: evidence → diagnosis → fix → PR → independent review
→ required checks → merge → final report. A standalone chat can start from an
ongoing or finished suite. Do not require a continuously running coordinator.
Carry each fix through targeted verification when the user requests suite repair
and the required source/API is available. Approved merged source is a milestone;
record deployment prerequisites while continuing other repairs. Framework deployment,
a new full-catalog suite and Slack delivery are separate tasks unless authorized.
A merged fix does not make the original suite pass.

## Start from the suite

Accept a suite URL, suite ID or occurrence/workflow ID, plus any branch, repository,
verification or merge constraints. Resolve these to the canonical occurrence and
stable result URL; ask only for an identifier or access genuinely needed to read
it. Discover provisioned tools, APIs and authentication using
[operations](references/operations.md#discover-access-and-read-evidence).
Do not require this chat's history, a particular host, coordinator or source SHA.

Example launch:

> $fix-nightly-failures <suite URL> — Diagnose failures while remaining
> members run, fix their owning repositories, open PRs, run codex-pr-review,
> address findings and merge after approval and required checks. Report conclusions
> and verification. Do not deploy or start another full suite.

Record the complete selected member list, status, frozen harness/definition
revisions and exact app/firmware publication. GitHub accepting a dispatch, an
active chat or successful teardown does not prove device execution or a pass.
Keep unavailable observations unknown; do not substitute today's build or copy
an old success forward.

## Preserve independent execution

Diagnose failures as they arrive and let other suite members continue. Ordinary
setup, test or teardown failures do not justify cancelling the suite. Let the
controller clean the failed run and repair its lane through normal operations;
verify the actual repair invocation, conclusion and accepted resume or
out-of-service decision. Healthy lanes continue independently.

Separate the original test outcome from later machine repair, cleanup and
publication errors. Repairing machine state does not repair source or change the
original verdict. If a global framework fault prevents useful execution,
diagnose it and use normal operations within the current cancellation authority.
Never force-release hardware, edit controller SQLite, change catalog toggles or
weaken assertions to manufacture green. Keep live source/configuration unchanged
while accepted work depends on them; this skill does not perform deployment.

## Diagnose and group on evidence

Keep one small durable ledger in existing task state: routine/run, failing
phase/step, original error and evidence links, exact provenance, classification,
causal group and supporting evidence, existing fix/job, PR/head/review, next action
and verification result. Read the framework result and setup/teardown journal,
the failure screenshot or recording, and the incident's relevant phone, glasses,
firmware and cloud logs. Accessibility trees complement the screen; they do not
replace it. Record missing evidence explicitly. For a permission or preflight stall,
first inspect both app and full-desktop failure captures using
[investigate-routine-failure's permission guidance](../investigate-routine-failure/SKILL.md#inspect-permission-stalls-before-another-attempt).
Name an observed human-only dialog and its machine/action immediately; a passing
automation doctor does not establish Mentra App permission readiness.

Classify app, routine, framework, machine/fixture state or unknown on evidence. Compare the
failing source with current source before fixing it. Reuse the relevant diagnosis
mechanics in `fix-routine-failure`; this suite's completion boundary takes
precedence over that skill's deployment/rerun loop.

Inspect each original's canonical follow-up and existing intended fixing PRs
before creating another owner or repair. Use `fix-routine-failure`'s authenticated
revision-fenced facade for durable diagnosis; keep this task ledger as a small
progress receipt, not a competing cause/claim store. Original → latest result
comparisons do not replace recorded classification or verification provenance.

Group failures when evidence demonstrates the same cause in a shared provider or
action at compatible source/build and triggering conditions. Matching wording
alone is insufficient. A suspected shared cause can have one diagnosis owner,
but keep it provisional and split when evidence differs. Preserve every member's
original outcome; grouping never makes an unverified member pass.

Use one coherent fix for a demonstrated cause. Inspect existing PRs, merged fixes
and compatible authoring jobs before creating more. Do not mechanically create
one fix or job per failed routine. If the error lacks diagnostic information,
fix the bounded, redacted observation gap first. Such a PR does not prove the
original cause; do not spend hours repeating complete runs to rediscover it.

## Implement and finish the PR lifecycle

Source-only investigation and fixes need no lane or activation receipt. Work in
a clean isolated worktree from the current destination branch, retaining the
failure's channel provenance: dev → dev, staging → staging, an open PR → its
recorded repository/branch and base. Reuse existing relevant work. Keep routine
behavior in `routines/`, shared mechanics in framework providers, and ownership
or repair in orchestration. Follow repository guidance and proven actions;
avoid new compatibility paths, runners or arbitrary sleeps.

Run meaningful source checks, open a focused PR with diagnosis and validation,
and use `select-pr-routines` for applicable coverage. Label product app fixes
`bug:app`, wrong routine actions/expectations/fixtures `bug:routine`, and shared
execution/orchestration/recording/infrastructure `bug:framework`; use multiple
labels only for multiple corrected components, never `bug:harness`. A routine's
Super Mode transition expectation is routine behavior; shared Mac scan-row reveal
is framework behavior. Add relevant routine coverage labels separately.
Documentation-only changes need no device coverage.
Use the canonical independent `codex-pr-review` skill and its existing launcher
on every opened or updated PR. Read its verdict and all relevant requested
changes; address real findings, explain evidence-backed disagreements, and rerun
review after changing the head. Do not substitute self-review or a bare reviewer
agent. See [review and merge](references/operations.md#review-and-merge).

Merge only with an approving canonical review on the exact current head and
passing required checks, under the task's merge authority. Reconcile uncertain
push/PR/review/merge outcomes before retrying. Continue this lifecycle without
asking for authorization already supplied by the task. Keep credentials, private
logs and recordings out of public PRs/comments.

Before merging a fixing MentraOS PR, check for its active ordinary or tagged
`Routine tests` children and follow [PR check sequencing](../select-pr-routines/SKILL.md#verify-a-fix-against-its-original-failure).
Frozen build inputs do not let a check-owned run continue after PR closure.

## Choose useful verification

First assess whether the evidence supports a one-shot fix: the cause is clear, the
change is small, and focused checks plus a targeted run can verify it. If so,
implement it and run that verification. A failed attempt or uncertain cause calls
for live investigation rather than repeated full-suite replays.

Otherwise reserve a compatible lane through the built-in authoring system and
fix it there. Reuse a compatible `routine-work` create/edit job, or submit one for
a representative routine with the group's evidence. Follow
[authoring operations](references/operations.md#built-in-authoring). Request the
reservation while preparing the investigation; the controller grants it when the
current owner returns. Keep other lanes and suite members running independently.

Open the app, inspect its screenshot and accessibility tree, and reproduce the
failing action from the held session's current state. Inspect the actual permission,
Bluetooth or network sheet instead of guessing from command traces. Use individual
setup actions, saved product steps and teardown actions to isolate the cause. Keep
the passing prefix when it is still valid; repeat setup only when the changed
component or device state requires it.

MentraOS may be built and installed directly on the reserved machine for this
iteration. Use its existing clone and build/install tools; keep source changes in
an isolated worktree. CI publication and framework deployment are not prerequisites
for each app debugging attempt. Record the local source revision and build identity,
and distinguish local diagnostic results from an original-artifact replay or final
PR qualification. Do not replace an app or framework used by another accepted job.
Use the existing authoring lifecycle to restart a changed native app or shared
component when necessary; keep the reservation's custody and return it normally.

Each job names one routine and target. Distinct unresolved device work or
incompatible platform/source/build targeting can require separate jobs. The
supervisor owns its workspace, agent, scoped connection, reservation and held
session; raw author commands are inner job operations. Keep the proven prefix,
safe prerequisite state and saved action. Finish and return through the job
normally. An authoring section is not an ordinary passing run.

If verification needs merged source not yet installed, record the exact pending
deployment prerequisite and its actual owner. Continue independent diagnoses,
source fixes and PR work. Do not take over deployment or make a general
coordinator handoff a stopping gate. Required merge checks still apply; distinguish
optional deferred device evidence from a check that actually blocks merging.
Prefer linked reruns for suite members once the endpoint is deployed: dispatch a
fixed item immediately, or batch compatible ready items. Omit the app source to
reuse each original artifact; supply an optional exact publication override only
when testing an app fix. Framework fixes require the corrected installed source;
verify its receipt rather than requesting a framework revision through this API.
Read latest attempts first and adopt accepted equivalent work. Retain stable rerun
IDs and preview digests across uncertain transport retries. For an unaccepted
preview that has definitively expired, create a new ID and preview; accepted
submissions always reconcile their existing identity. A deliberate next
attempt gets a new ID and terminal predecessor. See the linked API in operations.
A new failure returns to diagnosis, not an automatic full-suite retry loop.

### Apply the requested verification policy

Use the task's current verification policy, including later user overrides. Local
debugging iterations do not need the final verification sequence before continuing.
When a manual reliability campaign requests three consecutive passing linked
reruns, require them for each failed routine covered by a fix before a fresh suite.
Keep the selected app artifacts, routine definitions and installed framework
revision unchanged across that sequence. Start the next attempt only after its
predecessor has finished setup, test and teardown with required evidence published.
Only distinct successful executions count; retries of the same submission or
publication do not. Any failure or change to the selected versions resets the
count and returns to diagnosis or verification of the new fix.

Record each attempt's ID, result link, selected versions and current count in the
existing ledger. Compatible routines can verify in parallel, but a shared cause
still needs three passes per failed routine; a representative's passes do not
qualify other members. Unaffected routines need no extra reruns. These manual
verification passes leave original outcomes unchanged and do not count toward a
streak of actual scheduled 4 a.m. nightly passes.

## Continue efficiently through long waits

Keep a compact continuation record beside the ledger: phase, stable suite/job/PR
identities, next action, prerequisite, owner, last receipt and resume trigger.
When a prerequisite settles, perform the next authorized action in the same turn.
“Ready,” idle lanes and queued handoffs are milestones, not completion.

Do useful source work during a long suite or review, then use a supported long
poll or genuinely verified durable wakeup. Read the
[wait procedure](references/operations.md#wait-without-losing-the-task).
Consume changed-state projections; avoid repeatedly loading complete results,
logs or transcripts. Report useful changes: new diagnosis, fixed cause, review
finding, merged PR or a specific blocker and next action. Stay quiet while nothing
changes. Never claim a queued message or notification-only timer will resume this
chat. If no resume mechanism exists, report that execution gap and the saved
continuation instead of claiming autonomous completion is arranged. Use available
bounded waiting while preserving work; do not introduce a queue/timer framework.

## Report merged fixes and honest limits

Finish when each observed failure has a targeted verification result for its
approved merged fix or equivalent under the task's verification policy,
an evidence-backed machine/fixture conclusion,
or an explicitly unavailable deployment/access prerequisite with next action and
owner. A source fix with available verification is not completion; dispatch it
and consume its result. Do not hide an
unresolved failure to claim completion. If members are still running, report the
observed coverage and continue via the verified resume path to consume remaining
results. Preserve concise receipts and evidence links; clean disposable owned
worktrees through normal operations. Flag any removed system without an improved
replacement for a follow-up spec. Do not delete native chat history or keep a
parallel archive of run downloads.

Final report example:

> Suite <stable link>: 28/28 members terminal; original verdict failed. Shared
> download cause: fixed in <merged PR>, approved at <head>; focused tests passed.
> Pairing: <conclusion and merged PR or unresolved dependency>. Device replay was
> not performed because <exact source> awaits deployment by <owner>. No new suite
> was started and no passing-suite claim is made. Remaining work: <specific item>.
```

## File: .agents/skills/fix-nightly-failures/references/operations.md
size: 12022
sha: 38ee5b07e2627f4cfaa0f924353e3bdff490e7af
upstream: https://github.com/mentra-community/mentraos/blob/dev/.agents/skills/fix-nightly-failures/references/operations.md

````text
# Nightly operations

These entry points are in MentraOS `dev` and the selected private
Mentra-Automated-Testing revision. Read their current source/help before acting;
the installed worker can differ from the newest branch. Keep credentials in the
provisioned environment/configuration and private diagnostics outside Git.

## Discover access and read evidence

For a single Admin run URL or run/request ID, use
[investigate-routine-failure](../../investigate-routine-failure/SKILL.md). Its
read-only helper reuses the incident-report admin token and verifies artifacts;
no Admin browser login or new host credential is needed.

Discover the current repository guidance, installed harness CLI/help, available
connectors and provisioned Core/operator configuration before constructing calls.
Use existing credentials privately; inspect only safe endpoint/path fields and
never print tokens. A suite URL identifies its environment; do not assume prod
or today's installed source. Missing provisioned access is a specific dependency,
not a reason to require an Admin browser login or a running coordinator.

GitHub shows request/notification delivery; Core and the host controller show
device execution. Start with the suite result URL and the source workflow:

```sh
gh run view RUN_ID --repo Mentra-Community/MentraOS --json status,conclusion,headSha,jobs
```

The existing Admin API, when an admin credential is provisioned, exposes:

- `GET /api/admin/test-runs/suites/{suiteId}`: selected members and suite results.
- `GET /api/admin/test-runs/{runId}`: immutable result, definition, asset manifest
  and publication status; a queued request is not a completed run.
- `GET /api/admin/test-runs/{runId}/assets/{encodedAssetId}`: original evidence.
- `GET /api/admin/test-runs/restoration/list`: published restoration history.

Use the result's declared asset IDs, not guessed filenames. Fetch only useful
diagnostics, impose a size limit and verify declared size/digest. Read the first
failure's framework result and relevant setup/teardown journal before expanding
to a recording or command log. Prefer the available API credential over making
a Mini agent sign in to Admin. The host-authenticated `GET /api/internal/framework-results/:requestId` returns
the full run, definition, outcome and `uploadsComplete` for its authorized request.
Use the actual request ID from suite/controller receipts, not a guessed mapping
from run ID. The provisioned Core host credential can read this evidence without
Admin browser access. Read current API source/schema if a response differs.
Controller mutations use its public API/CLI within task authority.

## Targeted verification

Deployment and a new full suite are outside this skill's default scope. Reuse
accepted equivalent runs; an uncertain acknowledgement is not a reason to
redispatch. Record the actual request, exact source/build and result.

Prefer the linked API when available in the suite's environment. Check deployment
with an authenticated progress read; a merged PR or route 404 does not prove it is
ready. Internal calls require the test-run ingest capability, which differs from
the host result-reader capability. Keep both credentials in provisioned storage.

- `GET /api/internal/test-reruns/suite/{suiteId}/progress`: latest attempts and repair state.
- `POST /api/internal/test-reruns/preview`: `{rerunId,parent:{suiteId},selection:{memberIds:[...]},reason}`; alternatively selection is `{filter:{statuses:[...],excludeMemberIds:[...]}}`.
- Optional `source:{channel,buildRunId,publicationAttempt,prNumber?}` chooses a different app publication. Omit it to reuse each original exact artifact.
- `POST /api/internal/test-reruns/submit`: `{rerunId,previewDigest}` from the preview. Inspect `GET /api/internal/test-reruns/{rerunId}` after uncertainty or partial admission before retrying the same submission.
- Member history: `GET /api/internal/test-reruns/suite/{suiteId}/members/{memberId}/history`; use returned cursors for older attempts.

The manual `rerun-device-routines.yml` workflow accepts `parent_suite_id`, either
comma-separated `member_ids` or `statuses`, optional `exclude_member_ids`, `reason`,
and optional `build_run_id` with its channel/publication/PR coordinates. Blank
`build_run_id` means original artifacts. Read its current workflow inputs before
invocation. Retry the same workflow run to reconcile accepted or uncertain
admission. If the preview is conclusively unaccepted and expired, a new workflow
invocation or API rerun ID is needed for a fresh preview. Never replace an
accepted identity to bypass reconciliation. A new invocation creates a new attempt. It returns a progress link without
waiting for the full catalog. Individual API previews use the current schema in
`cloud-v2/packages/core/src/types/test-rerun.types.ts`.

Dispatch only items whose fix/prerequisite is ready. One representative can probe
a shared failure; its pass does not mark other members passed. Publication repair
retries the existing result delivery, not hardware execution. Track terminal outcome
and complete evidence separately. Use compact changed-state reads during execution;
load detailed assets only for a new failure.

If linked reruns are not deployed, keep the exact pending dispatch in the ledger
and continue source repairs. Ordinary targeted dispatch is a fallback when useful;
do not lose root lineage silently or create an equivalent duplicate when the API
becomes available.

For ordinary targeted verification, inspect the current inputs of
`.github/workflows/request-e2e-routine.yml`. The current request is:

```sh
gh workflow run request-e2e-routine.yml --repo Mentra-Community/MentraOS --ref dev \
  -f routine=ROUTINE_ID -f platform=PLATFORM -f channel=CHANNEL \
  -f source_build_run_id=BUILD_RUN_ID -f source_publication_attempt=PUBLICATION_ATTEMPT
```

`platform` is `android` or `ios-on-mac`; `channel` is `dev`, `staging` or `pr`.
For `pr`, also supply `-f pr=PR_NUMBER`. Substitute the enrolled routine and
verified publication coordinates. Adopt an existing equivalent request rather
than duplicating it. A private harness fix runs only after trusted merged-worker
activation; a label does not authorize unmerged worker code.

## Built-in authoring

When interactive verification is needed, use the built-in machine authoring job
without displacing accepted work. Prepare its diagnosis brief while members run. Read the
private harness [job guide](https://github.com/Mentra-Community/Mentra-Automated-Testing/blob/main/docs/ROUTINE-WORK.md),
[assigned-agent skill](https://github.com/Mentra-Community/Mentra-Automated-Testing/blob/main/.agents/skills/prepare-routine-work/SKILL.md)
and selected revision's `contracts/routine-work.ts`. Use the provisioned operator
connection in the harness checkout:

```sh
bun run mentra-test routine-work submit @work.json
bun run mentra-test routine-work inspect @work-id.json
```

`work.json` supplies `schemaVersion: 1`, stable `workId`, `kind: "create" | "edit"`,
`routineId`, English `brief` (`goal`, `stepsOrChanges`, `expected`), exact harness
`source`, published `build`, enrolled `target` and `requirements`. Local submissions
omit `origin`; inspect with `{workId}`. Use `edit` for an existing routine and
`create` for a new one; there is no diagnosis job type. For a causal group, name
one representative routine and include the affected original runs, evidence for
the shared cause, needed observation and any capability gap in its brief. Reuse
an existing compatible job before submitting another. Grouping does not add a
multi-routine target or authorize actions outside that job's source/build,
target and reservation; separate jobs only when distinct unresolved device work
or incompatible targeting requires them. Do not invent a patch.

The supervisor creates the workspace and machine agent, supplies its scoped
connection, and binds the job's reservation and held session. The assigned agent
uses `create-routine` and its inner `lane`/`author` commands; the coordinator does
not start a parallel reservation or session. Normal author start performs setup
once; the job agent may use `setupMode: "manual"` and returned lifecycle action IDs
when diagnosing setup. Provider subactions may still be monolithic. Report a
demonstrated adapter gap through the job and assign its shared fix; do not create
another runner or manufacture a cleanup/resume receipt. Ordinary targeted runs
remain separate and need no authoring job when the evidence supports that choice.

For app debugging inside the granted reservation, build MentraOS on that machine
and install the local build with the existing platform tools. Read the owning
module's build instructions; record its source revision and executable/package
identity. Reproduce the specific failing action, inspect the screen and logs, and
iterate without waiting for a new CI publication each time. The selected job's
published build remains its recorded input; a local replacement is diagnostic
provenance, not a passing replay of that published build. Final PR verification
uses the reviewed head and the task's requested recorded-run policy.

A changed framework provider still needs its source installed through the existing
owned activation process before the session can use it. If that deployment is not
available, record the exact prerequisite and owner while app/source work continues.
Do not mutate live candidate/release files or controller SQLite. `source.enroll`
and candidate installation are not generic framework deployment operations.

## Review and merge

Read the owning repository's `codex-pr-review` skill and invoke its existing
`scripts/codex-review/codex-pr-review.sh <repo-dir> <pr-number> [extra-prompt-file]`
launcher. Follow its lifecycle, watchdog and receipt checks; never launch a bare
`codex exec` reviewer. Preserve the PR/head and canonical review receipt. A
successful process alone is insufficient: inspect whether the verdict approves
or requests changes and that it applies to the current head.

Read PR comments, review threads and required CI checks. After addressing relevant
findings, push the corrected head and run the canonical review again. Before
merge, re-read the current head, verify exact-head approval and passing required
checks, and use the normal GitHub merge operation with an expected head SHA where
supported. An uncertain merge requires reading the PR's state and merge commit
before any retry. Record approved merged PR links and merge commits in the ledger.

## Wait without losing the task

Save phase, stable IDs, next action and prerequisite in existing task state before
an asynchronous wait. Adopt accepted work on resume rather than duplicating it.
Prefer controller completion events or a durable task/thread wakeup that can
resume this owner. Verify registration with its receipt, trigger and completion
or cancellation condition. Notification-only timers, agents elsewhere and queued
outbound messages do not prove this chat will resume.

Use small terminal counts, changed failures, ownership/publication state and PR
review/check status. Expand evidence only for a changed cause or prerequisite.
For a three-hour suite, sparse five-to-fifteen-minute status checks are a reasonable
fallback when events are unavailable; adjust to actual duration and actionable
boundaries. Use supported asynchronous waits, not a multi-hour shell sleep or a
new controller runner. Keep useful independent source work moving and stay quiet
on unchanged observations. Deduplicate wakeups by stable action identity and
remove temporary monitors when the task completes or is cancelled.

If an actual external prerequisite remains, name its owner and required receipt;
track acknowledgement separately from completion. Ask only for that prerequisite
and continue unrelated diagnoses. If no verified wakeup is available, report the
capability gap with the saved resume instruction; do not claim unattended
continuation is installed or that the requested fixes are complete.
````

## File: .agents/skills/fix-nightly-failures/agents/openai.yaml
size: 434
sha: 38838c2e34ff3fbbdd53ebfbf0d88acee14d52b0
upstream: https://github.com/mentra-community/mentraos/blob/dev/.agents/skills/fix-nightly-failures/agents/openai.yaml

```text
interface:
  display_name: "Fix nightly failures"
  short_description: "Diagnose nightly failures and merge reviewed fixes"
  default_prompt: "Use $fix-nightly-failures on this ongoing or finished suite. Diagnose and group failures, implement fixes, run independent codex-pr-review, address findings and merge after approval and required checks. Report conclusions and verification limits; do not deploy or start another full suite."
```

## File: README.md
upstream: https://github.com/mentra-community/mentraos/blob/dev/README.md

```text
<div align="center">
  <img src="./images/Github-Readme.png" alt="Mentra: The open source smart glasses operating system" width="100%" />

  <p>
    <a href="https://mentra.glass">Website</a> •
    <a href="https://docs.mentra.glass">Documentation</a> •
    <a href="https://apps.mentraglass.com/submit">Submit a miniapp</a> •
    <a href="https://apps.mentraglass.com">Mentra Miniapp Store</a>
  </p>

  <!--
  <p>
    <img src="https://img.shields.io/github/contributors/TeamOpenSmartGlasses/DiscussPlusPlus" alt="Contributors" />
    <img src="https://img.shields.io/github/license/TeamOpenSmartGlasses/DiscussPlusPlus" alt="License" />
    <img src="https://img.shields.io/github/stars/TeamOpenSmartGlasses/DiscussPlusPlus?style=social" alt="GitHub Stars" />
    <img src="https://img.shields.io/github/v/release/TeamOpenSmartGlasses/DiscussPlusPlus" alt="GitHub Release Version" />
    <img src="https://img.shields.io/github/last-commit/TeamOpenSmartGlasses/DiscussPlusPlus" alt="Last Updated" />
  </p>
  -->
</div>

<div align="center">
  <a href="https://apps.apple.com/us/app/mentra-the-smart-glasses-app/id6747363193">
    <img src="./images/AppStoreBadge.png" alt="Download on the App Store" width="180">
  </a>
  <a href="https://play.google.com/store/apps/details?id=com.mentra.mentra">
    <img src="./images/GooglePlayBadge.png" alt="Get it on Google Play" width="180">
  </a>
</div>

## Write Once, Run on Any Smart Glasses

MentraOS is how developers and businesses build smart glasses apps.

MentraOS handles pairing, connection, data streaming, hardware access, and cross-device compatibility, so you can focus on building amazing apps. Development goes from months to days.

Every component is open source under the Apache License 2.0, giving you privacy, freedom, and control.

## Supported Smart Glasses

**Officially supported: Mentra Live and Even Realities G2.**

<div align="center">
  <table border="0" cellspacing="0" cellpadding="0" width="100%" style="border: 0 !important; border-collapse: separate; border-spacing: 8px;">
    <tbody>
      <tr style="border: 0 !important; background: transparent;">
        <td align="center" valign="top" width="50%" style="border: 1px solid #e5e7eb; border-radius: 14px; padding: 24px 12px 12px; background: #ffffff;">
          <br />
          <img src="./images/glasses/mentra-live.png" alt="Mentra Live" width="140" />
          <br /><br />
          <p align="center"><b>Mentra Live</b></p>
        </td>
        <td align="center" valign="top" width="50%" style="border: 1px solid #bbf7d0; border-radius: 14px; padding: 24px 12px 12px; background: #ffffff;">
          <br />
          <img src="./images/glasses/even-realities-g2.png" alt="Even Realities G2" width="140" />
          <br /><br />
          <p align="center"><b>Even Realities G2</b></p>
        </td>
      </tr>
    </tbody>
  </table>
</div>

Official support for Even Realities G1, Vuzix Z100, and Mentra Mach1 has ended; their existing code remains available.

## Why Build with MentraOS?

- **Cross-Compatibility:** Build one app that runs on supported smart glasses from multiple manufacturers.
- **Fast Development:** Go from months of custom smart glasses development to a working app in days.
- **Hardware Access:** Use displays, microphones, cameras, speakers, and everything else smart glasses expose from one API.
- **App Distribution:** Publish to the Mentra MiniApp Store and reach users across the MentraOS ecosystem.
- **Business Deployment:** Deploy smart glasses apps for field work, remote support, training, accessibility, and compliance-sensitive workflows. MentraOS is already being deployed by Fortune 500 companies.
- **Open Source Control:** Own it, host it, modify it, and extend it. MentraOS is Apache-2.0-licensed infrastructure designed for privacy, transparency, and freedom from hardware or cloud lock-in.

## Apps on the Mentra MiniApp Store

Browse, install, and run glasses apps from your phone. Try captions, AI notes, proactive AI, translation, streaming, and more.

<div align="center">
  <img src="./images/Mockup_appshomepage.png" alt="MentraOS glasses apps homepage" width="364" />
</div>

## How MentraOS Works

MentraOS runs glasses apps on the phone inside the Mentra Runtime. Multiple glasses apps can run simultaneously, controlling your smart glasses through one shared connection.

This keeps the glasses lightweight while letting multiple apps run together, like captions, notes, notifications, dashboard, and AI tools. It also allows one app to work with any pair of supported smart glasses.

Manufacturers can integrate the Mentra Runtime into their own iOS and Android apps to unlock the Mentra ecosystem while preserving their brand, app, and customer relationship.

## Nightly Builds

<div align="center">
  <p>
    <a href="https://github.com/TeamOpenSmartGlasses/DiscussPlusPlus/releases/download/nightly-builds/mobile-latest.apk">
      <img src="https://img.shields.io/badge/Mobile_App-Download_APK-blue?style=for-the-badge&logo=android" alt="Download Mobile APK" />
    </a>
    <a href="https://github.com/TeamOpenSmartGlasses/DiscussPlusPlus/releases/download/nightly-builds/asg-latest.apk">
      <img src="https://img.shields.io/badge/ASG_Client-Download_APK-green?style=for-the-badge&logo=android" alt="Download ASG APK" />
    </a>
  </p>
</div>

## Community

MentraOS is built by developers, companies, and users who believe the next personal computer should be open, cross-compatible, private, and user-controlled.

Join us and become part of the Mentra Community by joining our Discord server:  
[https://mentra.glass/discord](https://mentra.glass/discord)

## Contributing

MentraOS is made by a community and we welcome pull requests.

**Contributor guide:**  
[https://docs.mentraglass.com/os-devs/contributing/overview](https://docs.mentraglass.com/os-devs/contributing/overview)

Looking for ways to contribute? We mark issues we'd love the community to help with using the "Help Wanted" tag.

**Help wanted issues:**  
[https://github.com/Mentra-Community/MentraOS/issues?q=is%3Aissue%20state%3Aopen%20label%3A%22help%20wanted%22](https://github.com/Mentra-Community/MentraOS/issues?q=is%3Aissue%20state%3Aopen%20label%3A%22help%20wanted%22)

## Contact

- **Email:** [team@mentra.glass](mailto:team@mentra.glass)
- **Discord:** [https://mentra.glass/discord](https://mentra.glass/discord)
- **X:** [https://x.com/mentraglass](https://x.com/mentraglass)

## License

Apache License 2.0

Copyright 2026 Mentra Labs, Inc.

<div align="center">
  <br />
  <img width="100" alt="MentraOS" src="./images/MentraLogoWhiteSquare.svg" style="border-radius: 20%;" />
  <h3>© 2026 Mentra Labs, Inc.</h3>
</div>
```
