Imported from LuminairPrime/openwrt-docs4ai-pipeline (openwrt-condensed-docs-renamed/release-tree/ucode/AGENTS.md). Install upstream with npx skills add LuminairPrime/openwrt-docs4ai-pipeline --skill ucode. Copyright stays with the author.
AGENTS.md — ucode module
Scope
ucode is a lightweight scripting language for OpenWrt, similar to JavaScript but NOT JavaScript.
Language Warning
ucode has JavaScript-like syntax but is a distinct language. Do NOT use Node.js APIs, browser APIs, or ES module syntax.
The runtime is C-based with embedded modules: fs, ubus, uci, uloop, nl80211, rtnl.
Start Here
map.md → overview of all ucode stdlib and module APIs