AI Slop Code Risk Monitor

FoundationAgents/MetaGPT

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

🌟 The Multi-Agent Framework: First AI Software Company, Towards Natural Language Programming

22.0 Elevated pattern signal View on GitHub

Open-Source Code Quality, Security and Technical Debt Review

This report summarizes scanner evidence for FoundationAgents/MetaGPT, a Python project with 71,503 GitHub stars. SynthScan examined 107,447 lines of code across 1130 source files, recording 1334 pattern matches distributed across 25 syntactic categories. The legacy adjusted pattern signal is 22.0 (Elevated pattern signal); it is not an authorship estimate.

Use the findings to ask whether maintainers can explain intent, verify dependencies, simplify unnecessary scaffolding, and focus review effort. Risk Payload v1 adds ownership, supply-chain, over-engineering, and review-effort vectors when available. These are prompts for human verification, not probabilities, security findings, or measured maintenance costs.

22.0
Adjusted Signal
22.0
Raw Pattern Score
100%
Time Factor
2026-01-21
Last Push
71.5K
Stars
Python
Language
107.4K
Lines of Code
1.1K
Files
1.3K
Pattern Hits
2026-11-27
Scan Date
0.14
HC Hit Rate

Risk Review · Payload v1

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

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

Cognitive Ownership Risk 42.3/100 · MEDIUM

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

Hallucinated Dependency & Supply Chain Risk 30.3/100 · MEDIUM

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

Agent Over-Engineering Ratio 34.0/100 · MEDIUM

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

PR Review Velocity Impact 68.3/100 · HIGH

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

What These Metrics Mean

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

Pattern-Signal History

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

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

Severity Breakdown

Groups findings by configured severity weight. Severity is not a confidence estimate, security rating, or proof that a package is missing. Verify imports against the project's manifests and inspect each finding in its local design context.

CRITICAL 29HIGH 131MEDIUM 108LOW 1066

Directory Score Breakdown

This horizontal bar chart shows where configured pattern scores accumulate across directories. Treat the bars as locations to inspect, not as evidence of authorship or code quality. Use the file-level findings to decide whether a directory needs a focused ownership, dependency, complexity, or review check.

Pattern Findings

The scanner identified 1334 distinct pattern matches across 25 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a detector match to inspect in context. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.

