scitools.com

← All und commands

und is the command-line interface to Understand — script project creation, analysis, CodeCheck, metrics, and reports, locally or in CI.

AI

uses local AI to describe the project and build the AI code search index

Mode (choose one; default is -overviews)

OptionDescription
-overviewsGenerate AI descriptions for functions, classes, files, and architectures (default when no mode is specified)
-searchindexBuild or update the AI Code Search semantic index

Arguments that apply to either mode

OptionDescription
-allRegenerate/rebuild everything, overwriting existing data
-changedProcess only what is new or out of date (default)
-serverHost and port for a remote ullama server (example: 123.123.123.123:56767)

Arguments for -overviews only

OptionDescription
-exitstatusExit with an error code if any descriptions failed
-modelSet the AI model for Understand AI. Available models:
qwen-fast        = Qwen3 1.7B
qwen-overviews   = Qwen3.5 2B
granite-medium   = Granite 4.1 3B
gemma-balanced   = Gemma 4 E2B
gemma-accurate   = Gemma 4 E4B
qwen-large       = Qwen3.5 9B
gemma-large      = Gemma 4 12B
qwen-workstation = Qwen3.6 35B-A3B
[path]           = specify the path to a custom gguf model

Using the global -verbose option will show each description as it is generated (applies to -overviews only).

Example usage

und ai someDatabase.und
und ai -overviews -all -verbose -model granite-medium someDatabase.und
und ai -searchindex someDatabase.und
und ai -searchindex -all someDatabase.und