Public scan — anyone with this URL can view this analysis. Sign up to track your own repos privately, run scheduled re-scans, and get AI fix prompts via your dashboard.
45 of your 144 findings came from Repobility's proprietary detections. ✓ Repobility tags below mark them.

Scan timing: clone 4.81s · analysis 25.43s · 12.5 MB · GitHub API rate-limit (preflight)

jingyaogong/minimind

https://github.com/jingyaogong/minimind · scanned 2026-06-05 11:39 UTC (1 week, 2 days ago) · 10 languages

225 raw signals (129 security + 96 graph) 4th percentile · Python · small (2-20K LoC) System graph score 83 (lower by 41)

UNIFIED Repobility · multi-layer engine · AI coders

Complete repo analysis

Last scanned 1 week, 2 days ago · v2 · 124 actionable findings from 2 signal sources. 53 repeated signals grouped for readability. Security checks, system graph analysis, and verified AI-agent feedback are merged into one review queue.

JSON
Score breakdown â 2026-05-18-v5
Component Sub-score Weight Contribution
structure_score 55.0 0.15 8.25
security_score 52.3 0.25 13.07
testing_score 0.0 0.20 0.00
documentation_score 64.0 0.15 9.60
practices_score 42.0 0.15 6.30
code_quality 46.6 0.10 4.66
Overall 1.00 41.9
Severity distribution — click a segment to filter
Active filters: excluding tests × Reset all
Scan summary Quality grade D (42/100). Dimensions: security 52, maintainability 55. 129 findings (44 security). 4,631 lines analyzed.

Showing 101 of 124 actionable findings. 177 raw detector signals were grouped into reader-sized issues. Click TP / FP to vote on a finding's accuracy — votes adjust the confidence weighting and improve detection across the platform.

