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.

dan-calin/miko

https://github.com/dan-calin/miko · scanned 2026-06-17 01:52 UTC (1 month, 1 week ago)

44 raw signals (0 security + 44 graph)

UNIFIED Repobility · multi-layer engine · AI coders

Complete repo analysis

Last scanned 1 month, 1 week ago · v2 · last Δ +21.7 (diff) · 38 actionable findings from 1 signal source. 6 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 98.4/100 with 77.8% coverage. It contains 817 nodes across 30 cross-layer flows, written primarily in mixed languages. Engine surfaced 44 findings — concentrated in quality (26), software (13), security (5). Risk profile is high: 0 critical, 2 high, 8 medium. Recommended next step: open the quality layer findings first — that's where the highest-impact wins live.

Showing 32 of 38 actionable findings. 44 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 quality Integrity conf 1.00 Blocking `time.sleep(...)` inside `async def run` — core/audio_handler.py:536
Sync I/O inside an async function blocks the event loop. While `time.sleep(...)` is running, *all* other coroutines on this loop are paused — silent throughput collapse under concurrency. Use the async equivalent (`httpx.AsyncClient`, `asyncio.sleep`, `aiofiles`) or wrap with `await asyncio.to_thre…
core/audio_handler.py:536 Sync io in asyncPerformance
high System graph security security conf 1.00 Insecure pattern 'subprocess_shell_true' in modules/os_control.py:713
Found a known-risky pattern (subprocess_shell_true). Review and replace if possible.
modules/os_control.py:713 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 security security conf 1.00 Insecure pattern 'direct_innerhtml_assignment' in webui/chat.html:1432
Found a known-risky pattern (direct_innerhtml_assignment). Review and replace if possible.
webui/chat.html:1432 Direct innerhtml assignment
medium System graph security security conf 1.00 Insecure pattern 'local_storage_auth_token' in webui/chat.html:1358
Found a known-risky pattern (local_storage_auth_token). Review and replace if possible.
webui/chat.html:1358 Local storage auth token
medium System graph quality Integrity conf 1.00 Network/subprocess call without timeout or try/except — modules/claude_code.py:164
`subprocess.run(...)` 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
medium System graph quality Integrity conf 1.00 Network/subprocess call without timeout or try/except — modules/discord_rpc.py:105
`requests.post(...)` 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
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.). The repo has auth/admin/session surface indicators, so auth may live in custom code, in a separate service, or be missing.
auth
medium System graph quality Placeholder conf 1.00 Placeholder or mock-heavy implementation detected
Found 17 placeholder/mock markers across 3 source files. This often means the repo looks complete while core flows still use generated scaffolding or fake data.
Mock dataIncompleteGenerated repo pattern
medium System graph quality Tests conf 1.00 Very low test-to-source ratio
0 test file(s) for 48 source file(s) (ratio 0.00). Consider adding integration or unit tests for critical paths.
Coverage
low System graph quality Integrity conf 1.00 18 env vars used in code but missing from .env.example
Drift between code and config docs. The first few: `APPDATA`, `DISCORD_OWNER`, `FFMPEG_PATH`, `HOME_COORDS`, `ICLOUD_CALENDAR_NAME`, `MIKO_FFMPEG`, `MIKO_JINA_INTERVAL`, `MIKO_MEMORY_MODEL` + 10 more. Add them (with a placeholder/comment) to .env.example so onboarding doesn't break.
config drift
low System graph quality Production readiness conf 1.00 Composite production-readiness gap
Multiple low-cost hardening controls are missing together: ci, tests. Opus verification showed these co-occurring gaps are a better readiness signal than reading each flag in isolation.
Repo hardeningGenerated repo pattern
low System graph quality Debug conf 1.00 Debug logging residue appears in source files
Found 56 console/debugger/print-style debug statements in non-test source. This is a common fast-generation residue before production cleanup.
CleanupRepo hardeningGenerated repo pattern
low System graph security security conf 1.00 Insecure pattern 'document_write' in webui/chat.html:3675
Found a known-risky pattern (document_write). Review and replace if possible.
webui/chat.html:3675 Document write
low System graph quality Integrity conf 1.00 5 occurrences Near-duplicate function bodies in 2 places
Functions with the same first-5-line body hash: tool_server.py:chat_code_sessions, tool_server.py:chat_code_session 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.
5 occurrences
repo-level (5 hits)
duplicatesduplication
low System graph quality Integrity conf 1.00 3 occurrences Near-duplicate function bodies in 5 places
Functions with the same first-5-line body hash: tool_server.py:factory, tool_server.py:factory, tool_server.py:factory, tool_server.py:factory 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 sepa…
3 occurrences
repo-level (3 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: tool_server.py:workspace_set, tool_server.py:files_pick, tool_server.py:files_write, tool_server.py:files_create This is *the* AI-coder failure mode (4× more duplication in vibe-coded repos — see https://jw.hn/ai-code-hygiene). Consolidate or documen…
duplicatesduplication
low System graph software Dead code conf 1.00 Possibly dead Python function: available
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
memory/embeddings.py:136
low System graph software Dead code conf 1.00 Possibly dead Python function: callback
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
modules/discord_bot.py:916
low System graph software Dead code conf 1.00 Possibly dead Python function: clear_history
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
modules/phone_commander.py:96
low System graph software Dead code conf 1.00 Possibly dead Python function: complete_auth
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
modules/calendar.py:288
low System graph software Dead code conf 1.00 Possibly dead Python function: fetch_text
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
modules/research.py:510
low System graph software Dead code conf 1.00 Possibly dead Python function: handle_data
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
modules/research.py:374
low System graph software Dead code conf 1.00 Possibly dead Python function: handle_endtag
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
modules/research.py:370
low System graph software Dead code conf 1.00 Possibly dead Python function: handle_starttag
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
modules/research.py:366
low System graph software Dead code conf 1.00 Possibly dead Python function: is_ready
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
modules/discord_bot.py:369
low System graph software Dead code conf 1.00 Possibly dead Python function: open_folder
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
modules/notes.py:244
low System graph software Dead code conf 1.00 Possibly dead Python function: repl
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
modules/email_box.py:414
low System graph software Dead code conf 1.00 Possibly dead Python function: strip_wake_word
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
core/wake_word.py:69
low System graph software Dead code conf 1.00 Possibly dead Python function: wikilink_name
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
vault.py:76
low System graph quality Complexity conf 1.00 Very large file: chat_backend.py (1338 lines)
Files with >800 lines often hide complexity hotspots and discourage tests.
low System graph quality Complexity conf 1.00 Very large file: modules/os_control.py (1291 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/262f14ec-5e51-4ba7-925b-fb7197881298/

To check status programmatically (no auth required):

curl -s https://repobility.com/api/v1/public/scan/262f14ec-5e51-4ba7-925b-fb7197881298/

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.