Kimi Code CLI is your next CLI agent.
This report presents the forensic synthetic code analysis of MoonshotAI/kimi-cli, a Python project with 11,073 GitHub stars. SynthScan v2.0 examined 235,259 lines of code across 953 source files, recording 4721 pattern matches distributed across 23 syntactic categories. The overall adjusted score of 31.0 places this repository in the Strong AI signal band.
The scanner applied 160+ deterministic lexical heuristics, multi-line block detectors, abstract syntax tree depth profilers, and a cross-file Jaccard similarity matrix to construct a statistically normalised synthetic code estimate. All matches are individually weighted by severity coefficient and contextual multiplier before summation, and the resulting headline score is temporally discounted to account for the repository's development history relative to the commercial emergence of large language model coding tooling (November 2022 onward).
Longitudinal tracking requires multiple scan runs. Once this repository is re-scanned after new commits land, this chart will visualise how the synthetic code signal evolves over time — enabling you to detect whether AI authorship is growing, stabilising, or being actively corrected by human engineers.
Classifies detected patterns by their diagnostic confidence and structural impact. CRITICAL patterns (coefficient 10) represent definitive synthetic signatures — hallucinated imports, explicit LLM attribution metadata — virtually never produced by human authors. HIGH (5) indicates strong structural tells such as cross-file repetition or cross-linguistic idioms. MEDIUM (2) covers recognisable conversational padding and AI-specific vocabulary. LOW (1) captures subtle indicators like tautological comments and generic boilerplate that require density to carry independent signal.
This horizontal bar chart decomposes the repository's raw synthetic code score by top-level directory, allowing you to pinpoint precisely which modules or components carry the highest AI authorship density. Directories with disproportionately high scores relative to their size warrant targeted manual review: concentrated AI signatures often trace back to mass-generated configuration layers, auto-ported test suites, LLM-scaffolded boilerplate classes, or entire subsystems authored under heavy copilot assistance. Use this view to prioritise your human code-review effort.
The scanner identified 4721 distinct pattern matches across 23 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a statistically significant AI authorship indicator. 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 diagnostic confidence level (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — comment-context matches receive a ×1.5 weight because LLMs systematically over-annotate. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier as dense clusters constitute far stronger evidence of synthetic authorship than isolated hits.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tests_e2e/test_wire_steer.py | 20 | def test_steer_no_active_turn(tmp_path) -> None: | CODE |
| LOW | tests_e2e/test_wire_steer.py | 57 | def test_steer_during_active_turn(tmp_path) -> None: | CODE |
| LOW | tests_e2e/test_wire_steer.py | 117 | def test_steer_basic_lifecycle_completes(tmp_path) -> None: | CODE |
| LOW | tests_e2e/test_wire_protocol.py | 24 | def test_initialize_handshake(tmp_path) -> None: | CODE |
| LOW | tests_e2e/test_wire_protocol.py | 125 | def test_initialize_external_tool_conflict(tmp_path) -> None: | CODE |
| LOW | tests_e2e/test_wire_protocol.py | 390 | def test_prompt_without_initialize(tmp_path) -> None: | CODE |
| LOW | tests_e2e/test_wire_question.py | 39 | def _question_request_handler(answers: dict[str, str]): | CODE |
| LOW | tests_e2e/test_wire_question.py | 55 | def test_question_request_answer(tmp_path) -> None: | CODE |
| LOW | tests_e2e/test_wire_question.py | 122 | def test_question_request_error_response(tmp_path) -> None: | CODE |
| LOW | tests_e2e/test_wire_question.py | 194 | def test_question_capability_negotiation(tmp_path) -> None: | CODE |
| LOW | tests_e2e/test_wire_question.py | 217 | def test_ask_user_tool_hidden_when_question_not_supported(tmp_path) -> None: | CODE |
| LOW | tests_e2e/test_mcp_cli.py | 62 | def test_mcp_stdio_management(tmp_path: Path) -> None: | CODE |
| LOW | tests_e2e/test_mcp_cli.py | 153 | def test_mcp_http_management_and_auth_errors(tmp_path: Path) -> None: | CODE |
| LOW | tests_e2e/test_wire_sessions.py | 45 | def test_session_files_created(tmp_path) -> None: | CODE |
| LOW | tests_e2e/test_wire_sessions.py | 86 | def test_continue_session_appends(tmp_path) -> None: | CODE |
| LOW | tests_e2e/test_wire_sessions.py | 171 | def test_clear_context_rotates(tmp_path) -> None: | CODE |
| LOW | tests_e2e/test_wire_sessions.py | 319 | def test_manual_compact_with_usage(tmp_path) -> None: | CODE |
| LOW | tests_e2e/test_wire_sessions.py | 384 | def test_replay_streams_wire_history(tmp_path) -> None: | CODE |
| LOW | tests_e2e/wire_helpers.py | 59 | def register_path_replacements( | CODE |
| LOW | tests_e2e/wire_helpers.py | 353 | def build_tool_result_response( | CODE |
| LOW | tests_e2e/wire_helpers.py | 421 | def _normalize_tool_result_extras(value: dict[str, Any]) -> dict[str, Any]: | CODE |
| LOW | tests_e2e/wire_helpers.py | 432 | def _normalize_path_separators(value: str, replacements: Mapping[str, str]) -> str: | CODE |
| LOW | tests_e2e/wire_helpers.py | 452 | def _normalize_echo_error_message(value: str) -> str: | CODE |
| LOW | tests_e2e/wire_helpers.py | 484 | def _normalize_server_version(value: Any) -> Any: | CODE |
| LOW | tests_e2e/test_wire_approvals_tools.py | 56 | def test_shell_approval_approve(tmp_path) -> None: | CODE |
| LOW | tests_e2e/test_wire_approvals_tools.py | 187 | def test_shell_approval_reject(tmp_path) -> None: | CODE |
| LOW | tests_e2e/test_wire_approvals_tools.py | 685 | def test_display_block_diff_write_file(tmp_path) -> None: | CODE |
| LOW | tests_e2e/test_wire_approvals_tools.py | 754 | def test_display_block_diff_str_replace(tmp_path) -> None: | CODE |
| LOW | tests_e2e/test_wire_approvals_tools.py | 932 | def test_tool_call_part_streaming(tmp_path) -> None: | CODE |
| LOW | tests_e2e/test_wire_approvals_tools.py | 1050 | def test_default_agent_missing_tool(tmp_path) -> None: | CODE |
| LOW | tests_e2e/test_wire_approvals_tools.py | 1156 | def test_custom_agent_exclude_tool(tmp_path) -> None: | CODE |
| LOW | tests_e2e/test_wire_real_llm.py | 12 | def test_parallel_task_subagents() -> None: | CODE |
| LOW | tests_e2e/test_wire_real_llm.py | 17 | def test_thinking_mode_toggle() -> None: | CODE |
| LOW | tests_e2e/test_wire_prompt.py | 330 | def test_status_update_fields(tmp_path) -> None: | STRING |
| LOW | tests_e2e/test_wire_prompt.py | 387 | def test_concurrent_prompt_error(tmp_path) -> None: | STRING |
| LOW | tests_e2e/test_wire_skills_mcp.py | 55 | def test_skill_prompt_injects_skill_text(tmp_path) -> None: | CODE |
| LOW | tests_e2e/test_wire_errors.py | 19 | def test_invalid_json_request(tmp_path) -> None: | CODE |
| LOW | tests_e2e/test_wire_errors.py | 113 | def test_cancel_without_prompt(tmp_path) -> None: | CODE |
| LOW | tests_e2e/test_wire_auth.py | 54 | def test_provider_connection_error_surfaces(tmp_path) -> None: | CODE |
| LOW | sdks/kimi-sdk/tests/test_smoke.py | 9 | def _chat_completion_response() -> dict[str, object]: | CODE |
| LOW | …/features/chat/components/virtualized-message-list.tsx | 54 | function VirtuosoScrollerComponent( | CODE |
| LOW | …/features/chat/components/virtualized-message-list.tsx | 148 | function VirtualizedMessageListComponent( | CODE |
| LOW | …/src/features/chat/components/chat-prompt-composer.tsx | 74 | export const ChatPromptComposer = memo(function ChatPromptComposerComponent({ | CODE |
| LOW | …features/chat/components/activity-status-indicator.tsx | 198 | export const ActivityStatusIndicator = memo(function ActivityStatusIndicatorComponent({ | CODE |
| LOW | …features/chat/components/activity-status-indicator.tsx | 266 | export const ToolbarActivityIndicator = memo(function ToolbarActivityIndicatorComponent({ | CODE |
| LOW | …res/chat/components/prompt-toolbar/toolbar-changes.tsx | 21 | export const ToolbarChangesPanel = memo(function ToolbarChangesPanelComponent({ | CODE |
| LOW | …res/chat/components/prompt-toolbar/toolbar-changes.tsx | 78 | export const ToolbarChangesTab = memo(function ToolbarChangesTabComponent({ | CODE |
| LOW | …atures/chat/components/prompt-toolbar/toolbar-todo.tsx | 18 | export const ToolbarTodoPanel = memo(function ToolbarTodoPanelComponent({ | CODE |
| LOW | …res/chat/components/prompt-toolbar/toolbar-context.tsx | 26 | function ToolbarContextIndicatorComponent({ | CODE |
| LOW | …tures/chat/components/prompt-toolbar/toolbar-queue.tsx | 109 | export const ToolbarQueuePanel = memo(function ToolbarQueuePanelComponent({ | CODE |
| LOW | web/src/features/sessions/sessions.tsx | 126 | function SessionsScrollerComponent( | CODE |
| LOW | web/src/features/tool/components/display-content.tsx | 816 | function isImageSearchByTextResult( | CODE |
| LOW | web/src/features/tool/components/display-content.tsx | 832 | function isImageSearchByImageResult( | CODE |
| LOW | web/src/features/tool/components/display-content.tsx | 876 | function unwrapSearchResponseResult(data: unknown): SearchResponseResult { | CODE |
| LOW | web/src/components/ui/diff/utils/parse.ts | 73 | function diffCharsIfWithinEditLimit( | CODE |
| LOW | web/src/components/ui/diff/utils/parse.ts | 262 | function buildUnpairedDeletePrefix(changes: _Change[], pairOfDel: Int32Array) { | CODE |
| LOW | web/src/components/ai-elements/code-block.tsx | 161 | function sanitizeCodeForLineNumbers(raw: string): { | CODE |
| LOW | web/src/components/ai-elements/code-block.tsx | 204 | function makeLineNumberTransformer(numbers?: number[]): ShikiTransformer { | CODE |
| LOW | web/src/hooks/use-theme.ts | 66 | function stopThemeSwitchingNextFrame(root: HTMLElement): void { | CODE |
| LOW⚡ | web/src/lib/api/models/UpdateConfigTomlRequest.ts | 33 | export function instanceOfUpdateConfigTomlRequest(value: object): value is UpdateConfigTomlRequest { | CODE |
| 2799 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | …/src/features/chat/components/prompt-toolbar/index.tsx | 20 | // ─── Types ─────────────────────────────────────────────────── | COMMENT |
| MEDIUM | …/src/features/chat/components/prompt-toolbar/index.tsx | 36 | // ─── Main toolbar ──────────────────────────────────────────── | COMMENT |
| MEDIUM | …res/chat/components/prompt-toolbar/toolbar-changes.tsx | 14 | // ─── Exported components ───────────────────────────────────── | COMMENT |
| MEDIUM | …atures/chat/components/prompt-toolbar/toolbar-todo.tsx | 12 | // ─── Panel ─────────────────────────────────────────────────── | COMMENT |
| MEDIUM | …atures/chat/components/prompt-toolbar/toolbar-todo.tsx | 55 | // ─── Tab ───────────────────────────────────────────────────── | COMMENT |
| MEDIUM | …tures/chat/components/prompt-toolbar/toolbar-queue.tsx | 26 | // ─── Sub-components ────────────────────────────────────────── | COMMENT |
| MEDIUM | …tures/chat/components/prompt-toolbar/toolbar-queue.tsx | 103 | // ─── Exported components ───────────────────────────────────── | COMMENT |
| MEDIUM⚡ | tests/ui/test_update_gate.py | 144 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/ui/test_update_gate.py | 146 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/ui/test_update_gate.py | 277 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/ui/test_update_gate.py | 279 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | tests/ui/test_update_gate.py | 11 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | tests/ui/test_update_gate.py | 13 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | tests/ui/test_update_gate.py | 130 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | tests/ui/test_update_gate.py | 132 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | tests/ui/test_update_gate.py | 260 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | tests/ui/test_update_gate.py | 262 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | tests/ui/test_update_gate.py | 335 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | tests/ui/test_update_gate.py | 337 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/ui_and_conv/test_shell_switch_slash.py | 39 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/ui_and_conv/test_shell_switch_slash.py | 41 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/ui_and_conv/test_shell_switch_slash.py | 62 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/ui_and_conv/test_shell_switch_slash.py | 64 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/ui_and_conv/test_shell_switch_slash.py | 116 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/ui_and_conv/test_shell_switch_slash.py | 118 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/ui_and_conv/test_shell_switch_slash.py | 139 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/ui_and_conv/test_shell_switch_slash.py | 141 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/ui_and_conv/test_shell_switch_slash.py | 193 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/ui_and_conv/test_shell_switch_slash.py | 195 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/ui_and_conv/test_shell_switch_slash.py | 272 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/ui_and_conv/test_shell_switch_slash.py | 274 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | tests/ui_and_conv/test_shell_switch_slash.py | 231 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | tests/ui_and_conv/test_shell_switch_slash.py | 233 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/ui_and_conv/test_shell_feedback_slash.py | 83 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/ui_and_conv/test_shell_feedback_slash.py | 85 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/ui_and_conv/test_shell_feedback_slash.py | 99 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/ui_and_conv/test_shell_feedback_slash.py | 101 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/ui_and_conv/test_shell_feedback_slash.py | 157 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/ui_and_conv/test_shell_feedback_slash.py | 159 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/ui_and_conv/test_shell_feedback_slash.py | 203 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/ui_and_conv/test_shell_feedback_slash.py | 205 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/ui_and_conv/test_empty_think_part_indicator.py | 50 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/ui_and_conv/test_empty_think_part_indicator.py | 52 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/ui_and_conv/test_empty_think_part_indicator.py | 186 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/ui_and_conv/test_empty_think_part_indicator.py | 188 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/ui_and_conv/test_empty_think_part_indicator.py | 343 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/ui_and_conv/test_empty_think_part_indicator.py | 345 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/ui_and_conv/test_empty_think_part_indicator.py | 380 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/ui_and_conv/test_empty_think_part_indicator.py | 382 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/ui_and_conv/test_export_import.py | 92 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/ui_and_conv/test_export_import.py | 94 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/ui_and_conv/test_export_import.py | 184 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/ui_and_conv/test_export_import.py | 186 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/ui_and_conv/test_export_import.py | 318 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/ui_and_conv/test_export_import.py | 320 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/ui_and_conv/test_export_import.py | 347 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/ui_and_conv/test_export_import.py | 349 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/ui_and_conv/test_export_import.py | 414 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/ui_and_conv/test_export_import.py | 416 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/ui_and_conv/test_export_import.py | 440 | # --------------------------------------------------------------------------- | COMMENT |
| 621 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| CRITICAL | tests/background/test_agent_timeout.py | 37 | runtime.subagent_store.output_path.return_value.parent.mkdir(parents=True, exist_ok=True) | CODE |
| CRITICAL | tests/background/test_agent_timeout.py | 132 | runtime.subagent_store.output_path.return_value.parent.mkdir(parents=True, exist_ok=True) | CODE |
| CRITICAL | …ages/kosong/tests/api_snapshot_tests/test_anthropic.py | 481 | body = json.loads(mock.calls.last.request.content.decode()) | CODE |
| CRITICAL | …ages/kosong/tests/api_snapshot_tests/test_anthropic.py | 499 | body = json.loads(mock.calls.last.request.content.decode()) | CODE |
| CRITICAL | …ages/kosong/tests/api_snapshot_tests/test_anthropic.py | 516 | body = json.loads(mock.calls.last.request.content.decode()) | CODE |
| CRITICAL | …ages/kosong/tests/api_snapshot_tests/test_anthropic.py | 520 | beta_header = mock.calls.last.request.headers.get("anthropic-beta", "") | CODE |
| CRITICAL | …ages/kosong/tests/api_snapshot_tests/test_anthropic.py | 537 | body = json.loads(mock.calls.last.request.content.decode()) | CODE |
| CRITICAL | …ages/kosong/tests/api_snapshot_tests/test_anthropic.py | 555 | body = json.loads(mock.calls.last.request.content.decode()) | CODE |
| CRITICAL | …ages/kosong/tests/api_snapshot_tests/test_anthropic.py | 573 | body = json.loads(mock.calls.last.request.content.decode()) | CODE |
| CRITICAL | …ages/kosong/tests/api_snapshot_tests/test_anthropic.py | 589 | body = json.loads(mock.calls.last.request.content.decode()) | CODE |
| CRITICAL | …ages/kosong/tests/api_snapshot_tests/test_anthropic.py | 606 | body = json.loads(mock.calls.last.request.content.decode()) | CODE |
| CRITICAL | …ages/kosong/tests/api_snapshot_tests/test_anthropic.py | 628 | body = json.loads(mock.calls.last.request.content.decode()) | CODE |
| CRITICAL | …ages/kosong/tests/api_snapshot_tests/test_anthropic.py | 648 | body = json.loads(mock.calls.last.request.content.decode()) | CODE |
| CRITICAL | …ages/kosong/tests/api_snapshot_tests/test_anthropic.py | 666 | body = json.loads(mock.calls.last.request.content.decode()) | CODE |
| CRITICAL | …ages/kosong/tests/api_snapshot_tests/test_anthropic.py | 686 | body = json.loads(mock.calls.last.request.content.decode()) | CODE |
| CRITICAL | …ages/kosong/tests/api_snapshot_tests/test_anthropic.py | 704 | body = json.loads(mock.calls.last.request.content.decode()) | CODE |
| CRITICAL | …ages/kosong/tests/api_snapshot_tests/test_anthropic.py | 721 | body = json.loads(mock.calls.last.request.content.decode()) | CODE |
| CRITICAL | …ages/kosong/tests/api_snapshot_tests/test_anthropic.py | 738 | body = json.loads(mock.calls.last.request.content.decode()) | CODE |
| CRITICAL | …ages/kosong/tests/api_snapshot_tests/test_anthropic.py | 755 | body = json.loads(mock.calls.last.request.content.decode()) | CODE |
| CRITICAL | …ages/kosong/tests/api_snapshot_tests/test_anthropic.py | 776 | body = json.loads(mock.calls.last.request.content.decode()) | CODE |
| CRITICAL | …ages/kosong/tests/api_snapshot_tests/test_anthropic.py | 795 | body = json.loads(mock.calls.last.request.content.decode()) | CODE |
| CRITICAL | …ages/kosong/tests/api_snapshot_tests/test_anthropic.py | 812 | body = json.loads(mock.calls.last.request.content.decode()) | CODE |
| CRITICAL⚡ | packages/kosong/tests/api_snapshot_tests/test_kimi.py | 400 | body = json.loads(mock.calls.last.request.content.decode()) | CODE |
| CRITICAL⚡ | packages/kosong/tests/api_snapshot_tests/test_kimi.py | 413 | body = json.loads(mock.calls.last.request.content.decode()) | CODE |
| CRITICAL⚡ | packages/kosong/tests/api_snapshot_tests/test_kimi.py | 431 | body = json.loads(mock.calls.last.request.content.decode()) | CODE |
| CRITICAL | packages/kosong/tests/api_snapshot_tests/test_kimi.py | 463 | body = json.loads(mock.calls.last.request.content.decode()) | CODE |
| CRITICAL | packages/kosong/tests/api_snapshot_tests/test_kimi.py | 484 | body = json.loads(mock.calls.last.request.content.decode()) | CODE |
| CRITICAL | packages/kosong/tests/api_snapshot_tests/test_kimi.py | 506 | body = json.loads(mock.calls.last.request.content.decode()) | CODE |
| CRITICAL | packages/kosong/tests/api_snapshot_tests/test_kimi.py | 537 | body = json.loads(mock.calls.last.request.content.decode()) | CODE |
| CRITICAL | packages/kosong/tests/api_snapshot_tests/test_kimi.py | 592 | body = json.loads(mock.calls.last.request.content.decode()) | CODE |
| CRITICAL | packages/kosong/tests/api_snapshot_tests/test_kimi.py | 611 | body = json.loads(mock.calls.last.request.content.decode()) | CODE |
| CRITICAL | packages/kosong/tests/api_snapshot_tests/test_kimi.py | 631 | body = json.loads(mock.calls.last.request.content.decode()) | CODE |
| CRITICAL | packages/kosong/tests/api_snapshot_tests/test_kimi.py | 651 | body = json.loads(mock.calls.last.request.content.decode()) | CODE |
| CRITICAL | …/kosong/tests/api_snapshot_tests/test_openai_legacy.py | 267 | body = json.loads(mock.calls.last.request.content.decode()) | CODE |
| CRITICAL | …/kosong/tests/api_snapshot_tests/test_openai_legacy.py | 303 | body = json.loads(mock.calls.last.request.content.decode()) | CODE |
| CRITICAL | …/kosong/tests/api_snapshot_tests/test_openai_legacy.py | 326 | body = json.loads(mock.calls.last.request.content.decode()) | CODE |
| CRITICAL | …/kosong/tests/api_snapshot_tests/test_openai_legacy.py | 341 | body = json.loads(mock.calls.last.request.content.decode()) | CODE |
| CRITICAL | …/kosong/tests/api_snapshot_tests/test_openai_legacy.py | 373 | body = json.loads(mock.calls.last.request.content.decode()) | CODE |
| CRITICAL | …/kosong/tests/api_snapshot_tests/test_openai_legacy.py | 400 | body = json.loads(mock.calls.last.request.content.decode()) | CODE |
| CRITICAL | …/kosong/tests/api_snapshot_tests/test_openai_legacy.py | 428 | body = json.loads(mock.calls.last.request.content.decode()) | CODE |
| CRITICAL | …s/kosong/tests/api_snapshot_tests/test_google_genai.py | 506 | body = json.loads(mock.calls.last.request.content.decode()) | CODE |
| CRITICAL | …s/kosong/tests/api_snapshot_tests/test_google_genai.py | 542 | body = json.loads(mock.calls.last.request.content.decode()) | CODE |
| CRITICAL | …s/kosong/tests/api_snapshot_tests/test_google_genai.py | 565 | body = json.loads(mock.calls.last.request.content.decode()) | CODE |
| CRITICAL⚡ | …song/tests/api_snapshot_tests/test_openai_responses.py | 378 | body = json.loads(mock.calls.last.request.content.decode()) | CODE |
| CRITICAL⚡ | …song/tests/api_snapshot_tests/test_openai_responses.py | 389 | body = json.loads(mock.calls.last.request.content.decode()) | CODE |
| CRITICAL⚡ | …song/tests/api_snapshot_tests/test_openai_responses.py | 405 | body = json.loads(mock.calls.last.request.content.decode()) | CODE |
| CRITICAL⚡ | …song/tests/api_snapshot_tests/test_openai_responses.py | 420 | body = json.loads(mock.calls.last.request.content.decode()) | CODE |
| CRITICAL⚡ | …song/tests/api_snapshot_tests/test_openai_responses.py | 434 | body = json.loads(mock.calls.last.request.content.decode()) | CODE |
| CRITICAL | …song/tests/api_snapshot_tests/test_openai_responses.py | 450 | body = json.loads(mock.calls.last.request.content.decode()) | CODE |
| CRITICAL | …song/tests/api_snapshot_tests/test_openai_responses.py | 465 | body = json.loads(mock.calls.last.request.content.decode()) | CODE |
| CRITICAL | packages/kosong/src/kosong/chat_provider/kimi.py | 184 | raw_response = await self.client.chat.completions.with_raw_response.create( | CODE |
| CRITICAL | src/kimi_cli/soul/slash.py | 259 | soul.runtime.session.state.additional_dirs.append(str(path)) | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tests_e2e/test_wire_steer.py | 1 | CODE | |
| LOW | tests_e2e/test_wire_protocol.py | 1 | CODE | |
| LOW | tests_e2e/test_wire_config.py | 1 | CODE | |
| LOW | tests_e2e/test_wire_question.py | 3 | CODE | |
| LOW | tests_e2e/test_mcp_cli.py | 1 | CODE | |
| LOW | tests_e2e/test_wire_sessions.py | 1 | CODE | |
| LOW | tests_e2e/wire_helpers.py | 1 | CODE | |
| LOW | tests_e2e/test_wire_approvals_tools.py | 1 | CODE | |
| LOW | tests_e2e/test_wire_real_llm.py | 1 | CODE | |
| LOW | tests_e2e/test_wire_prompt.py | 1 | CODE | |
| LOW | tests_e2e/test_wire_skills_mcp.py | 1 | CODE | |
| LOW | tests_e2e/test_wire_errors.py | 1 | CODE | |
| LOW | tests_e2e/test_wire_auth.py | 8 | CODE | |
| LOW | sdks/kimi-sdk/tests/test_smoke.py | 1 | CODE | |
| LOW | sdks/kimi-sdk/src/kimi_sdk/__init__.py | 71 | CODE | |
| LOW | sdks/kimi-sdk/src/kimi_sdk/__init__.py | 73 | CODE | |
| LOW | sdks/kimi-sdk/src/kimi_sdk/__init__.py | 73 | CODE | |
| LOW | sdks/kimi-sdk/src/kimi_sdk/__init__.py | 73 | CODE | |
| LOW | sdks/kimi-sdk/src/kimi_sdk/__init__.py | 73 | CODE | |
| LOW | sdks/kimi-sdk/src/kimi_sdk/__init__.py | 74 | CODE | |
| LOW | sdks/kimi-sdk/src/kimi_sdk/__init__.py | 74 | CODE | |
| LOW | sdks/kimi-sdk/src/kimi_sdk/__init__.py | 74 | CODE | |
| LOW | sdks/kimi-sdk/src/kimi_sdk/__init__.py | 74 | CODE | |
| LOW | sdks/kimi-sdk/src/kimi_sdk/__init__.py | 74 | CODE | |
| LOW | sdks/kimi-sdk/src/kimi_sdk/__init__.py | 74 | CODE | |
| LOW | sdks/kimi-sdk/src/kimi_sdk/__init__.py | 74 | CODE | |
| LOW | sdks/kimi-sdk/src/kimi_sdk/__init__.py | 74 | CODE | |
| LOW | sdks/kimi-sdk/src/kimi_sdk/__init__.py | 84 | CODE | |
| LOW | sdks/kimi-sdk/src/kimi_sdk/__init__.py | 84 | CODE | |
| LOW | sdks/kimi-sdk/src/kimi_sdk/__init__.py | 84 | CODE | |
| LOW | sdks/kimi-sdk/src/kimi_sdk/__init__.py | 85 | CODE | |
| LOW | sdks/kimi-sdk/src/kimi_sdk/__init__.py | 85 | CODE | |
| LOW | sdks/kimi-sdk/src/kimi_sdk/__init__.py | 85 | CODE | |
| LOW | sdks/kimi-sdk/src/kimi_sdk/__init__.py | 85 | CODE | |
| LOW | sdks/kimi-sdk/src/kimi_sdk/__init__.py | 85 | CODE | |
| LOW | sdks/kimi-sdk/src/kimi_sdk/__init__.py | 85 | CODE | |
| LOW | sdks/kimi-sdk/src/kimi_sdk/__init__.py | 85 | CODE | |
| LOW | sdks/kimi-sdk/src/kimi_sdk/__init__.py | 85 | CODE | |
| LOW | sdks/kimi-sdk/src/kimi_sdk/__init__.py | 85 | CODE | |
| LOW | sdks/kimi-sdk/src/kimi_sdk/__init__.py | 85 | CODE | |
| LOW | sdks/kimi-sdk/src/kimi_sdk/__init__.py | 97 | CODE | |
| LOW | sdks/kimi-sdk/src/kimi_sdk/__init__.py | 97 | CODE | |
| LOW | sdks/kimi-sdk/src/kimi_sdk/__init__.py | 97 | CODE | |
| LOW | sdks/kimi-sdk/src/kimi_sdk/__init__.py | 97 | CODE | |
| LOW | sdks/kimi-sdk/src/kimi_sdk/__init__.py | 97 | CODE | |
| LOW | sdks/kimi-sdk/src/kimi_sdk/__init__.py | 97 | CODE | |
| LOW | sdks/kimi-sdk/src/kimi_sdk/__init__.py | 97 | CODE | |
| LOW | sdks/kimi-sdk/src/kimi_sdk/__init__.py | 97 | CODE | |
| LOW | sdks/kimi-sdk/src/kimi_sdk/__init__.py | 97 | CODE | |
| LOW | sdks/kimi-sdk/src/kimi_sdk/__init__.py | 97 | CODE | |
| LOW | sdks/kimi-sdk/src/kimi_sdk/__init__.py | 97 | CODE | |
| LOW | sdks/kimi-sdk/src/kimi_sdk/__init__.py | 97 | CODE | |
| LOW | sdks/kimi-sdk/src/kimi_sdk/__init__.py | 111 | CODE | |
| LOW | tests/test_attachment_cache.py | 1 | CODE | |
| LOW | tests/conftest.py | 3 | CODE | |
| LOW | tests/test_git_context.py | 3 | CODE | |
| LOW | tests/test_clipboard.py | 1 | CODE | |
| LOW | tests/test_additional_dirs_state.py | 3 | CODE | |
| LOW | tests/test_constant.py | 3 | CODE | |
| LOW | tests/background/test_agent_timeout.py | 3 | CODE | |
| 495 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tests_e2e/wire_helpers.py | 174 | except Exception: | CODE |
| MEDIUM | tests_e2e/wire_helpers.py | 170 | def _run(self) -> None: | CODE |
| LOW⚡ | tests/ui_and_conv/test_shell_switch_slash.py | 266 | except Exception: | CODE |
| LOW | …s/skills/feature-smoke-test/scripts/inspect_session.py | 66 | except Exception: | CODE |
| LOW | examples/custom-tools/my_tools/ls.py | 21 | except Exception as e: | CODE |
| LOW⚡ | examples/kimi-psql/main.py | 130 | except Exception as e: | CODE |
| LOW | examples/kimi-psql/main.py | 428 | except Exception as e: | CODE |
| LOW | scripts/inject_build_sha.py | 61 | except Exception: | CODE |
| LOW | scripts/inject_build_sha.py | 81 | except Exception: | CODE |
| LOW | scripts/telemetry_debug_server.py | 72 | except Exception as exc: | CODE |
| LOW | scripts/build_vis.py | 54 | except Exception: | CODE |
| LOW | packages/kosong/src/kosong/tooling/simple.py | 130 | except Exception as e: | CODE |
| MEDIUM | packages/kosong/src/kosong/tooling/simple.py | 126 | def _call(): | CODE |
| LOW | …kages/kosong/src/kosong/chat_provider/openai_common.py | 36 | except Exception: | CODE |
| LOW | …kages/kosong/src/kosong/chat_provider/openai_common.py | 46 | except Exception: | CODE |
| LOW⚡ | …g/src/kosong/contrib/chat_provider/openai_responses.py | 437 | except Exception: | CODE |
| LOW⚡ | …g/src/kosong/contrib/chat_provider/openai_responses.py | 453 | except Exception: | CODE |
| LOW | …osong/src/kosong/contrib/chat_provider/google_genai.py | 169 | except Exception as e: # genai_errors.APIError and others | CODE |
| LOW | src/kimi_cli/session_state.py | 63 | except Exception: | CODE |
| LOW | src/kimi_cli/mcp_oauth.py | 47 | except Exception as exc: | CODE |
| LOW | src/kimi_cli/session.py | 123 | except Exception: | CODE |
| LOW | src/kimi_cli/app.py | 49 | except Exception: | CODE |
| LOW⚡ | src/kimi_cli/app.py | 98 | except Exception as exc: | CODE |
| LOW | src/kimi_cli/app.py | 286 | except Exception: | CODE |
| LOW | src/kimi_cli/app.py | 470 | except Exception: | CODE |
| LOW | src/kimi_cli/app.py | 508 | except Exception: | CODE |
| LOW | src/kimi_cli/constant.py | 79 | except Exception: | CODE |
| LOW | src/kimi_cli/constant.py | 93 | except Exception: | CODE |
| MEDIUM | src/kimi_cli/__main__.py | 36 | print(f"Error: {exc}", file=sys.stderr) | CODE |
| LOW | src/kimi_cli/background/worker.py | 171 | except Exception as exc: | CODE |
| LOW | src/kimi_cli/background/agent_runner.py | 110 | except Exception as exc: | CODE |
| LOW | src/kimi_cli/background/manager.py | 190 | except Exception as exc: | CODE |
| LOW | src/kimi_cli/background/manager.py | 368 | except Exception: | CODE |
| LOW | src/kimi_cli/background/manager.py | 413 | except Exception: | CODE |
| LOW | src/kimi_cli/ui/shell/update.py | 295 | except Exception: | CODE |
| LOW | src/kimi_cli/ui/shell/update.py | 314 | except Exception: | CODE |
| LOW | src/kimi_cli/ui/shell/update.py | 330 | except Exception: | CODE |
| LOW | src/kimi_cli/ui/shell/slash.py | 799 | except Exception as e: | CODE |
| MEDIUM | src/kimi_cli/ui/shell/__init__.py | 505 | def _invalidate_after_mcp_loading() -> None: | CODE |
| MEDIUM | src/kimi_cli/ui/shell/__init__.py | 1193 | def _refresh() -> None: | CODE |
| LOW | src/kimi_cli/ui/shell/__init__.py | 366 | except Exception: | CODE |
| LOW | src/kimi_cli/ui/shell/__init__.py | 508 | except Exception: | CODE |
| LOW | src/kimi_cli/ui/shell/__init__.py | 770 | except Exception as e: | CODE |
| LOW | src/kimi_cli/ui/shell/__init__.py | 815 | except Exception as e: | CODE |
| LOW | src/kimi_cli/ui/shell/__init__.py | 1018 | except Exception as e: | CODE |
| LOW | src/kimi_cli/ui/shell/__init__.py | 1109 | except Exception: | CODE |
| LOW | src/kimi_cli/ui/shell/__init__.py | 1459 | except Exception: | CODE |
| LOW | src/kimi_cli/ui/shell/setup.py | 95 | except Exception as e: | CODE |
| LOW | src/kimi_cli/ui/shell/replay.py | 133 | except Exception: | CODE |
| LOW | src/kimi_cli/ui/shell/prompt.py | 934 | except Exception: | CODE |
| LOW | src/kimi_cli/ui/shell/prompt.py | 948 | except Exception: | CODE |
| LOW | src/kimi_cli/ui/shell/prompt.py | 983 | except Exception: | CODE |
| LOW | src/kimi_cli/ui/shell/prompt.py | 1499 | except Exception: | CODE |
| LOW | src/kimi_cli/ui/shell/prompt.py | 1680 | except Exception: | CODE |
| LOW | src/kimi_cli/ui/shell/prompt.py | 1921 | except Exception: | CODE |
| LOW | src/kimi_cli/ui/shell/visualize/_interactive.py | 153 | except Exception as e: | CODE |
| LOW | src/kimi_cli/ui/print/__init__.py | 215 | except Exception: | CODE |
| LOW | src/kimi_cli/ui/print/__init__.py | 375 | except Exception: | CODE |
| LOW | src/kimi_cli/ui/print/__init__.py | 400 | except Exception: | CODE |
| LOW | src/kimi_cli/ui/print/__init__.py | 473 | except Exception: | CODE |
| 145 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tests_e2e/wire_helpers.py | 544 | CODE | |
| LOW | tests/e2e/test_hooks_wire_e2e.py | 384 | CODE | |
| LOW | tests/e2e/test_shell_pty_e2e.py | 44 | CODE | |
| LOW | tests/e2e/shell_pty_helpers.py | 291 | CODE | |
| LOW | tests/e2e/shell_pty_helpers.py | 105 | CODE | |
| LOW | tests/e2e/test_subagent_smoke_e2e.py | 50 | CODE | |
| LOW | …s/skills/feature-smoke-test/scripts/inspect_session.py | 39 | CODE | |
| LOW | …s/skills/feature-smoke-test/scripts/inspect_session.py | 159 | CODE | |
| LOW | examples/kimi-psql/main.py | 79 | CODE | |
| LOW | examples/kimi-psql/main.py | 431 | CODE | |
| LOW | packages/kosong/src/kosong/__main__.py | 47 | CODE | |
| LOW | packages/kosong/src/kosong/chat_provider/kimi.py | 469 | CODE | |
| LOW | packages/kosong/src/kosong/utils/jsonschema.py | 27 | CODE | |
| LOW | packages/kosong/src/kosong/utils/jsonschema.py | 212 | CODE | |
| LOW | packages/kosong/src/kosong/utils/jsonschema.py | 46 | CODE | |
| LOW | …g/src/kosong/contrib/chat_provider/openai_responses.py | 354 | CODE | |
| LOW | …g/src/kosong/contrib/chat_provider/openai_responses.py | 394 | CODE | |
| LOW | …g/src/kosong/contrib/chat_provider/openai_responses.py | 230 | CODE | |
| LOW | …g/src/kosong/contrib/chat_provider/openai_responses.py | 496 | CODE | |
| LOW | …g/src/kosong/contrib/chat_provider/openai_responses.py | 522 | CODE | |
| LOW | …osong/src/kosong/contrib/chat_provider/google_genai.py | 454 | CODE | |
| LOW | …osong/src/kosong/contrib/chat_provider/google_genai.py | 628 | CODE | |
| LOW | …osong/src/kosong/contrib/chat_provider/google_genai.py | 685 | CODE | |
| LOW | …osong/src/kosong/contrib/chat_provider/google_genai.py | 314 | CODE | |
| LOW | …song/src/kosong/contrib/chat_provider/openai_legacy.py | 291 | CODE | |
| LOW | …s/kosong/src/kosong/contrib/chat_provider/anthropic.py | 650 | CODE | |
| LOW | …s/kosong/src/kosong/contrib/chat_provider/anthropic.py | 443 | CODE | |
| LOW | …s/kosong/src/kosong/contrib/chat_provider/anthropic.py | 577 | CODE | |
| LOW | src/kimi_cli/session.py | 62 | CODE | |
| LOW | src/kimi_cli/llm.py | 238 | CODE | |
| LOW | src/kimi_cli/app.py | 401 | CODE | |
| LOW | src/kimi_cli/session_fork.py | 97 | CODE | |
| LOW | src/kimi_cli/session_fork.py | 172 | CODE | |
| LOW | src/kimi_cli/background/worker.py | 31 | CODE | |
| LOW | src/kimi_cli/background/agent_runner.py | 54 | CODE | |
| LOW | src/kimi_cli/background/manager.py | 420 | CODE | |
| LOW | src/kimi_cli/ui/shell/update.py | 224 | CODE | |
| LOW | src/kimi_cli/ui/shell/__init__.py | 1493 | CODE | |
| LOW | src/kimi_cli/ui/shell/__init__.py | 321 | CODE | |
| LOW | src/kimi_cli/ui/shell/__init__.py | 382 | CODE | |
| LOW | src/kimi_cli/ui/shell/__init__.py | 820 | CODE | |
| LOW | src/kimi_cli/ui/shell/replay.py | 183 | CODE | |
| LOW | src/kimi_cli/ui/shell/prompt.py | 289 | CODE | |
| LOW | src/kimi_cli/ui/shell/prompt.py | 810 | CODE | |
| LOW | src/kimi_cli/ui/shell/prompt.py | 913 | CODE | |
| LOW | src/kimi_cli/ui/shell/prompt.py | 954 | CODE | |
| LOW | src/kimi_cli/ui/shell/prompt.py | 295 | CODE | |
| LOW | src/kimi_cli/ui/shell/prompt.py | 1911 | CODE | |
| LOW | src/kimi_cli/ui/shell/usage.py | 38 | CODE | |
| LOW | src/kimi_cli/ui/shell/keyboard.py | 106 | CODE | |
| LOW | src/kimi_cli/ui/shell/keyboard.py | 207 | CODE | |
| LOW | src/kimi_cli/ui/shell/visualize/_question_panel.py | 39 | CODE | |
| LOW | src/kimi_cli/ui/shell/visualize/_question_panel.py | 108 | CODE | |
| LOW | src/kimi_cli/ui/shell/visualize/_blocks.py | 128 | CODE | |
| LOW | src/kimi_cli/ui/shell/visualize/_blocks.py | 451 | CODE | |
| LOW | src/kimi_cli/ui/shell/visualize/_live_view.py | 188 | CODE | |
| LOW | src/kimi_cli/ui/shell/visualize/_live_view.py | 570 | CODE | |
| LOW | src/kimi_cli/ui/shell/visualize/_interactive.py | 203 | CODE | |
| LOW | src/kimi_cli/ui/shell/visualize/_approval_panel.py | 282 | CODE | |
| LOW | src/kimi_cli/ui/shell/visualize/_approval_panel.py | 62 | CODE | |
| 74 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | tests/tools/test_tool_descriptions.py | 118 | - **Query mode**: Omit `todos` (or pass null) to retrieve the current todo list without changes. | STRING |
| HIGH | tests/tools/test_tool_descriptions.py | 158 | - For multiple related commands, use `&&` to chain them in a single call, e.g. `cd /path && ls -la` | STRING |
| HIGH | tests/tools/test_shell_bash.py | 62 | result = await shell_tool(Params(command="false || echo 'Success'")) | CODE |
| HIGH⚡ | tests/utils/test_shell_quoting.py | 27 | ("ls 2>nul; echo done", "ls 2>/dev/null; echo done"), | CODE |
| HIGH⚡ | tests/utils/test_shell_quoting.py | 28 | ("ls 2>nul && echo ok", "ls 2>/dev/null && echo ok"), | CODE |
| HIGH⚡ | tests/utils/test_shell_quoting.py | 29 | ("ls 2>nul) ", "ls 2>/dev/null) "), | CODE |
| HIGH⚡ | tests/utils/test_shell_quoting.py | 35 | ("foo >nul; bar 2>nul", "foo >/dev/null; bar 2>/dev/null"), | CODE |
| HIGH⚡ | tests/utils/test_shell_quoting.py | 74 | cmd = "git status && git diff" | CODE |
| HIGH | tests/e2e/test_shell_pty_e2e.py | 906 | build_shell_tool_call("tc-c1", "sleep 2 && printf should-not-exist > cancel_output.txt"), | CODE |
| HIGH | tests/e2e/test_shell_pty_e2e.py | 925 | shell.read_until_contains("Using Shell (sleep 2 && printf should-", after=cancel_mark) | CODE |
| HIGH | packages/kaos/tests/test_local_kaos_sh.py | 108 | exit_code, stdout, stderr = await run_sh("false || echo 'Success'") | CODE |
| HIGH | packages/kaos/tests/test_local_kaos_cmd.py | 69 | """Chaining commands with && should work.""" | STRING |
| HIGH⚡ | …kages/kosong/tests/test_scripted_echo_chat_provider.py | 95 | tool_call: {"id": "tc-1", "name": "get_weather", "arguments": null} | CODE |
| HIGH | packages/kosong/tests/test_echo_chat_provider.py | 73 | tool_call: {"id": "tc-1", "name": "get_weather", "arguments": null} | CODE |
| HIGH⚡ | packages/kosong/tests/test_trace_id.py | 94 | '"delta":{"role":"assistant","content":"hi"},"finish_reason":null}]}\n\n' | CODE |
| HIGH | tests_ai/accuracy_smoke/local_kimi_cli_agent.py | 26 | command="apt-get update && apt-get install -y curl", | CODE |
| HIGH | src/kimi_cli/utils/rich/markdown.py | 599 | self.style_stack.push(style) | CODE |
| HIGH | src/kimi_cli/utils/rich/markdown.py | 729 | context.stack.push(Link.create(self, token)) | CODE |
| HIGH | src/kimi_cli/utils/rich/markdown.py | 767 | context.stack.push(element) | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | tests/background/test_agent_timeout.py | 34 | # Create a minimal subagent store mock | COMMENT |
| MEDIUM | tests/ui_and_conv/test_shell_task_slash.py | 909 | # Create a pending approval request in the runtime | COMMENT |
| MEDIUM | tests/ui_and_conv/test_modal_lifecycle.py | 1253 | # Create a pending approval in the runtime | COMMENT |
| MEDIUM | tests/tools/test_grep.py | 269 | # Create a file with multiline content | COMMENT |
| MEDIUM | tests/tools/test_grep.py | 49 | # Create a subdirectory with files | STRING |
| MEDIUM⚡ | tests/tools/test_read_file.py | 382 | # Create a test file in temp_work_dir and use ~ to reference it | COMMENT |
| MEDIUM⚡ | tests/tools/test_read_file.py | 389 | # Create the test file in home directory | COMMENT |
| MEDIUM | tests/tools/test_read_file.py | 347 | # Create a file with more than MAX_LINES lines | COMMENT |
| MEDIUM | tests/tools/test_read_file.py | 366 | # Create a file that exceeds MAX_BYTES | COMMENT |
| MEDIUM | tests/tools/test_read_file.py | 505 | # Create a file with more than MAX_LINES lines | COMMENT |
| MEDIUM | tests/tools/test_read_file.py | 559 | # Create a file where tail_buf total bytes >> MAX_BYTES but n_lines=1 is fine. | COMMENT |
| MEDIUM | tests/tools/test_fetch_url.py | 242 | # Create a mock server for the service | COMMENT |
| MEDIUM | tests/tools/test_glob.py | 17 | # Create a directory structure | COMMENT |
| MEDIUM⚡ | tests/tools/test_shell_bash.py | 110 | # Create a test file | COMMENT |
| MEDIUM⚡ | tests/tools/test_todo.py | 138 | # Create a subagent runtime | COMMENT |
| MEDIUM⚡ | tests/tools/test_todo.py | 143 | # Initialize the subagent instance directory | COMMENT |
| MEDIUM⚡ | tests/tools/test_mcp_tool_result.py | 160 | # Create a content block with an unknown type | COMMENT |
| MEDIUM | tests/core/test_session_fork.py | 391 | # Create a fake video file | COMMENT |
| MEDIUM | tests/core/test_plugin_manager.py | 202 | # Create a valid plugin with SKILL.md | COMMENT |
| MEDIUM | tests/core/test_plugin.py | 233 | # Create the file so it exists (the guard should trigger before reading) | COMMENT |
| MEDIUM | tests/core/test_print_background_integration.py | 100 | # Create a task that is "running" | COMMENT |
| MEDIUM | tests/core/test_background_agent_kill.py | 88 | # Create a background task via the manager. | COMMENT |
| MEDIUM | tests/core/test_background_agent_kill.py | 285 | # Create the background agent task and IMMEDIATELY kill it without | COMMENT |
| MEDIUM | tests/core/test_background_agent_kill.py | 380 | # Create a fake pending approval belonging to this background agent. | COMMENT |
| MEDIUM | tests/core/test_load_agent.py | 197 | # Create main agent YAML that registers one builtin subagent type | COMMENT |
| MEDIUM⚡ | tests/web/test_session_error_recovery.py | 52 | # Create a mock process whose stdout has one line then EOF | COMMENT |
| MEDIUM | tests/web/test_session_error_recovery.py | 109 | # Create a mock process that immediately returns EOF | COMMENT |
| MEDIUM⚡ | tests/utils/test_utils_path.py | 23 | # Create the parent directory | COMMENT |
| MEDIUM | tests/e2e/test_hooks_wire_e2e.py | 386 | # Create a blocking hook script | COMMENT |
| MEDIUM | src/kimi_cli/utils/slashcmd.py | 72 | # Create the primary command with aliases | COMMENT |
| MEDIUM | src/kimi_cli/utils/rich/markdown.py | 1 | # This file is modified from https://github.com/Textualize/rich/blob/4d6d631a3d2deddf8405522d4b8c976a6d35726c/rich/markd | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | sdks/kimi-sdk/src/kimi_sdk/__init__.py | 113 | __all__ = [ | CODE |
| LOW | tests/ui_and_conv/test_shell_feedback_slash.py | 38 | def _setup_feedback_provider(runtime: Runtime) -> None: | CODE |
| LOW | tests/e2e/shell_pty_helpers.py | 58 | def _set_window_size(fd: int, *, columns: int, lines: int) -> None: | CODE |
| LOW | packages/kosong/tests/api_snapshot_tests/common.py | 13 | __all__ = [ | CODE |
| LOW | packages/kosong/src/kosong/__init__.py | 89 | __all__ = [ | CODE |
| LOW | packages/kosong/src/kosong/tooling/__init__.py | 227 | def _update_class_schema(self, json_schema, cls, config) -> None: # type: ignore[reportMissingParameterType] | CODE |
| LOW | …kages/kosong/src/kosong/chat_provider/echo/__init__.py | 4 | __all__ = [ | CODE |
| LOW | …s/kosong/src/kosong/contrib/chat_provider/anthropic.py | 543 | def _update_usage(self, delta_usage: MessageDeltaUsage) -> None: | CODE |
| LOW | src/kimi_cli/__init__.py | 29 | __all__ = ["logger"] | CODE |
| LOW | src/kimi_cli/constant.py | 109 | __all__ = [ | CODE |
| LOW | src/kimi_cli/background/__init__.py | 18 | __all__ = [ | CODE |
| LOW⚡ | src/kimi_cli/ui/theme.py | 214 | def set_active_theme(theme: ThemeName) -> None: | CODE |
| LOW | src/kimi_cli/ui/shell/__init__.py | 1278 | def _set_active_view(self, view: Any) -> None: | CODE |
| LOW | src/kimi_cli/ui/shell/task_browser.py | 102 | def set_message(self, text: str, *, duration_s: float = _FLASH_MESSAGE_SECONDS) -> None: | CODE |
| LOW | src/kimi_cli/ui/shell/prompt.py | 1963 | def set_prefill_text(self, text: str) -> None: | CODE |
| LOW | src/kimi_cli/ui/shell/visualize/_question_panel.py | 39 | def _setup_current_question(self) -> None: | CODE |
| LOW | src/kimi_cli/ui/shell/visualize/_question_panel.py | 353 | def set_panel(self, panel: QuestionRequestPanel | None) -> None: | CODE |
| LOW | src/kimi_cli/ui/shell/visualize/_blocks.py | 444 | def set_subagent_metadata(self, agent_id: str, subagent_type: str) -> None: | CODE |
| LOW | src/kimi_cli/ui/shell/visualize/_btw_panel.py | 84 | def set_start_time(self, t: float) -> None: | CODE |
| LOW | src/kimi_cli/ui/shell/visualize/_btw_panel.py | 91 | def set_result(self, response: str | None, error: str | None) -> None: | CODE |
| LOW⚡ | src/kimi_cli/ui/shell/visualize/_approval_panel.py | 368 | def set_request(self, request: ApprovalRequest) -> None: | CODE |
| LOW | src/kimi_cli/tools/ask_user/__init__.py | 18 | logger = logging.getLogger(__name__) | CODE |
| LOW | src/kimi_cli/tools/plan/__init__.py | 26 | logger = logging.getLogger(__name__) | CODE |
| LOW | src/kimi_cli/tools/plan/enter.py | 19 | logger = logging.getLogger(__name__) | CODE |
| LOW | src/kimi_cli/subagents/__init__.py | 12 | __all__ = [ | CODE |
| LOW | src/kimi_cli/wire/types.py | 451 | def set_exception(self, exc: BaseException) -> None: | CODE |
| LOW | src/kimi_cli/wire/types.py | 664 | __all__ = [ | CODE |
| LOW | src/kimi_cli/auth/__init__.py | 5 | __all__ = ["KIMI_CODE_PLATFORM_ID"] | CODE |
| LOW | src/kimi_cli/web/auth.py | 181 | __all__ = [ | CODE |
| LOW | src/kimi_cli/web/__init__.py | 5 | __all__ = ["create_app", "run_web_server"] | CODE |
| LOW | src/kimi_cli/web/app.py | 451 | __all__ = ["create_app", "run_web_server"] | CODE |
| LOW | src/kimi_cli/web/runner/__init__.py | 5 | __all__ = ["KimiCLIRunner"] | CODE |
| LOW | src/kimi_cli/web/api/sessions.py | 550 | def _update_last_session_id(session: JointSession) -> None: | CODE |
| LOW | src/kimi_cli/web/api/__init__.py | 10 | __all__ = [ | CODE |
| LOW | src/kimi_cli/plugin/__init__.py | 114 | def _set_nested(obj: dict[str, Any], dotted_path: str, value: object) -> None: | CODE |
| LOW | src/kimi_cli/utils/proctitle.py | 6 | def set_process_title(title: str) -> None: | CODE |
| LOW | src/kimi_cli/utils/proctitle.py | 16 | def set_terminal_title(title: str) -> None: | CODE |
| LOW | src/kimi_cli/vis/app.py | 175 | __all__ = ["create_app", "run_vis_server"] | CODE |
| LOW | src/kimi_cli/vis/api/sessions.py | 25 | logger = logging.getLogger(__name__) | CODE |
| LOW | src/kimi_cli/vis/api/__init__.py | 5 | __all__ = ["sessions_router", "statistics_router", "system_router"] | CODE |
| LOW | src/kimi_cli/hooks/__init__.py | 4 | __all__ = ["HookDef", "HookEventType", "HOOK_EVENT_TYPES", "HookEngine"] | CODE |
| LOW | src/kimi_cli/approval_runtime/__init__.py | 17 | __all__ = [ | CODE |
| LOW⚡ | src/kimi_cli/telemetry/crash.py | 28 | def set_phase(phase: str) -> None: | CODE |
| LOW⚡ | src/kimi_cli/telemetry/__init__.py | 64 | def set_current_trace_id(trace_id: str | None) -> None: | CODE |
| LOW⚡ | src/kimi_cli/telemetry/__init__.py | 74 | def set_context(*, device_id: str, session_id: str) -> None: | CODE |
| LOW⚡ | src/kimi_cli/telemetry/__init__.py | 81 | def set_client_info(*, name: str, version: str | None = None) -> None: | CODE |
| LOW | src/kimi_cli/soul/kimisoul.py | 340 | def _set_trace_id(self, trace_id: str | None) -> None: | CODE |
| LOW | src/kimi_cli/soul/kimisoul.py | 356 | def set_hook_engine(self, engine: HookEngine) -> None: | CODE |
| LOW⚡ | src/kimi_cli/soul/approval.py | 145 | def set_runtime(self, runtime: ApprovalRuntime) -> None: | CODE |
| LOW⚡ | src/kimi_cli/soul/approval.py | 152 | def set_yolo(self, yolo: bool) -> None: | CODE |
| LOW⚡ | src/kimi_cli/soul/approval.py | 156 | def set_afk(self, afk: bool) -> None: | CODE |
| LOW | src/kimi_cli/soul/approval.py | 168 | def set_runtime_afk(self, afk: bool) -> None: | CODE |
| LOW | src/kimi_cli/soul/toolset.py | 65 | def set_session_id(sid: str) -> None: | CODE |
| LOW | src/kimi_cli/soul/toolset.py | 250 | def set_hook_engine(self, engine: HookEngine) -> None: | CODE |
| LOW | src/kimi_cli/acp/server.py | 324 | async def set_session_mode(self, mode_id: str, session_id: str, **kwargs: Any) -> None: | CODE |
| LOW | src/kimi_cli/acp/server.py | 327 | async def set_session_model(self, model_id: str, session_id: str, **kwargs: Any) -> None: | CODE |
| LOW | src/kimi_cli/notifications/__init__.py | 17 | __all__ = [ | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW⚡ | tests/core/test_context_pending_tokens.py | 335 | # Step 1: API returned, total tokens = 840K (below 85% of 1M = 850K) | COMMENT |
| LOW⚡ | tests/core/test_context_pending_tokens.py | 338 | # Step 2: Large tool results appended (e.g. file content) | COMMENT |
| LOW⚡ | tests/core/test_toolset.py | 437 | # Step 1: execute a tool | COMMENT |
| LOW | tests/core/test_toolset.py | 456 | # Step 2: same call with empty last_calls should execute normally | COMMENT |
| LOW⚡ | tests/auth/test_oauth_refresh.py | 493 | # Step 1: hit a 401 with R1 → marks R1 rejected | COMMENT |
| LOW⚡ | tests/auth/test_oauth_refresh.py | 503 | # Step 2: simulate a concurrent instance writing a fresh token (R2) to disk | COMMENT |
| LOW⚡ | tests/auth/test_oauth_refresh.py | 509 | # Step 3: next ensure_fresh should detect the rotation, clear the | COMMENT |
| LOW⚡ | packages/kosong/tests/test_kimi_stale_api_key.py | 95 | # Step 1: initial request uses token-A | COMMENT |
| LOW⚡ | packages/kosong/tests/test_kimi_stale_api_key.py | 101 | # Step 2: simulate OAuth token refresh | COMMENT |
| LOW⚡ | packages/kosong/tests/test_kimi_stale_api_key.py | 104 | # Step 3: simulate network error → on_retryable_error rebuilds client | COMMENT |
| LOW⚡ | packages/kosong/tests/test_kimi_stale_api_key.py | 107 | # Step 4: the rebuilt client must send token-B, not token-A | COMMENT |
| LOW | src/kimi_cli/ui/shell/slash.py | 217 | # Step 1: Select model | COMMENT |
| LOW | src/kimi_cli/ui/shell/slash.py | 245 | # Step 2: Determine thinking mode | COMMENT |
| LOW⚡ | src/kimi_cli/tools/file/grep_local.py | 473 | # Step 1: mtime sorting (files_with_matches only, skip on timeout) | COMMENT |
| LOW⚡ | src/kimi_cli/tools/file/grep_local.py | 482 | # Step 2: shorten paths to relative (prefix stripping) | COMMENT |
| LOW⚡ | src/kimi_cli/tools/file/grep_local.py | 488 | # Step 3: filter sensitive files from output | COMMENT |
| LOW | src/kimi_cli/tools/file/grep_local.py | 531 | # Step 4: count_matches summary (before pagination, on full results) | COMMENT |
| LOW | src/kimi_cli/tools/file/grep_local.py | 552 | # Step 5: offset + head_limit pagination | COMMENT |
| LOW⚡ | src/kimi_cli/tools/file/read.py | 243 | # Step 1: Apply n_lines / MAX_LINES from head of tail_buf. | COMMENT |
| LOW⚡ | src/kimi_cli/tools/file/read.py | 250 | # Step 2: Apply MAX_BYTES — if candidates exceed the byte budget, | COMMENT |
| LOW | src/kimi_cli/tools/file/read.py | 266 | # Step 3: Collect results from candidates | COMMENT |
| LOW | src/kimi_cli/skills/skill-creator/SKILL.md | 238 | ### Step 1: Understanding the Skill with Concrete Examples | COMMENT |
| LOW | src/kimi_cli/skills/skill-creator/SKILL.md | 255 | ### Step 2: Planning the Reusable Skill Contents | COMMENT |
| LOW | src/kimi_cli/skills/skill-creator/SKILL.md | 279 | ### Step 3: Initializing the Skill | COMMENT |
| LOW | src/kimi_cli/skills/skill-creator/SKILL.md | 291 | ### Step 4: Edit the Skill | COMMENT |
| LOW | src/kimi_cli/skills/skill-creator/SKILL.md | 330 | ### Step 5: Packaging a Skill | COMMENT |
| LOW | src/kimi_cli/skills/skill-creator/SKILL.md | 358 | ### Step 6: Iterate | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | packages/kosong/src/kosong/chat_provider/kimi.py | 0 | copy the chat provider, updating the generation kwargs with the given values. returns: self: a new instance of the chat | STRING |
| HIGH | …g/src/kosong/contrib/chat_provider/openai_responses.py | 0 | copy the chat provider, updating the generation kwargs with the given values. returns: self: a new instance of the chat | STRING |
| HIGH | …osong/src/kosong/contrib/chat_provider/google_genai.py | 0 | copy the chat provider, updating the generation kwargs with the given values. returns: self: a new instance of the chat | STRING |
| HIGH | …song/src/kosong/contrib/chat_provider/openai_legacy.py | 0 | copy the chat provider, updating the generation kwargs with the given values. returns: self: a new instance of the chat | STRING |
| HIGH | …s/kosong/src/kosong/contrib/chat_provider/anthropic.py | 0 | copy the chat provider, updating the generation kwargs with the given values. returns: self: a new instance of the chat | STRING |
| HIGH | packages/kosong/src/kosong/chat_provider/kimi.py | 0 | the parameters of the model to use. for tracing/logging purposes. | STRING |
| HIGH | …g/src/kosong/contrib/chat_provider/openai_responses.py | 0 | the parameters of the model to use. for tracing/logging purposes. | STRING |
| HIGH | …osong/src/kosong/contrib/chat_provider/google_genai.py | 0 | the parameters of the model to use. for tracing/logging purposes. | STRING |
| HIGH | …song/src/kosong/contrib/chat_provider/openai_legacy.py | 0 | the parameters of the model to use. for tracing/logging purposes. | STRING |
| HIGH | …s/kosong/src/kosong/contrib/chat_provider/anthropic.py | 0 | the parameters of the model to use. for tracing/logging purposes. | STRING |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | web/scripts/generate-api.sh | 23 | # Check if docker is available | COMMENT |
| LOW⚡ | tests/tools/test_shell_bash.py | 118 | # Read the file | COMMENT |
| LOW⚡ | tests/tools/test_shell_bash.py | 168 | # Check if output was truncated (it should be) | COMMENT |
| LOW⚡ | tests/tools/test_shell_bash.py | 184 | # Check if output was truncated | COMMENT |
| LOW | tests/telemetry/test_telemetry.py | 505 | # Set mtime to 8 days ago | COMMENT |
| LOW | examples/kimi-psql/main.py | 91 | # Check if query returns results | COMMENT |
| LOW | examples/kimi-psql/main.py | 393 | # Check if mode switch was requested | COMMENT |
| LOW | packages/kosong/src/kosong/tooling/simple.py | 55 | # Check if the return annotation is ToolReturnValue | COMMENT |
| LOW | src/kimi_cli/ui/shell/slash.py | 272 | # Check if anything changed | COMMENT |
| LOW | src/kimi_cli/ui/shell/slash.py | 879 | # Set title to match the convention used by fork_session | COMMENT |
| LOW | src/kimi_cli/ui/shell/__init__.py | 721 | # Check if it's an allowed slash command in shell mode | COMMENT |
| LOW | src/kimi_cli/ui/shell/__init__.py | 733 | # Check if user is trying to use 'cd' command | COMMENT |
| LOW | src/kimi_cli/ui/shell/debug.py | 34 | # Check if it looks like a system tag | COMMENT |
| LOW | src/kimi_cli/tools/file/replace.py | 131 | # Read the file content | COMMENT |
| LOW | src/kimi_cli/tools/file/replace.py | 141 | # Check if any changes were made | COMMENT |
| LOW | src/kimi_cli/web/api/sessions.py | 121 | # Check if session is busy | COMMENT |
| LOW | src/kimi_cli/web/api/sessions.py | 507 | # Check if resolved path points to sensitive location | COMMENT |
| LOW | src/kimi_cli/web/api/sessions.py | 767 | # Check if title was already generated (avoid duplicate calls) | COMMENT |
| LOW | src/kimi_cli/web/api/sessions.py | 947 | # Check if session exists | COMMENT |
| LOW | src/kimi_cli/web/api/sessions.py | 953 | # Check if session has history | COMMENT |
| LOW | src/kimi_cli/web/api/sessions.py | 972 | # Check if WebSocket is still connected before continuing | COMMENT |
| LOW | src/kimi_cli/web/api/sessions.py | 1140 | # Check if it is a git repository | COMMENT |
| LOW | src/kimi_cli/web/api/sessions.py | 1148 | # Check if HEAD exists (repo has at least one commit) | COMMENT |
| LOW⚡ | src/kimi_cli/soul/slash.py | 227 | # Check if already added (exact match) | COMMENT |
| LOW⚡ | src/kimi_cli/soul/slash.py | 232 | # Check if it's within the work_dir (already accessible) | COMMENT |
| LOW⚡ | src/kimi_cli/soul/slash.py | 238 | # Check if it's within an already-added additional directory (redundant) | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW⚡ | tests/core/test_context_pending_tokens.py | 335 | # Step 1: API returned, total tokens = 840K (below 85% of 1M = 850K) | COMMENT |
| LOW⚡ | tests/core/test_context_pending_tokens.py | 338 | # Step 2: Large tool results appended (e.g. file content) | COMMENT |
| LOW⚡ | tests/core/test_toolset.py | 437 | # Step 1: execute a tool | COMMENT |
| LOW | tests/core/test_toolset.py | 456 | # Step 2: same call with empty last_calls should execute normally | COMMENT |
| LOW⚡ | tests/auth/test_oauth_refresh.py | 493 | # Step 1: hit a 401 with R1 → marks R1 rejected | COMMENT |
| LOW⚡ | tests/auth/test_oauth_refresh.py | 503 | # Step 2: simulate a concurrent instance writing a fresh token (R2) to disk | COMMENT |
| LOW⚡ | tests/auth/test_oauth_refresh.py | 509 | # Step 3: next ensure_fresh should detect the rotation, clear the | COMMENT |
| LOW⚡ | packages/kosong/tests/test_kimi_stale_api_key.py | 95 | # Step 1: initial request uses token-A | COMMENT |
| LOW⚡ | packages/kosong/tests/test_kimi_stale_api_key.py | 101 | # Step 2: simulate OAuth token refresh | COMMENT |
| LOW⚡ | packages/kosong/tests/test_kimi_stale_api_key.py | 104 | # Step 3: simulate network error → on_retryable_error rebuilds client | COMMENT |
| LOW⚡ | packages/kosong/tests/test_kimi_stale_api_key.py | 107 | # Step 4: the rebuilt client must send token-B, not token-A | COMMENT |
| LOW | src/kimi_cli/ui/shell/slash.py | 217 | # Step 1: Select model | COMMENT |
| LOW | src/kimi_cli/ui/shell/slash.py | 245 | # Step 2: Determine thinking mode | COMMENT |
| LOW⚡ | src/kimi_cli/tools/file/grep_local.py | 473 | # Step 1: mtime sorting (files_with_matches only, skip on timeout) | COMMENT |
| LOW⚡ | src/kimi_cli/tools/file/grep_local.py | 482 | # Step 2: shorten paths to relative (prefix stripping) | COMMENT |
| LOW⚡ | src/kimi_cli/tools/file/grep_local.py | 488 | # Step 3: filter sensitive files from output | COMMENT |
| LOW | src/kimi_cli/tools/file/grep_local.py | 531 | # Step 4: count_matches summary (before pagination, on full results) | COMMENT |
| LOW | src/kimi_cli/tools/file/grep_local.py | 552 | # Step 5: offset + head_limit pagination | COMMENT |
| LOW⚡ | src/kimi_cli/tools/file/read.py | 243 | # Step 1: Apply n_lines / MAX_LINES from head of tail_buf. | COMMENT |
| LOW⚡ | src/kimi_cli/tools/file/read.py | 250 | # Step 2: Apply MAX_BYTES — if candidates exceed the byte budget, | COMMENT |
| LOW | src/kimi_cli/tools/file/read.py | 266 | # Step 3: Collect results from candidates | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | packages/kosong/src/kosong/_generate.py | 27 | Generate one message based on the given context. Parts of the message will be streamed to the specified callbac | STRING |
| HIGH | src/kimi_cli/config.py | 292 | Load configuration from config file. If the config file does not exist, create it with default configuration. | STRING |
| HIGH | src/kimi_cli/config.py | 343 | Load configuration from a TOML or JSON string. Args: config_string (str): TOML or JSON configuration t | STRING |
| HIGH | src/kimi_cli/app.py | 538 | Run the Kimi Code CLI instance without any UI and yield Wire messages directly. Args: user | STRING |
| HIGH | src/kimi_cli/session_fork.py | 98 | Read wire.jsonl and return all lines up to and including the given turn. Args: wire_path: Path to the wire. | STRING |
| HIGH | src/kimi_cli/session_fork.py | 222 | Fork a session, creating a new session with history up to the given turn. Args: source_session_dir: Path to | STRING |
| HIGH | src/kimi_cli/soul/compaction.py | 88 | Compact a sequence of messages into a new sequence of messages. Args: messages (Sequence[M | STRING |
| HIGH | src/kimi_cli/soul/approval.py | 207 | Request approval for the given action. Intended to be called by tools. Args: sender (str): | STRING |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | README.md | 126 | "CONTEXT7_API_KEY": "YOUR_API_KEY" | CODE |
| HIGH | packages/kimi-code/README.md | 126 | "CONTEXT7_API_KEY": "YOUR_API_KEY" | CODE |
| HIGH | tests_ai/accuracy_smoke/README.md | 68 | export KIMI_API_KEY="your_api_key" | CODE |
| HIGH | tests_ai/accuracy_smoke/scripts/run_smoke.sh | 35 | echo 'Example: export KIMI_API_KEY="your_api_key"' >&2 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | src/kimi_cli/app.py | 441 | COMMENT | |
| LOW | src/kimi_cli/ui/shell/update.py | 341 | # async def update(app: "Shell", args: list[str]): | COMMENT |
| LOW | src/kimi_cli/ui/print/__init__.py | 101 | COMMENT | |
| LOW | src/kimi_cli/ui/print/__init__.py | 161 | COMMENT | |
| LOW | src/kimi_cli/ui/print/__init__.py | 181 | "</system-reminder>" | COMMENT |
| LOW | src/kimi_cli/ui/print/__init__.py | 221 | ) | COMMENT |
| LOW | src/kimi_cli/ui/print/__init__.py | 241 | # haven't published yet. Without this | COMMENT |
| LOW | src/kimi_cli/ui/print/__init__.py | 301 | f"({wait_cap}s), killed {len(killed)} tasks\n" | COMMENT |
| LOW | src/kimi_cli/ui/print/__init__.py | 381 | # The follow-up soul turn already took a | COMMENT |
| LOW | src/kimi_cli/auth/oauth.py | 1021 | except OAuthUnauthorized as exc: | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | web/package-lock.json | 13015 | "resolved": "https://registry.npmjs.org/robust-predicates/-/robust-predicates-3.0.2.tgz", | CODE |
| MEDIUM | web/src/hooks/useSessionStream.ts | 1503 | // Match message by toolCallId directly - this is robust against: | COMMENT |
| LOW | examples/kimi-psql/main.py | 559 | # For psql, just pass the connection URL | COMMENT |
| LOW | src/kimi_cli/wire/server.py | 1036 | msg_id = request.id # just use the approval request id as message id | CODE |
| LOW | src/kimi_cli/telemetry/transport.py | 166 | # every reload, so falling back to disk would just create a | COMMENT |
| LOW | src/kimi_cli/soul/kimisoul.py | 1676 | # to refresh and retrying would just add latency. | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | web/src/lib/api/runtime.ts | 125 | * @return True if the given MIME is JSON, false otherwise. | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | tests/core/test_skill.py | 1423 | CODE | |
| MEDIUM | tests/core/test_auth_error_handling.py | 483 | CODE | |
| MEDIUM | packages/kosong/tests/test_openai_common.py | 248 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | docs/AGENTS.md | 22 | Only the Chinese documentation and the English changelog are manually reviewed. Other translations (e.g., English versio | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | src/kimi_cli/app.py | 122 | CODE | |
| LOW | src/kimi_cli/ui/shell/visualize/__init__.py | 114 | CODE | |
| LOW | src/kimi_cli/web/app.py | 228 | CODE | |
| LOW | src/kimi_cli/cli/web.py | 11 | CODE | |
| LOW | src/kimi_cli/cli/__init__.py | 78 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tests/test_git_context.py | 185 | "test@test.com", | CODE |
| LOW | tests/ui_and_conv/test_file_completer.py | 155 | ["git", "config", "user.email", "test@test.com"], | CODE |
| LOW⚡ | tests/ui_and_conv/test_prompt_tips.py | 861 | captured.append(kwargs.get("placeholder")) | CODE |
| LOW | tests/e2e/test_file_mention_e2e.py | 38 | ["git", "config", "user.email", "test@test.com"], | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tests_e2e/test_wire_protocol.py | 284 | def handle_request(msg: dict[str, Any]) -> dict[str, Any]: | CODE |
| LOW | tests/tools/test_grep.py | 321 | f.write("def test_function():\n return 'hello world'\n") | CODE |