Repository Analysis

HKUDS/ViMax

"ViMax: Agentic Video Generation (Director, Screenwriter, Producer, and Video Generator All-in-One)"

21.2 Moderate AI signal View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of HKUDS/ViMax, a Python project with 12,139 GitHub stars. SynthScan v2.0 examined 29,486 lines of code across 170 source files, recording 467 pattern matches distributed across 13 syntactic categories. The overall adjusted score of 21.2 places this repository in the Moderate 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).

21.2
Adjusted Score
21.2
Raw Score
100%
Time Factor
2026-07-29
Last Push
12.1K
Stars
Python
Language
29.5K
Lines of Code
170
Files
467
Pattern Hits
2026-08-29
Scan Date
0.11
HC Hit Rate

What These Metrics Mean

Adjusted Score
Primary synthetic code indicator. Raw score normalised per 1,000 lines of code and multiplied by the temporal discount factor. This is the definitive comparative metric — use it to rank repositories by AI authorship density.
Raw Score
The unmodified sum of all severity-weighted, context-multiplied pattern match scores before temporal discounting. Reflects the absolute signal strength independent of when the repository was last active.
Time Factor
The temporal discount multiplier (0–100%) applied to the raw score. Repositories last updated before ChatGPT's launch (Nov 2022) receive a 5% factor. Full signal is only assigned to repositories active in the post-adoption era (Jan 2024+).
Pattern Hits
Total count of individual pattern matches across all files and categories. A high hit count with a low score may indicate a very large codebase with isolated AI snippets; a low count with a high score indicates dense, concentrated AI signatures.
HC Hit Rate
High+Critical pattern hits per file, averaged across the repository. This orthogonal signal catches repositories where a few files are densely packed with high-severity AI tells — a strong indicator even when the normalised score appears moderate due to codebase size.
Lines of Code / Files
Total lines and files analysed. The scanner examines 94 file extensions. These denominators are used to normalise the score, enabling fair comparison between repositories of vastly different sizes.

Score History

This chart maps the temporal evolution of the adjusted synthetic code score across successive scan runs. An upward trajectory indicates ongoing incorporation of AI-generated code or expanding LLM-assisted scaffolding; a stable or declining trajectory may reflect active human refactoring, code removal, or the adoption of stricter authorship policies. The dashed secondary line (right axis) independently tracks total raw pattern hit count, which can diverge from the normalised score when codebase size changes significantly between scans.

Severity Breakdown

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.

CRITICAL 0HIGH 18MEDIUM 4LOW 445

Directory Score Breakdown

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.

Pattern Findings

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

