AI Slop Code Risk Monitor

wangzan101/Mika

SlopCodeMonitor badge for wangzan101/Mika Adjusted legacy signal; badge bands: 25 / 50 / 75 (different from dashboard bands).

An on-device AI agent for Android that operates apps and the web to get things done for you.

13.5 Moderate pattern signal View on GitHub

Open-Source Code Quality, Security and Technical Debt Review

This report summarizes scanner evidence for wangzan101/Mika, a Kotlin project with 8,650 GitHub stars. SynthScan examined 389,467 lines of code across 3230 source files, recording 697 pattern matches distributed across 13 syntactic categories. The legacy adjusted pattern signal is 13.5 (Moderate 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.

13.5
Adjusted Signal
13.5
Raw Pattern Score
100%
Time Factor
2026-11-15
Last Push
8.7K
Stars
Kotlin
Language
389.5K
Lines of Code
3.2K
Files
697
Pattern Hits
2026-11-15
Scan Date
0.14
HC Hit Rate

Risk Review · Payload v1

Use each vector to guide manual verification of the underlying findings.

Payload schema: 1.0.0 · Engine: 2.0.0 · Scoring: heuristic-density-v1 · Scan date: 2026-11-15.

Cognitive Ownership Risk 2.7/100 · LOW

Can maintainers explain intent, assumptions, and trade-offs? 220 finding(s).

Hallucinated Dependency & Supply Chain Risk 47.1/100 · MEDIUM

Are imports declared and package/API names verified? 453 finding(s).

Agent Over-Engineering Ratio 2.9/100 · LOW

Are wrappers, guards, and repeated structures necessary? 198 finding(s).

PR Review Velocity Impact 45.2/100 · MEDIUM

Which changes need focused human review? 697 finding(s).

What These Metrics Mean

Adjusted Signal
Legacy pattern score normalized per 1,000 scanned lines and multiplied by the repository-level time factor. It is not an estimate of AI authorship.
Raw Pattern Score
Sum of severity- and context-weighted pattern findings before applying the time factor.
Time Factor
A coarse multiplier based on repository last-push metadata. It does not identify when individual code was written.
Pattern Hits
Count of configured pattern findings. Review each location and surrounding code before acting.
HC Hit Rate
High- and critical-severity findings per scanned file. Severity is a configured detector weight, not proof of a vulnerability or authorship.
Lines / Files
Scan coverage denominators used by the legacy normalized score.

Pattern-Signal History

Run additional scans to build a history of the legacy pattern signal. Score changes are not a measure of AI adoption or code quality.

No multi-scan history yet — run the scanner again to build trend data.

Severity Breakdown

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.

CRITICAL 436HIGH 12MEDIUM 4LOW 245

Directory Score Breakdown

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.

Pattern Findings

The scanner identified 697 distinct pattern matches across 13 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.

Hallucination Indicators436 hits · 4935 pts
SeverityFileLineSnippetContext
CRITICALtools/mika-feishu/src/mika_feishu/runtime.py35 response = self.client.im.v1.message.create(request)CODE
CRITICAL⚡…com/wangzan101/mika/core/record/AgentLoopRecordTest.kt76 val spec = com.wangzan101.mika.core.run.RunSpec(com.wangzan101.mika.core.run.RunId("r"), "查电量", "t",CODE
CRITICAL⚡…com/wangzan101/mika/core/record/AgentLoopRecordTest.kt77 provenance = com.wangzan101.mika.core.run.RunProvenance(origin, com.wangzan101.mika.core.run.Attendance.CODE
CRITICAL⚡…com/wangzan101/mika/core/record/AgentLoopRecordTest.kt79 AgentLoop(FakeModel(com.wangzan101.mika.core.testing.answerReply("80%")), toolDispatcher(FakeScreen(), rCODE
CRITICAL⚡…com/wangzan101/mika/core/record/AgentLoopRecordTest.kt80 .run(spec, com.wangzan101.mika.core.run.RunInbox())CODE
CRITICAL⚡…com/wangzan101/mika/core/record/AgentLoopRecordTest.kt125 val m = FakeModel(reply(call("phone_observe")), com.wangzan101.mika.core.testing.answerReply("x"))CODE
CRITICAL⚡…com/wangzan101/mika/core/record/AgentLoopRecordTest.kt130 val noFrames = run(FakeModel(reply(call("phone_observe")), com.wangzan101.mika.core.testing.answerReply("x")))CODE
CRITICAL⚡…com/wangzan101/mika/core/record/AgentLoopRecordTest.kt136 val m = FakeModel(reply(call("phone_type_text", """{"text":"hunter2"}""")), com.wangzan101.mika.core.testing.ansCODE
CRITICAL⚡…com/wangzan101/mika/core/record/AgentLoopRecordTest.kt145 val m = FakeModel(reply(call("phone_type_text", """{"text":"天气"}""")), com.wangzan101.mika.core.testing.answerReCODE
CRITICAL⚡…com/wangzan101/mika/core/record/AgentLoopRecordTest.kt152 val m = FakeModel(reply(call("phone_type_text", """{"text":"hunter2"}""")), com.wangzan101.mika.core.testing.ansCODE
CRITICAL⚡…com/wangzan101/mika/core/record/AgentLoopRecordTest.kt249 val m = FakeModel(reply(call("phone_list_elements")), com.wangzan101.mika.core.testing.answerReply("x"))CODE
CRITICAL⚡…com/wangzan101/mika/core/record/AgentLoopRecordTest.kt257 val sb = com.wangzan101.mika.core.cap.sandbox.FakeSandbox().apply {CODE
CRITICAL⚡…com/wangzan101/mika/core/record/AgentLoopRecordTest.kt258 next = { r -> com.wangzan101.mika.core.cap.sandbox.CommandResult(0, false, false, 10, "共 42 行 ${r.argv}", 0,CODE
CRITICAL⚡…com/wangzan101/mika/core/record/AgentLoopRecordTest.kt265 com.wangzan101.mika.core.testing.answerReply("共 42 行"),CODE
CRITICAL⚡…com/wangzan101/mika/core/record/AgentLoopRecordTest.kt272 assertEquals(live, com.wangzan101.mika.core.eval.RunFacts.ledger(sink.events, TOOLS).all)CODE
CRITICAL⚡…com/wangzan101/mika/core/record/AgentLoopRecordTest.kt282 com.wangzan101.mika.core.testing.answerReply("x"),CODE
CRITICAL…com/wangzan101/mika/core/record/AgentLoopRecordTest.kt48 com.wangzan101.mika.core.testing.answerReply("好了"),CODE
CRITICAL…com/wangzan101/mika/core/record/AgentLoopRecordTest.kt93 com.wangzan101.mika.core.testing.answerReply("x"),CODE
CRITICAL…com/wangzan101/mika/core/record/AgentLoopRecordTest.kt105 val m = FakeModel(reply(call("phone_observe")), com.wangzan101.mika.core.testing.answerReply("x"))CODE
CRITICAL…com/wangzan101/mika/core/record/AgentLoopRecordTest.kt114 val m = FakeModel(reply(call("phone_observe")), reply(call("phone_screenshot")), com.wangzan101.mika.core.testinCODE
CRITICAL…com/wangzan101/mika/core/record/AgentLoopRecordTest.kt176 val m = FakeModel(reply(call("phone_observe")), com.wangzan101.mika.core.testing.answerReply("ok"))CODE
CRITICAL…com/wangzan101/mika/core/record/AgentLoopRecordTest.kt178 com.wangzan101.mika.core.testing.assertAnswered("ok", end)CODE
CRITICAL…com/wangzan101/mika/core/record/AgentLoopRecordTest.kt218 val m = FakeModel(reply(call("phone_observe")), reply(call("phone_tap", """{"x":1,"y":1}""")), com.wangzan101.miCODE
CRITICAL…com/wangzan101/mika/core/record/AgentLoopRecordTest.kt233 val m = FakeModel(reply(call("phone_tap", """{"x":1,"y":1}""")), com.wangzan101.mika.core.testing.answerReplCODE
CRITICAL…com/wangzan101/mika/core/record/AgentLoopRecordTest.kt238 assertTrue(com.wangzan101.mika.core.eval.Checks.grounded("明天晴 25 度", com.wangzan101.mika.core.eval.RunFacts.CODE
CRITICAL⚡…com/wangzan101/mika/core/record/AgentLoopTimingTest.kt49 run(slow(FakeModel(reply(call("phone_observe")), com.wangzan101.mika.core.testing.answerReply("x")), 1200))CODE
CRITICAL⚡…com/wangzan101/mika/core/record/AgentLoopTimingTest.kt59 run(FakeModel(reply(call("phone_observe")), com.wangzan101.mika.core.testing.answerReply("x")), screen)CODE
CRITICAL⚡…com/wangzan101/mika/core/record/AgentLoopTimingTest.kt69 val m = FakeModel(reply(call("ask_user", """{"prompt":"发给谁?"}""")), com.wangzan101.mika.core.testing.answerReplyCODE
CRITICAL…com/wangzan101/mika/core/record/AgentLoopTimingTest.kt84 val inner = FakeModel(com.wangzan101.mika.core.testing.answerReply("x"))CODE
CRITICAL…com/wangzan101/mika/core/record/AgentLoopTimingTest.kt109 run(slow(FakeModel(reply(call("phone_observe")), com.wangzan101.mika.core.testing.answerReply("x")), 1000), screCODE
CRITICAL…com/wangzan101/mika/core/record/AgentLoopTimingTest.kt118 val broken = object : ChatModel by FakeModel(com.wangzan101.mika.core.testing.answerReply("x")) {CODE
CRITICAL…lin/com/wangzan101/mika/core/memory/MemoryToolsTest.kt56internal val finishReply = com.wangzan101.mika.core.testing.answerReply("ok")CODE
CRITICAL…lin/com/wangzan101/mika/core/memory/MemoryToolsTest.kt94 val web = com.wangzan101.mika.core.cap.web.FakeWebPort()CODE
CRITICAL…lin/com/wangzan101/mika/core/memory/MemoryToolsTest.kt546 val obs = com.wangzan101.mika.core.general.MemorySearch.observations(CODE
CRITICAL…lin/com/wangzan101/mika/core/memory/MemoryToolsTest.kt547 buildJsonObject { put("query", "外卖") }, com.wangzan101.mika.core.tool.ToolExecution(found), com.wangzan101.mCODE
CRITICAL…kotlin/com/wangzan101/mika/core/verify/VerifierTest.kt320 val shot = com.wangzan101.mika.core.vision.JvmTestImageOps.encode(1224, 2700) { _, _ -> 100 }CODE
CRITICAL⚡…in/com/wangzan101/mika/core/general/NoticesReadTest.kt256 val model = com.wangzan101.mika.core.agent.FakeModel(CODE
CRITICAL⚡…in/com/wangzan101/mika/core/general/NoticesReadTest.kt257 com.wangzan101.mika.core.model.ModelReply(listOf(Part.ToolCall("c1", NOTICES_READ, """{"view":"messages"}"""CODE
CRITICAL⚡…in/com/wangzan101/mika/core/general/NoticesReadTest.kt258 com.wangzan101.mika.core.model.ModelReply(listOf(Part.ToolCall("c2", NOTICES_READ, "{}")), com.wangzan101.miCODE
CRITICAL⚡…in/com/wangzan101/mika/core/general/NoticesReadTest.kt260 com.wangzan101.mika.core.model.ModelReply(listOf(Part.ToolCall("c3", NOTICES_READ, """{"view":"messages","quCODE
CRITICAL⚡…in/com/wangzan101/mika/core/general/NoticesReadTest.kt261 com.wangzan101.mika.core.testing.answerReply("今天有三条"),CODE
CRITICAL⚡…in/com/wangzan101/mika/core/general/NoticesReadTest.kt263 runBlocking { com.wangzan101.mika.core.agent.AgentLoop(model, tools(source()), "BASE", sink = sink).run("今天收到了什么CODE
CRITICAL…in/com/wangzan101/mika/core/general/NoticesReadTest.kt291 val shown = com.wangzan101.mika.core.trace.TracePayload.blocks(body, emptyList(), { name -> if (name == NOTICODE
CRITICAL…om/wangzan101/mika/core/general/TaskMemoryToolsTest.kt84 val obs = dispatcher.ctx.evidence.ledger.all.single()CODE
CRITICAL…/com/wangzan101/mika/core/general/WebSearchToolTest.kt56 val observation = dispatcher.ctx.evidence.ledger.all.single()CODE
CRITICAL…in/com/wangzan101/mika/core/general/HistoryReadTest.kt187 val recorder = com.wangzan101.mika.core.action.ActionRecorder(object : com.wangzan101.mika.core.record.RunSiCODE
CRITICAL…in/com/wangzan101/mika/core/general/HistoryReadTest.kt195 val exported = com.wangzan101.mika.core.remote.RunRecordExport.redact(kotlinx.serialization.json.Json.parseTCODE
CRITICAL…in/com/wangzan101/mika/core/general/HistoryReadTest.kt211 val kept = com.wangzan101.mika.core.record.Redactor.result(com.wangzan101.mika.core.tool.Verb.HistoryRead, plainCODE
CRITICAL…lin/com/wangzan101/mika/core/agent/LoopScenarioTest.kt239 com.wangzan101.mika.core.testing.assertAnswered("找到了", end)CODE
CRITICAL…in/com/wangzan101/mika/core/agent/HistoryPrunerTest.kt140 Message(Role.Tool, listOf(Part.ToolResult(id, content, false, listOf(com.wangzan101.mika.core.observation.ReCODE
CRITICAL…m/wangzan101/mika/core/agent/AgentLoopKnowledgeTest.kt28private fun reply(vararg c: Part.ToolCall) = com.wangzan101.mika.core.model.ModelReply(c.toList(), com.wangzan101.mika.cCODE
CRITICAL…m/wangzan101/mika/core/agent/AgentLoopKnowledgeTest.kt41 private val finish = com.wangzan101.mika.core.testing.answerReply("ok")CODE
CRITICAL…n/com/wangzan101/mika/core/agent/AgentLoopInputTest.kt31private fun finish() = com.wangzan101.mika.core.testing.answerReply("好了")CODE
CRITICAL…n/com/wangzan101/mika/core/agent/AgentLoopInputTest.kt64 com.wangzan101.mika.core.testing.assertAnswered(DONE, run.await())CODE
CRITICAL…n/com/wangzan101/mika/core/agent/AgentLoopInputTest.kt66 val nudge = com.wangzan101.mika.core.agent.ContextBuilder.bodyOf(m.requests[2].last()).orEmpty()CODE
CRITICAL…n/com/wangzan101/mika/core/agent/AgentLoopInputTest.kt94 com.wangzan101.mika.core.testing.assertAnswered(DONE, run.await())CODE
CRITICAL…kotlin/com/wangzan101/mika/core/agent/BatchWaitTest.kt54 override suspend fun back() = com.wangzan101.mika.core.uistate.ActionResult.Ok(changed = true).also { calls += "backCODE
CRITICAL…com/wangzan101/mika/core/agent/AgentLoopSandboxTest.kt27private fun finish() = com.wangzan101.mika.core.testing.answerReply("算好了")CODE
CRITICAL⚡…in/com/wangzan101/mika/core/agent/PromptSurfaceTest.kt61 personalSkills = com.wangzan101.mika.core.skills.InMemoryPersonalSkills(),CODE
CRITICAL⚡…in/com/wangzan101/mika/core/agent/PromptSurfaceTest.kt63 runSpec = com.wangzan101.mika.core.run.RunSpec(com.wangzan101.mika.core.run.RunId("t"), "t", "threadCODE
376 more matches not shown…
Hyper-Verbose Identifiers173 hits · 155 pts
SeverityFileLineSnippetContext
LOW⚡tools/test_pull_logs.py59 def test_adb_failure_is_not_reported_as_missing_records(self):CODE
LOW⚡tools/test_pull_logs.py69 def test_adb_failure_without_a_message_names_the_exit_code(self):CODE
LOW⚡tools/test_pull_logs.py76 def test_refused_run_as_is_a_message_rather_than_a_traceback(self):CODE
LOW⚡tools/test_pull_logs.py80 def test_missing_adb_binary_names_the_executable(self):CODE
LOW⚡tools/test_pull_logs.py84 def test_silent_exit_one_still_means_no_records_yet(self):CODE
LOW⚡tools/test_pull_logs.py89 def test_a_warning_on_stderr_does_not_stop_a_successful_export(self):CODE
LOW⚡tools/mika/tests/test_notification_diagnostics.py65 def test_hidden_factory_copy_does_not_override_disabled_user_state(self):STRING
LOW⚡tools/mika/tests/test_notification_diagnostics.py72 def test_requested_profile_is_selected(self):STRING
LOW⚡tools/mika/tests/test_notification_diagnostics.py81 def test_app_id_line_of_newer_android_gives_the_uid(self):STRING
LOW⚡tools/mika/tests/test_notification_diagnostics.py89 def test_effective_disabled_list_is_honored(self):STRING
LOW⚡tools/mika/tests/test_notification_diagnostics.py93 def test_missing_fields_remain_unknown(self):STRING
LOW⚡tools/mika/tests/test_notification_diagnostics.py98 def test_silent_channel_is_enabled_and_other_app_is_excluded(self):STRING
LOW⚡tools/mika/tests/test_notification_diagnostics.py105 def test_deleted_channel_is_not_counted(self):STRING
LOW⚡tools/mika/tests/test_notification_diagnostics.py109 def test_blocked_package_and_wrong_profile(self):STRING
LOW⚡tools/mika/tests/test_notification_diagnostics.py114 def test_uid_appop_wins_over_package_mode(self):STRING
LOW⚡tools/mika/tests/test_notification_diagnostics.py118 def test_listener_shorthand_and_live_binding(self):STRING
LOW⚡tools/mika/tests/test_notification_diagnostics.py126 def test_allowed_listener_can_be_unbound(self):STRING
LOW⚡tools/mika/tests/test_notification_diagnostics.py134 def test_listener_without_profile_metadata_is_unknown(self):STRING
LOW⚡tools/mika/tests/test_notification_diagnostics.py138 def test_dependency_failure_is_specific_and_content_is_not_returned(self):STRING
LOW⚡tools/mika/tests/test_notification_diagnostics.py145 def test_uninstalled_dependency_has_one_primary_finding(self):STRING
LOW⚡tools/mika/tests/test_notification_diagnostics.py149 def test_suspended_source_is_reported(self):STRING
LOW⚡tools/mika/tests/test_notification_diagnostics.py154 def test_probe_failure_is_reported_without_error_content(self):STRING
LOW⚡tools/mika/tests/test_notification_diagnostics.py159 def test_invalid_names_are_rejected(self):STRING
LOW⚡tools/mika/tests/test_notification_diagnostics.py164 def test_cli_does_not_connect_to_task_api(self):STRING
LOWtools/mika/tests/browser_desk_history.py69 def test_phone_only_history_body_paging_missing_trace_and_draft(self):CODE
LOWtools/mika/tests/browser_desk_history.py97 def test_late_trace_response_cannot_replace_the_selected_turn(self):CODE
LOWtools/mika/tests/browser_desk_history.py116 def test_recording_updates_and_revocation_clears_saved_content(self):CODE
LOWtools/mika/tests/browser_desk_history.py131 def test_queued_remote_task_is_not_duplicated_by_phone_history(self):CODE
LOWtools/mika/tests/browser_desk_history.py143 def test_cancelled_before_start_merges_by_remote_id_even_with_identical_goals(self):CODE
LOWtools/mika/tests/browser_desk_history.py159 def test_history_pages_keep_earlier_turns_after_refresh(self):CODE
LOWtools/mika/tests/browser_desk_history.py192 def test_archived_conversation_from_later_page_is_marked_and_readable(self):CODE
LOWtools/mika/tests/browser_desk_history.py214 def test_archive_mark_updates_and_coexists_with_task_status(self):CODE
LOWtools/mika/tests/browser_desk_history.py231 def test_new_conversations_after_the_initially_complete_list_are_reachable(self):CODE
LOWtools/mika/tests/browser_desk_files.py12 def test_rejected_upload_keeps_the_draft_and_never_submits(self):CODE
LOWtools/mika/tests/browser_desk_files.py28 def test_missing_receipt_retries_the_same_upload_and_request_after_reload(self):CODE
LOWtools/mika/tests/browser_desk_files.py63 def test_selection_paste_attachment_only_and_round_scoped_download(self):CODE
LOWtools/mika/tests/browser_desk_updates.py65 def test_lost_submission_survives_reload_and_recovers_without_a_second_task(self):CODE
LOWtools/mika/tests/browser_desk_updates.py101 def test_grouping_continuation_fresh_chat_and_independent_process_target(self):CODE
LOWtools/mika/tests/browser_desk_updates.py187 def test_phone_changes_arrive_without_stealing_a_draft_or_rewriting_history(self):CODE
LOWtools/mika/tests/browser_desk_updates.py243 def test_answer_steer_and_cancel_target_the_existing_run(self):CODE
LOWtools/mika/tests/browser_desk_updates.py287 def test_process_expands_in_the_turn_at_every_width_and_leaves_the_side_panel_independent(self):CODE
LOWtools/mika/tests/browser_desk_updates.py338 def test_connection_disclosure_offline_recovery_and_draft(self):CODE
LOWtools/mika/tests/browser_desk_updates.py373 def test_language_override_keeps_draft_and_survives_a_reload(self):CODE
LOWtools/mika/tests/browser_desk_updates.py386 def test_switching_language_does_not_add_a_phone_update(self):CODE
LOWtools/mika/tests/browser_desk_updates.py401 def test_late_read_cannot_undo_a_write_and_a_lost_receipt_is_not_retried(self):CODE
LOWtools/mika/tests/browser_desk_notifications.py40 def test_quiet_transitions_background_click_and_draft(self):CODE
LOWtools/mika/tests/browser_desk_notifications.py94 def test_handoff_disable_and_fresh_start_after_all_tabs_close(self):CODE
LOWtools/mika/tests/browser_desk_notifications.py141 def test_permission_denied_dismissed_and_unsupported(self):CODE
LOWtools/mika/tests/browser_desk_notifications.py158 def test_disconnect_and_click_after_a_task_leaves_the_recent_list(self):CODE
LOWtools/mika/tests/test_task_files.py51 def test_cli_transfers_binary_chunks_and_does_not_replace_an_existing_file(self):CODE
LOWtools/mika/tests/test_task_files.py64 def test_interrupted_result_never_leaves_a_partial_download(self):CODE
LOWtools/mika/tests/test_task_files.py76 def test_output_name_is_reserved_for_verified_bytes(self):CODE
LOWtools/mika/tests/test_task_files.py112 def test_changed_file_of_the_same_size_is_not_delivered(self):CODE
LOWtools/mika/tests/test_task_files.py125 def test_bad_hash_preserves_an_existing_destination(self):CODE
LOWtools/mika/tests/test_task_files.py139 def test_old_phone_and_local_path_injection_cannot_turn_into_a_task(self):CODE
LOW⚡tools/mika/tests/test_mika_cli.py164 def test_an_abbreviated_json_option_still_means_compact_json_on_stdout(self):STRING
LOW⚡tools/mika/tests/test_mika_cli.py173 def test_abbreviated_json_option_also_formats_success(self):STRING
LOW⚡tools/mika/tests/test_mika_cli.py180 def test_json_option_scan_stops_at_the_option_delimiter(self):STRING
LOW⚡tools/mika/tests/test_mika_cli.py186 def test_ui_rejects_an_abbreviated_json_option(self):STRING
LOW⚡tools/mika/tests/test_mika_cli.py193 def test_submit_unicode_from_stdin_once_without_mcp(self):STRING
113 more matches not shown…
Cross-File Repetition6 hits · 30 pts
SeverityFileLineSnippetContext
HIGH…n/com/wangzan101/mika/core/model/ResponsesModelTest.kt0{"error":{"code":400,"message":"request (25123 tokens) exceeds the available context size (16384 tokens), try increasingSTRING
HIGH…om/wangzan101/mika/core/model/OpenAiCompatModelTest.kt0{"error":{"code":400,"message":"request (25123 tokens) exceeds the available context size (16384 tokens), try increasingSTRING
HIGH…n/com/wangzan101/mika/core/model/AnthropicModelTest.kt0{"error":{"code":400,"message":"request (25123 tokens) exceeds the available context size (16384 tokens), try increasingSTRING
HIGH…om/wangzan101/mika/core/model/OpenAiCompatModelTest.kt0{"choices":[{"finish_reason":"stop","message":{"content":"ok"}}]}STRING
HIGH…lin/com/wangzan101/mika/core/model/ModelCatalogTest.kt0{"choices":[{"finish_reason":"stop","message":{"content":"ok"}}]}STRING
HIGH…/com/wangzan101/mika/settings/ReasoningSettingsTest.kt0{"choices":[{"finish_reason":"stop","message":{"content":"ok"}}]}STRING
Structural Annotation Overuse18 hits · 27 pts
SeverityFileLineSnippetContext
LOWdocs/setup-guide.en.md31## Step 1: Turn on Developer optionsCOMMENT
LOWdocs/setup-guide.en.md53## Step 2: Turn on USB debuggingCOMMENT
LOWdocs/setup-guide.en.md77## Step 3: Turn on Mika's accessibility (we suggest skipping this)COMMENT
LOWdocs/setup-guide.en.md104## Step 4: Turn on Wireless debuggingCOMMENT
LOWdocs/setup-guide.en.md126## Step 5: Pair with a codeCOMMENT
LOWdocs/setup-guide.en.md180## Step 6: Connect automaticallyCOMMENT
LOWdocs/computer.en.md11## Step 1: pick an entry point (CLI + Skill or MCP)COMMENT
LOWdocs/computer.en.md23## Step 2: pick a connection (USB or Wi-Fi / VPN)COMMENT
LOWdocs/computer.en.md36## Step 3: follow the guideCOMMENT
LOWdocs/install-with-agent.en.md29## Step 1: Check the prerequisitesCOMMENT
LOWdocs/install-with-agent.en.md72## Step 2: Download the latest APKCOMMENT
LOWdocs/install-with-agent.en.md92## Step 3: InstallCOMMENT
LOWdocs/install-with-agent.en.md107## Step 4: Notification permission (Android 13 and later)COMMENT
LOWdocs/install-with-agent.en.md117## Step 5: Turn on Mika's accessibility serviceCOMMENT
LOWdocs/install-with-agent.en.md152## Step 6: Battery allowlistCOMMENT
LOWdocs/install-with-agent.en.md169## Step 7: Start Mika's phone helperCOMMENT
LOWdocs/install-with-agent.en.md263## Step 8: Add a modelCOMMENT
LOWdocs/install-with-agent.en.md269## Step 9: Check the resultCOMMENT
Excessive Try-Catch Wrapping14 hits · 20 pts
SeverityFileLineSnippetContext
LOWtools/sandbox/build-runtime.py130 except Exception as e:CODE
LOWtools/mika/scripts/mika_notifications.py106 except Exception as error:CODE
MEDIUMtools/mika/scripts/mika_notifications.py103def probe(name, *args):CODE
LOWtools/mika-feishu/src/mika_feishu/bridge.py151 except Exception:CODE
LOW⚡tools/mika-feishu/src/mika_feishu/runtime.py76 except Exception as exc:CODE
LOW⚡tools/mika-feishu/src/mika_feishu/runtime.py82 except Exception as exc:CODE
LOW⚡tools/mika-feishu/src/mika_feishu/runtime.py90 except Exception as exc:CODE
LOW⚡tools/mika-feishu/src/mika_feishu/runtime.py96 except Exception as exc:CODE
MEDIUMtools/mika-feishu/src/mika_feishu/runtime.py73def work():CODE
MEDIUMtools/mika-feishu/src/mika_feishu/runtime.py93def incoming(data):CODE
LOWtools/mika-feishu/src/mika_feishu/__main__.py77 except Exception as exc:CODE
MEDIUMtools/i18n/translations.py246 print("Error: {}".format(error), file=sys.stderr)CODE
LOW…main/resources/skills/documents/scripts/extract_pdf.py86 except Exception as e: # damaged files raise many kinds of errors inside pypdfCODE
LOWexamples/plugins/com.example.feishu/scripts/send.py76 except Exception as e: # 网络失败按普通错误返回,不重试CODE
Deep Nesting20 hits · 20 pts
SeverityFileLineSnippetContext
LOWtools/sandbox/build-runtime.py105CODE
LOWtools/sandbox/runtime-sources.py49CODE
LOWtools/mika/tests/browser_desk_updates.py65CODE
LOWtools/mika/tests/browser_phone_files.py50CODE
LOWtools/mika/tests/phone_task_recovery.py32CODE
LOWtools/mika/tests/test_task_files.py76CODE
LOWtools/mika/tests/test_mika_desk.py172CODE
LOWtools/mika/scripts/mika_cli.py433CODE
LOWtools/mika/scripts/mika_cli.py486CODE
LOWtools/mika/scripts/mika_cli.py507CODE
LOWtools/mika/scripts/mika_cli.py83CODE
LOWtools/mika/scripts/mika_desk/__init__.py108CODE
LOWtools/mika-feishu/tests/test_onboarding.py106CODE
LOWtools/mika-feishu/src/mika_feishu/onboarding.py49CODE
LOWtools/mika-feishu/src/mika_feishu/bridge.py46CODE
LOWtools/mika-feishu/src/mika_feishu/bridge.py232CODE
LOWtools/mika-feishu/src/mika_feishu/__main__.py18CODE
LOWtools/i18n/translations.py49CODE
LOWtools/i18n/translations.py144CODE
LOWtools/i18n/translations.py194CODE
Empty Error Handlers4 hits · 20 pts
SeverityFileLineSnippetContext
HIGHtools/mika/scripts/mika_cli.py119except (ValueError, OSError, AttributeError):CODE
HIGHtools/mika/scripts/mika_desk/__init__.py188except (BrokenPipeError, ConnectionResetError):CODE
HIGHtools/mika/scripts/mika_desk/__init__.py293except KeyboardInterrupt:CODE
HIGHtools/mika/scripts/mika_desk/__init__.py143except CliError:CODE
Fake / Example Data14 hits · 18 pts
SeverityFileLineSnippetContext
LOWtools/mika/tests/browser_desk_notifications.py70 expect(page.locator("#goal")).to_have_attribute("placeholder", "回答 Mika 的问题…")CODE
LOW⚡tools/mika-feishu/tests/test_onboarding.py58 patch("getpass.getpass", return_value="fake-token"), \CODE
LOW⚡tools/mika-feishu/tests/test_onboarding.py82 save_config({"mika_url": "http://127.0.0.1:8765", "mika_token": "fake-token",CODE
LOW…/kotlin/com/wangzan101/mika/core/cap/web/ReadScript.kt97 "type", "name", "form", "labels", "list", "placeholder", "autocomplete", "disabled", "readOnly", "required", "wiCODE
LOW…rc/main/kotlin/com/wangzan101/mika/core/teach/Teach.kt401 val base = fromModel ?: assemble(session, "placeholder")CODE
LOW…rc/main/kotlin/com/wangzan101/mika/core/teach/Teach.kt403 val md0 = if (validated == null && fromModel != null) base else assemble(session, "placeholder")CODE
LOW…t/java/com/wangzan101/mika/browser/AddressInputTest.kt49 assertEquals(bing("user%40example.com"), AddressInput.resolve("user@example.com"))CODE
LOW⚡…t/java/com/wangzan101/mika/voice/DoubaoProtocolTest.kt95 assertTrue(DoubaoCredentials(apiKey = "dummy-key").valid)CODE
LOW⚡…t/java/com/wangzan101/mika/voice/DoubaoProtocolTest.kt96 assertTrue(DoubaoCredentials(appId = "dummy-id", accessKey = "dummy-token").valid)CODE
LOW⚡…t/java/com/wangzan101/mika/voice/DoubaoProtocolTest.kt98 assertFalse(DoubaoCredentials(apiKey = "dummy-key", appId = "dummy-id").valid)CODE
LOW⚡…t/java/com/wangzan101/mika/voice/DoubaoProtocolTest.kt99 assertFalse(DoubaoCredentials(appId = "dummy-id").valid)CODE
LOW⚡…t/java/com/wangzan101/mika/voice/DoubaoProtocolTest.kt100 assertFalse(DoubaoCredentials(apiKey = "dummy-key").toString().contains("dummy-key"))CODE
LOWapp/src/main/assets/web/page.js293 if ((v = collapse(el.getAttribute('placeholder')))) return v;CODE
LOWapp/src/main/assets/web/page.js373 var ph = collapse(el.getAttribute && el.getAttribute('placeholder'));CODE
Cross-Language Confusion2 hits · 8 pts
SeverityFileLineSnippetContext
HIGHtools/mika/tests/browser_desk_updates.py3Run it directly after `pip install playwright && playwright install chromium`:STRING
HIGHtools/mika/tests/browser_desk_notifications.py15 constructor(title, options) { this.title = title; this.body = options.body; notices.push(this); }CODE
Over-Commented Block6 hits · 6 pts
SeverityFileLineSnippetContext
LOWtools/sandbox/build-native.sh81COMMENT
LOWtools/sandbox/build-native.sh101#define HAVE_STRINGS_H 1COMMENT
LOWtools/sandbox/build-native.sh121#define HAVE_STRNDUP 1COMMENT
LOWapp/src/main/cpp/mikarun/mikarun.c21COMMENT
LOWapp/src/main/cpp/mikarun/mikarun.c41#include <sys/stat.h>COMMENT
LOWapp/src/main/cpp/mikarun/mikarun.c61#define NR_IOCTL_AARCH64 29COMMENT
Overly Generic Function Names2 hits · 2 pts
SeverityFileLineSnippetContext
LOWtools/mika/tests/test_mika_cli.py38 def handle_request(self):CODE
LOWtools/mika-feishu/tests/test_connector.py332 def handle_request(self):CODE
AI Structural Patterns1 hit · 1 pts
SeverityFileLineSnippetContext
LOWtools/mika/scripts/mika_cli.py83CODE
Unused Imports1 hit · 1 pts
SeverityFileLineSnippetContext
LOWtools/mika-feishu/tests/test_onboarding.py12CODE