A C#/.NET library to run LLM (🦙LLaMA/LLaVA) on your local device efficiently.
This report summarizes scanner evidence for SciSharp/LLamaSharp, a C# project with 3,810 GitHub stars. SynthScan examined 80,018 lines of code across 476 source files, recording 290 pattern matches distributed across 10 syntactic categories. The legacy adjusted pattern signal is 4.3 (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? 283 finding(s).
Are imports declared and package/API names verified? 6 finding(s).
Are wrappers, guards, and repeated structures necessary? 5 finding(s).
Which changes need focused human review? 290 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 290 distinct pattern matches across 10 syntactic categories. 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 | LLama.Examples/Assets/chat-with-vicuna-v0.txt | 1 | A chat between a curious human ("[[USER_NAME]]") and an artificial intelligence assistant ("[[AI_NAME]]"). The assistant | COMMENT |
| LOW | docs/Tutorials/ChatSession.md | 121 | COMMENT | |
| LOW | docs/Tutorials/Executors.md | 21 | /// <summary> | COMMENT |
| LOW | docs/Tutorials/Executors.md | 261 | COMMENT | |
| LOW | docs/Tutorials/UnderstandLLamaContext.md | 21 | COMMENT | |
| LOW | docs/Tutorials/UnderstandLLamaContext.md | 41 | float? RopeFrequencyScale { get; } | COMMENT |
| LOW | docs/Tutorials/UnderstandLLamaContext.md | 61 | float? YarnExtrapolationFactor { get; } | COMMENT |
| LOW | docs/Tutorials/UnderstandLLamaContext.md | 81 | uint? YarnOriginalContext { get; } | COMMENT |
| LOW | LLama.Web/wwwroot/lib/jquery.unobtrusive-ajax.min.js | 1 | // Unobtrusive Ajax support library for jQuery | COMMENT |
| LOW | LLama.Web/wwwroot/lib/jquery/jquery.slim.js | 881 | COMMENT | |
| LOW | LLama.Web/wwwroot/lib/jquery/jquery.slim.js | 1021 | */ | COMMENT |
| LOW | LLama.Web/wwwroot/lib/jquery/jquery.slim.js | 1161 | // Support: IE 9 only | COMMENT |
| LOW | LLama.Web/wwwroot/lib/jquery/jquery.slim.js | 1301 | // Support: Chrome <=105+, Firefox <=104+, Safari <=15.4+ | COMMENT |
| LOW | LLama.Web/wwwroot/lib/jquery/jquery.slim.js | 2461 | COMMENT | |
| LOW | LLama.Web/wwwroot/lib/jquery/jquery.slim.js | 4041 | // 1. No key was specified | COMMENT |
| LOW | LLama.Web/wwwroot/lib/jquery/jquery.slim.js | 5381 | // If this is a native event triggered above, everything is now in order | COMMENT |
| LOW | LLama.Web/wwwroot/lib/jquery/jquery.slim.js | 5641 | delegateType: delegateType | COMMENT |
| LOW | LLama.Web/wwwroot/lib/jquery/jquery.slim.js | 6421 | // Support: Firefox 51+ | COMMENT |
| LOW | LLama.Web/wwwroot/lib/jquery/jquery.slim.js | 6441 | // disconnected elements. However, in IE even disconnected elements | COMMENT |
| LOW | LLama.Web/wwwroot/lib/jquery/jquery.slim.js | 8561 | COMMENT | |
| LOW | LLama.Web/wwwroot/lib/jquery/jquery.js | 881 | COMMENT | |
| LOW | LLama.Web/wwwroot/lib/jquery/jquery.js | 1021 | */ | COMMENT |
| LOW | LLama.Web/wwwroot/lib/jquery/jquery.js | 1161 | // Support: IE 9 only | COMMENT |
| LOW | LLama.Web/wwwroot/lib/jquery/jquery.js | 1301 | // Support: Chrome <=105+, Firefox <=104+, Safari <=15.4+ | COMMENT |
| LOW | LLama.Web/wwwroot/lib/jquery/jquery.js | 2461 | COMMENT | |
| LOW | LLama.Web/wwwroot/lib/jquery/jquery.js | 4041 | // 1. No key was specified | COMMENT |
| LOW | LLama.Web/wwwroot/lib/jquery/jquery.js | 5381 | // If this is a native event triggered above, everything is now in order | COMMENT |
| LOW | LLama.Web/wwwroot/lib/jquery/jquery.js | 5641 | delegateType: delegateType | COMMENT |
| LOW | LLama.Web/wwwroot/lib/jquery/jquery.js | 6421 | // Support: Firefox 51+ | COMMENT |
| LOW | LLama.Web/wwwroot/lib/jquery/jquery.js | 6441 | // disconnected elements. However, in IE even disconnected elements | COMMENT |
| LOW | LLama.Web/wwwroot/lib/jquery/jquery.js | 10661 | COMMENT | |
| LOW | …-validation-unobtrusive/jquery.validate.unobtrusive.js | 261 | /// <summary>Adds a new adapter to convert unobtrusive HTML into a jQuery Validate validation.</summary> | COMMENT |
| LOW | …-validation-unobtrusive/jquery.validate.unobtrusive.js | 281 | /// <param name="adapterName" type="String">The name of the adapter to be added. This matches the name used | COMMENT |
| LOW | LLama.Web/Async/AsyncGuard.cs | 81 | } | COMMENT |
| LOW | LLama.Web/Models/LLamaModel.cs | 41 | } | COMMENT |
| LOW | LLama.Web/Models/ModelSession.cs | 41 | public string ModelName => _sessionConfig.Model; | COMMENT |
| LOW | LLama.Web/Common/InferenceOptions.cs | 21 | COMMENT | |
| LOW | LLama.Web/Common/ModelLoadType.cs | 1 | namespace LLama.Web.Common | COMMENT |
| LOW | LLama.Web/Services/ModelSessionService.cs | 41 | COMMENT | |
| LOW | LLama.Web/Services/IModelService.cs | 1 | using LLama.Web.Common; | COMMENT |
| LOW | LLama.Web/Services/IModelService.cs | 21 | Task<LLamaModel> LoadModel(ModelOptions modelOptions); | COMMENT |
| LOW | LLama.Web/Services/IModelService.cs | 41 | /// </summary> | COMMENT |
| LOW | LLama.Web/Services/IModelService.cs | 61 | /// Gets the or create model and context. | COMMENT |
| LOW | LLama.Web/Services/IModelSessionService.cs | 21 | /// <summary> | COMMENT |
| LOW | LLama.Web/Services/IModelSessionService.cs | 41 | Task<bool> CloseAsync(string sessionId); | COMMENT |
| LOW | LLama.Web/Services/IModelSessionService.cs | 61 | /// <exception cref="System.Exception">Inference is already running for this session</exception> | COMMENT |
| LOW | LLama/LLamaContext.cs | 21 | private readonly ILogger? _logger; | COMMENT |
| LOW | LLama/LLamaContext.cs | 101 | /// Tokenize a string. | COMMENT |
| LOW | LLama/LLamaTemplate.cs | 21 | /// <summary> | COMMENT |
| LOW | LLama/LLamaTemplate.cs | 41 | /// <summary> | COMMENT |
| LOW | LLama/LLamaTemplate.cs | 101 | } | COMMENT |
| LOW | LLama/StreamingTokenDecoder.cs | 21 | /// <summary> | COMMENT |
| LOW | LLama/LLamaWeights.cs | 21 | /// The native handle, which is used in the native APIs | COMMENT |
| LOW | LLama/LLamaWeights.cs | 61 | COMMENT | |
| LOW | LLama/LLamaQuantizer.cs | 1 | using LLama.Native; | COMMENT |
| LOW | LLama/LLamaQuantizer.cs | 41 | COMMENT | |
| LOW | LLama/LLamaExecutorBase.cs | 21 | { | COMMENT |
| LOW | LLama/LLamaExecutorBase.cs | 41 | protected int _n_matching_session_tokens; | COMMENT |
| LOW | LLama/LLamaExecutorBase.cs | 481 | COMMENT | |
| LOW | LLama/LLamaExecutorBase.cs | 501 | /// </summary> | COMMENT |
| 212 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| CRITICAL | LLama.Web/wwwroot/lib/jquery/jquery.slim.min.js | 2 | !function(e,t){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e,!0):f | CODE |
| CRITICAL | LLama.Web/wwwroot/lib/jquery/jquery.slim.js | 7181 | jQuery.each( jQuery.expr.match.bool.source.match( /\w+/g ), function( _i, name ) { | CODE |
| CRITICAL | LLama.Web/wwwroot/lib/jquery/jquery.min.js | 2 | !function(e,t){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e,!0):f | CODE |
| CRITICAL | LLama.Web/wwwroot/lib/jquery/jquery.js | 7975 | jQuery.each( jQuery.expr.match.bool.source.match( /\w+/g ), function( _i, name ) { | CODE |
| CRITICAL | LLama/Native/Load/NativeLibraryConfig.cs | 220 | var (_, ebx, ecx, _) = System.Runtime.Intrinsics.X86.X86Base.CpuId(7, 0); | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | LLama.Web/wwwroot/lib/jquery/jquery.slim.js | 8566 | // understands anonymous AMD modules. A named AMD is safest and most robust | COMMENT |
| MEDIUM | LLama.Web/wwwroot/lib/jquery/jquery.js | 10665 | // understands anonymous AMD modules. A named AMD is safest and most robust | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | .github/upload_to_hf.py | 24 | except: | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | LLama.Web/wwwroot/lib/signalr/signalr.min.js | 1 | (function webpackUniversalModuleDefinition(root,factory){if(typeof exports==="object"&&typeof module==="object")module.e | CODE |
| LOW | LLama.Web/wwwroot/lib/signalr/signalr.min.js | 16 | (function(global,factory){true?module.exports=factory():undefined})(this,function(){"use strict";function objectOrFuncti | CODE |
| LOW | LLama.Web/wwwroot/lib/jquery/jquery.js | 8878 | function addToPrefiltersOrTransports( structure ) { | CODE |
| LOW | LLama.Web/wwwroot/lib/jquery/jquery.js | 8912 | function inspectPrefiltersOrTransports( structure, options, originalOptions, jqXHR ) { | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | …ma.Examples/Examples/MicrosoftAgentFrameworkExample.cs | 3 | # Microsoft Agent Framework & LLamaSharp (with Deterministic RAG) | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | docs/Examples/GetEmbeddings.md | 29 | """); // NOTE: this description was AI generated | STRING |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | LLama.Web/wwwroot/lib/jquery/jquery.slim.js | 4139 | function getData( data ) { | CODE |
| LOW | LLama.Web/wwwroot/lib/jquery/jquery.js | 4139 | function getData( data ) { | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | LLama/Native/NativeApi.cs | 158 | /// NOTE: This function does not use a jinja parser. It only support a pre-defined list of template. | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | LLama/Native/NativeApi.Mtmd.cs | 452 | // TODO @ngxson : allow "placeholder" bitmap output for counting tokens | COMMENT |