Hyper-Verbose Identifiers226 hits · 252 pts
SeverityFileLineSnippetContext
LOWui/src/cli.tsx329 function scheduleResponseIdleClear() {CODE
LOWtools/image_generator_openrouter_api.py35def _is_retryable_image_error(exc: BaseException) -> bool:CODE
LOWtools/image_generator_openrouter_api.py151def _prompt_with_landscape_requirement(prompt: str, aspect_ratio: str | None) -> str:CODE
LOWtools/image_orientation.py9def landscape_guard_requested(*, size: Any = None, aspect_ratio: Any = None, enforce_landscape: Any = True, allow_portraCODE
LOWtools/video_generator_doubao_seedance_yunwu_api.py29 async def create_video_generation_task(CODE
LOWtools/video_generator_doubao_seedance_yunwu_api.py132 async def query_video_generation_task(CODE
LOWtools/video_generator_omni_yunwu_api.py90 async def create_video_generation_task(CODE
LOWtools/video_generator_omni_yunwu_api.py156 async def query_video_generation_task(self, task_id: str, model: str) -> str:CODE
LOWweb/src/artifactPresentation.ts137export function extractStoryboardPreviews(document: JsonValue, sourcePath: string): StoryboardPreview[] {CODE
LOWweb/src/artifactPresentation.ts163export function deriveStoryboardReadiness(artifacts: Artifact[], storyboardCount: number): StoryboardReadiness {CODE
LOWtests/test_novel2video_adapter.py24 async def compress_single_novel_chunk(self, semaphore, index, novel_chunk):CODE
LOWtests/test_novel2video_adapter.py58 async def merge_characters_across_scenes_in_event(self, event_idx, scenes):CODE
LOWtests/test_novel2video_adapter.py61 def merge_characters_to_existing_characters_in_novel(self, event_idx, existing_characters_in_novel, characters_in_evCODE
LOWtests/test_novel2video_adapter.py111 async def test_merge_event_characters_uses_scene_character_idx(self):CODE
LOWtests/test_novel2video_adapter.py126 async def test_run_planning_step_suppresses_stdout_stderr_and_warnings(self):CODE
LOWtests/test_novel2video_adapter.py142 async def test_plan_text_artifacts_writes_structured_text_and_progress(self):CODE
LOWtests/test_novel2video_adapter.py192def write_minimal_novel_artifacts(root: Path):CODE
LOWtests/test_novel2video_adapter.py218 async def test_novel_initializes_named_empty_active_session(self):CODE
LOWtests/test_novel2video_adapter.py231 async def test_missing_rag_config_returns_tool_error_and_marks_session_error(self):CODE
LOWtests/test_generator_protocol.py24 def test_generate_single_video_accepts_arbitrary_kwargs(self):CODE
LOWtests/test_wrong_output_guards.py39 def test_out_of_order_camera_indices_group_correctly(self):CODE
LOWtests/test_wrong_output_guards.py49 def test_priorities_are_shot_indices_not_camera_indices(self):CODE
LOWtests/test_wrong_output_guards.py67 def test_two_pipelines_do_not_share_events(self):CODE
LOWtests/test_wrong_output_guards.py78 def test_no_class_level_mutable_event_dicts(self):CODE
LOWtests/test_wrong_output_guards.py87 async def test_existing_new_camera_image_is_still_offered_to_selector(self):CODE
LOWtests/test_wrong_output_guards.py139 def test_out_of_range_rejected(self):CODE
LOWtests/test_wrong_output_guards.py153 def test_negative_index_rejected(self):CODE
LOWtests/test_wrong_output_guards.py157 def test_out_of_range_rejected(self):CODE
LOWtests/test_wrong_output_guards.py163 def test_clean_names_unchanged(self):CODE
LOWtests/test_wrong_output_guards.py167 def test_unicode_names_preserved(self):CODE
LOWtests/test_wrong_output_guards.py170 def test_path_separators_removed(self):CODE
LOWtests/test_wrong_output_guards.py174 def test_traversal_neutralized(self):CODE
LOWtests/test_wrong_output_guards.py179 def test_empty_becomes_placeholder(self):CODE
LOWtests/test_robustness.py51 async def test_retries_rate_limit_then_succeeds(self):CODE
LOWtests/test_robustness.py58 async def test_does_not_retry_auth_errors(self):CODE
LOWtests/test_robustness.py65 async def test_gives_up_after_bounded_attempts(self):CODE
LOWtests/test_robustness.py73 async def test_empty_choices_raises_clear_error(self):CODE
LOWtests/test_robustness.py86 async def test_llm_failure_emits_error_and_persists_failed_turn(self):CODE
LOWtests/test_robustness.py104 def test_corrupt_sessions_file_is_backed_up_not_silently_replaced(self):CODE
LOWtests/test_robustness.py115 def test_save_is_atomic_and_leaves_no_temp_files(self):CODE
LOWtests/test_robustness.py122 def test_concurrent_creates_do_not_lose_sessions(self):CODE
LOWtests/test_robustness.py153 def test_every_retry_is_bounded_with_backoff(self):CODE
LOWtests/test_robustness.py201 async def test_reranker_surfaces_http_error_without_retry(self):CODE
LOWtests/test_robustness.py212 async def test_seedream_surfaces_http_error_without_retry(self):CODE
LOWtests/test_main_agent_cli.py71 def test_help_parser_contains_once(self):CODE
LOWtests/test_main_agent_cli.py78 async def test_jsonl_once_outputs_valid_events_with_turn_id(self):CODE
LOWtests/test_main_agent_cli.py90 async def test_stdin_non_tty_is_single_prompt(self):CODE
LOWtests/test_main_agent_cli.py97 async def test_stdin_repl_reads_each_line_as_a_turn(self):CODE
LOWtests/test_main_agent_cli.py105 async def test_session_error_is_clear_before_runtime_load(self):CODE
LOWtests/test_main_agent_cli.py120 async def test_new_session_is_created_before_runtime_load(self):CODE
LOWtests/test_main_agent_cli.py134 async def test_named_new_session_passes_project_name(self):CODE
LOWtests/test_main_agent_cli.py147 async def test_new_session_and_session_are_mutually_exclusive(self):CODE
LOWtests/test_main_agent_cli.py160 async def test_compact_command_outputs_jsonl_without_llm_turn(self):CODE
LOWtests/test_main_agent_cli.py172 async def test_plain_mode_prints_progress_terminal_and_session(self):CODE
LOWtests/test_image_orientation.py11 def test_landscape_guard_requested_defaults_to_all_images(self):CODE
LOWtests/test_image_orientation.py18 def test_portrait_detection_allows_slightly_tall_images(self):CODE
LOWtests/test_image_orientation.py23 def test_portrait_tolerance_env_override(self):CODE
LOWtests/test_crash_regressions.py10 def test_fallback_summary_handles_tool_call_messages(self):CODE
LOWtests/test_crash_regressions.py22 def test_str_uses_existing_fields(self):CODE
LOWtests/test_provider_presets.py17 def test_minimax_preset_exists(self):CODE
166 more matches not shown…
Unused Imports141 hits · 140 pts
SeverityFileLineSnippetContext
LOWmain_agent.py1CODE
LOWtools/image_generator_openrouter_api.py1CODE
LOWtools/video_generator_openrouter_api.py2CODE
LOWtools/video_generator_veo_yunwu_api.py2CODE
LOWtools/image_response.py1CODE
LOWtools/__init__.py2CODE
LOWtools/__init__.py2CODE
LOWtools/__init__.py3CODE
LOWtools/__init__.py6CODE
LOWtools/__init__.py7CODE
LOWtools/__init__.py8CODE
LOWtools/__init__.py9CODE
LOWtools/__init__.py12CODE
LOWtools/__init__.py15CODE
LOWtools/__init__.py16CODE
LOWtools/__init__.py16CODE
LOWtools/__init__.py17CODE
LOWtools/__init__.py18CODE
LOWtools/__init__.py19CODE
LOWtools/image_orientation.py1CODE
LOWtests/test_robustness.py11CODE
LOWtests/test_script2video_pipeline_guards.py5CODE
LOWtests/test_script2video_pipeline_guards.py5CODE
LOWtests/test_minimax_integration.py15CODE
LOWtests/test_agent_tools.py1CODE
LOWagents/reference_image_selector.py8CODE
LOWagents/scene_extractor.py1CODE
LOWagents/scene_extractor.py5CODE
LOWagents/scene_extractor.py5CODE
LOWagents/scene_extractor.py6CODE
LOWagents/scene_extractor.py6CODE
LOWagents/scene_extractor.py6CODE
LOWagents/scene_extractor.py6CODE
LOWagents/global_information_planner.py1CODE
LOWagents/global_information_planner.py3CODE
LOWagents/global_information_planner.py4CODE
LOWagents/global_information_planner.py4CODE
LOWagents/global_information_planner.py4CODE
LOWagents/global_information_planner.py9CODE
LOWagents/global_information_planner.py10CODE
LOWagents/event_extractor.py1CODE
LOWagents/event_extractor.py3CODE
LOWagents/event_extractor.py9CODE
LOWagents/event_extractor.py9CODE
LOWagents/character_portraits_generator.py1CODE
LOWagents/character_portraits_generator.py2CODE
LOWagents/character_portraits_generator.py3CODE
LOWagents/character_portraits_generator.py4CODE
LOWagents/character_portraits_generator.py5CODE
LOWagents/character_portraits_generator.py6CODE
LOWagents/character_portraits_generator.py7CODE
LOWagents/character_portraits_generator.py8CODE
LOWagents/character_portraits_generator.py8CODE
LOWagents/character_portraits_generator.py9CODE
LOWagents/character_portraits_generator.py9CODE
LOWagents/character_portraits_generator.py9CODE
LOWagents/character_portraits_generator.py11CODE
LOWagents/character_portraits_generator.py11CODE
LOWagents/character_extractor.py1CODE
LOWagents/character_extractor.py2CODE
81 more matches not shown…
Magic Placeholder Names18 hits · 135 pts
SeverityFileLineSnippetContext
HIGHreadme.md243 api_key: <YOUR_API_KEY>CODE
HIGHreadme.md243 api_key: <YOUR_API_KEY>CODE
HIGHreadme.md248 api_key: <YOUR_API_KEY>CODE
HIGHreadme.md248 api_key: <YOUR_API_KEY>CODE
HIGHreadme.md253 api_key: <YOUR_API_KEY>CODE
HIGHreadme.md253 api_key: <YOUR_API_KEY>CODE
HIGHreadme.md311 api_key: <YOUR_API_KEY>CODE
HIGHreadme.md311 api_key: <YOUR_API_KEY>CODE
HIGHreadme.md317 api_key: <YOUR_API_KEY>CODE
HIGHreadme.md317 api_key: <YOUR_API_KEY>CODE
HIGHreadme.md322 api_key: <YOUR_API_KEY>CODE
HIGHreadme.md322 api_key: <YOUR_API_KEY>CODE
HIGHREADME_ZH.md274 api_key: <YOUR_API_KEY>CODE
HIGHREADME_ZH.md274 api_key: <YOUR_API_KEY>CODE
HIGHREADME_ZH.md280 api_key: <YOUR_API_KEY>CODE
HIGHREADME_ZH.md280 api_key: <YOUR_API_KEY>CODE
HIGHREADME_ZH.md285 api_key: <YOUR_API_KEY>CODE
HIGHREADME_ZH.md285 api_key: <YOUR_API_KEY>CODE
Excessive Try-Catch Wrapping31 hits · 34 pts
SeverityFileLineSnippetContext
LOWmain_agent.py143 except Exception as exc:CODE
LOWtools/image_generator_openrouter_api.py169 except Exception as exc:CODE
LOWtools/video_generator_veo_yunwu_api.py121 except Exception as e:CODE
LOWtools/video_generator_veo_yunwu_api.py152 except Exception as e:CODE
LOWtools/video_generator_doubao_seedance_yunwu_api.py107 except Exception as e:CODE
LOWtools/video_generator_doubao_seedance_yunwu_api.py162 except Exception as e:CODE
LOWtools/video_generator_omni_yunwu_api.py124 except Exception as e:CODE
LOWtools/video_generator_omni_yunwu_api.py171 except Exception as e:CODE
LOWagents/reference_image_selector.py185 except Exception as e:CODE
LOWagents/reference_image_selector.py222 except Exception as e:CODE
LOWagents/script_enhancer.py119 except Exception as e:CODE
LOWagents/script_planner.py430 except Exception as e:CODE
LOWpipelines/script2video_pipeline.py164 except Exception:CODE
LOWpipelines/idea2video_pipeline.py183 except Exception as e:CODE
LOWpipelines/idea2video_pipeline.py199 except Exception as e:CODE
LOWutils/video.py21 except Exception as e:CODE
MEDIUMutils/video.py8def download_video(url, save_path):CODE
LOWutils/image.py24 except Exception as e:CODE
MEDIUMutils/image.py12def download_image(url, save_path):CODE
LOWagent_runtime/context_compactor.py145 except Exception:CODE
LOWagent_runtime/tools.py162 except Exception as exc:CODE
LOWagent_runtime/vimax_adapters.py198 except Exception as exc:CODE
LOWagent_runtime/vimax_adapters.py258 except Exception as exc:CODE
LOWagent_runtime/vimax_adapters.py316 except Exception as exc:CODE
LOWagent_runtime/vimax_adapters.py400 except Exception as exc:CODE
LOWagent_runtime/vimax_adapters.py517 except Exception as exc:CODE
LOWagent_runtime/vimax_adapters.py669 except Exception:CODE
LOWagent_runtime/llm.py75 except Exception as exc:CODE
LOWagent_runtime/loop.py72 except Exception as exc:CODE
LOWagent_runtime/image_tools.py93 except Exception as exc:CODE
LOWagent_runtime/image_tools.py135 except Exception:CODE
Over-Commented Block11 hits · 11 pts
SeverityFileLineSnippetContext
LOWagents/global_information_planner.py281 # self,COMMENT
LOWagents/global_information_planner.py301COMMENT
LOWagents/global_information_planner.py321 # # check the output is validCOMMENT
LOWagents/global_information_planner.py341COMMENT
LOWagents/global_information_planner.py361 # character_name=character.identifier_in_novel,COMMENT
LOWpipelines/script2video_pipeline.py201 character_portraits_registry: Optional[Dict[str, Dict[str, Dict[str, str]]]] = None,COMMENT
LOWinterfaces/scene.py41# description="The index of the scene within the event, starting from 0"COMMENT
LOWinterfaces/shot_description.py41 # default=None,COMMENT
LOWinterfaces/shot_description.py61 # False,COMMENT
LOWinterfaces/shot_description.py161 "[Sound Effect] Ambient sound (supermarket background noise, shopping cart wheels rolling)",COMMENT
LOWinterfaces/shot_description.py181 # )COMMENT
Deep Nesting12 hits · 10 pts
SeverityFileLineSnippetContext
LOWmain_agent.py42CODE
LOWmain_agent.py102CODE
LOWpipelines/script2video_pipeline.py323CODE
LOWpipelines/novel2movie_pipeline.py73CODE
LOWpipelines/novel2movie_pipeline.py479CODE
LOWpipelines/novel2movie_pipeline.py626CODE
LOWutils/rate_limiter.py39CODE
LOWagent_runtime/tools.py188CODE
LOWagent_runtime/tools.py198CODE
LOWagent_runtime/tools.py290CODE
LOWagent_runtime/vimax_adapters.py683CODE
LOWagent_runtime/loop.py43CODE
Verbosity Indicators7 hits · 10 pts
SeverityFileLineSnippetContext
LOWpipelines/novel2movie_pipeline.py486 # Step 1: Compress the novel textCOMMENT
LOWpipelines/novel2movie_pipeline.py554 # Step 2: Extract events from the compressed novelCOMMENT
LOWpipelines/novel2movie_pipeline.py598 # Step 3: Extract relevant chunks for each eventCOMMENT
LOWpipelines/novel2movie_pipeline.py685 # Step 4: Extract scenes for each event, design the script for each sceneCOMMENT
LOWpipelines/novel2movie_pipeline.py751 # Step 5: Merge characters from scene-level to event-level, then to novel-levelCOMMENT
LOWpipelines/novel2movie_pipeline.py845 # Step 6: Generate the portrait for all characters in the novelCOMMENT
LOWpipelines/novel2movie_pipeline.py963 # Step 7: Generate video for each sceneCOMMENT
Structural Annotation Overuse7 hits · 10 pts
SeverityFileLineSnippetContext
LOWpipelines/novel2movie_pipeline.py486 # Step 1: Compress the novel textCOMMENT
LOWpipelines/novel2movie_pipeline.py554 # Step 2: Extract events from the compressed novelCOMMENT
LOWpipelines/novel2movie_pipeline.py598 # Step 3: Extract relevant chunks for each eventCOMMENT
LOWpipelines/novel2movie_pipeline.py685 # Step 4: Extract scenes for each event, design the script for each sceneCOMMENT
LOWpipelines/novel2movie_pipeline.py751 # Step 5: Merge characters from scene-level to event-level, then to novel-levelCOMMENT
LOWpipelines/novel2movie_pipeline.py845 # Step 6: Generate the portrait for all characters in the novelCOMMENT
LOWpipelines/novel2movie_pipeline.py963 # Step 7: Generate video for each sceneCOMMENT
Decorative Section Separators2 hits · 9 pts
SeverityFileLineSnippetContext
MEDIUMutils/provider_presets.py15# ---------------------------------------------------------------------------COMMENT
MEDIUMutils/provider_presets.py17# ---------------------------------------------------------------------------COMMENT
Modern Structural Boilerplate8 hits · 8 pts
SeverityFileLineSnippetContext
LOWtools/__init__.py22__all__ = [CODE
LOWagents/__init__.py8__all__ = [CODE
LOWutils/provider_presets.py13logger = logging.getLogger(__name__)CODE
LOWagent_runtime/vimax_adapters.py453 def _update_session_metadata(self, session_id: str, *, idea: str, user_requirement: str, style: str) -> None:CODE
LOWagent_runtime/__init__.py3__all__ = ["AgentLoop", "SessionIndex", "ToolRegistry", "build_runtime"]CODE
LOWagent_runtime/session_index.py162 def update_stage(self, session_id: str, stage: str, summary: str = "") -> None:CODE
LOWagent_runtime/session_index.py186 def update_compaction(self, session_id: str, result: dict[str, Any]) -> None:CODE
LOWinterfaces/__init__.py10__all__ = [CODE
AI Structural Patterns2 hits · 2 pts
SeverityFileLineSnippetContext
LOWtools/image_generator_openrouter_api.py46CODE
LOWtools/video_generator_omni_yunwu_api.py13CODE
Redundant / Tautological Comments1 hit · 2 pts
SeverityFileLineSnippetContext
LOWtools/video_generator_veo_google_api.py105 # Check if operation completed successfullyCOMMENT
AI Slop Vocabulary1 hit · 2 pts
SeverityFileLineSnippetContext
LOWagents/global_information_planner.py353 # parser = None # no need to parse the output, just return the textCOMMENT