LOCI
Coding agents write code. LOCI thinks ahead.
LOCI predicts what AI-generated code will do — time, power, memory, and system behavior — during planning and code writing, before it runs.
Without running code. No instrumentation. No code changes.
Prerequisites
| Requirement | Version | Required for |
|---|
| A coding agent: Claude Code or GitHub Copilot CLI | Claude Code: latest. Copilot CLI: 1.0.90 or newer | everything |
| Python | 3.12+ | the loci CLI (local ELF/build analysis) |
| uv | any | installs the loci CLI as a tool — install yourself; the plugin checks for it and, if missing, the agent gives you the install command |
Windows only: PowerShell 7 and Git for Windows, with its bash on PATH | — | the hooks under GitHub Copilot CLI (see Under GitHub Copilot CLI); Claude Code finds Git Bash on its own |
| Compiled binaries | .elf / .o / .axf | all skills |
| Network access to the LOCI backend | — | exec-trace, loci-preflight, loci-post-edit |
Cross-compiler (one required, depending on your target):
| Target | Compiler |
|---|
| ARM Cortex-M | arm-none-eabi-gcc |
| ARM Cortex-A | aarch64-linux-gnu-gcc |
| ARM Neoverse V2 (ARMv9-A) | aarch64-linux-gnu-gcc or clang, with -mcpu=neoverse-v2 or -march=armv9-a |
| TriCore | tricore-elf-gcc |
| TI ARM | tiarmclang or armcl |
| x86/x64 | g++ or clang++ |
Skills that work without a cross-compiler or the backend: /loci:stack-depth, /loci:memory-report, /loci:control-flow, /loci:contract
Install
In Claude Code:
/plugin marketplace add auroralabs-loci/loci-claude
/plugin install loci@loci
/loci:setup
With GitHub Copilot CLI, from a terminal (it reads the same marketplace),
then /loci:setup inside a session:
copilot plugin marketplace add auroralabs-loci/loci-claude
copilot plugin install loci@loci
/loci:setup installs the loci CLI as a uv tool and verifies the
environment. The plugin also starts that install in the background at session
start, so it often finishes on its own; running the skill makes it deterministic
and names whatever is missing. It is idempotent — run it again any time analysis
fails with loci: not found.
Under GitHub Copilot CLI
The same plugin serves both hosts: Copilot reads the plugin's hooks/hooks.json
and skills/ as they are, so everything below about skills, hooks and verdicts
holds there too. What differs is around the edges:
- Prerequisites on Windows. Copilot CLI needs PowerShell 7 (its own
requirement), and it hands every hook command to PowerShell, which resolves
bash through PATH. Add C:\Program Files\Git\bin to PATH ahead of
C:\Windows\System32 (a default Git for Windows install adds only Git\cmd,
and System32\bash.exe is the WSL launcher): where.exe bash must list Git's
first. Git\bin holds only bash, sh and git, and its bash puts Git's
tools on its own PATH; Git\usr\bin would also shadow Windows' find, sort
and timeout for everything else. Claude Code locates Git Bash itself, so
this is a Copilot-only step.
- Sign-in.
! loci login works the same way: Copilot's ! prefix runs a
command in your shell, which is where the browser flow has to run.
- What runs automatically. The six hooks in the table below fire under Copilot
as they do under Claude Code:
loci-preflight in /plan mode (or a --plan
run), loci-post-edit after an edit to C/C++/Rust/Go/Python source, the contract guard
on every edit and command. Copilot's subagents inherit the parent turn's id
through the SubagentStart hook.
- Version.
copilot plugin list shows the installed version, and
copilot plugin update loci@loci pulls a newer one from the marketplace. The
marketplace serves what the public repository auroralabs-loci/loci-claude
carries.
- Removing it.
copilot plugin uninstall loci@loci, then
copilot plugin marketplace remove loci. On Windows the uninstall has answered
Access is denied (Copilot CLI 1.0.90 and 1.0.91, with other Copilot sessions
open; a fresh profile uninstalls cleanly). If it refuses, quit the other Copilot
sessions and retry, or copilot plugin disable loci@loci until you can;
copilot plugin marketplace remove loci --force clears a row the uninstall
left behind.
- Direct installs.
copilot plugin install auroralabs-loci/loci-claude also
works, but Copilot prints a deprecation warning for it ("only plugin@marketplace
installs will be supported in a future release"), so use the two commands above.