Repository navigation
yonga connect opencode puts a prepared artifact into OpenCode, and yonga doctor now checks the
system drivers each Intel GPU and NPU needs. The Drivers section and the NPU compiler diagnosis are
yonga's first outside contribution, by @cybermaksx in #4: thank you!
Added
yonga connect opencode ARTIFACTadds a prepared artifact to OpenCode's config as a
yonga serveprovider, with the context and output limits read from the artifact, and prints the
servecommand to run. It refuses an artifact OpenCode cannot use (no tool calling, or a fixed
prompt length under 8192 tokens, which every built-in NPU profile has) and says which artifact to
use instead. It edits plain JSON only, asks first, writes atomically and never deletes the file;
into a provider you already have it writes onlynpm,options.baseURLandoptions.apiKey.
--remove ARTIFACTtakes back only the entries it wrote and keeps any you edited since;
yonga removepoints to it, with--configwhen the connection is in another file.yonga doctorhas a Drivers section: it finds the Intel GPUs and NPUs on the PCI bus,
whatever OpenVINO makes of them, and checks for each one the kernel driver, the user-space
driver OpenVINO's plugin loads (Intel's OpenCL compute runtime for a GPU, the Level Zero loader
and NPU driver for an NPU) and whether OpenVINO lists it. A missing driver comes with the
install command for the host's distribution family: Arch and derivatives such as CachyOS,
Debian and Ubuntu, or Fedora.- A known failure for
ZE_RESULT_ERROR_UNSUPPORTED_FEATUREfrom the NPU driver without a
compiler message (npu.compiler.unsupported_feature), which Arch'sintel-npu-driverpackage
causes by leaving the compiler out: it was reported as an unrecognised failure. It names both
causes (no compiler library, or a compiler that cannot take the IR) and keeps the GPU/CPU
fallback;doctortells them apart.
Fixed
doctorreports an NPU driver that loaded no compiler (NPU_COMPILER_VERSION0) as a warning
instead of a plain version line, whateverNPU_COMPILER_TYPEsays.doctor'scompiler librariesline needs bothlibopenvino_intel_npu_compiler.soand
libopenvino_intel_npu_compiler_loader.so, and no longer counts
libopenvino_intel_npu_plugin.so, which everyopenvinowheel ships; it gives the same advice
as the compiler line./usr/lib64is searched too, where Fedora installs the libraries.doctorno longer tells the user to join the NPU node's group, with asudo usermodcommand,
when the node is accessible to them anyway.