LM Studio CLI
This report summarizes scanner evidence for lmstudio-ai/lms, a TypeScript project with 5,346 GitHub stars. SynthScan examined 17,235 lines of code across 112 source files, recording 80 pattern matches distributed across 1 syntactic category. The legacy adjusted pattern signal is 4.6 (Low pattern signal); it is not an authorship estimate.
Use the findings to ask whether maintainers can explain intent, verify dependencies, simplify unnecessary scaffolding, and focus review effort. Risk Payload v1 adds ownership, supply-chain, over-engineering, and review-effort vectors when available. These are prompts for human verification, not probabilities, security findings, or measured maintenance costs.
Use each vector to guide manual verification of the underlying findings.
Can maintainers explain intent, assumptions, and trade-offs? 80 finding(s).
Are imports declared and package/API names verified? 0 finding(s).
Are wrappers, guards, and repeated structures necessary? 80 finding(s).
Which changes need focused human review? 80 finding(s).
Run additional scans to build a history of the legacy pattern signal. Score changes are not a measure of AI adoption or code quality.
Groups findings by configured severity weight. Severity is not a confidence estimate, security rating, or proof that a package is missing. Verify imports against the project's manifests and inspect each finding in its local design context.
This horizontal bar chart shows where configured pattern scores accumulate across directories. Treat the bars as locations to inspect, not as evidence of authorship or code quality. Use the file-level findings to decide whether a directory needs a focused ownership, dependency, complexity, or review check.
The scanner identified 80 distinct pattern matches across 1 syntactic category. Each entry below represents a discrete location in the source code where the engine recorded a detector match to inspect in context. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.
Reading the findings table: The Severity column indicates the configured finding weight (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — legacy comment-context matches receive a ×1.5 score weight. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier under the legacy scoring model.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | src/authenticationStatusUtils.ts | 13 | export function normalizeAuthenticationStatus( | CODE |
| LOW | src/authenticationStatusUtils.ts | 37 | export function formatAuthenticationStatusMessage(authenticationStatus: AuthenticationStatus): string { | CODE |
| LOW | src/authenticationStatusUtils.ts | 56 | export function makeCannotLoginWhileComputeDeviceError( | CODE |
| LOW | src/authenticationStatusUtils.ts | 72 | export function makeCannotLoginAsComputeDeviceWhileLoggedInUserError( | CODE |
| LOW | src/authenticationStatusUtils.ts | 87 | export function makeAlreadyLoggedInAsComputeDeviceError( | CODE |
| LOW | src/findProjectFolder.ts | 9 | export async function recursiveFindAncestorFolderWithFile( | CODE |
| LOW | src/handleDownloadWithProgressBar.ts | 17 | export async function handleDownloadWithProgressBar( | CODE |
| LOW | src/index.ts | 144 | function applyHelpConfigurationRecursively( | CODE |
| LOW | src/localAPIServer.ts | 106 | export async function findOrStartLocalAPIServer({ | CODE |
| LOW | src/types/refinedNumber.ts | 15 | export function createRefinedNumberParser({ integer, min, max }: RefinedNumberOpts = {}): ( | CODE |
| LOW | src/subcommands/push.ts | 250 | async function maybeGenerateManifestJson(logger: SimpleLogger, folderPath: string) { | CODE |
| LOW | src/subcommands/push.ts | 265 | function parseArtifactIdentifierToOwnerName( | CODE |
| LOW | src/subcommands/push.ts | 281 | async function generateManifestJsonFromModelYaml(folderPath: string, modelYamlPath: string) { | CODE |
| LOW⚡ | src/subcommands/get.ts | 437 | function makeArtifactModelSelectionValue(downloadOptionIndex: number): ArtifactModelSelectionValue { | CODE |
| LOW⚡ | src/subcommands/get.ts | 441 | function getSelectedDownloadOptionIndexFromArtifactModelSelectionValue( | CODE |
| LOW⚡ | src/subcommands/get.ts | 450 | function artifactPlanModelNodeNeedsSelectionPrompt(modelNode: ArtifactDownloadPlanModelNode) { | CODE |
| LOW⚡ | src/subcommands/get.ts | 454 | function getEditableArtifactPlanModelNodeIndexes(plan: ArtifactDownloadPlan): Array<number> { | CODE |
| LOW⚡ | src/subcommands/get.ts | 463 | function shouldShowAlreadyOwnedArtifactSelectionChoice(modelNode: ArtifactDownloadPlanModelNode) { | CODE |
| LOW⚡ | src/subcommands/get.ts | 472 | function getArtifactSelectionChoiceCount(modelNode: ArtifactDownloadPlanModelNode) { | CODE |
| LOW⚡ | src/subcommands/get.ts | 478 | function getDefaultArtifactModelSelectionValue( | CODE |
| LOW | src/subcommands/get.ts | 119 | function getRequestedCompatibilityTypes({ | CODE |
| LOW | src/subcommands/get.ts | 139 | function splitModelNameAndQuantization(modelName: string | undefined) { | CODE |
| LOW | src/subcommands/get.ts | 202 | function tryParseArtifactIdentifier( | CODE |
| LOW | src/subcommands/get.ts | 222 | function makeResolutionPreferences({ | CODE |
| LOW | src/subcommands/get.ts | 245 | async function resolveStaffPickDownloadRequest({ | CODE |
| LOW | src/subcommands/get.ts | 507 | export function formatCompatibilityTypeSuffix(compatibilityType: ModelCompatibilityType) { | CODE |
| LOW | src/subcommands/get.ts | 520 | function formatModelDisplayNameWithCompatibility(model: { | CODE |
| LOW | src/subcommands/get.ts | 540 | function createArtifactDownloadOptionTag( | CODE |
| LOW | src/subcommands/get.ts | 561 | function createArtifactDownloadOptionChoiceData(modelNode: ArtifactDownloadPlanModelNode) { | CODE |
| LOW | src/subcommands/get.ts | 595 | async function askToChooseArtifactDownloadSelection( | CODE |
| LOW | src/subcommands/get.ts | 636 | async function applyArtifactModelSelection( | CODE |
| LOW | src/subcommands/get.ts | 661 | function getArtifactSelectionPromptPageSize(renderedLineCount: number) { | CODE |
| LOW | src/subcommands/get.ts | 670 | async function openArtifactDownloadSelectionEditor( | CODE |
| LOW | src/subcommands/get.ts | 738 | function artifactDownloadPlanToString( | CODE |
| LOW | src/subcommands/get.ts | 855 | function buildArtifactDownloadPlanLines( | CODE |
| LOW | src/subcommands/get.ts | 900 | function printArtifactDownloadPlanScreen( | CODE |
| LOW | src/subcommands/get.ts | 915 | function normalizeDownloadPlannerCliOpts( | CODE |
| LOW | src/subcommands/get.ts | 954 | function maybeExitIfNothingToDownload({ | CODE |
| LOW | src/subcommands/get.ts | 1016 | async function askToChooseDownloadAction({ | CODE |
| LOW | src/subcommands/get.ts | 1122 | function planHasPreselectedRequestedQuant( | CODE |
| LOW | src/subcommands/get.ts | 1140 | async function maybeHandleMissingRequestedQuant({ | CODE |
| LOW | src/subcommands/load.ts | 79 | export function assertLoadConfigSupportedForCliModel({ | CODE |
| LOW | src/subcommands/load.ts | 130 | function hasDuplicatesOnSameDevice(models: Array<ModelInfo>): boolean { | CODE |
| LOW | src/subcommands/load.ts | 764 | function printEstimatedResourceUsage( | CODE |
| LOW | src/subcommands/loadSpeculativeDecoding.ts | 12 | export function resolveCliSpeculativeDecodingLoadConfig({ | CODE |
| LOW | src/subcommands/parseLmStudioArtifactUrl.ts | 9 | export function tryParseLmStudioArtifactUrl(modelName: string): ParsedLmStudioArtifactUrl | null { | CODE |
| LOW | src/subcommands/importCmd.ts | 311 | async function maybeWarnAboutWindowsSymlink(logger: SimpleLogger) { | CODE |
| LOW | src/subcommands/importCmd.ts | 605 | async function resolveByHuggingFaceInteractive( | CODE |
| LOW | src/subcommands/importCmd.ts | 729 | async function findCandidateHuggingFaceUserRepos(logger: SimpleLogger, fileName: string) { | CODE |
| LOW | src/subcommands/log.ts | 156 | function printLlmPredictionLogEvent(data: DiagnosticsLogEventData, stats: boolean) { | CODE |
| LOW | src/subcommands/list.ts | 40 | function formatModelKeyWithVariantCount(model: ModelInfo) { | CODE |
| LOW | src/subcommands/list.ts | 84 | function printDownloadedModelsTable( | CODE |
| LOW | src/subcommands/list.ts | 148 | function printModelsWithVariantRows({ | CODE |
| LOW | src/subcommands/server.ts | 44 | async function checkHttpServerWithRetries( | CODE |
| LOW | src/subcommands/chat/index.tsx | 45 | export async function getOrAskShouldFetchModelCatalog( | CODE |
| LOW | src/subcommands/chat/index.tsx | 45 | export async function getOrAskShouldFetchModelCatalog( | CODE |
| LOW | src/subcommands/chat/index.tsx | 77 | export function createModelDisplayOptions( | CODE |
| LOW | src/subcommands/chat/reasoning.ts | 9 | export function reasoningModeToPredictionOpts( | CODE |
| LOW | src/subcommands/chat/catalogHelpers.ts | 10 | export async function getCachedModelCatalogOrFetch( | CODE |
| LOW | src/subcommands/chat/util.ts | 158 | export function getLargePastePlaceholderText(content: string, previewLength: number = 50): string { | CODE |
| 20 more matches not shown… | ||||