Instructions file GitHub Copilot
Copilot instructions for microsoft/foundry-local, covering copilot instructions — foundry local sdk, persistent knowledge, file hygiene, repository structure and c++ sdk build.
Instructions file GitHub Copilot
Copilot instructions for microsoft/foundry-local, covering copilot instructions — foundry local sdk, persistent knowledge, file hygiene, repository structure and c++ sdk build.
Instructions file GitHub Copilot
Use when building or rebuilding the C++ SDK, picking a build output directory, or wiring native binaries into the C# / Python SDKs that load them by absolute path.
Instructions file GitHub Copilot
Use when adding a new test fixture, modality, or model dependency to the C++ integration test suite, or when debugging unexpected GTESTSKIP messages in CI.
Instructions file GitHub Copilot
Use when running code coverage, analyzing coverage reports, using OpenCppCoverage, or working with runcoverage.ps1 or parsecoverage.ps1.
Instructions file GitHub Copilot
Use when working on DownloadManager, model caching, model downloads, IsModelCached, or debugging why a model fails to download or loads incorrectly.
Instructions file GitHub Copilot
Use when working on embeddings inference, EmbeddingsSession, EmbeddingsHandler, embedding models, or debugging embedding test failures.
Instructions file GitHub Copilot
Use when writing or modifying C++ source/header files. Covers vertical whitespace conventions for readability.
Instructions file GitHub Copilot
Use when validating memory management of the C++ SDK with AddressSanitizer/UBSan, or when running runsanitizertests.py.
Instructions file GitHub Copilot
Use when writing or modifying C++ integration tests, test helpers, SharedTestEnv, model fixtures, or debugging test failures involving model selection or variant filtering.
Instructions file GitHub Copilot
Use when changing the C ABI (foundrylocalc.h) and validating C# tests, or when C# tests fail with stale-ABI symptoms (struct/layout mismatches, dispatch falling through unexpectedly).
Instructions file GitHub Copilot
Use when working with the JS v2 SDK Item discriminated union — writing item factories, walking streamed items, or porting C++ Item code to JS.
Instructions file GitHub Copilot
Use when implementing or modifying the v2 JavaScript/TypeScript SDK under sdkv2/js/, including the Node-API C++ addon, TS layers, or package scaffolding.
Instructions file GitHub Copilot
Use when touching ORT/GenAI loading, DLL/SO discovery, the foundrylocal native library's link dependencies, or any binding's native-load logic (C# DllLoader, Python libloader, etc.).
Instructions file GitHub Copilot
Use when working on the Python SDK's native bindings (cffi), especially when defining new Item subclasses, working with flItemQueue, or extending Request/Session methods that pass native handles.