Reading the findings table: The Severity column indicates the configured finding weight (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — legacy comment-context matches receive a ×1.5 score weight. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier under the legacy scoring model.

Hyper-Verbose Identifiers418 hits · 443 pts
SeverityFileLineSnippetContext
LOWtests/conftest.py54def pytest_runtest_makereport(item, call):CODE
LOWtests/metagpt/test_schema.py201 def test_add_tasks_to_existing_no_common_prefix(self):CODE
LOWtests/metagpt/test_schema.py217 def test_add_tasks_to_existing_with_common_prefix(self):CODE
LOWtests/metagpt/test_schema.py283 def test_reset_task_non_existing(self):CODE
LOWtests/metagpt/test_schema.py291 def test_replace_task_with_dependents(self):CODE
LOW⚡tests/metagpt/test_schema.py305 def test_replace_task_non_existing(self):CODE
LOW⚡tests/metagpt/test_schema.py315 def test_append_task_with_valid_dependencies(self):CODE
LOW⚡tests/metagpt/test_schema.py324 def test_append_task_with_invalid_dependencies(self):CODE
LOW⚡tests/metagpt/test_schema.py330 def test_append_task_without_dependencies(self):CODE
LOWtests/metagpt/test_schema.py341 def test_append_task_updates_current_task(self):CODE
LOWtests/metagpt/test_schema.py399def test_create_instruct_value(name, value):CODE
LOWtests/metagpt/test_schema.py443 def test_serialize_with_exclude(self, mock_write_json_file):CODE
LOWtests/metagpt/test_schema.py457 def test_get_serialization_path(self):CODE
LOWtests/metagpt/test_software_company.py33def test_software_company_with_run_tests():CODE
LOWtests/metagpt/test_incremental_dev.py50def test_simple_add_calculator():CODE
LOWtests/metagpt/test_incremental_dev.py56def test_number_guessing_game():CODE
LOWtests/metagpt/test_incremental_dev.py114def get_incremental_dev_result(idea, project_name, use_review=True):CODE
LOWtests/metagpt/test_subscription.py61async def test_subscription_run_error(loguru_caplog):CODE
LOWtests/metagpt/test_environment.py73async def test_publish_and_process_message(env: Environment):CODE
LOWtests/metagpt/learn/test_text_to_image.py36async def test_openai_text_to_image(mocker):CODE
LOWtests/metagpt/learn/test_text_to_speech.py20async def test_azure_text_to_speech(mocker):CODE
LOWtests/metagpt/learn/test_text_to_speech.py47async def test_iflytek_text_to_speech(mocker):CODE
LOWtests/metagpt/tools/test_tool_convert.py99def test_convert_code_to_tool_schema_class():CODE
LOW⚡tests/metagpt/tools/test_tool_convert.py128def test_convert_code_to_tool_schema_subclass():CODE
LOW⚡tests/metagpt/tools/test_tool_convert.py134def test_convert_code_to_tool_schema_include():CODE
LOW⚡tests/metagpt/tools/test_tool_convert.py140def test_convert_code_to_tool_schema_function():CODE
LOWtests/metagpt/tools/test_tool_convert.py151def test_convert_code_to_tool_schema_async_function():CODE
LOWtests/metagpt/tools/test_tool_convert.py198def test_convert_code_to_tool_schema_ast():STRING
LOWtests/metagpt/tools/test_prompt_writer.py22async def test_gpt_prompt_generator(llm_api):CODE
LOWtests/metagpt/tools/test_tool_recommend.py46def test_tr_init_default_tools_value():CODE
LOWtests/metagpt/tools/test_tool_recommend.py80async def test_get_recommended_tool_info(mock_plan, mock_bm25_tr):CODE
LOWtests/metagpt/tools/test_tool_recommend.py86async def test_tm_tr_recall_with_plan(mock_plan, mock_bm25_tr):CODE
LOWtests/metagpt/tools/libs/test_sd_engine.py43def test_sd_construct_payload():CODE
LOWtests/metagpt/tools/libs/test_gpt_v_generator.py18def mock_webpage_filename_with_styles_and_scripts(mocker):CODE
LOWtests/metagpt/tools/libs/test_gpt_v_generator.py28def mock_webpage_filename_with_style_and_script(mocker):CODE
LOWtests/metagpt/tools/libs/test_gpt_v_generator.py60async def test_save_webpages_with_styles_and_scripts(mock_webpage_filename_with_styles_and_scripts, image_path):CODE
LOWtests/metagpt/tools/libs/test_gpt_v_generator.py72async def test_save_webpages_with_style_and_script(mock_webpage_filename_with_style_and_script, image_path):CODE
LOWtests/metagpt/tools/libs/test_feature_engineering.py61def test_polynomial_expansion(mock_dataset):CODE
LOWtests/metagpt/tools/libs/test_feature_engineering.py92def test_kfold_target_mean_encoder(mock_dataset):CODE
LOWtests/metagpt/tools/libs/test_feature_engineering.py151def test_tree_based_selection(mock_dataset):CODE
LOWtests/metagpt/tools/libs/test_feature_engineering.py171def test_variance_based_selection(mock_dataset):CODE
LOWtests/metagpt/tools/libs/test_editor.py156def _generate_test_file_with_lines(temp_path, num_lines) -> str:STRING
LOWtests/metagpt/tools/libs/test_editor.py162def _generate_ruby_test_file_with_lines(temp_path, num_lines) -> str:STRING
LOWtests/metagpt/tools/libs/test_editor.py179def test_open_file_unexist_path():STRING
LOWtests/metagpt/tools/libs/test_editor.py205def test_open_file_with_indentation(temp_file_path):STRING
LOWtests/metagpt/tools/libs/test_editor.py239def test_open_file_long_with_lineno(temp_file_path):STRING
LOWtests/metagpt/tools/libs/test_editor.py318def test_goto_line_out_of_bound(temp_file_path):STRING
LOWtests/metagpt/tools/libs/test_editor.py436def test_print_window_internal(temp_file_path):STRING
LOWtests/metagpt/tools/libs/test_editor.py451def test_open_file_large_line_number(temp_file_path):STRING
LOWtests/metagpt/tools/libs/test_editor.py471def test_open_file_large_line_number_consecutive_diff_window(temp_file_path):STRING
LOWtests/metagpt/tools/libs/test_editor.py528def test_edit_file_by_replace(temp_py_file):STRING
LOWtests/metagpt/tools/libs/test_editor.py569def test_edit_file_by_replace_mismatch(temp_py_file):STRING
LOWtests/metagpt/tools/libs/test_editor.py639def test_search_dir_in_default_dir(tmp_path):STRING
LOWtests/metagpt/tools/libs/test_editor.py704def test_append_non_empty_file():STRING
LOWtests/metagpt/tools/libs/test_editor.py722def test_append_to_single_empty_line_file():STRING
LOWtests/metagpt/tools/libs/test_linter.py9def test_linter_initialization():CODE
LOWtests/metagpt/tools/libs/test_linter.py31def test_lint_with_python_file():CODE
LOWtests/metagpt/tools/libs/test_linter.py42def test_lint_with_unsupported_language():CODE
LOWtests/metagpt/tools/libs/test_web_scraping.py7async def test_view_page_element_to_scrape():CODE
LOWtests/metagpt/memory/test_role_zero_memory.py41 def test_should_use_longterm_memory_for_add(self, mocker, mock_memory: RoleZeroLongTermMemory):CODE
358 more matches not shown…
Hallucination Indicators29 hits · 298 pts
SeverityFileLineSnippetContext
CRITICAL…agpt/ext/werewolf/actions/test_experience_operation.py81 inserted = action.engine.retriever._index._vector_store._collection.get()CODE
CRITICAL…agpt/ext/werewolf/actions/test_experience_operation.py88 inserted = action.engine.retriever._index._vector_store._collection.get()CODE
CRITICAL⚡…agpt/ext/werewolf/actions/test_experience_operation.py128 all_experiences = action.engine.retriever._index._vector_store._collection.get()CODE
CRITICALmetagpt/memory/memory_storage.py77 self.faiss_engine.retriever._index.storage_context.persist(self.cache_dir)CODE
CRITICAL⚡metagpt/roles/engineer.py210 for i in list(self.repo.docs.code_plan_and_change.changed_files.keys())CODE
CRITICAL⚡metagpt/roles/engineer.py215 for i in list(self.repo.docs.code_summary.changed_files.keys())CODE
CRITICAL⚡metagpt/roles/engineer.py220 list(self.repo.resources.code_summary.changed_files.keys())CODE
CRITICAL⚡metagpt/roles/engineer.py222 + list(self.repo.resources.code_plan_and_change.changed_files.keys())CODE
CRITICALmetagpt/roles/engineer.py342 str(self.repo.docs.task.workdir / i) for i in list(self.repo.docs.task.changed_files.keys())CODE
CRITICALmetagpt/roles/engineer.py352 for i in list(self.repo.docs.system_design.changed_files.keys())CODE
CRITICALmetagpt/roles/engineer.py364 for i in list(self.repo.docs.code_plan_and_change.changed_files.keys())CODE
CRITICALmetagpt/actions/rebuild_sequence_view.py584 await self.context.repo.resources.data_api_design.save(filename=str(filename), content=content)CODE
CRITICALmetagpt/actions/design_api.py143 for i in list(self.repo.docs.system_design.changed_files.keys())STRING
CRITICAL⚡metagpt/actions/design_api.py164 for i in list(self.repo.docs.system_design.changed_files.keys())STRING
CRITICAL⚡metagpt/actions/design_api.py169 list(self.repo.docs.system_design.changed_files.keys())STRING
CRITICAL⚡metagpt/actions/design_api.py170 + list(self.repo.resources.data_api_design.changed_files.keys())STRING
CRITICAL⚡metagpt/actions/design_api.py171 + list(self.repo.resources.seq_flow.changed_files.keys())STRING
CRITICAL⚡metagpt/actions/import_repo.py133 await self.context.repo.resources.data_api_design.save(CODE
CRITICAL⚡metagpt/actions/import_repo.py139 class_view = await self.context.repo.resources.data_api_design.get(CODE
CRITICAL⚡metagpt/actions/import_repo.py142 sequence_view = await self.context.repo.resources.data_api_design.get(CODE
CRITICAL⚡metagpt/actions/import_repo.py151 await self.context.repo.docs.system_design.save(filename=self.rid + ".json", content=json.dumps(data))CODE
CRITICAL⚡metagpt/actions/write_prd.py175 str(self.repo.docs.prd.workdir / i) for i in list(self.repo.docs.prd.changed_files.keys())STRING
CRITICAL⚡metagpt/actions/write_prd.py183 list(self.repo.docs.prd.changed_files.keys())STRING
CRITICAL⚡metagpt/actions/write_prd.py184 + list(self.repo.resources.prd.changed_files.keys())STRING
CRITICAL⚡metagpt/actions/write_prd.py185 + list(self.repo.resources.competitive_analysis.changed_files.keys())STRING
CRITICALmetagpt/actions/project_management.py99 changed_tasks = [str(self.repo.docs.task.workdir / i) for i in list(self.repo.docs.task.changed_files.keys())]STRING
CRITICAL⚡metagpt/actions/project_management.py120 str(self.repo.docs.task.workdir / i) for i in list(self.repo.docs.task.changed_files.keys())STRING
CRITICAL⚡metagpt/actions/project_management.py127 + list(self.repo.docs.task.changed_files.keys())STRING
CRITICAL⚡metagpt/actions/project_management.py128 + list(self.repo.resources.api_spec_and_task.changed_files.keys())STRING
Excessive Try-Catch Wrapping179 hits · 194 pts
SeverityFileLineSnippetContext
MEDIUMsetup.py18 print(f"Error occurred: {e.output}")CODE
LOWtests/metagpt/test_incremental_dev.py164 except Exception as e:CODE
LOWtests/metagpt/test_incremental_dev.py192 except Exception as e:CODE
LOWtests/metagpt/serialize_deserialize/test_role.py100 except Exception:CODE
LOWtests/metagpt/roles/test_product_manager.py41 except Exception as e:CODE
LOWtests/metagpt/roles/di/run_swe_agent_for_benchmark.py96 except Exception as e:STRING
LOWtests/metagpt/roles/di/run_swe_agent_for_benchmark.py114 except Exception as e:STRING
LOWtests/metagpt/roles/di/run_swe_agent_for_benchmark.py145 except Exception as e:STRING
LOWtests/metagpt/roles/di/run_engineer2.py160 except Exception as e:CODE
LOWtests/metagpt/roles/di/run_product_manager.py82 except Exception as e:CODE
LOWtests/metagpt/utils/test_s3.py67 except Exception:CODE
MEDIUMtests/metagpt/actions/mock_markdown.py343 print('Error: Failed to retrieve search results.')CODE
MEDIUMtests/metagpt/actions/mock_markdown.py345 print(f'Error: {e}')CODE
MEDIUMtests/metagpt/actions/mock_markdown.py417 print(f'Error: {e}')STRING
LOWmetagpt/repo_parser.py652 except Exception as e:CODE
LOWmetagpt/repo_parser.py697 except Exception as e:CODE
LOWmetagpt/repo_parser.py916 except Exception as e:CODE
LOWmetagpt/document.py132 except Exception as e:CODE
LOWmetagpt/tools/tool_recommend.py155 except Exception:STRING
LOWmetagpt/tools/web_browser_engine_playwright.py72 except Exception as e:CODE
LOWmetagpt/tools/search_engine.py140 except Exception as e:CODE
LOWmetagpt/tools/tool_registry.py57 except Exception:CODE
LOWmetagpt/tools/tool_registry.py124 except Exception as e:CODE
MEDIUMmetagpt/tools/tool_registry.py121def make_schema(tool_source_object, include, path):CODE
LOWmetagpt/tools/web_browser_engine_selenium.py87 except Exception as e:CODE
LOWmetagpt/tools/azure_tts.py94 except Exception as e:CODE
LOWmetagpt/tools/openai_text_to_image.py30 except Exception as e:CODE
LOWmetagpt/tools/iflytek_tts.py137 except Exception as e:CODE
LOWmetagpt/tools/libs/editor.py666 except Exception as e:CODE
LOWmetagpt/tools/libs/index_repo.py155 except Exception as e: # 超过最大长度CODE
LOWmetagpt/tools/libs/index_repo.py404 except Exception as e:CODE
LOWmetagpt/tools/libs/software_development.py218 except Exception as e:CODE
LOWmetagpt/ext/stanford_town/memory/agent_memory.py255 except Exception as exp:CODE
LOWmetagpt/ext/stanford_town/memory/spatial_memory.py100 except Exception:CODE
LOWmetagpt/ext/stanford_town/reflect/reflect.py50 except Exception as exp:CODE
LOWmetagpt/ext/stanford_town/utils/utils.py60 except Exception as exp:CODE
LOW…tagpt/ext/stanford_town/actions/gen_hourly_schedule.py35 except Exception:CODE
LOWmetagpt/ext/stanford_town/actions/gen_action_details.py213 except Exception:CODE
LOWmetagpt/ext/stanford_town/actions/gen_action_details.py252 except Exception:CODE
LOWmetagpt/ext/stanford_town/actions/gen_action_details.py289 except Exception:CODE
LOWmetagpt/ext/stanford_town/actions/gen_action_details.py326 except Exception:CODE
LOWmetagpt/ext/stanford_town/actions/gen_action_details.py359 except Exception:CODE
LOWmetagpt/ext/stanford_town/actions/gen_iter_chat_utt.py19 except Exception:CODE
LOWmetagpt/ext/stanford_town/actions/summarize_conv.py17 except Exception:CODE
LOWmetagpt/ext/stanford_town/actions/st_action.py74 except Exception as exp:CODE
LOWmetagpt/ext/stanford_town/actions/st_action.py98 except Exception as exp:CODE
LOWmetagpt/ext/stanford_town/actions/st_action.py111 except Exception as exp:CODE
LOWmetagpt/ext/stanford_town/actions/run_reflect_action.py19 except Exception:CODE
LOWmetagpt/ext/stanford_town/actions/run_reflect_action.py28 except Exception as exp:CODE
LOWmetagpt/ext/stanford_town/actions/run_reflect_action.py57 except Exception:CODE
LOWmetagpt/ext/stanford_town/actions/run_reflect_action.py76 except Exception as exp:CODE
LOWmetagpt/ext/stanford_town/actions/run_reflect_action.py105 except Exception:CODE
LOWmetagpt/ext/stanford_town/actions/run_reflect_action.py116 except Exception as exp:CODE
LOWmetagpt/ext/stanford_town/actions/run_reflect_action.py146 except Exception:CODE
LOWmetagpt/ext/stanford_town/actions/run_reflect_action.py153 except Exception as exp:CODE
LOWmetagpt/ext/stanford_town/actions/run_reflect_action.py182 except Exception:CODE
LOWmetagpt/ext/stanford_town/actions/run_reflect_action.py189 except Exception as exp:CODE
LOWmetagpt/ext/stanford_town/actions/run_reflect_action.py218 except Exception:CODE
LOWmetagpt/ext/stanford_town/actions/run_reflect_action.py224 except Exception as exp:CODE
LOWmetagpt/ext/stanford_town/actions/run_reflect_action.py251 except Exception:CODE
119 more matches not shown…
Magic Placeholder Names29 hits · 178 pts
SeverityFileLineSnippetContext
HIGHREADME.md83 api_key: "YOUR_API_KEY"CODE
HIGH⚡config/config2.example.yaml4 api_key: "YOUR_API_KEY"CODE
HIGH⚡config/config2.example.yaml29 api_key: "YOUR_API_KEY"CODE
HIGH⚡config/config2.example.yaml36 api_key: "YOUR_API_KEY"CODE
HIGH⚡config/config2.example.yaml43 api_key: "YOUR_API_KEY"CODE
HIGH⚡config/config2.example.yaml50 api_key: "YOUR_API_KEY"CODE
HIGH⚡config/config2.example.yaml60 api_key: "YOUR_API_KEY"CODE
HIGH⚡config/config2.example.yaml104iflytek_api_key: "YOUR_API_KEY"CODE
HIGH⚡config/config2.example.yaml110 api_key: "YOUR_API_KEY"CODE
HIGH⚡config/config2.example.yaml117# api_key: "YOUR_API_KEY"COMMENT
HIGH⚡config/config2.example.yaml125# api_key: "YOUR_API_KEY"COMMENT
HIGHconfig/config2.yaml8 api_key: "YOUR_API_KEY"CODE
HIGHconfig/vault.example.yaml31 api_key: "YOUR_API_KEY"CODE
HIGHconfig/examples/anthropic-claude-3-5-sonnet.yaml4 api_key: 'YOUR_API_KEY'CODE
HIGH…s/llamaapi-llama-4-Maverick-17B-128E-Instruct-FP8.yaml5 api_key: "YOUR_API_KEY"CODE
HIGHconfig/examples/openai-gpt-4-turbo.yaml2 api_key: "YOUR_API_KEY"CODE
HIGH…mples/llamaapi-Llama-4-Scout-17B-16E-Instruct-FP8.yaml5 api_key: "YOUR_API_KEY"CODE
HIGHconfig/examples/openrouter-llama3-70b-instruct.yaml4 api_key: "YOUR_API_KEY"CODE
HIGHconfig/examples/llamaapi-Llama-3.3-70B-Instruct.yaml5 api_key: "YOUR_API_KEY"CODE
HIGHconfig/examples/google-gemini.yaml3 api_key: 'YOUR_API_KEY'CODE
HIGHconfig/examples/openai-gpt-3.5-turbo.yaml2 api_key: "YOUR_API_KEY"CODE
HIGHconfig/examples/llamaapi-Llama-3.3-8B-Instruct.yaml5 api_key: "YOUR_API_KEY"CODE
HIGHconfig/examples/groq-llama3-70b.yaml4 api_key: "YOUR_API_KEY"CODE
HIGHconfig/examples/aws-bedrock.yaml3 access_key: 'YOUR_API_KEY'CODE
HIGHtests/metagpt/learn/test_text_to_speech.py37 assert config.azure_tts_subscription_key and config.azure_tts_subscription_key != "YOUR_API_KEY"CODE
HIGHtests/metagpt/learn/test_text_to_speech.py62 assert not config.azure_tts_subscription_key or config.azure_tts_subscription_key == "YOUR_API_KEY"CODE
HIGHtests/metagpt/tools/test_azure_tts.py31 assert config.azure_tts_subscription_key and config.azure_tts_subscription_key != "YOUR_API_KEY"CODE
HIGHmetagpt/software_company.py134 api_key: "YOUR_API_KEY"CODE
HIGHmetagpt/configs/llm_config.py119 if v in ["", None, "YOUR_API_KEY"]:CODE
Docstring Block Structure32 hits · 160 pts
SeverityFileLineSnippetContext
HIGHtests/metagpt/utils/test_pycst.py29 """ This is an example module containing a function and a class definition. """ def add_numbers(a: int, b: int): STRING
HIGHtests/metagpt/utils/test_pycst.py75 #!/usr/bin/env python # -*- coding: utf-8 -*- """ This is an example module containing a function and a class definitioSTRING
HIGHmetagpt/tools/libs/shell.py13 Execute a command asynchronously and return its standard output and standard error. Args: command (UniSTRING
HIGHmetagpt/tools/libs/cr.py29Review a PR and save code review comments. Notes: If the user does not specify an output path, saveSTRING
HIGHmetagpt/tools/libs/editor.py400Internal method to handle inserting to a file. Args: lines: list[str]: The lines in the original fiSTRING
HIGHmetagpt/tools/libs/index_repo.py410Search for a query across multiple repositories. This asynchronous function searches for the specified query inSTRING
HIGHmetagpt/ext/sela/search/tree_search.py60 Create the initial state of the tree. Args: task (str): The task to be performed. start_task_iSTRING
HIGHmetagpt/roles/role.py499Taking specific action to handle one task in plan Args: current_task (Task): current task to take oSTRING
HIGHmetagpt/utils/di_graph_repository.py118 Loads a JSON-encoded string representing a graph structure and updates the internal repository (_repo) STRING
HIGHmetagpt/utils/file.py32Write the file content to the local specified path. Args: root_path: The root path of file, such asSTRING
HIGHmetagpt/utils/file.py55Partitioning read the file content from the local specified path. Args: file_path: The full file naSTRING
HIGHmetagpt/utils/common.py203Extracts and parses a specified type of structure (dictionary or list) from the given text. The text only contaiSTRING
HIGHmetagpt/utils/common.py1026 Convert a string to a Markdown code block. This function takes a string and wraps it in a Markdown code block.STRING
HIGHmetagpt/utils/common.py1055 Saves the provided JSON content as a Markdown file. This function takes a JSON string, converts it to MarkdownSTRING
HIGHmetagpt/utils/omniparse_client.py91 Parse document-type data (supports ".pdf", ".ppt", ".pptx", ".doc", ".docx"). Args: file_iSTRING
HIGHmetagpt/utils/omniparse_client.py111 Parse pdf document. Args: file_input: File path or file byte data. Raises: STRING
HIGHmetagpt/utils/omniparse_client.py132 Parse video-type data (supports ".mp4", ".mkv", ".avi", ".mov"). Args: file_input: File paSTRING
HIGHmetagpt/utils/omniparse_client.py150 Parse audio-type data (supports ".mp3", ".wav", ".aac"). Args: file_input: File path or fiSTRING
HIGHmetagpt/utils/omniparse_client.py169 Verify the file extension. Args: file_input: File path or file byte data. alloSTRING
HIGHmetagpt/utils/omniparse_client.py202 Get file information. Args: file_input: File path or file byte data. bytes_filSTRING
HIGHmetagpt/utils/text.py12Reduce the length of concatenated message segments to fit within the maximum token size. Args: msgs: A geneSTRING
HIGHmetagpt/utils/s3.py60Get the URL for a downloadable or preview file stored in the specified S3 bucket. Args: bucket: TheSTRING
HIGHmetagpt/utils/s3.py85Get the binary data of a file stored in the specified S3 bucket. Args: bucket: The name of the S3 sSTRING
HIGHmetagpt/utils/git_repository.py251 Pushes changes to the remote repository. Args: new_branch (str): The name of the new brancSTRING
HIGHmetagpt/rag/parsers/omniparse.py96 Load data from the input file_path. Args: file_path: File path or file byte data. STRING
HIGHmetagpt/rag/parsers/omniparse.py125 Load data from the input file_path. Args: file_path: File path or file byte data. STRING
HIGHmetagpt/actions/search_enhanced_qa.py115Answer a query by leveraging web search results. Args: query (str): The original user query. STRING
HIGHmetagpt/actions/rebuild_sequence_view.py446 Convert package name to the full path of the module. Args: root (Union[str, Path]): The roSTRING
HIGHmetagpt/actions/write_docstring.py58 def function_with_pep484_type_annotations(param1: int) -> bool: """Example function with PEP 484 type annotations. STRING
HIGHmetagpt/actions/invoice_ocr.py45Check the file type of the given filename. Args: file_path: The path of the file. Returns:STRING
HIGH…gpt/actions/requirement_analysis/framework/__init__.py26 Saves framework data to files based on input JSON data and optionally saves a TRD (technical requirements document)STRING
HIGH…pt/actions/requirement_analysis/requirement/pic2txt.py35 Given some pictures depicting user requirements alongside contextual description, write out the intact textual STRING
Unused Imports154 hits · 153 pts
SeverityFileLineSnippetContext
LOWtests/metagpt/tools/test_search_engine.py8CODE
LOWtests/metagpt/tools/libs/test_git.py3CODE
LOWtests/metagpt/utils/test_dependency_file.py9CODE
LOWmetagpt/repo_parser.py12CODE
LOWmetagpt/__init__.py7CODE
LOWmetagpt/context.py8CODE
LOWmetagpt/logs.py9CODE
LOWmetagpt/_compat.py20CODE
LOWmetagpt/schema.py16CODE
LOWmetagpt/learn/__init__.py9CODE
LOWmetagpt/learn/__init__.py10CODE
LOWmetagpt/learn/__init__.py11CODE
LOWmetagpt/tools/search_engine_ddg.py3CODE
LOWmetagpt/tools/tool_recommend.py1CODE
LOWmetagpt/tools/web_browser_engine_playwright.py4CODE
LOWmetagpt/tools/web_browser_engine.py3CODE
LOWmetagpt/tools/tool_registry.py8CODE
LOWmetagpt/tools/__init__.py11CODE
LOWmetagpt/tools/__init__.py12CODE
LOWmetagpt/tools/search_engine_googleapi.py3CODE
LOWmetagpt/tools/web_browser_engine_selenium.py4CODE
LOWmetagpt/tools/search_engine_bing.py3CODE
LOWmetagpt/tools/libs/feature_engineering.py7CODE
LOWmetagpt/tools/libs/git.py3CODE
LOWmetagpt/tools/libs/data_preprocess.py1CODE
LOWmetagpt/tools/libs/shell.py3CODE
LOWmetagpt/tools/libs/browser.py1CODE
LOWmetagpt/tools/libs/sd_engine.py5CODE
LOWmetagpt/tools/libs/software_development.py3CODE
LOWmetagpt/tools/libs/image_getter.py1CODE
LOWmetagpt/tools/swe_agent_commands/_split_string.py2CODE
LOWmetagpt/memory/role_zero_memory.py19CODE
LOWmetagpt/memory/__init__.py9CODE
LOWmetagpt/ext/sela/experimenter.py1CODE
LOWmetagpt/ext/werewolf/roles/__init__.py5CODE
LOWmetagpt/ext/werewolf/roles/__init__.py6CODE
LOWmetagpt/ext/werewolf/roles/__init__.py7CODE
LOWmetagpt/ext/werewolf/roles/__init__.py8CODE
LOWmetagpt/ext/werewolf/roles/__init__.py9CODE
LOWmetagpt/ext/werewolf/roles/__init__.py10CODE
LOWmetagpt/ext/werewolf/roles/__init__.py11CODE
LOWmetagpt/ext/werewolf/actions/__init__.py9CODE
LOWmetagpt/ext/werewolf/actions/__init__.py9CODE
LOWmetagpt/ext/werewolf/actions/__init__.py10CODE
LOWmetagpt/ext/werewolf/actions/__init__.py10CODE
LOWmetagpt/ext/werewolf/actions/__init__.py11CODE
LOWmetagpt/document_store/__init__.py9CODE
LOWmetagpt/provider/__init__.py9CODE
LOWmetagpt/provider/__init__.py10CODE
LOWmetagpt/provider/__init__.py11CODE
LOWmetagpt/provider/__init__.py12CODE
LOWmetagpt/provider/__init__.py13CODE
LOWmetagpt/provider/__init__.py14CODE
LOWmetagpt/provider/__init__.py15CODE
LOWmetagpt/provider/__init__.py16CODE
LOWmetagpt/provider/__init__.py17CODE
LOWmetagpt/provider/__init__.py18CODE
LOWmetagpt/provider/__init__.py19CODE
LOWmetagpt/provider/__init__.py20CODE
LOWmetagpt/provider/__init__.py21CODE
94 more matches not shown…
Cross-Language Confusion31 hits · 148 pts
SeverityFileLineSnippetContext
HIGHtests/metagpt/test_prompt.py44 emptyCells.push({ r, c });CODE
HIGHtests/metagpt/test_prompt.py97 while (row > 0 && this.board[row - 1][c] === 0) {CODE
HIGHtests/metagpt/test_prompt.py103 if (row > 0 && this.board[row - 1][c] === this.board[row][c]) {CODE
HIGHtests/metagpt/test_prompt.py231 while (row > 0 && this.board[row - 1][c] === 0) {CODE
HIGHtests/metagpt/test_prompt.py237 if (row > 0 && this.board[row - 1][c] === this.board[row][c]) {CODE
HIGHtests/metagpt/test_prompt.py252 while (row < 3 && this.board[row + 1][c] === 0) {CODE
HIGHtests/metagpt/test_prompt.py258 if (row < 3 && this.board[row + 1][c] === this.board[row][c]) {CODE
HIGHtests/metagpt/test_prompt.py273 while (col > 0 && this.board[r][col - 1] === 0) {CODE
HIGHtests/metagpt/test_prompt.py279 if (col > 0 && this.board[r][col - 1] === this.board[r][col]) {CODE
HIGHtests/metagpt/test_prompt.py294 while (col < 3 && this.board[r][col + 1] === 0) {CODE
HIGHtests/metagpt/test_prompt.py300 if (col < 3 && this.board[r][col + 1] === this.board[r][col]) {CODE
HIGHtests/metagpt/test_schema.py135 mq.push(Message(content="1"))CODE
HIGHtests/metagpt/test_schema.py136 mq.push(Message(content="2中文测试aaa"))CODE
HIGHtests/metagpt/tools/libs/test_git.py122 branch = await repo.push(STRING
HIGHtests/metagpt/roles/di/run_swe_agent_for_benchmark.py80 "git reset --hard && git clean -n -d && git clean -f -d",STRING
HIGHmetagpt/schema.py778 queue.push(msg)CODE
HIGHmetagpt/tools/libs/image_getter.py17 if (img && img.src) {{CODE
HIGHmetagpt/tools/libs/image_getter.py28 return null;CODE
HIGHmetagpt/provider/base_llm.py286 "content": null,STRING
HIGHmetagpt/roles/role.py452 self.rc.msg_buffer.push(message)CODE
HIGHmetagpt/utils/a11y_tree.py136 "(document.scrollingElement || document.body).scrollTop = (document.scrollingElement || document.body).scrolCODE
HIGHmetagpt/utils/a11y_tree.py140 "(document.scrollingElement || document.body).scrollTop = (document.scrollingElement || document.body).scrolCODE
HIGHmetagpt/actions/write_code_an_draft.py341 localStorage.setItem(\'bestScore\', score.toString());CODE
HIGHmetagpt/actions/write_code_an_draft.py377 emptyCells.push({ r, c });CODE
HIGHmetagpt/actions/write_code_an_draft.py450 emptyCells.push({ r, c });CODE
HIGHmetagpt/actions/write_code_an_draft.py515 merged.push(i);CODE
HIGHmetagpt/actions/write_code_an_draft.py520 tiles.push(0);CODE
HIGHmetagpt/prompts/di/engineer2.py5325.2. Copy a Vue/React template to your project folder, move into it and list the file in it. Use cmd "cp -r {{template_CODE
HIGHmetagpt/prompts/di/engineer2.py5625.5. After finish the project. use "pnpm install && pnpm run build" to build the project and then deploy the project toCODE
HIGHmetagpt/strategy/experience_retriever.py798 "cmd": "cp -r {{template_folder}}/* {{workspace}}/{{project_name}}/ && cd {{workspace}}/{{project_name}} && CODE
HIGHmetagpt/strategy/experience_retriever.py905 "cmd": "pnpm install && pnpm run build"CODE
Deep Nesting123 hits · 122 pts
SeverityFileLineSnippetContext
LOWtests/conftest.py62CODE
LOWtests/metagpt/test_reporter.py157CODE
LOWtests/metagpt/test_incremental_dev.py114CODE
LOW…/metagpt/ext/stanford_town/memory/test_agent_memory.py69CODE
LOWtests/metagpt/roles/test_researcher.py15CODE
LOWtests/data/code/python/1.py61CODE
LOWtests/data/demo_project/game.py20CODE
LOWtests/data/demo_project/game.py58CODE
LOWtests/data/demo_project/game.py67CODE
LOWtests/data/demo_project/game.py76CODE
LOWtests/data/demo_project/game.py85CODE
LOWmetagpt/repo_parser.py87CODE
LOWmetagpt/repo_parser.py386CODE
LOWmetagpt/repo_parser.py446CODE
LOWmetagpt/repo_parser.py536CODE
LOWmetagpt/repo_parser.py622CODE
LOWmetagpt/repo_parser.py746CODE
LOWmetagpt/subscription.py76CODE
LOWmetagpt/document.py29CODE
LOWmetagpt/tools/search_engine_serpapi.py80CODE
LOWmetagpt/tools/search_engine.py47CODE
LOWmetagpt/tools/search_engine_serper.py82CODE
LOWmetagpt/tools/tool_registry.py131CODE
LOWmetagpt/tools/tool_registry.py185CODE
LOWmetagpt/tools/ut_writer.py189CODE
LOWmetagpt/tools/libs/terminal.py147CODE
LOWmetagpt/tools/libs/data_preprocess.py221CODE
LOWmetagpt/tools/libs/editor.py509CODE
LOWmetagpt/tools/libs/editor.py998CODE
LOWmetagpt/tools/libs/linter.py167CODE
LOWmetagpt/ext/stanford_town/memory/retrieve.py58CODE
LOWmetagpt/ext/stanford_town/plan/st_plan.py25CODE
LOWmetagpt/ext/stanford_town/plan/st_plan.py435CODE
LOWmetagpt/ext/stanford_town/plan/st_plan.py554CODE
LOWmetagpt/ext/stanford_town/plan/st_plan.py566CODE
LOWmetagpt/ext/stanford_town/reflect/reflect.py170CODE
LOWmetagpt/ext/stanford_town/roles/st_role.py213CODE
LOWmetagpt/ext/stanford_town/roles/st_role.py393CODE
LOWmetagpt/ext/stanford_town/utils/utils.py20CODE
LOWmetagpt/ext/stanford_town/utils/utils.py89CODE
LOWmetagpt/ext/stanford_town/utils/utils.py90CODE
LOW…tagpt/ext/stanford_town/actions/gen_hourly_schedule.py111CODE
LOWmetagpt/ext/stanford_town/actions/task_decomp.py82CODE
LOWmetagpt/ext/stanford_town/actions/task_decomp.py83CODE
LOW…tagpt/ext/android_assistant/roles/android_assistant.py39CODE
LOW…tagpt/ext/android_assistant/roles/android_assistant.py101CODE
LOWmetagpt/ext/android_assistant/utils/utils.py49CODE
LOWmetagpt/ext/android_assistant/utils/utils.py111CODE
LOWmetagpt/ext/android_assistant/utils/utils.py219CODE
LOWmetagpt/ext/android_assistant/utils/utils.py289CODE
LOWmetagpt/ext/android_assistant/utils/utils.py310CODE
LOW…xt/android_assistant/actions/self_learn_and_reflect.py80CODE
LOW…xt/android_assistant/actions/self_learn_and_reflect.py145CODE
LOWmetagpt/ext/android_assistant/actions/parse_record.py38CODE
LOW…agpt/ext/android_assistant/actions/screenshot_parse.py94CODE
LOWmetagpt/ext/android_assistant/actions/manual_record.py44CODE
LOWmetagpt/ext/cr/actions/code_review.py95CODE
LOWmetagpt/ext/cr/actions/code_review.py132CODE
LOWmetagpt/ext/cr/actions/code_review.py176CODE
LOWmetagpt/ext/cr/actions/code_review.py209CODE
63 more matches not shown…
Empty Error Handlers22 hits · 110 pts
SeverityFileLineSnippetContext
HIGH…/metagpt/ext/stanford_town/memory/test_agent_memory.py55except:CODE
HIGHtests/metagpt/utils/test_s3.py67except Exception:CODE
HIGHmetagpt/tools/tool_registry.py57except Exception:CODE
HIGHmetagpt/ext/stanford_town/actions/decide_to_talk.py17except ValueError:CODE
HIGHmetagpt/ext/stanford_town/actions/gen_iter_chat_utt.py19except Exception:CODE
HIGHmetagpt/ext/stanford_town/actions/summarize_conv.py17except Exception:CODE
HIGH…tagpt/ext/stanford_town/actions/new_decomp_schedule.py31except Exception:CODE
HIGHmetagpt/ext/stanford_town/actions/agent_chat_sum_rel.py17except Exception:CODE
HIGHmetagpt/ext/cr/actions/code_review.py126except Exception:CODE
HIGHmetagpt/ext/aflow/benchmark/math.py49except:CODE
HIGHmetagpt/ext/aflow/benchmark/math.py54except:CODE
HIGHmetagpt/ext/aflow/benchmark/math.py92except:CODE
HIGHmetagpt/ext/aflow/benchmark/math.py98except:CODE
HIGHmetagpt/ext/aflow/benchmark/math.py82except:CODE
HIGHmetagpt/ext/aflow/benchmark/math.py73except:CODE
HIGHmetagpt/utils/a11y_tree.py240except KeyError:CODE
HIGHmetagpt/utils/common.py178except Exception:CODE
HIGHmetagpt/utils/common.py189except Exception:CODE
HIGHmetagpt/utils/common.py153except Exception:CODE
HIGHmetagpt/utils/human_interaction.py70except Exception:CODE
HIGHmetagpt/utils/custom_decoder.py160except IndexError:CODE
HIGHexamples/di/InfiAgent-DABench/DABench.py240except ValueError:CODE
Self-Referential Comments35 hits · 90 pts
SeverityFileLineSnippetContext
MEDIUMtests/metagpt/tools/libs/test_web_scraping.py8 # Define the test URL and parametersCOMMENT
MEDIUMtests/metagpt/utils/test_pycst.py36 """This function is used to add two numbers and return the result.STRING
MEDIUMtests/metagpt/utils/test_pycst.py48 """This class represents a person's information, including name and age.STRING
MEDIUMtests/metagpt/utils/test_pycst.py93 """This function is used to add two numbers and return the result.STRING
MEDIUMtests/metagpt/utils/test_pycst.py106 """This class represents a person's information, including name and age.STRING
MEDIUMtests/metagpt/utils/test_custom_decoder.py15 # Create a custom JSON decoderCOMMENT
MEDIUMtests/metagpt/utils/test_custom_decoder.py83 # Create a custom JSON decoderSTRING
MEDIUMtests/metagpt/utils/test_custom_decoder.py104 # Create a custom JSON decoderCOMMENT
MEDIUMtests/metagpt/actions/test_write_test.py46 # Create an instance of WriteTestSTRING
MEDIUMtests/data/code/python/1.py26# Create a gridspec for adding subplots of different sizesCOMMENT
MEDIUMtests/data/incremental_dev_project/mock.py441 # Define the range of numbers for each difficulty levelCOMMENT
MEDIUMmetagpt/tools/libs/email_login.py5# Define a dictionary mapping email domains to their IMAP server addressesCOMMENT
MEDIUMmetagpt/tools/libs/gpt_v_generator.py87 # Create a folder called webpages in the workspace directory to store HTML, CSS, and JavaScript filesCOMMENT
MEDIUMmetagpt/tools/libs/editor.py565 # Create a temporary fileCOMMENT
MEDIUMmetagpt/tools/swe_agent_commands/edit_linting.sh70 # Create a backup of the current fileCOMMENT
MEDIUM⚡metagpt/tools/swe_agent_commands/defaults.sh172 # Create the file an empty new lineCOMMENT
MEDIUMmetagpt/ext/aflow/scripts/operator.py121 # Create a new global namespaceCOMMENT
MEDIUMmetagpt/ext/aflow/scripts/optimizer.py131 # Create a loop until the generated graph meets the check conditionsCOMMENT
MEDIUMmetagpt/ext/aflow/data/download_data.py50# Define the datasets to be downloadedCOMMENT
MEDIUMmetagpt/ext/sela/runner/autogluon.py82 # Define the root path to appendCOMMENT
MEDIUMmetagpt/document_store/chromadb_store.py35 # This function is similar to add(), but it's for more generalized updatesCOMMENT
MEDIUMmetagpt/document_store/chromadb_store.py44 # This function is for adding individual documentsCOMMENT
MEDIUMmetagpt/document_store/lancedb_store.py46 # This function is similar to add(), but it's for more generalized updatesCOMMENT
MEDIUMmetagpt/document_store/lancedb_store.py62 # This function is for adding individual documentsCOMMENT
MEDIUMmetagpt/roles/teacher.py90 # Define the special characters that need to be replaced.COMMENT
MEDIUMmetagpt/utils/save_code.py26 # Create the folder path if it doesn't existCOMMENT
MEDIUMmetagpt/utils/read_document.py16 # Create an empty list to store paragraph contentsCOMMENT
MEDIUMmetagpt/actions/write_docstring.py157 """This class is used to write docstrings for code.STRING
MEDIUMmetagpt/prompts/di/swe_agent.py92##### Create a pull request (Optional): Merge the changes from the new branch into the master branch.COMMENT
MEDIUMexamples/di/automated_planning_of_tasks.py8 # Create an instance of TeamLeaderCOMMENT
MEDIUMexamples/di/data_analyst_write_code.py8 # Create an instance of DataAnalyst roleCOMMENT
MEDIUMexamples/di/InfiAgent-DABench/run_InfiAgent-DABench.py47 bench = DABench() # Create an instance of DABench to access its methods and dataCODE
MEDIUMexamples/di/InfiAgent-DABench/run_InfiAgent-DABench.py72 agent = DataInterpreter() # Create an instance of the DataInterpreter agentCODE
MEDIUMexamples/di/InfiAgent-DABench/DABench.py207 llm = LLM() # Create an instance of the LLMCODE
MEDIUMexamples/exp_pool/manager.py15 # Define the simple request and responseCOMMENT
AI Slop Vocabulary39 hits · 82 pts
SeverityFileLineSnippetContext
MEDIUM⚡tests/data/search_rsp_cache.json636 "httplib2-GET-https://customsearch.googleapis.com/customsearch/v1-{\"params\": {\"q\": \"metagpt\", \"num\": \"8\", CODE
MEDIUM⚡tests/data/search_rsp_cache.json636 "httplib2-GET-https://customsearch.googleapis.com/customsearch/v1-{\"params\": {\"q\": \"metagpt\", \"num\": \"8\", CODE
MEDIUM⚡tests/data/search_rsp_cache.json637 "httplib2-GET-https://customsearch.googleapis.com/customsearch/v1-{\"params\": {\"q\": \"metagpt\", \"num\": \"6\", CODE
MEDIUM⚡tests/data/search_rsp_cache.json637 "httplib2-GET-https://customsearch.googleapis.com/customsearch/v1-{\"params\": {\"q\": \"metagpt\", \"num\": \"6\", CODE
MEDIUM⚡tests/data/search_rsp_cache.json856 "curl-cffi-GET-https://links.duckduckgo.com/d.js-{\"params\": {\"bing_market\": \"wt-WT\", \"df\": null, \"ex\": \"-CODE
MEDIUM⚡tests/data/search_rsp_cache.json856 "curl-cffi-GET-https://links.duckduckgo.com/d.js-{\"params\": {\"bing_market\": \"wt-WT\", \"df\": null, \"ex\": \"-CODE
MEDIUM⚡tests/data/search_rsp_cache.json860 "curl-cffi-GET-https://links.duckduckgo.com/d.js-{\"params\": {\"bing_market\": \"wt-WT\", \"df\": null, \"ex\": \"-CODE
MEDIUM⚡tests/data/search_rsp_cache.json860 "curl-cffi-GET-https://links.duckduckgo.com/d.js-{\"params\": {\"bing_market\": \"wt-WT\", \"df\": null, \"ex\": \"-CODE
MEDIUM⚡tests/data/search_rsp_cache.json862 "curl-cffi-GET-https://links.duckduckgo.com/d.js-{\"params\": {\"bing_market\": \"wt-WT\", \"df\": null, \"ex\": \"-CODE
MEDIUM⚡tests/data/search_rsp_cache.json864 "curl-cffi-GET-https://links.duckduckgo.com/d.js-{\"params\": {\"bing_market\": \"wt-WT\", \"df\": null, \"ex\": \"-CODE
MEDIUM⚡tests/data/search_rsp_cache.json864 "curl-cffi-GET-https://links.duckduckgo.com/d.js-{\"params\": {\"bing_market\": \"wt-WT\", \"df\": null, \"ex\": \"-CODE
MEDIUM⚡tests/data/search_rsp_cache.json864 "curl-cffi-GET-https://links.duckduckgo.com/d.js-{\"params\": {\"bing_market\": \"wt-WT\", \"df\": null, \"ex\": \"-CODE
MEDIUM⚡tests/data/search_rsp_cache.json864 "curl-cffi-GET-https://links.duckduckgo.com/d.js-{\"params\": {\"bing_market\": \"wt-WT\", \"df\": null, \"ex\": \"-CODE
MEDIUM⚡tests/data/search_rsp_cache.json864 "curl-cffi-GET-https://links.duckduckgo.com/d.js-{\"params\": {\"bing_market\": \"wt-WT\", \"df\": null, \"ex\": \"-CODE
MEDIUM⚡tests/data/search_rsp_cache.json866 "curl-cffi-GET-https://links.duckduckgo.com/d.js-{\"params\": {\"bing_market\": \"wt-WT\", \"df\": null, \"ex\": \"-CODE
MEDIUM⚡tests/data/search_rsp_cache.json866 "curl-cffi-GET-https://links.duckduckgo.com/d.js-{\"params\": {\"bing_market\": \"wt-WT\", \"df\": null, \"ex\": \"-CODE
MEDIUM⚡tests/data/search_rsp_cache.json866 "curl-cffi-GET-https://links.duckduckgo.com/d.js-{\"params\": {\"bing_market\": \"wt-WT\", \"df\": null, \"ex\": \"-CODE
MEDIUM⚡tests/data/search_rsp_cache.json866 "curl-cffi-GET-https://links.duckduckgo.com/d.js-{\"params\": {\"bing_market\": \"wt-WT\", \"df\": null, \"ex\": \"-CODE
MEDIUM⚡tests/data/search_rsp_cache.json869 "curl-cffi-GET-https://links.duckduckgo.com/d.js-{\"params\": {\"bing_market\": \"wt-WT\", \"df\": null, \"ex\": \"-CODE
MEDIUM⚡tests/data/search_rsp_cache.json869 "curl-cffi-GET-https://links.duckduckgo.com/d.js-{\"params\": {\"bing_market\": \"wt-WT\", \"df\": null, \"ex\": \"-CODE
MEDIUM⚡tests/data/search_rsp_cache.json870 "curl-cffi-GET-https://links.duckduckgo.com/d.js-{\"params\": {\"bing_market\": \"wt-WT\", \"df\": null, \"ex\": \"-CODE
MEDIUM⚡tests/data/search_rsp_cache.json870 "curl-cffi-GET-https://links.duckduckgo.com/d.js-{\"params\": {\"bing_market\": \"wt-WT\", \"df\": null, \"ex\": \"-CODE
MEDIUM⚡tests/data/search_rsp_cache.json870 "curl-cffi-GET-https://links.duckduckgo.com/d.js-{\"params\": {\"bing_market\": \"wt-WT\", \"df\": null, \"ex\": \"-CODE
MEDIUM⚡tests/data/search_rsp_cache.json872 "curl-cffi-GET-https://links.duckduckgo.com/d.js-{\"params\": {\"bing_market\": \"wt-WT\", \"df\": null, \"ex\": \"-CODE
MEDIUM⚡tests/data/search_rsp_cache.json872 "curl-cffi-GET-https://links.duckduckgo.com/d.js-{\"params\": {\"bing_market\": \"wt-WT\", \"df\": null, \"ex\": \"-CODE
MEDIUM⚡tests/data/search_rsp_cache.json878 "curl-cffi-GET-https://links.duckduckgo.com/d.js-{\"params\": {\"bing_market\": \"wt-WT\", \"df\": null, \"ex\": \"-CODE
MEDIUM⚡tests/data/search_rsp_cache.json878 "curl-cffi-GET-https://links.duckduckgo.com/d.js-{\"params\": {\"bing_market\": \"wt-WT\", \"df\": null, \"ex\": \"-CODE
MEDIUMmetagpt/ext/aflow/scripts/prompts/optimize_prompt.py40# You can also concatenate previously generated string results in the input to provide more comprehensive contextual infCOMMENT
LOW⚡metagpt/utils/human_interaction.py32 # required_type = str, just return TrueCOMMENT
MEDIUMmetagpt/environment/android/android_env.py12 """in order to use actual `reset`&`observe`, inherited order: AndroidExtEnv, Environment"""STRING
LOWmetagpt/strategy/planner.py113 pass # simply pass, not confirming the resultSTRING
MEDIUM⚡examples/di/requirements_prompt.py22WEB_PAGE_IMITATION_REQ_09 = "This is a URL of webpage: https://medium.com/ . Firstly, utilize Selenium and WebDriver forCODE
MEDIUM⚡examples/di/requirements_prompt.py23WEB_PAGE_IMITATION_REQ_10 = "This is a URL of webpage: https://pytorch.org/ . Firstly, utilize Selenium and WebDriver foCODE
MEDIUM⚡examples/di/requirements_prompt.py24WEB_PAGE_IMITATION_REQ_11 = "This is a URL of webpage: https://www.kaggle.com/ . Firstly, utilize Selenium and WebDriverCODE
MEDIUM⚡examples/di/requirements_prompt.py25WEB_PAGE_IMITATION_REQ_12 = "This is a URL of webpage: https://chat.openai.com/auth/login . Firstly, utilize Selenium anCODE
MEDIUM⚡examples/di/requirements_prompt.py26WEB_PAGE_IMITATION_REQ_13 = "This is a URL of webpage: https://deepmind.google/technologies/gemini/#introduction . FirstCODE
MEDIUM⚡examples/di/requirements_prompt.py26WEB_PAGE_IMITATION_REQ_13 = "This is a URL of webpage: https://deepmind.google/technologies/gemini/#introduction . FirstCODE
LOWexamples/data/exp_pool/engineer_exps.json6 "content": "\n# Current Plan\n{'goal': \"Please write a 1048 game using JavaScript and HTML code without using any fCODE
LOWexamples/data/exp_pool/engineer_exps.json19 "content": "\n# Current Plan\n{'goal': \"Please write a 1048 game using JavaScript and HTML code without using any fCODE
Cross-File Repetition14 hits · 70 pts
SeverityFileLineSnippetContext
HIGHtests/metagpt/roles/di/run_project_manager.py0{ "implementation approach": "we will use the pygame library to create the cli-based snake game. pygame is a set of pythSTRING
HIGHtests/metagpt/roles/di/run_architect.py0{ "implementation approach": "we will use the pygame library to create the cli-based snake game. pygame is a set of pythSTRING
HIGHtests/metagpt/roles/di/run_engineer2.py0{ "implementation approach": "we will use the pygame library to create the cli-based snake game. pygame is a set of pythSTRING
HIGHtests/metagpt/roles/di/run_data_analyst.py0从36kr创投平台https://pitchhub.36kr.com/financing-flash 所有初创企业融资的信息, **注意: 这是一个中文网站**; 下面是一个大致流程, 你会根据每一步的运行结果对当前计划中的任务做出适当调整STRING
HIGHtests/metagpt/environment/mgx_env/run_mgx_env.py0从36kr创投平台https://pitchhub.36kr.com/financing-flash 所有初创企业融资的信息, **注意: 这是一个中文网站**; 下面是一个大致流程, 你会根据每一步的运行结果对当前计划中的任务做出适当调整STRING
HIGHexamples/di/crawl_webpage.py0从36kr创投平台https://pitchhub.36kr.com/financing-flash 所有初创企业融资的信息, **注意: 这是一个中文网站**; 下面是一个大致流程, 你会根据每一步的运行结果对当前计划中的任务做出适当调整STRING
HIGHmetagpt/provider/base_llm.py0[{"role": "user", "content": msg}] to user: <msg> etc.STRING
HIGHmetagpt/provider/bedrock/base_provider.py0[{"role": "user", "content": msg}] to user: <msg> etc.STRING
HIGHmetagpt/provider/bedrock/bedrock_provider.py0[{"role": "user", "content": msg}] to user: <msg> etc.STRING
HIGHmetagpt/actions/requirement_analysis/__init__.py0@time : 2024/6/13 @author : mashenquan @file : write_project_framework.py @desc : the implementation of rfc243. https://STRING
HIGH…gpt/actions/requirement_analysis/framework/__init__.py0@time : 2024/6/13 @author : mashenquan @file : write_project_framework.py @desc : the implementation of rfc243. https://STRING
HIGHmetagpt/actions/requirement_analysis/trd/__init__.py0@time : 2024/6/13 @author : mashenquan @file : write_project_framework.py @desc : the implementation of rfc243. https://STRING
HIGHmetagpt/actions/requirement_analysis/evaluate_action.py0@time : 2024/6/13 @author : mashenquan @file : write_project_framework.py @desc : the implementation of rfc243. https://STRING
HIGHexamples/mgx_write_project_framework.py0@time : 2024/6/13 @author : mashenquan @file : write_project_framework.py @desc : the implementation of rfc243. https://STRING
Over-Commented Block66 hits · 66 pts
SeverityFileLineSnippetContext
LOWconfig/config2.example.yaml121# pricing_plan: "" # Optional. Use for Azure LLM when its model name is not the same as OpenAI'sCOMMENT
LOWconfig/vault.example.yaml1# Usage:COMMENT
LOWtests/metagpt/test_prompt.py341# if __name__ == "__main__":COMMENT
LOWtests/metagpt/tools/libs/__init__.py1#!/usr/bin/env pythonCOMMENT
LOWtests/metagpt/memory/__init__.py1#!/usr/bin/env pythonCOMMENT
LOWtests/metagpt/ext/__init__.py1#!/usr/bin/env pythonCOMMENT
LOWtests/metagpt/ext/stanford_town/__init__.py1#!/usr/bin/env pythonCOMMENT
LOWtests/metagpt/ext/stanford_town/memory/__init__.py1#!/usr/bin/env pythonCOMMENT
LOWtests/metagpt/ext/stanford_town/plan/__init__.py1#!/usr/bin/env pythonCOMMENT
LOWtests/metagpt/ext/stanford_town/roles/__init__.py1#!/usr/bin/env pythonCOMMENT
LOWtests/metagpt/ext/stanford_town/actions/__init__.py1#!/usr/bin/env pythonCOMMENT
LOWtests/metagpt/ext/android_assistant/__init__.py1#!/usr/bin/env pythonCOMMENT
LOWtests/metagpt/ext/werewolf/__init__.py1#!/usr/bin/env pythonCOMMENT
LOWtests/metagpt/ext/werewolf/actions/__init__.py1#!/usr/bin/env pythonCOMMENT
LOWtests/metagpt/serialize_deserialize/__init__.py1# -*- coding: utf-8 -*-COMMENT
LOWtests/metagpt/provider/zhipuai/__init__.py1#!/usr/bin/env pythonCOMMENT
LOWtests/metagpt/provider/postprocess/__init__.py1#!/usr/bin/env pythonCOMMENT
LOWtests/metagpt/environment/android_env/__init__.py1#!/usr/bin/env pythonCOMMENT
LOWtests/metagpt/environment/stanford_town_env/__init__.py1#!/usr/bin/env pythonCOMMENT
LOWtests/metagpt/environment/werewolf_env/__init__.py1#!/usr/bin/env pythonCOMMENT
LOWtests/metagpt/environment/minecraft_env/__init__.py1#!/usr/bin/env pythonCOMMENT
LOWtests/metagpt/environment/api/__init__.py1#!/usr/bin/env pythonCOMMENT
LOWtests/metagpt/strategy/examples/__init__.py1# -*- coding: utf-8 -*-COMMENT
LOWtests/metagpt/strategy/prompt_templates/__init__.py1# -*- coding: utf-8 -*-COMMENT
LOWmetagpt/__init__.py1#!/usr/bin/env pythonCOMMENT
LOWmetagpt/tools/libs/web_scraping.py41 return htmlCOMMENT
LOWmetagpt/tools/swe_agent_commands/edit_linting.sh1# @yamlCOMMENT
LOWmetagpt/tools/swe_agent_commands/defaults.sh21 local max_line=$(awk 'END {print NR}' $CURRENT_FILE)COMMENT
LOWmetagpt/tools/swe_agent_commands/search.sh1# @yamlCOMMENT
LOWmetagpt/tools/swe_agent_commands/search.sh141# @yamlCOMMENT
LOWmetagpt/tools/swe_agent_commands/search.sh201 doneCOMMENT
LOWmetagpt/ext/__init__.py1#!/usr/bin/env pythonCOMMENT
LOWmetagpt/ext/stanford_town/__init__.py1#!/usr/bin/env pythonCOMMENT
LOWmetagpt/ext/stanford_town/plan/__init__.py1#!/usr/bin/env pythonCOMMENT
LOWmetagpt/ext/stanford_town/plan/st_plan.py41 # <focused_event> takes the form of a dictionary like this:COMMENT
LOWmetagpt/ext/stanford_town/reflect/__init__.py1#!/usr/bin/env pythonCOMMENT
LOWmetagpt/ext/stanford_town/roles/__init__.py1#!/usr/bin/env pythonCOMMENT
LOWmetagpt/ext/stanford_town/utils/__init__.py1#!/usr/bin/env pythonCOMMENT
LOWmetagpt/ext/stanford_town/actions/__init__.py1#!/usr/bin/env pythonCOMMENT
LOWmetagpt/ext/stanford_town/prompts/__init__.py1#!/usr/bin/env pythonCOMMENT
LOWmetagpt/ext/android_assistant/__init__.py1#!/usr/bin/env pythonCOMMENT
LOWmetagpt/ext/android_assistant/roles/__init__.py1#!/usr/bin/env pythonCOMMENT
LOWmetagpt/ext/android_assistant/utils/__init__.py1#!/usr/bin/env pythonCOMMENT
LOWmetagpt/ext/android_assistant/actions/__init__.py1#!/usr/bin/env pythonCOMMENT
LOWmetagpt/ext/android_assistant/prompts/__init__.py1#!/usr/bin/env pythonCOMMENT
LOWmetagpt/ext/cr/__init__.py1#!/usr/bin/env pythonCOMMENT
LOWmetagpt/ext/werewolf/__init__.py1#!/usr/bin/env pythonCOMMENT
LOWmetagpt/provider/zhipuai/__init__.py1#!/usr/bin/env pythonCOMMENT
LOWmetagpt/provider/bedrock/utils.py61 "cohere.command-light-text-v14": 4096,COMMENT
LOWmetagpt/provider/bedrock/utils.py81 # Llama 3.1 InstructCOMMENT
LOWmetagpt/provider/postprocess/__init__.py1#!/usr/bin/env pythonCOMMENT
LOWmetagpt/environment/mgx/__init__.py1#!/usr/bin/env pythonCOMMENT
LOWmetagpt/environment/stanford_town/__init__.py1#!/usr/bin/env pythonCOMMENT
LOWmetagpt/environment/software/__init__.py1#!/usr/bin/env pythonCOMMENT
LOWmetagpt/environment/android/__init__.py1#!/usr/bin/env pythonCOMMENT
LOWmetagpt/environment/android/const.py1#!/usr/bin/env pythonCOMMENT
LOWmetagpt/environment/api/__init__.py1#!/usr/bin/env pythonCOMMENT
LOWmetagpt/environment/minecraft/__init__.py1#!/usr/bin/env pythonCOMMENT
LOW…craft/mineflayer/mineflayer-collectblock/tsconfig.json21 // "noEmit": true, /* Do not emit outputs. */COMMENT
LOW…craft/mineflayer/mineflayer-collectblock/tsconfig.json41 // "baseUrl": "./", /* Base directory to resolve non-absolute module names. */COMMENT
6 more matches not shown…
Redundant / Tautological Comments32 hits · 53 pts
SeverityFileLineSnippetContext
LOWtests/metagpt/test_incremental_dev.py116 # Check if the project path existsCOMMENT
LOWtests/metagpt/test_incremental_dev.py145 # Check if the .gitignore exists. If it doesn't exist, create .gitignore and add the commentCOMMENT
LOWtests/metagpt/test_incremental_dev.py148 # Check if the 'base' tag existsCOMMENT
LOWtests/metagpt/test_incremental_dev.py188 # Check if the 'git tag' command was successfulCOMMENT
LOWtests/metagpt/rag/retrievers/test_hybrid_retriever.py43 # Check if the results are as expectedCOMMENT
LOWtests/metagpt/rag/retrievers/test_hybrid_retriever.py47 # Check if the scores are correct (assuming you want the highest score)COMMENT
LOWtests/metagpt/environment/mgx_env/run_mgx_env.py169 # Set enable_human_input to True if you want to simulate sending messages in chatboxCOMMENT
LOWmetagpt/const.py21 # Check if a project root is specified in the environment variableCOMMENT
LOWmetagpt/tools/libs/editor.py780 # Check if the first_replaced_line_number and last_replaced_line_number correspond to the appropriate content.COMMENT
LOWmetagpt/tools/swe_agent_commands/edit_linting.sh73 # Read the file line by line into an arrayCOMMENT
LOWmetagpt/tools/swe_agent_commands/defaults.sh45 # Check if the second argument is providedCOMMENT
LOWmetagpt/tools/swe_agent_commands/defaults.sh47 # Check if the provided argument is a valid numberCOMMENT
LOW⚡metagpt/tools/swe_agent_commands/defaults.sh165 # Check if the file already existsCOMMENT
LOW⚡metagpt/tools/swe_agent_commands/defaults.sh182 # Check if the patch file exists and is non-emptyCOMMENT
LOW⚡metagpt/tools/swe_agent_commands/search.sh154 # Check if the first argument is providedCOMMENT
LOW⚡metagpt/tools/swe_agent_commands/search.sh159 # Check if the second argument is providedCOMMENT
LOW⚡metagpt/tools/swe_agent_commands/search.sh161 # Check if the provided argument is a valid fileCOMMENT
LOW⚡metagpt/tools/swe_agent_commands/search.sh170 # Check if a file is openCOMMENT
LOW⚡metagpt/tools/swe_agent_commands/search.sh175 local file="$CURRENT_FILE" # Set file to the current open fileCODE
LOW⚡metagpt/tools/swe_agent_commands/search.sh181 # Check if no matches were foundCOMMENT
LOWmetagpt/ext/stanford_town/utils/utils.py73 # Check if both start and end indices were foundCOMMENT
LOWmetagpt/ext/aflow/benchmark/utils.py55 # Check if the log file already existsCOMMENT
LOWmetagpt/ext/aflow/scripts/utils.py46 # Check if there are hardcoded test casesCOMMENT
LOWmetagpt/ext/aflow/scripts/optimizer.py157 # Check if the modification meets the conditionsCOMMENT
LOW…ext/aflow/scripts/optimizer_utils/convergence_utils.py36 # Read file and return dataCOMMENT
LOW…ext/aflow/scripts/optimizer_utils/convergence_utils.py100 # Check if Y change is within acceptable confidence interval, i.e., convergence conditionCOMMENT
LOWmetagpt/provider/general_api_base.py111 # Check if val is already a string to avoid re-encoding into ascii.COMMENT
LOWmetagpt/utils/common.py409 # Check if the value is iterable, but not a string (since strings are technically iterable)COMMENT
LOWmetagpt/environment/minecraft/minecraft_env.py124 # Check if Skill Manager's vectordb right usingCOMMENT
LOWexamples/di/InfiAgent-DABench/DABench.py176 # Check if the true value is numeric and compare with the predictionCOMMENT
LOWexamples/di/InfiAgent-DABench/DABench.py182 # Check if the true value is a string and compare with the predictionCOMMENT
LOWexamples/di/InfiAgent-DABench/DABench.py462 results.append({"id": id, "correctness": correct}) # Append the result to the listCODE
AI Structural Patterns47 hits · 46 pts
SeverityFileLineSnippetContext
LOWtests/metagpt/test_incremental_dev.py135CODE
LOWtests/metagpt/actions/test_research.py98CODE
LOWmetagpt/software_company.py14CODE
LOWmetagpt/software_company.py78CODE
LOWmetagpt/tools/libs/editor.py158CODE
LOWmetagpt/tools/libs/editor.py620CODE
LOWmetagpt/tools/libs/linter.py201CODE
LOWmetagpt/ext/stanford_town/memory/agent_memory.py367CODE
LOWmetagpt/ext/stanford_town/memory/agent_memory.py378CODE
LOWmetagpt/ext/stanford_town/memory/retrieve.py55CODE
LOWmetagpt/ext/stanford_town/reflect/reflect.py68CODE
LOWmetagpt/ext/stanford_town/actions/summarize_conv.py23CODE
LOWmetagpt/ext/aflow/benchmark/utils.py42CODE
LOWmetagpt/ext/aflow/scripts/operator.py69CODE
LOWmetagpt/ext/aflow/scripts/operator.py79CODE
LOWmetagpt/ext/aflow/scripts/operator.py89CODE
LOWmetagpt/ext/aflow/scripts/operator.py190CODE
LOWmetagpt/ext/aflow/scripts/operator.py297CODE
LOWmetagpt/ext/aflow/scripts/operator.py307CODE
LOWmetagpt/ext/aflow/scripts/operator.py317CODE
LOWmetagpt/document_store/milvus_store.py83CODE
LOWmetagpt/provider/postprocess/llm_output_postprocess.py20CODE
LOWmetagpt/roles/di/swe_agent.py36CODE
LOWmetagpt/roles/di/engineer2.py60CODE
LOWmetagpt/utils/repair_llm_raw_output.py140CODE
LOWmetagpt/utils/di_graph_repository.py96CODE
LOWmetagpt/utils/common.py64CODE
LOWmetagpt/utils/omniparse_client.py108CODE
LOWmetagpt/utils/omniparse_client.py129CODE
LOWmetagpt/utils/git_repository.py451CODE
LOWmetagpt/rag/benchmark/base.py36CODE
LOWmetagpt/rag/benchmark/base.py166CODE
LOWmetagpt/rag/engines/simple.py91CODE
LOWmetagpt/exp_pool/decorator.py29CODE
LOWmetagpt/actions/research.py245CODE
LOWmetagpt/actions/action_node.py544CODE
LOWmetagpt/actions/action_node.py551CODE
LOWmetagpt/actions/di/execute_nb_code.py290CODE
LOWmetagpt/actions/di/execute_nb_code.py298CODE
LOW…gpt/environment/stanford_town/stanford_town_ext_env.py263CODE
LOWmetagpt/environment/android/android_ext_env.py101CODE
LOWmetagpt/environment/werewolf/werewolf_ext_env.py153CODE
LOWexamples/dalle_gpt4v_agent.py41CODE
LOWexamples/android_assistant/run_assistant.py21CODE
LOWexamples/rag/rag_bm.py175CODE
LOWexamples/werewolf_game/start_game.py11CODE
LOWexamples/werewolf_game/start_game.py43CODE
Modern AI Meta-Vocabulary17 hits · 46 pts
SeverityFileLineSnippetContext
MEDIUM⚡config/config2.example.yaml12# RAG Embedding.COMMENT
MEDIUM⚡config/config2.example.yaml21 dimensions: # output dimension of embedding modelCODE
MEDIUM⚡tests/data/search_rsp_cache.json636 "httplib2-GET-https://customsearch.googleapis.com/customsearch/v1-{\"params\": {\"q\": \"metagpt\", \"num\": \"8\", CODE
MEDIUM⚡tests/data/search_rsp_cache.json636 "httplib2-GET-https://customsearch.googleapis.com/customsearch/v1-{\"params\": {\"q\": \"metagpt\", \"num\": \"8\", CODE
MEDIUM⚡tests/data/search_rsp_cache.json637 "httplib2-GET-https://customsearch.googleapis.com/customsearch/v1-{\"params\": {\"q\": \"metagpt\", \"num\": \"6\", CODE
MEDIUM⚡tests/data/search_rsp_cache.json637 "httplib2-GET-https://customsearch.googleapis.com/customsearch/v1-{\"params\": {\"q\": \"metagpt\", \"num\": \"6\", CODE
MEDIUM⚡tests/data/search_rsp_cache.json856 "curl-cffi-GET-https://links.duckduckgo.com/d.js-{\"params\": {\"bing_market\": \"wt-WT\", \"df\": null, \"ex\": \"-CODE
MEDIUM⚡tests/data/search_rsp_cache.json860 "curl-cffi-GET-https://links.duckduckgo.com/d.js-{\"params\": {\"bing_market\": \"wt-WT\", \"df\": null, \"ex\": \"-CODE
MEDIUM⚡tests/data/search_rsp_cache.json862 "curl-cffi-GET-https://links.duckduckgo.com/d.js-{\"params\": {\"bing_market\": \"wt-WT\", \"df\": null, \"ex\": \"-CODE
MEDIUM⚡tests/data/search_rsp_cache.json862 "curl-cffi-GET-https://links.duckduckgo.com/d.js-{\"params\": {\"bing_market\": \"wt-WT\", \"df\": null, \"ex\": \"-CODE
MEDIUM⚡tests/data/search_rsp_cache.json864 "curl-cffi-GET-https://links.duckduckgo.com/d.js-{\"params\": {\"bing_market\": \"wt-WT\", \"df\": null, \"ex\": \"-CODE
MEDIUM⚡tests/data/search_rsp_cache.json864 "curl-cffi-GET-https://links.duckduckgo.com/d.js-{\"params\": {\"bing_market\": \"wt-WT\", \"df\": null, \"ex\": \"-CODE
MEDIUM⚡tests/data/search_rsp_cache.json866 "curl-cffi-GET-https://links.duckduckgo.com/d.js-{\"params\": {\"bing_market\": \"wt-WT\", \"df\": null, \"ex\": \"-CODE
MEDIUM⚡tests/data/search_rsp_cache.json872 "curl-cffi-GET-https://links.duckduckgo.com/d.js-{\"params\": {\"bing_market\": \"wt-WT\", \"df\": null, \"ex\": \"-CODE
MEDIUMmetagpt/config2.py55 # RAG EmbeddingCOMMENT
MEDIUMmetagpt/tools/libs/web_scraping.py31 # Since RAG is an optional optimization, if it fails, the simplified HTML can be used as a fallback.COMMENT
MEDIUMmetagpt/configs/embedding_config.py47 dimensions: Optional[int] = None # output dimension of embedding modelCODE
Structural Annotation Overuse15 hits · 28 pts
SeverityFileLineSnippetContext
LOWdocs/install/docker_install.md6# Step 1: Download metagpt official image and prepare config2.yamlCOMMENT
LOWdocs/install/docker_install.md12# Step 2: Run metagpt demo with containerCOMMENT
LOW⚡docs/install/cli_install.md12# Step 1: Ensure that Python 3.9+ is installed on your system. You can check this by using:COMMENT
LOW⚡docs/install/cli_install.md18# Step 2: Clone the repository to your local machine for latest version, and install it.COMMENT
LOW⚡docs/install/cli_install.md23# Step 3: setup your LLM key in the config2.yaml fileCOMMENT
LOW⚡docs/install/cli_install.md28# Step 4: run metagpt cliCOMMENT
LOW⚡.devcontainer/postCreateCommand.sh1# Step 1: Ensure that NPM is installed on your system. Then install mermaid-js.COMMENT
LOW⚡.devcontainer/postCreateCommand.sh5# Step 2: Ensure that Python 3.9+ is installed on your system. You can check this by using:COMMENT
LOWmetagpt/ext/stanford_town/plan/st_plan.py38 # Step 1: Retrieved may have multiple events represented in it. The firstCOMMENT
LOWmetagpt/ext/stanford_town/plan/st_plan.py49 # Step 2: Once we choose an event, we need to determine whether theCOMMENT
LOWmetagpt/ext/stanford_town/plan/st_plan.py66 # Step 3: Chat-related state clean up.COMMENT
LOW⚡metagpt/ext/stanford_town/plan/st_plan.py438 # Step 1: Setting up the core variables for the function.COMMENT
LOW⚡metagpt/ext/stanford_town/plan/st_plan.py444 # Step 2: We need to create <main_act_dur> and <truncated_act_dur>.COMMENT
LOWmetagpt/roles/architect.py46 # NOTE: The following init setting will only be effective when self.use_fixed_sop is changed to TrueCOMMENT
LOWmetagpt/roles/project_manager.py38 # NOTE: The following init setting will only be effective when self.use_fixed_sop is changed to TrueCOMMENT
Modern Structural Boilerplate28 hits · 28 pts
SeverityFileLineSnippetContext
LOWmetagpt/learn/__init__.py13__all__ = ["text_to_image", "text_to_speech", "google_search"]CODE
LOWmetagpt/tools/__init__.py23__all__ = ["SearchEngineType", "WebBrowserEngineType", "TOOL_REGISTRY"]CODE
LOWmetagpt/tools/libs/editor.py269 def _set_workdir(self, path: str) -> None:CODE
LOWmetagpt/memory/__init__.py14__all__ = [CODE
LOWmetagpt/ext/werewolf/roles/__init__.py13__all__ = ["BasePlayer", "Guard", "Moderator", "Seer", "Villager", "Witch", "Werewolf"]CODE
LOWmetagpt/ext/werewolf/actions/__init__.py23__all__ = ["NighttimeWhispers", "Reflect", "AddNewExperiences", "RetrieveExperiences", "InstructSpeak"]CODE
LOWmetagpt/document_store/__init__.py11__all__ = ["FaissStore"]CODE
LOWmetagpt/provider/__init__.py24__all__ = [CODE
LOWmetagpt/roles/__init__.py22__all__ = [CODE
LOWmetagpt/utils/__init__.py18__all__ = [CODE
LOWmetagpt/rag/benchmark/__init__.py3__all__ = ["RAGBenchmark"]CODE
LOWmetagpt/rag/retrievers/__init__.py5__all__ = ["SimpleHybridRetriever"]CODE
LOWmetagpt/rag/parsers/__init__.py3__all__ = ["OmniParse"]CODE
LOWmetagpt/rag/engines/__init__.py6__all__ = ["SimpleEngine", "FLAREEngine"]CODE
LOWmetagpt/rag/factories/__init__.py9__all__ = ["get_retriever", "get_rankers", "get_rag_embedding", "get_index", "get_rag_llm"]CODE
LOWmetagpt/exp_pool/__init__.py6__all__ = ["get_exp_manager", "exp_cache"]CODE
LOWmetagpt/exp_pool/perfect_judges/__init__.py6__all__ = ["BasePerfectJudge", "SimplePerfectJudge"]CODE
LOWmetagpt/exp_pool/scorers/__init__.py6__all__ = ["BaseScorer", "SimpleScorer"]CODE
LOWmetagpt/exp_pool/serializers/__init__.py9__all__ = ["BaseSerializer", "SimpleSerializer", "ActionNodeSerializer", "RoleZeroSerializer"]CODE
LOWmetagpt/exp_pool/context_builders/__init__.py7__all__ = ["BaseContextBuilder", "SimpleContextBuilder", "RoleZeroContextBuilder"]CODE
LOWmetagpt/actions/__init__.py53__all__ = [CODE
LOWmetagpt/actions/requirement_analysis/__init__.py11__all__ = [EvaluationData, EvaluateAction]CODE
LOW…gpt/actions/requirement_analysis/framework/__init__.py86__all__ = [WriteFramework, EvaluateFramework]CODE
LOWmetagpt/actions/requirement_analysis/trd/__init__.py16__all__ = [CompressExternalInterfaces, DetectInteraction, WriteTRD, EvaluateTRD]CODE
LOWmetagpt/environment/__init__.py13__all__ = ["AndroidEnv", "WerewolfEnv", "StanfordTownEnv", "SoftwareEnv", "Environment"]CODE
LOWmetagpt/base/__init__.py5__all__ = [CODE
LOWmetagpt/strategy/base.py42 def update_value(self, value) -> None:CODE
LOWmetagpt/strategy/base.py46 def update_valid_status(self, status) -> None:CODE
Verbosity Indicators7 hits · 14 pts
SeverityFileLineSnippetContext
LOW⚡.devcontainer/postCreateCommand.sh1# Step 1: Ensure that NPM is installed on your system. Then install mermaid-js.COMMENT
LOW⚡.devcontainer/postCreateCommand.sh5# Step 2: Ensure that Python 3.9+ is installed on your system. You can check this by using:COMMENT
LOWmetagpt/ext/stanford_town/plan/st_plan.py38 # Step 1: Retrieved may have multiple events represented in it. The firstCOMMENT
LOWmetagpt/ext/stanford_town/plan/st_plan.py49 # Step 2: Once we choose an event, we need to determine whether theCOMMENT
LOWmetagpt/ext/stanford_town/plan/st_plan.py66 # Step 3: Chat-related state clean up.COMMENT
LOW⚡metagpt/ext/stanford_town/plan/st_plan.py438 # Step 1: Setting up the core variables for the function.COMMENT
LOW⚡metagpt/ext/stanford_town/plan/st_plan.py444 # Step 2: We need to create <main_act_dur> and <truncated_act_dur>.COMMENT
Synthetic Comment Markers2 hits · 12 pts
SeverityFileLineSnippetContext
HIGH⚡tests/data/search_rsp_cache.json860 "curl-cffi-GET-https://links.duckduckgo.com/d.js-{\"params\": {\"bing_market\": \"wt-WT\", \"df\": null, \"ex\": \"-CODE
HIGHdocs/FAQ-EN.md43 1. There hasn't been a quantitative analysis yet, but the success rate of code generated by gpt-4-turbo is significCODE
Slop Phrases8 hits · 12 pts
SeverityFileLineSnippetContext
LOWtests/metagpt/actions/mock_markdown.py212## Anything UNCLEAR: Provide as Plain text. Try to clarify it. For example, don't forget a main entry. don't forget to iSTRING
LOWtests/metagpt/actions/mock_markdown.py212## Anything UNCLEAR: Provide as Plain text. Try to clarify it. For example, don't forget a main entry. don't forget to iSTRING
MEDIUM⚡tests/data/search_rsp_cache.json636 "httplib2-GET-https://customsearch.googleapis.com/customsearch/v1-{\"params\": {\"q\": \"metagpt\", \"num\": \"8\", CODE
LOWmetagpt/tools/swe_agent_commands/edit_linting.sh6# docstring: Line numbers start from 1. Replaces lines <start_line> through <end_line> (inclusive) with the given text iCOMMENT
MEDIUMmetagpt/document_store/lancedb_store.py75 # LanceDB delete syntax uses SQL syntax, so you can use "in" or "="COMMENT
LOWmetagpt/prompts/di/role_zero.py124. Don't forget to append task first when all existing tasks are finished and new tasks are required.CODE
LOWmetagpt/prompts/di/write_analysis_code.py78Analyze your previous code and error in [context] step by step, provide me with improved method and code. Remember to foCODE
LOWmetagpt/base/base_serialization.py36 # it is a dict so make sure to remove the __module_class_nameCOMMENT
Overly Generic Function Names4 hits · 3 pts
SeverityFileLineSnippetContext
LOWtests/metagpt/tools/test_tool_convert.py167 def my_method(self, arg2: Union[list[str], str], arg3: pd.DataFrame, arg4: int = 1, arg5: Literal["a","b","c"] = "a"CODE
LOWtests/metagpt/tools/test_tool_convert.py186def my_function(arg1, arg2) -> dict:CODE
LOWtests/metagpt/tools/test_tool_convert.py223 "code": 'class MyClass:\n """This is a MyClass docstring."""\n def __init__(self, arg1):\n """TSTRING
LOWtests/metagpt/tools/test_tool_convert.py230 "code": 'def my_function(arg1, arg2) -> dict:\n """This is a function docstring."""\n return arg1 + arSTRING
AI Response Leakage1 hit · 2 pts
SeverityFileLineSnippetContext
HIGHexamples/di/run_flask.py10# I have created the conda environment '{env_name}', please use this environment to execute.STRING
Example Usage Blocks1 hit · 2 pts
SeverityFileLineSnippetContext
LOWconfig/vault.example.yaml1# Usage:COMMENT
Fake / Example Data1 hit · 1 pts
SeverityFileLineSnippetContext
LOWmetagpt/config2.py87 redis_key: str = "placeholder"CODE