From b0ec99a27462159eeb8bb3919d4f00773ca22bef Mon Sep 17 00:00:00 2001 From: RJ Ascani Date: Fri, 30 Jan 2026 10:42:07 -0800 Subject: [PATCH 1/3] Add initial AGENTS.md This PR adds an initial AGENTS.md file. It was generated by Claude Code's /init. --- AGENTS.md | 327 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 327 insertions(+) create mode 100644 AGENTS.md diff --git a/AGENTS.md b/AGENTS.md new file mode 100644 index 00000000000..22927517579 --- /dev/null +++ b/AGENTS.md @@ -0,0 +1,327 @@ +# AGENTS.md + +This file provides guidance to coding agents, such as Claude Code (claude.ai/code) when working with code in this repository. + +## Overview + +ExecuTorch is PyTorch's unified solution for deploying AI models on-device (smartphones to microcontrollers). It uses ahead-of-time (AOT) compilation to prepare PyTorch models for edge deployment via export → compile → execute workflow, producing `.pte` (PyTorch ExecuTorch) files for on-device execution. + +**Production Status**: Powers billions of users at Meta across Instagram, WhatsApp, Quest 3, Ray-Ban Meta Smart Glasses. + +## Build System + +### Initial Setup + +```bash +# Install dependencies +./install_requirements.sh +./install_executorch.sh + +# Configure CMake (one-time setup after cloning/pulling) +rm -rf cmake-out +mkdir cmake-out +cd cmake-out +cmake .. + +# Build (use core count + 1 for -j) +cmake --build cmake-out -j9 +``` + +### Common CMake Build Options + +Configure with `-D