Repository Analysis

zhayujie/bot-on-anything

A large model-based chatbot builder that can quickly integrate AI models (including ChatGPT, Claude, Gemini) into various software applications (such as Telegram, Gmail, Slack, and websites).

18.3 Moderate AI signal View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of zhayujie/bot-on-anything, a Python project with 4,207 GitHub stars. SynthScan v2.0 examined 7,195 lines of code across 57 source files, recording 111 pattern matches distributed across 5 syntactic categories. The overall adjusted score of 18.3 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).

18.3
Adjusted Score
18.3
Raw Score
100%
Time Factor
2026-07-05
Last Push
4.2K
Stars
Python
Language
7.2K
Lines of Code
57
Files
111
Pattern Hits
2026-07-14
Scan Date
0.00
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 0MEDIUM 20LOW 91

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 111 distinct pattern matches across 5 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.

Excessive Try-Catch Wrapping63 hits · 84 pts
SeverityFileLineSnippetContext
LOWapp.py21 except Exception as e:CODE
LOWapp.py65 except Exception as e:CODE
MEDIUMapp.py13def start_process(channel_type, config_path):CODE
MEDIUMapp.py26def main():CODE
LOWplugins/README.md77 except Exception as e:CODE
LOWplugins/plugin_manager.py21 except Exception as e:CODE
LOWplugins/selector/selector.py17 except Exception as e:CODE
LOWchannel/dingtalk/dingtalk_channel.py42 except Exception as e:CODE
LOWchannel/dingtalk/dingtalk_channel.py234 except Exception as e:CODE
LOWchannel/dingtalk/dingtalk_channel.py296 except Exception as e:CODE
LOWchannel/discord/discord_channel.py71 except Exception as e:CODE
LOWchannel/discord/discord_channel.py107 except Exception as e:CODE
LOWchannel/feishu/feishu_channel.py50 except Exception as e:CODE
LOWchannel/wechat/wechat_com_channel.py75 except Exception as e:CODE
MEDIUMchannel/wechat/wechat_com_channel.py66def _do_send(self, query, reply_user_id):CODE
LOWchannel/wechat/wechat_channel.py186 except Exception as e:CODE
LOWchannel/wechat/wechat_channel.py211 except Exception as e:CODE
MEDIUMchannel/wechat/wechat_channel.py169def _do_send(self, query, reply_user_id):CODE
MEDIUMchannel/wechat/wechat_channel.py189def _do_send_img(self, query, context):CODE
LOWchannel/http/auth.py41 except Exception as e:CODE
LOWchannel/http/http_channel.py37 except Exception as e:CODE
LOWchannel/telegram/telegram_channel.py69 except Exception as e:CODE
MEDIUMchannel/telegram/telegram_channel.py46def _do_send_img(self, msg, reply_user_id):CODE
LOWchannel/gmail/gmail_channel.py95 except Exception as e:CODE
MEDIUMchannel/gmail/gmail_channel.py96 print("Error: {}".format(e))CODE
LOWcommon/functions.py22 except Exception as e:CODE
LOWcommon/sensitive_word.py10 except Exception as e:CODE
MEDIUMmodel/linkai/link_ai_bot.py310def create_img(self, query, retry_count=0, api_key=None):CODE
MEDIUMmodel/linkai/link_ai_bot.py335def _fetch_knowledge_search_suffix(self, response) -> str:CODE
MEDIUMmodel/linkai/link_ai_bot.py353def _fetch_agent_suffix(self, response):CODE
MEDIUMmodel/linkai/link_ai_bot.py383def _process_url(self, text):CODE
LOWmodel/linkai/link_ai_bot.py154 except Exception as e:CODE
LOWmodel/linkai/link_ai_bot.py292 except Exception as e:CODE
LOWmodel/linkai/link_ai_bot.py330 except Exception as e:CODE
LOWmodel/linkai/link_ai_bot.py349 except Exception as e:CODE
LOWmodel/linkai/link_ai_bot.py379 except Exception as e:CODE
LOWmodel/linkai/link_ai_bot.py389 except Exception as e:CODE
LOWmodel/linkai/link_ai_bot.py416 except Exception as e:CODE
LOWmodel/linkai/link_ai_bot.py431 except Exception as e:CODE
LOWmodel/google/bard_model.py17 except Exception as e:CODE
MEDIUMmodel/google/bard_model.py13def __init__(self):CODE
LOWmodel/google/bard_bot.py37 except Exception as e:CODE
LOWmodel/google/bard_bot.py66 except Exception as e:CODE
LOWmodel/bing/new_bing_model.py28 except Exception as e:CODE
LOWmodel/bing/new_bing_model.py38 except Exception as e:CODE
LOWmodel/bing/new_bing_model.py46 except Exception as e:CODE
LOWmodel/bing/new_bing_model.py100 except Exception as e:CODE
LOWmodel/bing/new_bing_model.py118 except Exception as e:CODE
MEDIUMmodel/bing/new_bing_model.py22def __init__(self):CODE
MEDIUMmodel/bing/new_bing_model.py110def create_img(self, query):CODE
LOWmodel/bing/jailbroken_sydney.py93 except Exception as e:CODE
LOWmodel/openai/open_ai_model.py75 except Exception as e:CODE
LOWmodel/openai/open_ai_model.py126 except Exception as e:CODE
LOWmodel/openai/open_ai_model.py173 except Exception as e:CODE
MEDIUMmodel/openai/open_ai_model.py51def reply_text(self, query, user_id, retry_count=0):CODE
MEDIUMmodel/openai/open_ai_model.py82def reply_text_stream(self, query, context, retry_count=0):CODE
MEDIUMmodel/openai/open_ai_model.py154def create_img(self, query, retry_count=0):CODE
LOWmodel/openai/chatgpt_model.py98 except Exception as e:CODE
LOWmodel/openai/chatgpt_model.py140 except Exception as e:CODE
LOWmodel/openai/chatgpt_model.py165 except Exception as e:CODE
3 more matches not shown…
Unused Imports23 hits · 23 pts
SeverityFileLineSnippetContext
LOWplugins/__init__.py2CODE
LOWplugins/__init__.py3CODE
LOWplugins/plugin_manager.py4CODE
LOWplugins/selector/selector.py5CODE
LOWplugins/createimg/createimg.py6CODE
LOWplugins/createimg/createimg.py8CODE
LOWchannel/dingtalk/dingtalk_channel.py10CODE
LOWchannel/dingtalk/dingtalk_channel.py10CODE
LOWchannel/feishu/feishu_channel.py3CODE
LOWchannel/feishu/feishu_channel.py4CODE
LOWchannel/feishu/feishu_channel.py5CODE
LOWchannel/feishu/feishu_channel.py6CODE
LOWchannel/feishu/feishu_channel.py8CODE
LOWchannel/feishu/feishu_channel.py10CODE
LOWchannel/feishu/feishu_channel.py10CODE
LOWchannel/wechat/wechat_mp_channel.py8CODE
LOWchannel/wechat/wechat_channel.py11CODE
LOWchannel/wechat/wechat_channel.py18CODE
LOWchannel/http/auth.py6CODE
LOWchannel/http/http_channel.py15CODE
LOWchannel/slack/slack_channel.py5CODE
LOWchannel/gmail/gmail_channel.py13CODE
LOWmodel/linkai/link_ai_bot.py5CODE
Deep Nesting10 hits · 9 pts
SeverityFileLineSnippetContext
LOWplugins/createimg/createimg.py26CODE
LOWchannel/channel_factory.py6CODE
LOWchannel/feishu/store.py37CODE
LOWchannel/http/auth.py80CODE
LOWchannel/gmail/gmail_channel.py50CODE
LOWchannel/gmail/gmail_channel.py102CODE
LOWmodel/model_factory.py7CODE
LOWmodel/linkai/link_ai_bot.py59CODE
LOWmodel/linkai/link_ai_bot.py223CODE
LOWmodel/linkai/link_ai_bot.py353CODE
Hyper-Verbose Identifiers8 hits · 8 pts
SeverityFileLineSnippetContext
LOWchannel/discord/discord_channel.py83 async def on_private_channel_delete(self, channel):CODE
LOWchannel/discord/discord_channel.py87 async def on_private_channel_create(self, channel):CODE
LOWchannel/feishu/feishu_channel.py152 def handle_request_url_verify(self, post_obj):CODE
LOWmodel/linkai/link_ai_bot.py335 def _fetch_knowledge_search_suffix(self, response) -> str:CODE
LOWmodel/bing/new_bing_model.py133 def build_source_attributions(self, answer, context):CODE
LOWmodel/bing/jailbroken_sydney.py34 def get_messages_for_conversation(messages, parent_message_id):CODE
LOWmodel/openai/open_ai_model.py228 def discard_exceed_conversation(session, max_tokens):CODE
LOWmodel/openai/chatgpt_model.py48 def _supports_sampling_params(self, model):CODE
Over-Commented Block7 hits · 7 pts
SeverityFileLineSnippetContext
LOWchannel/qq/config.yml21 # -1 为关闭心跳COMMENT
LOWchannel/qq/config.yml81COMMENT
LOWmodel/linkai/link_ai_bot.py161COMMENT
LOWmodel/linkai/link_ai_bot.py181 # return messagesCOMMENT
LOWmodel/linkai/link_ai_bot.py201 # with open(path, "rb") as file:COMMENT
LOWmodel/linkai/link_ai_bot.py481COMMENT
LOWmodel/linkai/link_ai_bot.py501# log.debug(f"[LinkAI] chat history, before tokens={total_tokens}, now tokens={tokens_cnt}")COMMENT