high Security checks quality Quality conf 1.00 ✓ Repobility Missing import: `queue` used but not imported
The file uses `queue.something(...)` but never imports `queue`. This raises NameError at runtime the first time the line executes.
scripts/serve_openai_api.py:133
critical Security checks software dependencies conf 0.88 nltk: GHSA-7p94-766c-hgjp
NLTK has a Zip Slip Vulnerability
requirements.txt
high Security checks quality Quality conf 1.00 ✓ Repobility 20 occurrences `self.create_chat_prompt` used but never assigned in __init__
Method `__getitem__` of class `SFTDataset` reads `self.create_chat_prompt`, but no assignment to it exists in __init__ (and no class-level fallback). This raises AttributeError the first time the method runs against an instance.
3 files, 20 locations
model/model_minimind.py:60, 126, 169, 171, 173, 175, 216, 218, +2 more (12 hits)
dataset/lm_dataset.py:109, 113, 156, 159, 219, 251 (6 hits)
trainer/train_ppo.py:45, 46 (2 hits)
high Security checks quality Quality conf 0.80 ✓ Repobility FastAPI POST /v1/chat/completions has no auth
Handler `chat_completions` is registered with router/app.post(...) but no Depends/Security parameter is declared and no auth marker appears in the function body.
scripts/serve_openai_api.py:172
high Security checks software dependencies conf 0.88 flask-cors: PYSEC-2024-260
A vulnerability in corydolphin/flask-cors version 4.0.1 allows the `Access-Control-Allow-Private-Network` CORS header to be set to true by default. This behavior can expose private network resources to unauthorized external access, leading to significant security risks such as data breaches, unauth…
requirements.txt
high Security checks software dependencies conf 0.88 flask-cors: PYSEC-2024-271
corydolphin/flask-cors is vulnerable to log injection when the log level is set to debug. An attacker can inject fake log entries into the log file by sending a specially crafted GET request containing a CRLF sequence in the request path. This vulnerability allows attackers to corrupt log files, po…
requirements.txt
high Security checks software dependencies conf 0.88 nltk: GHSA-469j-vmhf-r6v7
NLTK has a Downloader Path Traversal Vulnerability (AFO) - Arbitrary File Overwrite
requirements.txt
high Security checks software dependencies conf 0.88 nltk: GHSA-jm6w-m3j8-898g
Unauthenticated remote shutdown in nltk.app.wordnet_app
requirements.txt
high Security checks software dependencies conf 0.88 nltk: PYSEC-2024-167
NLTK through 3.8.1 allows remote code execution if untrusted packages have pickled Python code, and the integrated data package download functionality is used. This affects, for example, averaged_perceptron_tagger and punkt.
requirements.txt
high Security checks software dependencies conf 0.88 nltk: PYSEC-2026-97
A vulnerability in the `filestring()` function of the `nltk.util` module in nltk version 3.9.2 allows arbitrary file read due to improper validation of input paths. The function directly opens files specified by user input without sanitization, enabling attackers to access sensitive system files by…
requirements.txt
high Security checks software dependencies conf 0.88 nltk: PYSEC-2026-98
A vulnerability in NLTK versions up to and including 3.9.2 allows arbitrary file read via path traversal in multiple CorpusReader classes, including WordListCorpusReader, TaggedCorpusReader, and BracketParseCorpusReader. These classes fail to properly sanitize or validate file paths, enabling attac…
requirements.txt
high Security checks software dependencies conf 0.88 nltk: PYSEC-2026-99
NLTK versions <=3.9.2 are vulnerable to arbitrary code execution due to improper input validation in the StanfordSegmenter module. The module dynamically loads external Java .jar files without verification or sandboxing. An attacker can supply or replace the JAR file, enabling the execution of arbi…
requirements.txt
high Security checks software dependencies conf 0.88 transformers: PYSEC-2025-217
Hugging Face Transformers X-CLIP Checkpoint Conversion Deserialization of Untrusted Data Remote Code Execution Vulnerability. This vulnerability allows remote attackers to execute arbitrary code on affected installations of Hugging Face Transformers. User interaction is required to exploit this vul…
requirements.txt
high Security checks software dependencies conf 0.88 ujson: GHSA-c38f-wx89-p2xg
UltraJSON has a Memory Leak in ujson.dump() on Write Failure
requirements.txt
high Security checks software dependencies conf 0.88 ujson: GHSA-c8rr-9gxc-jprv
UltraJSON has an integer overflow handling large indent leads to buffer overflow or infinite loop
requirements.txt
high Security checks software dependencies conf 0.88 ujson: GHSA-wpqr-jcpx-745r
Incorrect handling of invalid surrogate pair characters
requirements.txt
high Security checks software dependencies conf 0.88 ujson: OSV-2021-1809
Heap-buffer-overflow in ujson.cpython-38-x86_64-linux-gnu.so
requirements.txt
high Security checks software dependencies conf 0.88 ujson: OSV-2021-955
Stack-buffer-overflow in Buffer_AppendIndentUnchecked
requirements.txt
high System graph security auth conf 1.00 FastAPI POST `chat_completions` without auth dependency — scripts/serve_openai_api.py:171
`@router.post` decorator with no `Depends(get_current_user)` or auth-shaped dependency in its signature. Mutating endpoints should require authentication unless explicitly public.
scripts/serve_openai_api.py:171 securityAuth fastapi unauth mutation
high System graph security security conf 1.00 Insecure pattern 'eval_used' in eval_llm.py:30
Found a known-risky pattern (eval_used). Review and replace if possible.
eval_llm.py:30 Eval used
high System graph security security conf 1.00 Insecure pattern 'eval_used' in scripts/eval_toolcall.py:30
Found a known-risky pattern (eval_used). Review and replace if possible.
scripts/eval_toolcall.py:30 Eval used
high System graph security security conf 1.00 Insecure pattern 'eval_used' in scripts/serve_openai_api.py:47
Found a known-risky pattern (eval_used). Review and replace if possible.
scripts/serve_openai_api.py:47 Eval used
high System graph security security conf 1.00 Insecure pattern 'eval_used' in scripts/web_demo.py:128
Found a known-risky pattern (eval_used). Review and replace if possible.
scripts/web_demo.py:128 Eval used
high System graph security security conf 1.00 Insecure pattern 'eval_used' in trainer/train_agent.py:58
Found a known-risky pattern (eval_used). Review and replace if possible.
trainer/train_agent.py:58 Eval used
high System graph security security conf 1.00 Insecure pattern 'eval_used' in trainer/train_distillation.py:44
Found a known-risky pattern (eval_used). Review and replace if possible.
trainer/train_distillation.py:44 Eval used
high System graph security security conf 1.00 Insecure pattern 'eval_used' in trainer/train_dpo.py:109
Found a known-risky pattern (eval_used). Review and replace if possible.
trainer/train_dpo.py:109 Eval used
high System graph security security conf 1.00 Insecure pattern 'eval_used' in trainer/train_full_sft.py:62
Found a known-risky pattern (eval_used). Review and replace if possible.
trainer/train_full_sft.py:62 Eval used
high System graph security security conf 1.00 Insecure pattern 'eval_used' in trainer/train_grpo.py:181
Found a known-risky pattern (eval_used). Review and replace if possible.
trainer/train_grpo.py:181 Eval used
high System graph security security conf 1.00 Insecure pattern 'eval_used' in trainer/train_lora.py:61
Found a known-risky pattern (eval_used). Review and replace if possible.
trainer/train_lora.py:61 Eval used
high System graph security security conf 1.00 Insecure pattern 'eval_used' in trainer/train_ppo.py:275
Found a known-risky pattern (eval_used). Review and replace if possible.
trainer/train_ppo.py:275 Eval used
high System graph security security conf 1.00 Insecure pattern 'eval_used' in trainer/train_pretrain.py:62
Found a known-risky pattern (eval_used). Review and replace if possible.
trainer/train_pretrain.py:62 Eval used
high System graph security security conf 1.00 Insecure pattern 'eval_used' in trainer/trainer_utils.py:164
Found a known-risky pattern (eval_used). Review and replace if possible.
trainer/trainer_utils.py:164 Eval used
medium Security checks security auth conf 0.92 [AUC001] No Repobility access matrix policy found: The repository uses web/API frameworks but does not define .repobility/access.yml or equivalent authorization documentation.
The repository uses web/API frameworks but does not define .repobility/access.yml or equivalent authorization documentation.
low Security checks quality Error handling conf 1.00 [ERR001] Silent Exception Swallowing: Silently swallowing all exceptions hides bugs. Even in cleanup code, log at DEBUG level.
Log the error: `except Exception: logger.debug('cleanup failed', exc_info=True)`. Or handle specific exception types.
scripts/serve_openai_api.py:98
low Security checks quality Error handling conf 1.00 [ERR001] Silent Exception Swallowing: Silently swallowing all exceptions hides bugs. Even in cleanup code, log at DEBUG level.
Log the error: `except Exception: logger.debug('cleanup failed', exc_info=True)`. Or handle specific exception types.
scripts/eval_toolcall.py:76
low Security checks quality Error handling conf 0.55 ✓ Repobility 10 occurrences Broad exception handler needs review
This handler catches Exception/BaseException. It is actionable when it swallows errors without logging, re-raising, or returning a structured error. Handlers that intentionally convert exceptions into typed error results should not be treated as high risk.
5 files, 10 locations
trainer/train_agent.py:91, 141, 227 (3 hits)
scripts/eval_toolcall.py:104, 111 (2 hits)
scripts/web_demo.py:145, 158 (2 hits)
trainer/rollout_engine.py:188, 204 (2 hits)
scripts/serve_openai_api.py:167
Error handlingquality
medium Security checks software dependencies conf 0.88 flask-cors: GHSA-43qf-4rqw-9q2g
Flask-CORS vulnerable to Improper Handling of Case Sensitivity
requirements.txt
medium Security checks software dependencies conf 0.88 flask-cors: GHSA-7rxf-gvfg-47g4
Flask-CORS improper regex path matching vulnerability
requirements.txt
medium Security checks software dependencies conf 0.88 flask-cors: GHSA-8vgw-p6qm-5gr7
Flask-CORS allows for inconsistent CORS matching
requirements.txt
medium Security checks software dependencies conf 0.88 jinja2: GHSA-cpwx-vrp4-4pq7
Jinja2 vulnerable to sandbox breakout through attr filter selecting format method
requirements.txt
medium Security checks software dependencies conf 0.88 jinja2: GHSA-gmj6-6f8f-6699
Jinja has a sandbox breakout through malicious filenames
requirements.txt
medium Security checks software dependencies conf 0.88 jinja2: GHSA-h5c8-rqwp-cp95
Jinja vulnerable to HTML attribute injection when passing user input as keys to xmlattr filter
requirements.txt
medium Security checks software dependencies conf 0.88 jinja2: GHSA-h75v-3vvj-5mfj
Jinja vulnerable to HTML attribute injection when passing user input as keys to xmlattr filter
requirements.txt
medium Security checks software dependencies conf 0.88 jinja2: GHSA-q2x7-8rv6-6q7h
Jinja has a sandbox breakout through indirect reference to format method
requirements.txt
medium Security checks software dependencies conf 0.88 marshmallow: GHSA-428g-f7cq-pgp5
Marshmallow has DoS in Schema.load(many)
requirements.txt
medium Security checks software dependencies conf 0.88 nltk: GHSA-gfwx-w7gr-fvh7
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in nltk
requirements.txt
medium Security checks software dependencies conf 0.88 nltk: GHSA-rf74-v2fm-23pw
Natural Language Toolkit (NLTK) has unbounded recursion in JSONTaggedDecoder.decode_obj() may cause DoS
requirements.txt
medium Security checks quality Quality conf 0.78 Public web service has no security.txt
security.txt gives researchers and customers a safe disclosure channel. Public web apps and APIs should publish it under /.well-known/security.txt.
.well-known/security.txt
medium Security checks software dependencies conf 0.90 Python package `datasets` is 1 major version(s) behind (3.6.0 -> 4.8.5)
`datasets==3.6.0` is 1 major version(s) behind the latest stable release on PyPI (4.8.5). Pinned-but-stale Python dependencies drift away from upstream security and bugfix releases. This is the version-currency signal Dependabot raises.
requirements.txt:1
medium Security checks software dependencies conf 0.90 Python package `Flask_Cors` is 2 major version(s) behind (4.0.0 -> 6.0.2)
`Flask_Cors==4.0.0` is 2 major version(s) behind the latest stable release on PyPI (6.0.2). Pinned-but-stale Python dependencies drift away from upstream security and bugfix releases. This is the version-currency signal Dependabot raises.
requirements.txt:4
medium Security checks software dependencies conf 0.90 Python package `marshmallow` is 1 major version(s) behind (3.22.0 -> 4.3.0)
`marshmallow==3.22.0` is 1 major version(s) behind the latest stable release on PyPI (4.3.0). Pinned-but-stale Python dependencies drift away from upstream security and bugfix releases. This is the version-currency signal Dependabot raises.
requirements.txt:7
medium Security checks software dependencies conf 0.90 Python package `openai` is 1 major version(s) behind (1.59.6 -> 2.41.0)
`openai==1.59.6` is 1 major version(s) behind the latest stable release on PyPI (2.41.0). Pinned-but-stale Python dependencies drift away from upstream security and bugfix releases. This is the version-currency signal Dependabot raises.
requirements.txt:12
medium Security checks software dependencies conf 0.90 Python package `psutil` is 2 major version(s) behind (5.9.8 -> 7.2.2)
`psutil==5.9.8` is 2 major version(s) behind the latest stable release on PyPI (7.2.2). Pinned-but-stale Python dependencies drift away from upstream security and bugfix releases. This is the version-currency signal Dependabot raises.
requirements.txt:14
medium Security checks software dependencies conf 0.90 Python package `rich` is 2 major version(s) behind (13.7.1 -> 15.0.0)
`rich==13.7.1` is 2 major version(s) behind the latest stable release on PyPI (15.0.0). Pinned-but-stale Python dependencies drift away from upstream security and bugfix releases. This is the version-currency signal Dependabot raises.
requirements.txt:16
medium Security checks software dependencies conf 0.90 Python package `sentence_transformers` is 3 major version(s) behind (2.3.1 -> 5.5.1)
`sentence_transformers==2.3.1` is 3 major version(s) behind the latest stable release on PyPI (5.5.1). Pinned-but-stale Python dependencies drift away from upstream security and bugfix releases. This is the version-currency signal Dependabot raises.
requirements.txt:18
medium Security checks software dependencies conf 0.90 Python package `transformers` is 1 major version(s) behind (4.57.6 -> 5.10.2)
`transformers==4.57.6` is 1 major version(s) behind the latest stable release on PyPI (5.10.2). Pinned-but-stale Python dependencies drift away from upstream security and bugfix releases. This is the version-currency signal Dependabot raises.
requirements.txt:21
medium Security checks software dependencies conf 0.90 Python package `trl` is 1 major version(s) behind (0.13.0 -> 1.5.1)
`trl==0.13.0` is 1 major version(s) behind the latest stable release on PyPI (1.5.1). Pinned-but-stale Python dependencies drift away from upstream security and bugfix releases. This is the version-currency signal Dependabot raises.
requirements.txt:24
medium Security checks software dependencies conf 0.88 streamlit: GHSA-7p48-42j8-8846
Unauthenticated SSRF Vulnerability in Streamlit on Windows (NTLM Credential Exposure)
requirements.txt
medium Security checks software dependencies conf 0.88 transformers: GHSA-69w3-r845-3855
HuggingFace Transformers allows for arbitrary code execution in the `Trainer` class
requirements.txt
medium Security checks software dependencies conf 0.88 ujson: GHSA-fh56-85cw-5pq6
UltraJSON vulnerable to Out-of-bounds Write
requirements.txt
medium Security checks software dependencies conf 0.88 ujson: GHSA-fm67-cv37-96ff
Potential double free of buffer during string decoding
requirements.txt
medium System graph security Coverage conf 1.00 No auth library detected
The scanner did not find any standard auth library (JWT, OAuth, NextAuth, Auth0, etc.). Either auth lives in custom code, in a separate service, or is missing.
auth
medium System graph cicd CI/CD security conf 1.00 No CI/CD pipelines detected
No GitHub Actions, GitLab CI, or CircleCI configs found. Without CI you can't gate deploys on tests/lints.
CI/CD securityCoverage
medium System graph quality Tests conf 1.00 Very low test-to-source ratio
0 test file(s) for 22 source file(s) (ratio 0.00). Consider adding integration or unit tests for critical paths.
Coverage
low Security checks security auth conf 0.76 [AUC005] No authorization-focused tests detected: No test files with common authorization, ownership, 403, admin, or super_admin assertions were found.
No test files with common authorization, ownership, 403, admin, or super_admin assertions were found.
low Security checks quality Quality conf 0.60 10 occurrences Duplicated implementation block across source files
Duplicate implementation blocks are maintenance debt. Keep them visible, but they are not a high-severity defect unless the duplicated logic is security-sensitive or drifting.
6 files, 10 locations
trainer/train_pretrain.py:17, 90, 110 (3 hits)
trainer/train_full_sft.py:91, 110 (2 hits)
trainer/train_ppo.py:246, 281 (2 hits)
trainer/train_dpo.py:149
trainer/train_grpo.py:152
trainer/train_lora.py:21
duplicationquality
low Security checks software dependencies conf 0.88 flask: GHSA-68rp-wp8r-4726
Flask session does not add `Vary: Cookie` header when accessed in some ways
requirements.txt
low Security checks software dependencies conf 0.90 Python package `datasketch` is minor version(s) behind (1.6.4 -> 1.10.0)
`datasketch==1.6.4` is minor version(s) behind the latest stable release on PyPI (1.10.0). Pinned-but-stale Python dependencies drift away from upstream security and bugfix releases. This is the version-currency signal Dependabot raises.
requirements.txt:2
low Security checks software dependencies conf 0.90 Python package `Flask` is minor version(s) behind (3.0.3 -> 3.1.3)
`Flask==3.0.3` is minor version(s) behind the latest stable release on PyPI (3.1.3). Pinned-but-stale Python dependencies drift away from upstream security and bugfix releases. This is the version-currency signal Dependabot raises.
requirements.txt:3
low Security checks software dependencies conf 0.90 Python package `ngrok` is minor version(s) behind (1.4.0 -> 1.7.0)
`ngrok==1.4.0` is minor version(s) behind the latest stable release on PyPI (1.7.0). Pinned-but-stale Python dependencies drift away from upstream security and bugfix releases. This is the version-currency signal Dependabot raises.
requirements.txt:9
low Security checks software dependencies conf 0.90 Python package `nltk` is minor version(s) behind (3.8 -> 3.9.4)
`nltk==3.8` is minor version(s) behind the latest stable release on PyPI (3.9.4). Pinned-but-stale Python dependencies drift away from upstream security and bugfix releases. This is the version-currency signal Dependabot raises.
requirements.txt:10
low Security checks software dependencies conf 0.90 Python package `pydantic` is minor version(s) behind (2.11.5 -> 2.13.4)
`pydantic==2.11.5` is minor version(s) behind the latest stable release on PyPI (2.13.4). Pinned-but-stale Python dependencies drift away from upstream security and bugfix releases. This is the version-currency signal Dependabot raises.
requirements.txt:15
low Security checks software dependencies conf 0.90 Python package `scikit_learn` is minor version(s) behind (1.5.1 -> 1.9.0)
`scikit_learn==1.5.1` is minor version(s) behind the latest stable release on PyPI (1.9.0). Pinned-but-stale Python dependencies drift away from upstream security and bugfix releases. This is the version-currency signal Dependabot raises.
requirements.txt:17
low Security checks software dependencies conf 0.90 Python package `streamlit` is minor version(s) behind (1.50.0 -> 1.58.0)
`streamlit==1.50.0` is minor version(s) behind the latest stable release on PyPI (1.58.0). Pinned-but-stale Python dependencies drift away from upstream security and bugfix releases. This is the version-currency signal Dependabot raises.
requirements.txt:27
low Security checks software dependencies conf 0.90 Python package `swanlab` is minor version(s) behind (0.7.11 -> 0.8.0)
`swanlab==0.7.11` is minor version(s) behind the latest stable release on PyPI (0.8.0). Pinned-but-stale Python dependencies drift away from upstream security and bugfix releases. This is the version-currency signal Dependabot raises.
requirements.txt:29
low Security checks software dependencies conf 0.90 Python package `tiktoken` is minor version(s) behind (0.10.0 -> 0.13.0)
`tiktoken==0.10.0` is minor version(s) behind the latest stable release on PyPI (0.13.0). Pinned-but-stale Python dependencies drift away from upstream security and bugfix releases. This is the version-currency signal Dependabot raises.
requirements.txt:20
low Security checks software dependencies conf 0.90 Python package `ujson` is minor version(s) behind (5.1.0 -> 5.12.1)
`ujson==5.1.0` is minor version(s) behind the latest stable release on PyPI (5.12.1). Pinned-but-stale Python dependencies drift away from upstream security and bugfix releases. This is the version-currency signal Dependabot raises.
requirements.txt:25
low Security checks software dependencies conf 0.90 Python package `wandb` is minor version(s) behind (0.18.3 -> 0.27.1)
`wandb==0.18.3` is minor version(s) behind the latest stable release on PyPI (0.27.1). Pinned-but-stale Python dependencies drift away from upstream security and bugfix releases. This is the version-currency signal Dependabot raises.
requirements.txt:26
low System graph software Dead code candidate conf 1.00 File has no detected symbols: scripts/chat_api.py
Source file with no class/function declarations — possible config, dead code, or scratch file.
low System graph quality Integrity conf 1.00 3 occurrences Near-duplicate function bodies in 2 places
Functions with the same first-5-line body hash: scripts/convert_model.py:convert_torch2transformers_minimind, scripts/convert_model.py:convert_torch2transformers This is *the* AI-coder failure mode (4× more duplication in vibe-coded repos — see https://jw.hn/ai-code-hygiene). Consolidate or docume…
3 occurrences
repo-level (3 hits)
duplicatesduplication
low System graph quality Integrity conf 1.00 4 occurrences Near-duplicate function bodies in 3 places
Functions with the same first-5-line body hash: dataset/lm_dataset.py:create_chat_prompt, dataset/lm_dataset.py:create_chat_prompt, dataset/lm_dataset.py:parse_conversations This is *the* AI-coder failure mode (4× more duplication in vibe-coded repos — see https://jw.hn/ai-code-hygiene). Consolida…
4 occurrences
repo-level (4 hits)
duplicatesduplication
low System graph quality Integrity conf 1.00 Near-duplicate function bodies in 7 places
Functions with the same first-5-line body hash: model/model_minimind.py:forward, model/model_minimind.py:forward, model/model_minimind.py:forward, model/model_minimind.py:forward This is *the* AI-coder failure mode (4× more duplication in vibe-coded repos — see https://jw.hn/ai-code-hygiene). Cons…
duplicatesduplication
low System graph quality Integrity conf 1.00 Old/deprecated-named symbol `msgs_copy` in trainer/train_agent.py:170
Names with suffixes like `_old`, `_v1`, `_deprecated` usually indicate replaced-but-not-removed code (typical AI-coder leftover). Confirm and delete, or rename if it's the active version.
old markerDead code
low System graph software Dead code conf 1.00 Possibly dead Python function: clear_chat_messages
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
scripts/web_demo.py:212
low System graph software Dead code conf 1.00 Possibly dead Python function: collate_fn
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
trainer/train_agent.py:456
low System graph software Dead code conf 1.00 Possibly dead Python function: convert_jinja_to_json
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
scripts/convert_model.py:115
low System graph software Dead code conf 1.00 Possibly dead Python function: convert_json_to_jinja
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
scripts/convert_model.py:121
low System graph software Dead code conf 1.00 Possibly dead Python function: convert_merge_base_lora
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
scripts/convert_model.py:105
low System graph software Dead code conf 1.00 Possibly dead Python function: convert_torch2transformers_minimind
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
scripts/convert_model.py:16
low System graph software Dead code conf 1.00 Possibly dead Python function: convert_transformers2torch
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
scripts/convert_model.py:99
low System graph software Dead code conf 1.00 Possibly dead Python function: flush_cache
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
trainer/rollout_engine.py:196
low System graph software Dead code conf 1.00 Possibly dead Python function: format_think
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
scripts/web_demo.py:174
low System graph software Dead code conf 1.00 Possibly dead Python function: format_think_in_progress
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
scripts/web_demo.py:182
low System graph software Dead code conf 1.00 Possibly dead Python function: format_think_no_start
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
scripts/web_demo.py:188
low System graph software Dead code conf 1.00 Possibly dead Python function: format_tool_call
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
scripts/web_demo.py:152
low System graph software Dead code conf 1.00 Possibly dead Python function: forward_with_lora
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
model/model_lora.py:29
low System graph software Dead code conf 1.00 Possibly dead Python function: health
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
trainer/rollout_engine.py:200
low System graph software Dead code conf 1.00 Possibly dead Python function: init_chat_messages
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
scripts/web_demo.py:217
low System graph software Dead code conf 1.00 Possibly dead Python function: regenerate_answer
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
scripts/web_demo.py:233
low System graph quality Integrity conf 1.00 Stub function `rollout` (body is just `pass`/`return`) — trainer/rollout_engine.py:55
Likely an AI scaffold that was never filled in. Remove or implement.
Empty handlerDead code
low System graph api Wiring conf 1.00 Unused endpoint: POST /v1/chat/completions
`scripts/serve_openai_api.py` declares `POST /v1/chat/completions` but no frontend code we scanned calls it. This is fine if the endpoint serves external clients (mobile app, third-party, server-side webhooks). Otherwise it's dead code — consider removing or documenting who consumes it.
Unused endpoint
For AI agents: Voting guide (TP/FP) MCP manifest Stdio wrapper SARIF Integrate Findings queue Vote TP/FP on findings to calibrate the engine.
For AI agents + API integrations
Email me when this repo regresses
Free. We re-scan periodically; new criticals → your inbox. No signup required for the scan itself.
API access

This page is publicly accessible at: https://repobility.com/scan/998a2207-f825-44b2-b8a5-0ec507737cd5/

To check status programmatically (no auth required):

curl -s https://repobility.com/api/v1/public/scan/998a2207-f825-44b2-b8a5-0ec507737cd5/

Important — please don't re-submit the same URL repeatedly. The submission endpoint is idempotent: re-submitting the same git URL returns this same scan_token, not a new one. To re-scan this repo, sign up free and use the dashboard.