Repository Analysis

OpenBMB/XAgent

An Autonomous LLM Agent for Complex Task Solving

14.6 Low AI signal View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of OpenBMB/XAgent, a Python project with 8,533 GitHub stars. SynthScan v2.0 examined 51,615 lines of code across 349 source files, recording 430 pattern matches distributed across 15 syntactic categories. The overall adjusted score of 14.6 places this repository in the Low 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).

14.6
Adjusted Score
14.6
Raw Score
100%
Time Factor
2026-07-31
Last Push
8.5K
Stars
Python
Language
51.6K
Lines of Code
349
Files
430
Pattern Hits
2026-08-02
Scan Date
0.20
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

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.

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

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 69MEDIUM 37LOW 324

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 430 distinct pattern matches across 15 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.

Docstring Block Structure43 hits · 215 pts
SeverityFileLineSnippetContext
HIGHcommand_input.py136 Interrupts the current input process and returns the current data. Args: input_data (dict)STRING
HIGHToolServer/ToolServerManager/main.py76 Wait for the startup of node with id node_id. It probes the node status every seconds until creation_wait_secoSTRING
HIGHToolServer/ToolServerManager/main.py154 Reconnect session of a node. Fetches node info and restarts the node if it exists. Args: node_id (str,STRING
HIGHToolServer/ToolServerManager/main.py229 Routes a request to a specific node. Fetches the node info, checks if it is valid and running. Updates latest STRING
HIGHToolServer/ToolServerNode/config.py38 Fetches a configuration value for a given key. Args: key (str): The configuration key to fetSTRING
HIGHToolServer/ToolServerNode/main.py155 This function retrieves the tool names based on a query question using the ADA retriever. Args: questiSTRING
HIGHToolServer/ToolServerNode/main.py239 This function executes a tool with the provided arguments and environment. Args: tool_name (str): The STRING
HIGHToolServer/ToolServerNode/utils/response.py39 Wrap the tool response in a standardized object structure (depending on its type) to allow decoding. FormaSTRING
HIGHToolServer/ToolServerNode/utils/openai.py49 Sends a request to the OpenAI and gets a response. Args: messages: Payload to be sent to OSTRING
HIGHToolServer/ToolServerNode/utils/openai.py78 Makes a request to the OpenAI by calling the instance of the class. Args: messages: PayloaSTRING
HIGHXAgentServer/database/interface/interaction.py333 delete interaction Args: db (Session): db session interaction_id (str): interaSTRING
HIGHXAgentServer/database/interface/interaction.py365 insert an interaction process for recording Args: db (Session): db session proSTRING
HIGHXAgentServer/database/interface/interaction.py436 update send flag, if send success, update flag if send flag is True, it means that the process has beenSTRING
HIGHXAgentServer/database/interface/interaction.py462 update receive flag, if receive success, update flag if this flag is True, it means that the process haSTRING
HIGHXAgentServer/database/interface/interaction.py487 update human data Args: db (Session): db session interaction_id (str): interacSTRING
HIGHXAgentServer/database/interface/interaction.py513 if interaction is failed, insert error message this message will be displayed in the interaction list STRING
HIGHXAgentServer/application/cruds/interaction.py34 get interaction Args: db: db interaction_id: interaction id Returns: STRING
HIGHXAgentServer/application/cruds/interaction.py101 get parameter Args: db: db interaction_id: interaction id Returns: STRING
HIGHXAgentServer/application/cruds/interaction.py120 get init parameter Args: db: db interaction_id: interaction id Returns:STRING
HIGHXAgentServer/application/cruds/interaction.py145 get interaction by user id Args: db: db user_id: user id page_size:STRING
HIGHXAgentServer/application/cruds/interaction.py165 interaction is exist Args: db: db interaction_id: interaction id ReturnSTRING
HIGHXAgentServer/application/cruds/interaction.py251 is running Args: db: db user_id: user id Returns: True if rSTRING
HIGHXAgentServer/application/cruds/interaction.py288 get shared interaction Args: db: db interaction_id: interaction id STRING
HIGHXAgentServer/application/cruds/interaction.py311 search many shared Args: db: db page_size: page size page_index: paSTRING
HIGHXAgentServer/application/cruds/interaction.py348 search many raws Args: db: db interaction_id: interaction id Returns: STRING
HIGHXAgentServer/application/cruds/interaction.py367 get raw Args: db: db interaction_id: interaction id node_id: node iSTRING
HIGHXAgentServer/application/cruds/interaction.py388 get next send Args: db: db interaction_id: interaction id Returns: STRING
HIGHXAgentServer/application/cruds/interaction.py471 insert error Args: db: db interaction_id: interaction id message: mSTRING
HIGHXAgent/config.py26 Access the class attribute. Args: key (str): Key to access the class attribute. RSTRING
HIGHXAgent/config.py129 Get the normalized model name for a given input model name. Args: model_name (str, optional): Input moSTRING
HIGHXAgent/vector_db.py153 The function to search the database for sentences similar to the query sentence. Args: query_sSTRING
HIGHXAgent/ai_functions/function_manager.py75 Executes a function by its name. Args: function_name (str): The name of the function to exSTRING
HIGHXAgent/ai_functions/request/obj_generator.py39Processes chat completion requests and retrieves responses. Args: kwargs: Request data parameters. STRING
HIGHXAgent/ai_functions/request/obj_generator.py136Validates arguments against the function schema. Args: function_schema (dict): Schema to validate tSTRING
HIGHXAgent/ai_functions/request/obj_generator.py177Validates and refines the function call response. Args: req_kwargs: Request data parameters. STRING
HIGHXAgent/ai_functions/request/openai.py35Handle operation of OpenAI chat completion. This function operates OpenAI chat completion with provided STRING
HIGHXAgent/ai_functions/request/openai.py115Handle operation of OpenAI v1.x.x chat completion. This function operates OpenAI v1.x.x chat completion with prSTRING
HIGHXAgent/agent/utils.py5 Parses the response and returns the command name and arguments. This function will raise the exception `json.dSTRING
HIGHXAgent/agent/tool_agent/agent.py40 This function generates a message list and a token list based on the input parameters using the `generSTRING
HIGHXAgent/workflow/task_handler.py197 Generates search plan and process it for the current task. Args: plan (Plan): The plan to STRING
HIGHXAgent/inner_loop_search_algorithms/ReACT.py85 Runs the chain search task. Args: config: Configuration for the search. agent:STRING
HIGHXAgent/inner_loop_search_algorithms/ReACT.py200 Run the chain search task. Args: config: Configuration for the search. agent: STRING
HIGHMarkdown_Docs/XAgent/function_handler.md123 Generates search plan and process it for the current task. Args: plan (Plan): The plan to be processedSTRING
Cross-File Repetition24 hits · 120 pts
SeverityFileLineSnippetContext
HIGHcommand.py0define a long task to run interaction args: parameter (interactionparameter): the parameter of interactionSTRING
HIGHXAgentServer/application/websockets/recorder.py0define a long task to run interaction args: parameter (interactionparameter): the parameter of interactionSTRING
HIGHXAgentServer/application/websockets/base.py0define a long task to run interaction args: parameter (interactionparameter): the parameter of interactionSTRING
HIGHtests/test_1106_model_openai.py0{"choices": [{"finish_reason": "stop", "index": 0, "message": {"content": "hello, world!"}}]}STRING
HIGHtests/test_model_alias.py0{"choices": [{"finish_reason": "stop", "index": 0, "message": {"content": "hello, world!"}}]}STRING
HIGHMarkdown_Docs/XAgent/ai_functions/request/openai.md0{"choices": [{"finish_reason": "stop", "index": 0, "message": {"content": "hello, world!"}}]}STRING
HIGHXAgentServer/application/websockets/replayer.py0main websocket server extends: websocketendpoint description: in this websocket, we will receive the args from user, andSTRING
HIGHXAgentServer/application/websockets/share.py0main websocket server extends: websocketendpoint description: in this websocket, we will receive the args from user, andSTRING
HIGHXAgentServer/application/websockets/base.py0main websocket server extends: websocketendpoint description: in this websocket, we will receive the args from user, andSTRING
HIGHXAgentServer/application/websockets/replayer.py0connect to client args: websocket (websocket): a websocket object raises: xagentwebsocketconnecterror: if the user is ruSTRING
HIGHXAgentServer/application/websockets/share.py0connect to client args: websocket (websocket): a websocket object raises: xagentwebsocketconnecterror: if the user is ruSTRING
HIGHXAgentServer/application/websockets/base.py0connect to client args: websocket (websocket): a websocket object raises: xagentwebsocketconnecterror: if the user is ruSTRING
HIGHXAgentServer/application/websockets/replayer.py0when disconnect with client, it will run this function override this function to do something when disconnect with clienSTRING
HIGHXAgentServer/application/websockets/recorder.py0when disconnect with client, it will run this function override this function to do something when disconnect with clienSTRING
HIGHXAgentServer/application/websockets/share.py0when disconnect with client, it will run this function override this function to do something when disconnect with clienSTRING
HIGHXAgentServer/application/websockets/base.py0when disconnect with client, it will run this function override this function to do something when disconnect with clienSTRING
HIGHXAgentServer/application/websockets/replayer.py0when receive data from client, it will run this function args: websocket (websocket): a websocket object data (any): theSTRING
HIGHXAgentServer/application/websockets/recorder.py0when receive data from client, it will run this function args: websocket (websocket): a websocket object data (any): theSTRING
HIGHXAgentServer/application/websockets/share.py0when receive data from client, it will run this function args: websocket (websocket): a websocket object data (any): theSTRING
HIGHXAgentServer/application/websockets/base.py0when receive data from client, it will run this function args: websocket (websocket): a websocket object data (any): theSTRING
HIGHXAgent/agent/plan_refine_agent/prompt.py0the example that will be given to the dispatcher to generate the prompt returns: example_input: the user query or the taSTRING
HIGHXAgent/agent/tool_agent/prompt.py0the example that will be given to the dispatcher to generate the prompt returns: example_input: the user query or the taSTRING
HIGHXAgent/agent/reflect_agent/prompt.py0the example that will be given to the dispatcher to generate the prompt returns: example_input: the user query or the taSTRING
HIGHXAgent/agent/plan_generate_agent/prompt.py0the example that will be given to the dispatcher to generate the prompt returns: example_input: the user query or the taSTRING
Unused Imports111 hits · 111 pts
SeverityFileLineSnippetContext
LOWcommand.py1CODE
LOWcommand.py3CODE
LOWcommand.py5CODE
LOWcommand.py14CODE
LOWcommand_input.py1CODE
LOWcommand_input.py5CODE
LOWcommand_input.py8CODE
LOWToolServer/ToolServerManager/config.py2CODE
LOWToolServer/ToolServerManager/config.py5CODE
LOWToolServer/ToolServerManager/connections.py3CODE
LOWToolServer/ToolServerManager/connections.py5CODE
LOWToolServer/ToolServerManager/connections.py5CODE
LOWToolServer/ToolServerManager/connections.py5CODE
LOWToolServer/ToolServerManager/connections.py5CODE
LOWToolServer/ToolServerManager/connections.py9CODE
LOWToolServer/ToolServerManager/main.py11CODE
LOWToolServer/ToolServerNode/config.py4CODE
LOWToolServer/ToolServerNode/main.py2CODE
LOWToolServer/ToolServerNode/main.py9CODE
LOWToolServer/ToolServerNode/core/labels.py1CODE
LOWToolServer/ToolServerNode/core/register/register.py6CODE
LOWToolServer/ToolServerNode/core/register/register.py6CODE
LOWToolServer/ToolServerNode/core/register/register.py6CODE
LOWToolServer/ToolServerNode/core/register/__init__.py1CODE
LOWToolServer/ToolServerNode/core/register/__init__.py1CODE
LOWToolServer/ToolServerNode/core/register/__init__.py2CODE
LOWToolServer/ToolServerNode/core/envs/web.py3CODE
LOWToolServer/ToolServerNode/core/envs/web.py3CODE
LOWToolServer/ToolServerNode/core/envs/web.py3CODE
LOWToolServer/ToolServerNode/core/envs/pycoding.py3CODE
LOWToolServer/ToolServerNode/utils/__init__.py1CODE
LOWToolServer/ToolServerNode/utils/response.py2CODE
LOWToolServer/ToolServerNode/utils/response.py2CODE
LOW…olServer/ToolServerNode/extensions/tools/calculator.py1CODE
LOW…olServer/ToolServerNode/extensions/tools/calculator.py2CODE
LOW…olServer/ToolServerNode/extensions/tools/calculator.py4CODE
LOW…olServer/ToolServerNode/extensions/tools/calculator.py5CODE
LOWToolServer/ToolServerNode/extensions/envs/shell.py9CODE
LOWXAgentServer/database/interface/user.py4CODE
LOWXAgentServer/database/interface/user.py7CODE
LOWXAgentServer/application/routers/conv.py4CODE
LOWXAgentServer/application/websockets/replayer.py5CODE
LOWXAgentServer/application/websockets/replayer.py6CODE
LOWXAgentServer/application/websockets/replayer.py20CODE
LOWXAgentServer/application/websockets/share.py23CODE
LOWXAgent/running_recorder.py8CODE
LOWXAgent/recorder.py5CODE
LOWXAgent/summarization_system.py1CODE
LOWXAgent/core.py13CODE
LOWXAgent/core.py19CODE
LOWXAgent/vector_db.py4CODE
LOWXAgent/utils.py3CODE
LOWXAgent/utils.py3CODE
LOWXAgent/utils.py5CODE
LOWXAgent/logs.py7CODE
LOWXAgent/function_handler.py1CODE
LOWXAgent/function_handler.py2CODE
LOWXAgent/function_handler.py4CODE
LOWXAgent/function_handler.py5CODE
LOWXAgent/function_handler.py7CODE
51 more matches not shown…
Excessive Try-Catch Wrapping79 hits · 74 pts
SeverityFileLineSnippetContext
LOWToolServer/ToolServerNode/main.py170 except Exception as e:CODE
LOWToolServer/ToolServerNode/main.py270 except Exception as e:CODE
LOWToolServer/ToolServerNode/core/register/register.py112 except Exception as e:CODE
LOWToolServer/ToolServerNode/core/register/register.py145 except Exception as e:CODE
LOWToolServer/ToolServerNode/core/envs/web.py84 except Exception as e:CODE
LOWToolServer/ToolServerNode/utils/retriever.py116 except Exception as e:CODE
LOW…olServer/ToolServerNode/extensions/tools/calculator.py22 except Exception as e:CODE
LOW…olServer/ToolServerNode/extensions/tools/calculator.py27 except Exception as e:CODE
LOWXAgentServer/server.py105 except Exception as e:CODE
LOWXAgentServer/server.py117 except Exception as e:CODE
LOWXAgentServer/loggers/logs.py217 except Exception:CODE
LOWXAgentServer/loggers/logs.py226 except Exception:CODE
LOWXAgentServer/application/dependence.py39 except Exception as e:CODE
LOWXAgentServer/application/routers/user.py53 except Exception:CODE
LOWXAgentServer/application/routers/conv.py171 except Exception as e:CODE
LOWXAgentServer/application/websockets/replayer.py70 except Exception as exc:CODE
LOWXAgentServer/application/websockets/recorder.py79 except Exception as exc:CODE
LOWXAgentServer/application/websockets/common.py53 except Exception:CODE
LOWXAgentServer/application/websockets/common.py63 except Exception:CODE
LOWXAgentServer/application/websockets/share.py70 except Exception as exc:CODE
LOWXAgentServer/application/websockets/base.py102 except Exception as exc:CODE
LOWXAgentServer/application/websockets/base.py385 except Exception as e:CODE
LOWXAgentServer/application/cruds/user.py26 except Exception as e:CODE
LOWXAgentServer/application/cruds/user.py48 except Exception as e:CODE
LOWXAgentServer/application/cruds/user.py70 except Exception as e:CODE
LOWXAgentServer/application/cruds/user.py92 except Exception as e:CODE
LOWXAgentServer/application/cruds/user.py115 except Exception as e:CODE
LOWXAgentServer/application/cruds/user.py133 except Exception as e:CODE
LOWXAgentServer/application/cruds/user.py151 except Exception as e:CODE
LOWXAgentServer/application/cruds/interaction.py29 except Exception as e:CODE
LOWXAgentServer/application/cruds/interaction.py47 except Exception as e:CODE
LOWXAgentServer/application/cruds/interaction.py63 except Exception as e:CODE
LOWXAgentServer/application/cruds/interaction.py79 except Exception as e:CODE
LOWXAgentServer/application/cruds/interaction.py96 except Exception as e:CODE
LOWXAgentServer/application/cruds/interaction.py114 except Exception as e:CODE
LOWXAgentServer/application/cruds/interaction.py136 except Exception as e:CODE
LOWXAgentServer/application/cruds/interaction.py178 except Exception as e:CODE
LOWXAgentServer/application/cruds/interaction.py194 except Exception as e:CODE
LOWXAgentServer/application/cruds/interaction.py223 except Exception as e:CODE
LOWXAgentServer/application/cruds/interaction.py246 except Exception as e:CODE
LOWXAgentServer/application/cruds/interaction.py264 except Exception as e:CODE
LOWXAgentServer/application/cruds/interaction.py281 except Exception as e:CODE
LOWXAgentServer/application/cruds/interaction.py303 except Exception as e:CODE
LOWXAgentServer/application/cruds/interaction.py327 except Exception as e:CODE
LOWXAgentServer/application/cruds/interaction.py343 except Exception as e:CODE
LOWXAgentServer/application/cruds/interaction.py362 except Exception as e:CODE
LOWXAgentServer/application/cruds/interaction.py383 except Exception as e:CODE
LOWXAgentServer/application/cruds/interaction.py401 except Exception as e:CODE
LOWXAgentServer/application/cruds/interaction.py419 except Exception as e:CODE
LOWXAgentServer/application/cruds/interaction.py437 except Exception as e:CODE
LOWXAgentServer/application/cruds/interaction.py462 except Exception as e:CODE
LOWXAgentServer/application/cruds/interaction.py508 except Exception as e:CODE
LOWXAgentServer/application/cruds/interaction.py524 except Exception as e:CODE
LOWXAgentServer/application/cruds/interaction.py542 except Exception as e:CODE
LOWXAgentServer/application/cruds/recorder.py28 except Exception as e:CODE
LOWXAgentServer/application/cruds/recorder.py48 except Exception as e:CODE
LOWXAgentServer/application/cruds/recorder.py65 except Exception as e:CODE
LOWXAgentServer/application/cruds/recorder.py90 except Exception as e:CODE
LOWXAgent/vector_db.py146 except Exception as e:CODE
LOWXAgent/vector_db.py183 except Exception as e:CODE
19 more matches not shown…
Hyper-Verbose Identifiers59 hits · 57 pts
SeverityFileLineSnippetContext
LOWrun.py41def execute_command_line_process(args: argparse.Namespace, quiet_mode: bool = False) -> None:CODE
LOWToolServer/ToolServerNode/main.py128 def generate_directory_structure(path):CODE
LOWToolServer/ToolServerNode/core/base.py69 def __get_defined_func_name__(cls) -> list[str]:CODE
LOWToolServer/ToolServerNode/core/envs/filesystem.py29 def _is_path_within_workspace(self,path:str)->bool:CODE
LOWToolServer/ToolServerNode/utils/import_helper.py3def import_all_modules_in_folder(file,name):CODE
LOWToolServer/ToolServerNode/extensions/envs/rapidapi.py34def convert_rapidapi_desc_to_code(rapidapi_desc:dict)->list[dict]:CODE
LOWtests/test_security_regressions.py12def _load_toolserver_path_security():CODE
LOWtests/test_security_regressions.py28def test_toolserver_upload_rejects_path_components(tmp_path):CODE
LOWtests/test_security_regressions.py40def test_workspace_file_cannot_escape_record_directory(tmp_path):CODE
LOWtests/test_security_regressions.py53def test_workspace_path_rejects_symlink_escape(tmp_path):CODE
LOWtests/test_security_regressions.py64def test_runtime_tool_registration_is_not_exposed():CODE
LOWtests/test_function_call_utils.py32def test_recovers_text_tool_call_as_subtask_handle():CODE
LOWtests/test_run.py25def test_execute_command_line_process_quiet_mode(mock_start_command_line, mock_argv):CODE
LOWtests/test_run.py35def test_execute_command_line_process_normal_mode(mock_start_command_line, mock_argv):CODE
LOWtests/test_http_utils.py4def test_toolserver_timeout_allows_slow_node_startup():CODE
LOWtests/test_file_utils.py4def test_write_binary_file_creates_destination_directory(tmp_path):CODE
LOWtests/test_serialization.py8def test_to_json_compatible_serializes_dates_recursively():CODE
LOWtests/test_serialization.py22def test_parse_serialized_value_preserves_predecoded_object():CODE
LOWtests/test_serialization.py28def test_parse_serialized_value_decodes_text():CODE
LOWXAgentServer/interaction.py81 def register_toolserver_interface(self, toolserver_interface: ToolServerInterface):CODE
LOWXAgentServer/database/interface/interaction.py103 def search_interaction_by_user_id(cls,CODE
LOWXAgentServer/database/interface/interaction.py242 def update_interaction_status(cls,CODE
LOWXAgentServer/database/interface/interaction.py273 def update_interaction_parameter(cls,CODE
LOWXAgentServer/application/main.py135async def validation_exception_handler(request: Request, exc: RequestValidationError):STRING
LOWXAgentServer/application/routers/conv.py285async def update_interaction_parameter(user_id: str = Depends(user_is_available),CODE
LOWXAgentServer/application/routers/conv.py314async def update_interaction_description(user_id: str = Depends(user_is_available),CODE
LOWXAgentServer/application/websockets/common.py68def handle_workspace_filelist(file_list):CODE
LOWXAgentServer/application/cruds/interaction.py140 def search_interaction_by_user_id(cls,CODE
LOWXAgentServer/application/cruds/interaction.py198 def update_interaction_status(cls,CODE
LOWXAgentServer/application/cruds/interaction.py227 def update_interaction_parameter(cls,CODE
LOWXAgentWeb/src/directives/click-outside.ts86export function setupClickOutsideDirective(app: App) {CODE
LOWXAgent/summarization_system.py29 def add_father_child_relation(cls, father, child):CODE
LOWXAgent/summarization_system.py137 def get_summarzation_message_all(cls, father_summarize_node: SummarizationNode, message_list: List[Message]) -> ListCODE
LOWXAgent/summarization_system.py155 def get_summarzation_message_recursive(cls, father_summarize_node: SummarizationNode, new_message: Message):STRING
LOWXAgent/core.py136 def register_toolserver_interface(self, param: XAgentParam):CODE
LOWXAgent/core.py149 def register_function_handler(self, config):CODE
LOWXAgent/core.py161 def register_working_memory_function(self):CODE
LOWXAgent/core.py171 def register_agent_dispatcher(self, param: XAgentParam):CODE
LOWXAgent/core.py182 def register_vector_db_interface(self):CODE
LOWXAgent/http_utils.py1def toolserver_request_timeout(config) -> tuple[float, float]:CODE
LOWXAgent/function_handler.py83 def change_subtask_handle_function_enum(self, function_name_list: List[str]):CODE
LOWXAgent/toolserver_interface.py263 def get_json_schema_for_tools(self, command_names):CODE
LOWXAgent/ai_functions/request/function_call_utils.py26def recover_function_call_from_content(content: str, functions: list[dict]):CODE
LOWXAgent/ai_functions/request/obj_generator.py81 def _get_chatcompletion_request_func(self, request_type:str):CODE
LOWXAgent/ai_functions/request/obj_generator.py135 def load_args_with_schema_validation(self,function_schema:dict,args:str,messages:list=[],*,return_response=False,resCODE
LOWXAgent/agent/plan_refine_agent/prompt.py72def get_examples_for_dispatcher():STRING
LOWXAgent/agent/tool_agent/agent.py75 def change_tool_call_description(message:dict,reverse:bool=False):CODE
LOWXAgent/agent/tool_agent/prompt.py85def get_examples_for_dispatcher():STRING
LOWXAgent/agent/reflect_agent/prompt.py32def get_examples_for_dispatcher():CODE
LOWXAgent/agent/dispatcher_agent/agent.py111 def extract_prompts_from_response(self, message):CODE
LOWXAgent/agent/plan_generate_agent/prompt.py44def get_examples_for_dispatcher():CODE
LOWXAgent/workflow/working_memory.py27 def get_working_memory_function(cls):CODE
LOWXAgent/workflow/plan_exec.py19def plan_function_output_parser(function_output_item: dict) -> Plan:CODE
LOWXAgent/workflow/plan_exec.py187 def plan_iterate_based_on_memory_system(self):CODE
LOWXAgentGen/xgen/parser/function_parser.py49 def create_function_call_model(cls):CODE
LOWXAgentGen/xgen/parser/function_parser.py270 def create_all_functions_model(self,extra_arguments:Dict[str,Any]=None,functions:list=None,function_call:Dict[stCODE
LOWMarkdown_Docs/XAgent/utils.md233def plan_function_output_parser(function_output_item: dict) -> Plan:CODE
LOWMarkdown_Docs/XAgent/agent/base_agent.md242 def change_tool_call_description(message:dict,reverse:bool=False):CODE
LOWMarkdown_Docs/XAgentGen/xgen/parser/function_parser.md103def create_function_call_model(cls):CODE
Self-Referential Comments13 hits · 39 pts
SeverityFileLineSnippetContext
MEDIUMcommand.py201 # Create a new raw data to recordCOMMENT
MEDIUMToolServer/ToolServerManager/connections.py19# Create an instance of AsyncIOMotorClient for asynchronous MongoDB operations.COMMENT
MEDIUMToolServer/ToolServerManager/connections.py28# Define a Docker client objectCOMMENT
MEDIUMXAgentServer/loggers/logs.py50 # Create a handler for console which simulate typingCOMMENT
MEDIUMXAgentServer/loggers/logs.py55 # Create a handler for console without typing simulationCOMMENT
MEDIUMXAgentServer/loggers/logs.py178 # Create a handler for JSON filesCOMMENT
MEDIUMXAgentServer/application/websockets/base.py248 # Create a new raw data to recordCOMMENT
MEDIUMXAgent/logs.py51 # Create a handler for console which simulate typingCOMMENT
MEDIUMXAgent/logs.py56 # Create a handler for console without typing simulationCOMMENT
MEDIUMXAgent/logs.py187 # Create a handler for JSON filesCOMMENT
MEDIUMXAgent/message_history.py310 # Create a copy of the new_events list to prevent modifying the original listCOMMENT
MEDIUMXAgent/global_vars.py2# Importing necessary modulesCOMMENT
MEDIUMXAgent/global_vars.py9# Creating the instances of the classesCOMMENT
Deep Nesting32 hits · 32 pts
SeverityFileLineSnippetContext
LOWcommand_input.py95CODE
LOWToolServer/ToolServerNode/core/register/wrapper.py85CODE
LOWToolServer/ToolServerNode/core/register/wrapper.py94CODE
LOWToolServer/ToolServerNode/core/register/register.py172CODE
LOWToolServer/ToolServerNode/core/envs/web.py96CODE
LOWToolServer/ToolServerNode/utils/retriever.py61CODE
LOWToolServer/ToolServerNode/utils/response.py38CODE
LOWXAgentServer/server.py31CODE
LOWXAgentServer/application/routers/conv.py114CODE
LOWXAgentServer/application/websockets/replayer.py52CODE
LOWXAgentServer/application/websockets/recorder.py58CODE
LOWXAgentServer/application/websockets/recorder.py282CODE
LOWXAgentServer/application/websockets/common.py24CODE
LOWXAgentServer/application/websockets/share.py52CODE
LOWXAgentServer/application/websockets/base.py81CODE
LOWXAgentServer/application/websockets/base.py344CODE
LOWXAgent/running_recorder.py338CODE
LOWXAgent/recorder.py321CODE
LOWXAgent/function_handler.py181CODE
LOWXAgent/message_history.py288CODE
LOWXAgent/toolserver_interface.py263CODE
LOWXAgent/toolserver_interface.py305CODE
LOWXAgent/ai_functions/request/openai.py34CODE
LOWXAgent/ai_functions/request/openai.py114CODE
LOWXAgent/agent/dispatcher.py112CODE
LOWXAgent/agent/base_agent.py77CODE
LOWXAgent/workflow/plan_exec.py208CODE
LOWXAgent/inner_loop_search_algorithms/ReACT.py199CODE
LOWXAgentGen/xgen/server/message_formater.py100CODE
LOWXAgentGen/xgen/parser/function_parser.py75CODE
LOWXAgentGen/xgen/parser/function_parser.py109CODE
LOWXAgentGen/xgen/parser/function_parser.py131CODE
Dead Code16 hits · 32 pts
SeverityFileLineSnippetContext
MEDIUMToolServer/ToolServerNode/utils/retriever.py94CODE
MEDIUMToolServer/ToolServerNode/utils/retriever.py95CODE
MEDIUMToolServer/ToolServerNode/utils/retriever.py96CODE
MEDIUMToolServer/ToolServerNode/utils/retriever.py98CODE
MEDIUMToolServer/ToolServerNode/utils/retriever.py99CODE
MEDIUMToolServer/ToolServerNode/utils/retriever.py101CODE
MEDIUMToolServer/ToolServerNode/utils/retriever.py121CODE
MEDIUMToolServer/ToolServerNode/utils/retriever.py122CODE
MEDIUMToolServer/ToolServerNode/utils/retriever.py123CODE
MEDIUMToolServer/ToolServerNode/utils/retriever.py124CODE
MEDIUMToolServer/ToolServerNode/utils/retriever.py130CODE
MEDIUMToolServer/ToolServerNode/utils/retriever.py131CODE
MEDIUMToolServer/ToolServerNode/utils/retriever.py143CODE
MEDIUMToolServer/ToolServerNode/utils/retriever.py144CODE
MEDIUMToolServer/ToolServerNode/utils/retriever.py146CODE
MEDIUMToolServer/ToolServerNode/utils/retriever.py147CODE
Over-Commented Block31 hits · 31 pts
SeverityFileLineSnippetContext
LOW…olServer/ToolServerNode/extensions/tools/calculator.py41 COMMENT
LOW…olServer/ToolServerNode/extensions/tools/calculator.py61# # Do further cleaning to retain only the input and result podsCOMMENT
LOWXAgentWeb/types/router-type.ts1import { RouteMeta, RouteRecordRaw } from 'vue-router'COMMENT
LOWXAgentWeb/src/composables/useSSE.ts1// var useSSE = function (url: string, options: any) {COMMENT
LOWXAgentWeb/src/composables/useSSE.ts21COMMENT
LOWXAgentWeb/src/composables/useSSE.ts41COMMENT
LOWXAgentWeb/src/composables/useSSE.ts61COMMENT
LOWXAgentWeb/src/composables/useSSE.ts81// var event = new CustomEvent('readystatechange')COMMENT
LOWXAgentWeb/src/composables/useSSE.ts101// returnCOMMENT
LOWXAgentWeb/src/composables/useSSE.ts121// this.chunk = ''COMMENT
LOWXAgentWeb/src/composables/useSSE.ts141// if (!chunk || chunk.length === 0) {COMMENT
LOWXAgentWeb/src/composables/useSSE.ts161// var value = line.substring(index + 1).trimLeft()COMMENT
LOWXAgentWeb/src/composables/useSSE.ts181// if (this.xhr.readyState === XMLHttpRequest.DONE) {COMMENT
LOWXAgentWeb/src/composables/useSSE.ts201// }COMMENT
LOWXAgentWeb/src/composables/useSensitive.ts1COMMENT
LOWXAgentWeb/src/composables/useSensitive.ts21// map.set(ch, nextMap)COMMENT
LOWXAgentWeb/src/composables/useSensitive.ts41// if (currentMap.get('isEnd') === true) {COMMENT
LOWXAgentWeb/src/utils/throttle.ts1// const throttle = (fn: Function, delay: number) => {COMMENT
LOW…entWeb/src/views/playground/components/Inferencing.vue161COMMENT
LOW…entWeb/src/views/playground/components/Inferencing.vue181 innerNumber: innerNumber.value,COMMENT
LOW…entWeb/src/views/playground/components/Inferencing.vue201COMMENT
LOW…gentWeb/src/views/playground/components/FileUpload.vue61// let allowList:any = [],allowTag = true,tipFileName = ``COMMENT
LOW…Web/src/views/playground/components/HistorySidebar.vue201// if (isShouldRefreshHistory.value) queryHistoryData()COMMENT
LOWXAgentWeb/src/views/playground/components/Setting.vue121 // // 0.6: {COMMENT
LOWXAgentWeb/src/views/login/login.vue161const changePhone = async () => {COMMENT
LOWXAgentWeb/src/views/login/login.vue241COMMENT
LOWXAgentWeb/src/views/login/component/ApplyForm.vue261 // content: attr(data-label);COMMENT
LOWXAgent/global_vars.py1COMMENT
LOWXAgent/agent/tool_agent/agent.py141 message (dict): Dictionary of message data containing content, function call and arguments.COMMENT
LOWXAgent/agent/dispatcher_agent/prompt.py1# SYSTEM_PROMPT = """Your task is to devise an appropriate role-based name (_GPT) and a clear prompt for an autonomous aCOMMENT
LOWMarkdown_Docs/XAgent/data_structure/node.md101print(json_data)COMMENT
AI Structural Patterns12 hits · 12 pts
SeverityFileLineSnippetContext
LOWcommand.py63CODE
LOWToolServer/ToolServerManager/main.py269CODE
LOWToolServer/ToolServerNode/main.py94CODE
LOWToolServer/ToolServerNode/main.py116CODE
LOWXAgentServer/models/user.py9CODE
LOWXAgentServer/models/interaction.py9CODE
LOWXAgent/toolserver_interface.py122CODE
LOWXAgent/toolserver_interface.py159CODE
LOWXAgent/ai_functions/request/xagent.py32CODE
LOWXAgent/workflow/reflection.py62CODE
LOWXAgentGen/xgen/server/message_formater.py38CODE
LOWXAgentGen/xgen/text/generate/regex.py20CODE
Slop Phrases3 hits · 9 pts
SeverityFileLineSnippetContext
MEDIUMcommand.py250 # and you can change the wait_secondsCOMMENT
MEDIUMXAgentServer/application/websockets/base.py302 # and you can change the wait_secondsCOMMENT
MEDIUMassets/config.yml8 # you can use any kwargs supported by openai.ChatCompletion hereCOMMENT
AI Slop Vocabulary3 hits · 7 pts
SeverityFileLineSnippetContext
MEDIUMXAgent/agent/plan_refine_agent/agent.py29 """ Parses information in order to refine the existing plan.STRING
MEDIUMXAgent/agent/dispatcher_agent/agent.py100 # TODO: Make it more robust. Here we assume only the first message is system promptCOMMENT
MEDIUMXAgent/workflow/plan_exec.py164 # TODO: not robust. dispatcher generated prompt may not contain these specified placeholders?COMMENT
Synthetic Comment Markers1 hit · 5 pts
SeverityFileLineSnippetContext
HIGHXAgentWeb/types/talk-type.ts26 isLatest?: boolean // Is this the latest message generated by AICODE
Cross-Language Confusion1 hit · 5 pts
SeverityFileLineSnippetContext
HIGHXAgentGen/xgen/parser/function_parser.py86 new_prop["type"] = "List[null]"CODE
Redundant / Tautological Comments2 hits · 3 pts
SeverityFileLineSnippetContext
LOWToolServer/ToolServerManager/node_checker.py20 # Check if each node exists in DockerCOMMENT
LOWToolServer/ToolServerManager/node_checker.py50 # Check if node is runningCOMMENT