Use when: designing C ABI APIs with opaque types and function pointer tables, creating header-only C++ wrappers over C APIs, adding new API surface area to the SDK, reviewing ABI stability, implementing vtable-based versioned interfaces, wrapping opaque handles with RAII C++ classes.
Use when: writing or modifying C# code, porting C++ SDK functionality to C#, implementing P/Invoke interop with foundrylocal.dll, writing async/await wrappers around synchronous C API calls, implementing streaming via Channels, marshalling native types, fixing AOT/trimming compatibility, updating .csproj files…
Use when: writing or modifying C++ implementation code, refactoring internal logic, implementing features behind the C ABI layer, writing tests, fixing bugs in .cc/.h files, optimizing performance, reviewing code for C++ Core Guidelines compliance, serializing/deserializing JSON, reducing code duplication.
Use when: making architecture decisions, defining C++ porting strategy, reviewing API design, resolving scope and priority questions, evaluating technical trade-offs, planning C#-to-C++ migration, reviewing code for architectural compliance.
Use when: writing or modifying JavaScript or TypeScript code in the Foundry Local SDK, implementing or maintaining the Node-API C addon for the JS SDK, porting C# or Python SDK functionality to JS/TS, wrapping native handles in idiomatic JS classes, implementing async iterables for streaming, packaging with…
Use when: analyzing C# source code to understand intent, mapping C# patterns to C++ idioms, identifying what to port vs. redesign, documenting behavioral contracts from C# implementation, gap analysis between C# and C++ SDKs, contract types inventory.
Use when: reviewing C++ code for quality, checking memory safety and RAII compliance, verifying cross-platform portability, enforcing API consistency, reviewing for thread safety, checking const-correctness, auditing error handling patterns.
Use when: writing tests (unit, integration, E2E), test infrastructure, edge case discovery, code coverage analysis, behavioral parity verification between C# and C++, test strategy, coverage gap identification.