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.

CrisXie4/ModelBridge

https://github.com/CrisXie4/ModelBridge · scanned 2026-06-17 01:24 UTC (1 month, 2 weeks ago)

53 raw signals (0 security + 53 graph)

UNIFIED Repobility · multi-layer engine · AI coders

Complete repo analysis

Last scanned 1 month, 2 weeks ago · v2 · last Δ +2.4 (diff) · 38 actionable findings from 1 signal source. 15 repeated signals grouped for readability. Security checks, system graph analysis, and verified AI-agent feedback are merged into one review queue.

JSON
Severity distribution — click a segment to filter
Active filters: excluding tests × Reset all
Corpus Intelligence Cross-corpus context (cohort percentile, top patterns, fix plan) is shown only on repositories you own. Sign up and connect your repo to view it.
Scan summary Repository scanned at 79.1/100 with 66.7% coverage. It contains 1370 nodes across 0 cross-layer flows, written primarily in mixed languages. Engine surfaced 53 findings — concentrated in quality (39), software (12), security (1). Risk profile is high: 0 critical, 1 high, 3 medium. Recommended next step: open the quality layer findings first — that's where the highest-impact wins live.

Showing 28 of 38 actionable findings. 53 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 System graph security security conf 1.00 Insecure pattern 'subprocess_shell_true' in modelbridge/agent/tools/bash_tool.py:96
Found a known-risky pattern (subprocess_shell_true). Review and replace if possible.
modelbridge/agent/tools/bash_tool.py:96 Subprocess shell true
medium System graph quality Placeholder conf 1.00 Critical user flow still appears backed by mock or placeholder data
A payment/auth/admin/order/billing-style flow contains mock, fake, TODO, dummy, or placeholder markers in runtime source. In the Fable corpus this is a high-leverage completeness smell: the app can look finished while the money, identity, or tenant flow is still scaffolded.
Mock dataCritical flowGenerated repo pattern
medium System graph cicd CI/CD security conf 1.00 GitHub Actions workflow grants broad write permissions
CI tokens with write permissions increase blast radius when an action, dependency, or PR workflow is compromised. Prefer job-level least-privilege permissions.
.github/workflows/release.yml CI/CD securitySupply chainGithub actions
medium System graph quality Integrity conf 1.00 Network/subprocess call without timeout or try/except — modelbridge/updater.py:312
`subprocess.Popen(...)` here lacks both a `timeout=` arg and an enclosing try/except. This is exactly the class of bug that took down our git-clone earlier (HTTP/2 stream cancel surfaced as a fatal). Add a `timeout=` and wrap in try/except, or use a wrapper that retries.
runtime safetyRobustness
low System graph quality Tests conf 1.00 Low test-to-source ratio
21 tests / 115 src (ratio 0.18).
low System graph quality Integrity conf 1.00 12 occurrences Near-duplicate function bodies in 2 places
Functions with the same first-5-line body hash: modelbridge/cli.py:on_assistant_start, modelbridge/cli.py:on_assistant This is *the* AI-coder failure mode (4× more duplication in vibe-coded repos — see https://jw.hn/ai-code-hygiene). Consolidate or document why they're separate.
12 occurrences
repo-level (12 hits)
duplicatesduplication
low System graph quality Integrity conf 1.00 3 occurrences Near-duplicate function bodies in 3 places
Functions with the same first-5-line body hash: modelbridge/providers/base.py:chat_endpoint, modelbridge/providers/base.py:chat, modelbridge/providers/base.py:chat This is *the* AI-coder failure mode (4× more duplication in vibe-coded repos — see https://jw.hn/ai-code-hygiene). Consolidate or docu…
3 occurrences
repo-level (3 hits)
duplicatesduplication
low System graph quality Integrity conf 1.00 3 occurrences Near-duplicate function bodies in 4 places
Functions with the same first-5-line body hash: modelbridge/agent/tools/browser_tools.py:json_schema, modelbridge/agent/tools/browser_tools.py:json_schema, modelbridge/agent/tools/browser_tools.py:json_schema, modelbridge/agent/tools/browser_tools.py:json_schema This is *the* AI-coder failure mode…
3 occurrences
repo-level (3 hits)
duplicatesduplication
low System graph quality Integrity conf 1.00 Near-duplicate function bodies in 9 places
Functions with the same first-5-line body hash: modelbridge/mcp/protocol/types.py:from_wire, modelbridge/mcp/protocol/types.py:from_wire, modelbridge/mcp/protocol/types.py:from_wire, modelbridge/mcp/protocol/types.py:from_wire This is *the* AI-coder failure mode (4× more duplication in vibe-coded …
duplicatesduplication
low System graph quality Integrity conf 1.00 Old/deprecated-named symbol `_migrate_v1_to_v2` in modelbridge/config.py:160
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 quality Integrity conf 1.00 Old/deprecated-named symbol `create_backup` in modelbridge/cli.py:160
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 quality Integrity conf 1.00 Old/deprecated-named symbol `create_backup` in modelbridge/editor/__init__.py:8
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 quality Integrity conf 1.00 Old/deprecated-named symbol `create_backup` in modelbridge/editor/backup.py:120
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 quality Integrity conf 1.00 Old/deprecated-named symbol `head_old` in modelbridge/agent/tools/file_tools.py:213
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 quality Integrity conf 1.00 Old/deprecated-named symbol `seen_old` in modelbridge/editor/diff_parser.py:326
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: as_str
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
modelbridge/cost/estimator.py:258
low System graph software Dead code conf 1.00 Possibly dead Python function: auto_no
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
modelbridge/agent/context.py:48
low System graph software Dead code conf 1.00 Possibly dead Python function: auto_yes
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
modelbridge/agent/context.py:43
low System graph software Dead code conf 1.00 Possibly dead Python function: expect_starts_with
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
modelbridge/editor/diff_parser.py:239
low System graph software Dead code conf 1.00 Possibly dead Python function: handle_chat
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
modelbridge/bridge/host.py:217
low System graph software Dead code conf 1.00 Possibly dead Python function: list_uris
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
modelbridge/mcp/adapters/resource_provider.py:29
low System graph software Dead code conf 1.00 Possibly dead Python function: run_doctor
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
modelbridge/doctor.py:401
low System graph software Dead code conf 1.00 Possibly dead Python function: supports_capability
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
modelbridge/providers/base.py:67
low System graph software Dead code conf 1.00 Possibly dead Python function: to_messages
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
modelbridge/mcp/adapters/prompt_adapter.py:27
low System graph software Dead code conf 1.00 Possibly dead Python function: to_tool_message
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
modelbridge/agent/tools/base.py:31
low System graph software Dead code conf 1.00 Possibly dead Python function: try_fetch_text
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
modelbridge/mcp/adapters/resource_provider.py:44
low System graph software Dead code conf 1.00 Possibly dead Python function: work
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
modelbridge/bridge/control.py:308
low System graph quality Complexity conf 1.00 Very large file: modelbridge/cli.py (3864 lines)
Files with >800 lines often hide complexity hotspots and discourage tests.
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/a2fbbd24-ec6c-4a05-83ed-497bbd97f61f/

To check status programmatically (no auth required):

curl -s https://repobility.com/api/v1/public/scan/a2fbbd24-ec6c-4a05-83ed-497bbd97f61f/

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.