🌟 The Multi-Agent Framework: First AI Software Company, Towards Natural Language Programming
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.
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.
Can maintainers explain intent, assumptions, and trade-offs? 847 finding(s).
Are imports declared and package/API names verified? 244 finding(s).
Are wrappers, guards, and repeated structures necessary? 708 finding(s).
Which changes need focused human review? 1334 finding(s).
Run additional scans to build a history of the legacy pattern signal. Score changes are not a measure of AI adoption or code quality.
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.
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.
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.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tests/conftest.py | 54 | def pytest_runtest_makereport(item, call): | CODE |
| LOW | tests/metagpt/test_schema.py | 201 | def test_add_tasks_to_existing_no_common_prefix(self): | CODE |
| LOW | tests/metagpt/test_schema.py | 217 | def test_add_tasks_to_existing_with_common_prefix(self): | CODE |
| LOW | tests/metagpt/test_schema.py | 283 | def test_reset_task_non_existing(self): | CODE |
| LOW | tests/metagpt/test_schema.py | 291 | def test_replace_task_with_dependents(self): | CODE |
| LOW⚡ | tests/metagpt/test_schema.py | 305 | def test_replace_task_non_existing(self): | CODE |
| LOW⚡ | tests/metagpt/test_schema.py | 315 | def test_append_task_with_valid_dependencies(self): | CODE |
| LOW⚡ | tests/metagpt/test_schema.py | 324 | def test_append_task_with_invalid_dependencies(self): | CODE |
| LOW⚡ | tests/metagpt/test_schema.py | 330 | def test_append_task_without_dependencies(self): | CODE |
| LOW | tests/metagpt/test_schema.py | 341 | def test_append_task_updates_current_task(self): | CODE |
| LOW | tests/metagpt/test_schema.py | 399 | def test_create_instruct_value(name, value): | CODE |
| LOW | tests/metagpt/test_schema.py | 443 | def test_serialize_with_exclude(self, mock_write_json_file): | CODE |
| LOW | tests/metagpt/test_schema.py | 457 | def test_get_serialization_path(self): | CODE |
| LOW | tests/metagpt/test_software_company.py | 33 | def test_software_company_with_run_tests(): | CODE |
| LOW | tests/metagpt/test_incremental_dev.py | 50 | def test_simple_add_calculator(): | CODE |
| LOW | tests/metagpt/test_incremental_dev.py | 56 | def test_number_guessing_game(): | CODE |
| LOW | tests/metagpt/test_incremental_dev.py | 114 | def get_incremental_dev_result(idea, project_name, use_review=True): | CODE |
| LOW | tests/metagpt/test_subscription.py | 61 | async def test_subscription_run_error(loguru_caplog): | CODE |
| LOW | tests/metagpt/test_environment.py | 73 | async def test_publish_and_process_message(env: Environment): | CODE |
| LOW | tests/metagpt/learn/test_text_to_image.py | 36 | async def test_openai_text_to_image(mocker): | CODE |
| LOW | tests/metagpt/learn/test_text_to_speech.py | 20 | async def test_azure_text_to_speech(mocker): | CODE |
| LOW | tests/metagpt/learn/test_text_to_speech.py | 47 | async def test_iflytek_text_to_speech(mocker): | CODE |
| LOW | tests/metagpt/tools/test_tool_convert.py | 99 | def test_convert_code_to_tool_schema_class(): | CODE |
| LOW⚡ | tests/metagpt/tools/test_tool_convert.py | 128 | def test_convert_code_to_tool_schema_subclass(): | CODE |
| LOW⚡ | tests/metagpt/tools/test_tool_convert.py | 134 | def test_convert_code_to_tool_schema_include(): | CODE |
| LOW⚡ | tests/metagpt/tools/test_tool_convert.py | 140 | def test_convert_code_to_tool_schema_function(): | CODE |
| LOW | tests/metagpt/tools/test_tool_convert.py | 151 | def test_convert_code_to_tool_schema_async_function(): | CODE |
| LOW | tests/metagpt/tools/test_tool_convert.py | 198 | def test_convert_code_to_tool_schema_ast(): | STRING |
| LOW | tests/metagpt/tools/test_prompt_writer.py | 22 | async def test_gpt_prompt_generator(llm_api): | CODE |
| LOW | tests/metagpt/tools/test_tool_recommend.py | 46 | def test_tr_init_default_tools_value(): | CODE |
| LOW | tests/metagpt/tools/test_tool_recommend.py | 80 | async def test_get_recommended_tool_info(mock_plan, mock_bm25_tr): | CODE |
| LOW | tests/metagpt/tools/test_tool_recommend.py | 86 | async def test_tm_tr_recall_with_plan(mock_plan, mock_bm25_tr): | CODE |
| LOW | tests/metagpt/tools/libs/test_sd_engine.py | 43 | def test_sd_construct_payload(): | CODE |
| LOW | tests/metagpt/tools/libs/test_gpt_v_generator.py | 18 | def mock_webpage_filename_with_styles_and_scripts(mocker): | CODE |
| LOW | tests/metagpt/tools/libs/test_gpt_v_generator.py | 28 | def mock_webpage_filename_with_style_and_script(mocker): | CODE |
| LOW | tests/metagpt/tools/libs/test_gpt_v_generator.py | 60 | async def test_save_webpages_with_styles_and_scripts(mock_webpage_filename_with_styles_and_scripts, image_path): | CODE |
| LOW | tests/metagpt/tools/libs/test_gpt_v_generator.py | 72 | async def test_save_webpages_with_style_and_script(mock_webpage_filename_with_style_and_script, image_path): | CODE |
| LOW | tests/metagpt/tools/libs/test_feature_engineering.py | 61 | def test_polynomial_expansion(mock_dataset): | CODE |
| LOW | tests/metagpt/tools/libs/test_feature_engineering.py | 92 | def test_kfold_target_mean_encoder(mock_dataset): | CODE |
| LOW | tests/metagpt/tools/libs/test_feature_engineering.py | 151 | def test_tree_based_selection(mock_dataset): | CODE |
| LOW | tests/metagpt/tools/libs/test_feature_engineering.py | 171 | def test_variance_based_selection(mock_dataset): | CODE |
| LOW | tests/metagpt/tools/libs/test_editor.py | 156 | def _generate_test_file_with_lines(temp_path, num_lines) -> str: | STRING |
| LOW | tests/metagpt/tools/libs/test_editor.py | 162 | def _generate_ruby_test_file_with_lines(temp_path, num_lines) -> str: | STRING |
| LOW | tests/metagpt/tools/libs/test_editor.py | 179 | def test_open_file_unexist_path(): | STRING |
| LOW | tests/metagpt/tools/libs/test_editor.py | 205 | def test_open_file_with_indentation(temp_file_path): | STRING |
| LOW | tests/metagpt/tools/libs/test_editor.py | 239 | def test_open_file_long_with_lineno(temp_file_path): | STRING |
| LOW | tests/metagpt/tools/libs/test_editor.py | 318 | def test_goto_line_out_of_bound(temp_file_path): | STRING |
| LOW | tests/metagpt/tools/libs/test_editor.py | 436 | def test_print_window_internal(temp_file_path): | STRING |
| LOW | tests/metagpt/tools/libs/test_editor.py | 451 | def test_open_file_large_line_number(temp_file_path): | STRING |
| LOW | tests/metagpt/tools/libs/test_editor.py | 471 | def test_open_file_large_line_number_consecutive_diff_window(temp_file_path): | STRING |
| LOW | tests/metagpt/tools/libs/test_editor.py | 528 | def test_edit_file_by_replace(temp_py_file): | STRING |
| LOW | tests/metagpt/tools/libs/test_editor.py | 569 | def test_edit_file_by_replace_mismatch(temp_py_file): | STRING |
| LOW | tests/metagpt/tools/libs/test_editor.py | 639 | def test_search_dir_in_default_dir(tmp_path): | STRING |
| LOW | tests/metagpt/tools/libs/test_editor.py | 704 | def test_append_non_empty_file(): | STRING |
| LOW | tests/metagpt/tools/libs/test_editor.py | 722 | def test_append_to_single_empty_line_file(): | STRING |
| LOW | tests/metagpt/tools/libs/test_linter.py | 9 | def test_linter_initialization(): | CODE |
| LOW | tests/metagpt/tools/libs/test_linter.py | 31 | def test_lint_with_python_file(): | CODE |
| LOW | tests/metagpt/tools/libs/test_linter.py | 42 | def test_lint_with_unsupported_language(): | CODE |
| LOW | tests/metagpt/tools/libs/test_web_scraping.py | 7 | async def test_view_page_element_to_scrape(): | CODE |
| LOW | tests/metagpt/memory/test_role_zero_memory.py | 41 | def test_should_use_longterm_memory_for_add(self, mocker, mock_memory: RoleZeroLongTermMemory): | CODE |
| 358 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| CRITICAL | …agpt/ext/werewolf/actions/test_experience_operation.py | 81 | inserted = action.engine.retriever._index._vector_store._collection.get() | CODE |
| CRITICAL | …agpt/ext/werewolf/actions/test_experience_operation.py | 88 | inserted = action.engine.retriever._index._vector_store._collection.get() | CODE |
| CRITICAL⚡ | …agpt/ext/werewolf/actions/test_experience_operation.py | 128 | all_experiences = action.engine.retriever._index._vector_store._collection.get() | CODE |
| CRITICAL | metagpt/memory/memory_storage.py | 77 | self.faiss_engine.retriever._index.storage_context.persist(self.cache_dir) | CODE |
| CRITICAL⚡ | metagpt/roles/engineer.py | 210 | for i in list(self.repo.docs.code_plan_and_change.changed_files.keys()) | CODE |
| CRITICAL⚡ | metagpt/roles/engineer.py | 215 | for i in list(self.repo.docs.code_summary.changed_files.keys()) | CODE |
| CRITICAL⚡ | metagpt/roles/engineer.py | 220 | list(self.repo.resources.code_summary.changed_files.keys()) | CODE |
| CRITICAL⚡ | metagpt/roles/engineer.py | 222 | + list(self.repo.resources.code_plan_and_change.changed_files.keys()) | CODE |
| CRITICAL | metagpt/roles/engineer.py | 342 | str(self.repo.docs.task.workdir / i) for i in list(self.repo.docs.task.changed_files.keys()) | CODE |
| CRITICAL | metagpt/roles/engineer.py | 352 | for i in list(self.repo.docs.system_design.changed_files.keys()) | CODE |
| CRITICAL | metagpt/roles/engineer.py | 364 | for i in list(self.repo.docs.code_plan_and_change.changed_files.keys()) | CODE |
| CRITICAL | metagpt/actions/rebuild_sequence_view.py | 584 | await self.context.repo.resources.data_api_design.save(filename=str(filename), content=content) | CODE |
| CRITICAL | metagpt/actions/design_api.py | 143 | for i in list(self.repo.docs.system_design.changed_files.keys()) | STRING |
| CRITICAL⚡ | metagpt/actions/design_api.py | 164 | for i in list(self.repo.docs.system_design.changed_files.keys()) | STRING |
| CRITICAL⚡ | metagpt/actions/design_api.py | 169 | list(self.repo.docs.system_design.changed_files.keys()) | STRING |
| CRITICAL⚡ | metagpt/actions/design_api.py | 170 | + list(self.repo.resources.data_api_design.changed_files.keys()) | STRING |
| CRITICAL⚡ | metagpt/actions/design_api.py | 171 | + list(self.repo.resources.seq_flow.changed_files.keys()) | STRING |
| CRITICAL⚡ | metagpt/actions/import_repo.py | 133 | await self.context.repo.resources.data_api_design.save( | CODE |
| CRITICAL⚡ | metagpt/actions/import_repo.py | 139 | class_view = await self.context.repo.resources.data_api_design.get( | CODE |
| CRITICAL⚡ | metagpt/actions/import_repo.py | 142 | sequence_view = await self.context.repo.resources.data_api_design.get( | CODE |
| CRITICAL⚡ | metagpt/actions/import_repo.py | 151 | await self.context.repo.docs.system_design.save(filename=self.rid + ".json", content=json.dumps(data)) | CODE |
| CRITICAL⚡ | metagpt/actions/write_prd.py | 175 | str(self.repo.docs.prd.workdir / i) for i in list(self.repo.docs.prd.changed_files.keys()) | STRING |
| CRITICAL⚡ | metagpt/actions/write_prd.py | 183 | list(self.repo.docs.prd.changed_files.keys()) | STRING |
| CRITICAL⚡ | metagpt/actions/write_prd.py | 184 | + list(self.repo.resources.prd.changed_files.keys()) | STRING |
| CRITICAL⚡ | metagpt/actions/write_prd.py | 185 | + list(self.repo.resources.competitive_analysis.changed_files.keys()) | STRING |
| CRITICAL | metagpt/actions/project_management.py | 99 | 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.py | 120 | str(self.repo.docs.task.workdir / i) for i in list(self.repo.docs.task.changed_files.keys()) | STRING |
| CRITICAL⚡ | metagpt/actions/project_management.py | 127 | + list(self.repo.docs.task.changed_files.keys()) | STRING |
| CRITICAL⚡ | metagpt/actions/project_management.py | 128 | + list(self.repo.resources.api_spec_and_task.changed_files.keys()) | STRING |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | setup.py | 18 | print(f"Error occurred: {e.output}") | CODE |
| LOW | tests/metagpt/test_incremental_dev.py | 164 | except Exception as e: | CODE |
| LOW | tests/metagpt/test_incremental_dev.py | 192 | except Exception as e: | CODE |
| LOW | tests/metagpt/serialize_deserialize/test_role.py | 100 | except Exception: | CODE |
| LOW | tests/metagpt/roles/test_product_manager.py | 41 | except Exception as e: | CODE |
| LOW | tests/metagpt/roles/di/run_swe_agent_for_benchmark.py | 96 | except Exception as e: | STRING |
| LOW | tests/metagpt/roles/di/run_swe_agent_for_benchmark.py | 114 | except Exception as e: | STRING |
| LOW | tests/metagpt/roles/di/run_swe_agent_for_benchmark.py | 145 | except Exception as e: | STRING |
| LOW | tests/metagpt/roles/di/run_engineer2.py | 160 | except Exception as e: | CODE |
| LOW | tests/metagpt/roles/di/run_product_manager.py | 82 | except Exception as e: | CODE |
| LOW | tests/metagpt/utils/test_s3.py | 67 | except Exception: | CODE |
| MEDIUM | tests/metagpt/actions/mock_markdown.py | 343 | print('Error: Failed to retrieve search results.') | CODE |
| MEDIUM | tests/metagpt/actions/mock_markdown.py | 345 | print(f'Error: {e}') | CODE |
| MEDIUM | tests/metagpt/actions/mock_markdown.py | 417 | print(f'Error: {e}') | STRING |
| LOW | metagpt/repo_parser.py | 652 | except Exception as e: | CODE |
| LOW | metagpt/repo_parser.py | 697 | except Exception as e: | CODE |
| LOW | metagpt/repo_parser.py | 916 | except Exception as e: | CODE |
| LOW | metagpt/document.py | 132 | except Exception as e: | CODE |
| LOW | metagpt/tools/tool_recommend.py | 155 | except Exception: | STRING |
| LOW | metagpt/tools/web_browser_engine_playwright.py | 72 | except Exception as e: | CODE |
| LOW | metagpt/tools/search_engine.py | 140 | except Exception as e: | CODE |
| LOW | metagpt/tools/tool_registry.py | 57 | except Exception: | CODE |
| LOW | metagpt/tools/tool_registry.py | 124 | except Exception as e: | CODE |
| MEDIUM | metagpt/tools/tool_registry.py | 121 | def make_schema(tool_source_object, include, path): | CODE |
| LOW | metagpt/tools/web_browser_engine_selenium.py | 87 | except Exception as e: | CODE |
| LOW | metagpt/tools/azure_tts.py | 94 | except Exception as e: | CODE |
| LOW | metagpt/tools/openai_text_to_image.py | 30 | except Exception as e: | CODE |
| LOW | metagpt/tools/iflytek_tts.py | 137 | except Exception as e: | CODE |
| LOW | metagpt/tools/libs/editor.py | 666 | except Exception as e: | CODE |
| LOW | metagpt/tools/libs/index_repo.py | 155 | except Exception as e: # 超过最大长度 | CODE |
| LOW | metagpt/tools/libs/index_repo.py | 404 | except Exception as e: | CODE |
| LOW | metagpt/tools/libs/software_development.py | 218 | except Exception as e: | CODE |
| LOW | metagpt/ext/stanford_town/memory/agent_memory.py | 255 | except Exception as exp: | CODE |
| LOW | metagpt/ext/stanford_town/memory/spatial_memory.py | 100 | except Exception: | CODE |
| LOW | metagpt/ext/stanford_town/reflect/reflect.py | 50 | except Exception as exp: | CODE |
| LOW | metagpt/ext/stanford_town/utils/utils.py | 60 | except Exception as exp: | CODE |
| LOW | …tagpt/ext/stanford_town/actions/gen_hourly_schedule.py | 35 | except Exception: | CODE |
| LOW | metagpt/ext/stanford_town/actions/gen_action_details.py | 213 | except Exception: | CODE |
| LOW | metagpt/ext/stanford_town/actions/gen_action_details.py | 252 | except Exception: | CODE |
| LOW | metagpt/ext/stanford_town/actions/gen_action_details.py | 289 | except Exception: | CODE |
| LOW | metagpt/ext/stanford_town/actions/gen_action_details.py | 326 | except Exception: | CODE |
| LOW | metagpt/ext/stanford_town/actions/gen_action_details.py | 359 | except Exception: | CODE |
| LOW | metagpt/ext/stanford_town/actions/gen_iter_chat_utt.py | 19 | except Exception: | CODE |
| LOW | metagpt/ext/stanford_town/actions/summarize_conv.py | 17 | except Exception: | CODE |
| LOW | metagpt/ext/stanford_town/actions/st_action.py | 74 | except Exception as exp: | CODE |
| LOW | metagpt/ext/stanford_town/actions/st_action.py | 98 | except Exception as exp: | CODE |
| LOW | metagpt/ext/stanford_town/actions/st_action.py | 111 | except Exception as exp: | CODE |
| LOW | metagpt/ext/stanford_town/actions/run_reflect_action.py | 19 | except Exception: | CODE |
| LOW | metagpt/ext/stanford_town/actions/run_reflect_action.py | 28 | except Exception as exp: | CODE |
| LOW | metagpt/ext/stanford_town/actions/run_reflect_action.py | 57 | except Exception: | CODE |
| LOW | metagpt/ext/stanford_town/actions/run_reflect_action.py | 76 | except Exception as exp: | CODE |
| LOW | metagpt/ext/stanford_town/actions/run_reflect_action.py | 105 | except Exception: | CODE |
| LOW | metagpt/ext/stanford_town/actions/run_reflect_action.py | 116 | except Exception as exp: | CODE |
| LOW | metagpt/ext/stanford_town/actions/run_reflect_action.py | 146 | except Exception: | CODE |
| LOW | metagpt/ext/stanford_town/actions/run_reflect_action.py | 153 | except Exception as exp: | CODE |
| LOW | metagpt/ext/stanford_town/actions/run_reflect_action.py | 182 | except Exception: | CODE |
| LOW | metagpt/ext/stanford_town/actions/run_reflect_action.py | 189 | except Exception as exp: | CODE |
| LOW | metagpt/ext/stanford_town/actions/run_reflect_action.py | 218 | except Exception: | CODE |
| LOW | metagpt/ext/stanford_town/actions/run_reflect_action.py | 224 | except Exception as exp: | CODE |
| LOW | metagpt/ext/stanford_town/actions/run_reflect_action.py | 251 | except Exception: | CODE |
| 119 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | README.md | 83 | api_key: "YOUR_API_KEY" | CODE |
| HIGH⚡ | config/config2.example.yaml | 4 | api_key: "YOUR_API_KEY" | CODE |
| HIGH⚡ | config/config2.example.yaml | 29 | api_key: "YOUR_API_KEY" | CODE |
| HIGH⚡ | config/config2.example.yaml | 36 | api_key: "YOUR_API_KEY" | CODE |
| HIGH⚡ | config/config2.example.yaml | 43 | api_key: "YOUR_API_KEY" | CODE |
| HIGH⚡ | config/config2.example.yaml | 50 | api_key: "YOUR_API_KEY" | CODE |
| HIGH⚡ | config/config2.example.yaml | 60 | api_key: "YOUR_API_KEY" | CODE |
| HIGH⚡ | config/config2.example.yaml | 104 | iflytek_api_key: "YOUR_API_KEY" | CODE |
| HIGH⚡ | config/config2.example.yaml | 110 | api_key: "YOUR_API_KEY" | CODE |
| HIGH⚡ | config/config2.example.yaml | 117 | # api_key: "YOUR_API_KEY" | COMMENT |
| HIGH⚡ | config/config2.example.yaml | 125 | # api_key: "YOUR_API_KEY" | COMMENT |
| HIGH | config/config2.yaml | 8 | api_key: "YOUR_API_KEY" | CODE |
| HIGH | config/vault.example.yaml | 31 | api_key: "YOUR_API_KEY" | CODE |
| HIGH | config/examples/anthropic-claude-3-5-sonnet.yaml | 4 | api_key: 'YOUR_API_KEY' | CODE |
| HIGH | …s/llamaapi-llama-4-Maverick-17B-128E-Instruct-FP8.yaml | 5 | api_key: "YOUR_API_KEY" | CODE |
| HIGH | config/examples/openai-gpt-4-turbo.yaml | 2 | api_key: "YOUR_API_KEY" | CODE |
| HIGH | …mples/llamaapi-Llama-4-Scout-17B-16E-Instruct-FP8.yaml | 5 | api_key: "YOUR_API_KEY" | CODE |
| HIGH | config/examples/openrouter-llama3-70b-instruct.yaml | 4 | api_key: "YOUR_API_KEY" | CODE |
| HIGH | config/examples/llamaapi-Llama-3.3-70B-Instruct.yaml | 5 | api_key: "YOUR_API_KEY" | CODE |
| HIGH | config/examples/google-gemini.yaml | 3 | api_key: 'YOUR_API_KEY' | CODE |
| HIGH | config/examples/openai-gpt-3.5-turbo.yaml | 2 | api_key: "YOUR_API_KEY" | CODE |
| HIGH | config/examples/llamaapi-Llama-3.3-8B-Instruct.yaml | 5 | api_key: "YOUR_API_KEY" | CODE |
| HIGH | config/examples/groq-llama3-70b.yaml | 4 | api_key: "YOUR_API_KEY" | CODE |
| HIGH | config/examples/aws-bedrock.yaml | 3 | access_key: 'YOUR_API_KEY' | CODE |
| HIGH | tests/metagpt/learn/test_text_to_speech.py | 37 | assert config.azure_tts_subscription_key and config.azure_tts_subscription_key != "YOUR_API_KEY" | CODE |
| HIGH | tests/metagpt/learn/test_text_to_speech.py | 62 | assert not config.azure_tts_subscription_key or config.azure_tts_subscription_key == "YOUR_API_KEY" | CODE |
| HIGH | tests/metagpt/tools/test_azure_tts.py | 31 | assert config.azure_tts_subscription_key and config.azure_tts_subscription_key != "YOUR_API_KEY" | CODE |
| HIGH | metagpt/software_company.py | 134 | api_key: "YOUR_API_KEY" | CODE |
| HIGH | metagpt/configs/llm_config.py | 119 | if v in ["", None, "YOUR_API_KEY"]: | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | tests/metagpt/utils/test_pycst.py | 29 | """ This is an example module containing a function and a class definition. """ def add_numbers(a: int, b: int): | STRING |
| HIGH | tests/metagpt/utils/test_pycst.py | 75 | #!/usr/bin/env python # -*- coding: utf-8 -*- """ This is an example module containing a function and a class definitio | STRING |
| HIGH | metagpt/tools/libs/shell.py | 13 | Execute a command asynchronously and return its standard output and standard error. Args: command (Uni | STRING |
| HIGH | metagpt/tools/libs/cr.py | 29 | Review a PR and save code review comments. Notes: If the user does not specify an output path, save | STRING |
| HIGH | metagpt/tools/libs/editor.py | 400 | Internal method to handle inserting to a file. Args: lines: list[str]: The lines in the original fi | STRING |
| HIGH | metagpt/tools/libs/index_repo.py | 410 | Search for a query across multiple repositories. This asynchronous function searches for the specified query in | STRING |
| HIGH | metagpt/ext/sela/search/tree_search.py | 60 | Create the initial state of the tree. Args: task (str): The task to be performed. start_task_i | STRING |
| HIGH | metagpt/roles/role.py | 499 | Taking specific action to handle one task in plan Args: current_task (Task): current task to take o | STRING |
| HIGH | metagpt/utils/di_graph_repository.py | 118 | Loads a JSON-encoded string representing a graph structure and updates the internal repository (_repo) | STRING |
| HIGH | metagpt/utils/file.py | 32 | Write the file content to the local specified path. Args: root_path: The root path of file, such as | STRING |
| HIGH | metagpt/utils/file.py | 55 | Partitioning read the file content from the local specified path. Args: file_path: The full file na | STRING |
| HIGH | metagpt/utils/common.py | 203 | Extracts and parses a specified type of structure (dictionary or list) from the given text. The text only contai | STRING |
| HIGH | metagpt/utils/common.py | 1026 | Convert a string to a Markdown code block. This function takes a string and wraps it in a Markdown code block. | STRING |
| HIGH | metagpt/utils/common.py | 1055 | Saves the provided JSON content as a Markdown file. This function takes a JSON string, converts it to Markdown | STRING |
| HIGH | metagpt/utils/omniparse_client.py | 91 | Parse document-type data (supports ".pdf", ".ppt", ".pptx", ".doc", ".docx"). Args: file_i | STRING |
| HIGH | metagpt/utils/omniparse_client.py | 111 | Parse pdf document. Args: file_input: File path or file byte data. Raises: | STRING |
| HIGH | metagpt/utils/omniparse_client.py | 132 | Parse video-type data (supports ".mp4", ".mkv", ".avi", ".mov"). Args: file_input: File pa | STRING |
| HIGH | metagpt/utils/omniparse_client.py | 150 | Parse audio-type data (supports ".mp3", ".wav", ".aac"). Args: file_input: File path or fi | STRING |
| HIGH | metagpt/utils/omniparse_client.py | 169 | Verify the file extension. Args: file_input: File path or file byte data. allo | STRING |
| HIGH | metagpt/utils/omniparse_client.py | 202 | Get file information. Args: file_input: File path or file byte data. bytes_fil | STRING |
| HIGH | metagpt/utils/text.py | 12 | Reduce the length of concatenated message segments to fit within the maximum token size. Args: msgs: A gene | STRING |
| HIGH | metagpt/utils/s3.py | 60 | Get the URL for a downloadable or preview file stored in the specified S3 bucket. Args: bucket: The | STRING |
| HIGH | metagpt/utils/s3.py | 85 | Get the binary data of a file stored in the specified S3 bucket. Args: bucket: The name of the S3 s | STRING |
| HIGH | metagpt/utils/git_repository.py | 251 | Pushes changes to the remote repository. Args: new_branch (str): The name of the new branc | STRING |
| HIGH | metagpt/rag/parsers/omniparse.py | 96 | Load data from the input file_path. Args: file_path: File path or file byte data. | STRING |
| HIGH | metagpt/rag/parsers/omniparse.py | 125 | Load data from the input file_path. Args: file_path: File path or file byte data. | STRING |
| HIGH | metagpt/actions/search_enhanced_qa.py | 115 | Answer a query by leveraging web search results. Args: query (str): The original user query. | STRING |
| HIGH | metagpt/actions/rebuild_sequence_view.py | 446 | Convert package name to the full path of the module. Args: root (Union[str, Path]): The ro | STRING |
| HIGH | metagpt/actions/write_docstring.py | 58 | def function_with_pep484_type_annotations(param1: int) -> bool: """Example function with PEP 484 type annotations. | STRING |
| HIGH | metagpt/actions/invoice_ocr.py | 45 | Check the file type of the given filename. Args: file_path: The path of the file. Returns: | STRING |
| HIGH | …gpt/actions/requirement_analysis/framework/__init__.py | 26 | 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.py | 35 | Given some pictures depicting user requirements alongside contextual description, write out the intact textual | STRING |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tests/metagpt/tools/test_search_engine.py | 8 | CODE | |
| LOW | tests/metagpt/tools/libs/test_git.py | 3 | CODE | |
| LOW | tests/metagpt/utils/test_dependency_file.py | 9 | CODE | |
| LOW | metagpt/repo_parser.py | 12 | CODE | |
| LOW | metagpt/__init__.py | 7 | CODE | |
| LOW | metagpt/context.py | 8 | CODE | |
| LOW | metagpt/logs.py | 9 | CODE | |
| LOW | metagpt/_compat.py | 20 | CODE | |
| LOW | metagpt/schema.py | 16 | CODE | |
| LOW | metagpt/learn/__init__.py | 9 | CODE | |
| LOW | metagpt/learn/__init__.py | 10 | CODE | |
| LOW | metagpt/learn/__init__.py | 11 | CODE | |
| LOW | metagpt/tools/search_engine_ddg.py | 3 | CODE | |
| LOW | metagpt/tools/tool_recommend.py | 1 | CODE | |
| LOW | metagpt/tools/web_browser_engine_playwright.py | 4 | CODE | |
| LOW | metagpt/tools/web_browser_engine.py | 3 | CODE | |
| LOW | metagpt/tools/tool_registry.py | 8 | CODE | |
| LOW | metagpt/tools/__init__.py | 11 | CODE | |
| LOW | metagpt/tools/__init__.py | 12 | CODE | |
| LOW | metagpt/tools/search_engine_googleapi.py | 3 | CODE | |
| LOW | metagpt/tools/web_browser_engine_selenium.py | 4 | CODE | |
| LOW | metagpt/tools/search_engine_bing.py | 3 | CODE | |
| LOW | metagpt/tools/libs/feature_engineering.py | 7 | CODE | |
| LOW | metagpt/tools/libs/git.py | 3 | CODE | |
| LOW | metagpt/tools/libs/data_preprocess.py | 1 | CODE | |
| LOW | metagpt/tools/libs/shell.py | 3 | CODE | |
| LOW | metagpt/tools/libs/browser.py | 1 | CODE | |
| LOW | metagpt/tools/libs/sd_engine.py | 5 | CODE | |
| LOW | metagpt/tools/libs/software_development.py | 3 | CODE | |
| LOW | metagpt/tools/libs/image_getter.py | 1 | CODE | |
| LOW | metagpt/tools/swe_agent_commands/_split_string.py | 2 | CODE | |
| LOW | metagpt/memory/role_zero_memory.py | 19 | CODE | |
| LOW | metagpt/memory/__init__.py | 9 | CODE | |
| LOW | metagpt/ext/sela/experimenter.py | 1 | CODE | |
| LOW | metagpt/ext/werewolf/roles/__init__.py | 5 | CODE | |
| LOW | metagpt/ext/werewolf/roles/__init__.py | 6 | CODE | |
| LOW | metagpt/ext/werewolf/roles/__init__.py | 7 | CODE | |
| LOW | metagpt/ext/werewolf/roles/__init__.py | 8 | CODE | |
| LOW | metagpt/ext/werewolf/roles/__init__.py | 9 | CODE | |
| LOW | metagpt/ext/werewolf/roles/__init__.py | 10 | CODE | |
| LOW | metagpt/ext/werewolf/roles/__init__.py | 11 | CODE | |
| LOW | metagpt/ext/werewolf/actions/__init__.py | 9 | CODE | |
| LOW | metagpt/ext/werewolf/actions/__init__.py | 9 | CODE | |
| LOW | metagpt/ext/werewolf/actions/__init__.py | 10 | CODE | |
| LOW | metagpt/ext/werewolf/actions/__init__.py | 10 | CODE | |
| LOW | metagpt/ext/werewolf/actions/__init__.py | 11 | CODE | |
| LOW | metagpt/document_store/__init__.py | 9 | CODE | |
| LOW | metagpt/provider/__init__.py | 9 | CODE | |
| LOW | metagpt/provider/__init__.py | 10 | CODE | |
| LOW | metagpt/provider/__init__.py | 11 | CODE | |
| LOW | metagpt/provider/__init__.py | 12 | CODE | |
| LOW | metagpt/provider/__init__.py | 13 | CODE | |
| LOW | metagpt/provider/__init__.py | 14 | CODE | |
| LOW | metagpt/provider/__init__.py | 15 | CODE | |
| LOW | metagpt/provider/__init__.py | 16 | CODE | |
| LOW | metagpt/provider/__init__.py | 17 | CODE | |
| LOW | metagpt/provider/__init__.py | 18 | CODE | |
| LOW | metagpt/provider/__init__.py | 19 | CODE | |
| LOW | metagpt/provider/__init__.py | 20 | CODE | |
| LOW | metagpt/provider/__init__.py | 21 | CODE | |
| 94 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | tests/metagpt/test_prompt.py | 44 | emptyCells.push({ r, c }); | CODE |
| HIGH | tests/metagpt/test_prompt.py | 97 | while (row > 0 && this.board[row - 1][c] === 0) { | CODE |
| HIGH | tests/metagpt/test_prompt.py | 103 | if (row > 0 && this.board[row - 1][c] === this.board[row][c]) { | CODE |
| HIGH | tests/metagpt/test_prompt.py | 231 | while (row > 0 && this.board[row - 1][c] === 0) { | CODE |
| HIGH | tests/metagpt/test_prompt.py | 237 | if (row > 0 && this.board[row - 1][c] === this.board[row][c]) { | CODE |
| HIGH | tests/metagpt/test_prompt.py | 252 | while (row < 3 && this.board[row + 1][c] === 0) { | CODE |
| HIGH | tests/metagpt/test_prompt.py | 258 | if (row < 3 && this.board[row + 1][c] === this.board[row][c]) { | CODE |
| HIGH | tests/metagpt/test_prompt.py | 273 | while (col > 0 && this.board[r][col - 1] === 0) { | CODE |
| HIGH | tests/metagpt/test_prompt.py | 279 | if (col > 0 && this.board[r][col - 1] === this.board[r][col]) { | CODE |
| HIGH | tests/metagpt/test_prompt.py | 294 | while (col < 3 && this.board[r][col + 1] === 0) { | CODE |
| HIGH | tests/metagpt/test_prompt.py | 300 | if (col < 3 && this.board[r][col + 1] === this.board[r][col]) { | CODE |
| HIGH | tests/metagpt/test_schema.py | 135 | mq.push(Message(content="1")) | CODE |
| HIGH | tests/metagpt/test_schema.py | 136 | mq.push(Message(content="2中文测试aaa")) | CODE |
| HIGH | tests/metagpt/tools/libs/test_git.py | 122 | branch = await repo.push( | STRING |
| HIGH | tests/metagpt/roles/di/run_swe_agent_for_benchmark.py | 80 | "git reset --hard && git clean -n -d && git clean -f -d", | STRING |
| HIGH | metagpt/schema.py | 778 | queue.push(msg) | CODE |
| HIGH | metagpt/tools/libs/image_getter.py | 17 | if (img && img.src) {{ | CODE |
| HIGH | metagpt/tools/libs/image_getter.py | 28 | return null; | CODE |
| HIGH | metagpt/provider/base_llm.py | 286 | "content": null, | STRING |
| HIGH | metagpt/roles/role.py | 452 | self.rc.msg_buffer.push(message) | CODE |
| HIGH | metagpt/utils/a11y_tree.py | 136 | "(document.scrollingElement || document.body).scrollTop = (document.scrollingElement || document.body).scrol | CODE |
| HIGH | metagpt/utils/a11y_tree.py | 140 | "(document.scrollingElement || document.body).scrollTop = (document.scrollingElement || document.body).scrol | CODE |
| HIGH | metagpt/actions/write_code_an_draft.py | 341 | localStorage.setItem(\'bestScore\', score.toString()); | CODE |
| HIGH | metagpt/actions/write_code_an_draft.py | 377 | emptyCells.push({ r, c }); | CODE |
| HIGH | metagpt/actions/write_code_an_draft.py | 450 | emptyCells.push({ r, c }); | CODE |
| HIGH | metagpt/actions/write_code_an_draft.py | 515 | merged.push(i); | CODE |
| HIGH | metagpt/actions/write_code_an_draft.py | 520 | tiles.push(0); | CODE |
| HIGH | metagpt/prompts/di/engineer2.py | 53 | 25.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 |
| HIGH | metagpt/prompts/di/engineer2.py | 56 | 25.5. After finish the project. use "pnpm install && pnpm run build" to build the project and then deploy the project to | CODE |
| HIGH | metagpt/strategy/experience_retriever.py | 798 | "cmd": "cp -r {{template_folder}}/* {{workspace}}/{{project_name}}/ && cd {{workspace}}/{{project_name}} && | CODE |
| HIGH | metagpt/strategy/experience_retriever.py | 905 | "cmd": "pnpm install && pnpm run build" | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tests/conftest.py | 62 | CODE | |
| LOW | tests/metagpt/test_reporter.py | 157 | CODE | |
| LOW | tests/metagpt/test_incremental_dev.py | 114 | CODE | |
| LOW | …/metagpt/ext/stanford_town/memory/test_agent_memory.py | 69 | CODE | |
| LOW | tests/metagpt/roles/test_researcher.py | 15 | CODE | |
| LOW | tests/data/code/python/1.py | 61 | CODE | |
| LOW | tests/data/demo_project/game.py | 20 | CODE | |
| LOW | tests/data/demo_project/game.py | 58 | CODE | |
| LOW | tests/data/demo_project/game.py | 67 | CODE | |
| LOW | tests/data/demo_project/game.py | 76 | CODE | |
| LOW | tests/data/demo_project/game.py | 85 | CODE | |
| LOW | metagpt/repo_parser.py | 87 | CODE | |
| LOW | metagpt/repo_parser.py | 386 | CODE | |
| LOW | metagpt/repo_parser.py | 446 | CODE | |
| LOW | metagpt/repo_parser.py | 536 | CODE | |
| LOW | metagpt/repo_parser.py | 622 | CODE | |
| LOW | metagpt/repo_parser.py | 746 | CODE | |
| LOW | metagpt/subscription.py | 76 | CODE | |
| LOW | metagpt/document.py | 29 | CODE | |
| LOW | metagpt/tools/search_engine_serpapi.py | 80 | CODE | |
| LOW | metagpt/tools/search_engine.py | 47 | CODE | |
| LOW | metagpt/tools/search_engine_serper.py | 82 | CODE | |
| LOW | metagpt/tools/tool_registry.py | 131 | CODE | |
| LOW | metagpt/tools/tool_registry.py | 185 | CODE | |
| LOW | metagpt/tools/ut_writer.py | 189 | CODE | |
| LOW | metagpt/tools/libs/terminal.py | 147 | CODE | |
| LOW | metagpt/tools/libs/data_preprocess.py | 221 | CODE | |
| LOW | metagpt/tools/libs/editor.py | 509 | CODE | |
| LOW | metagpt/tools/libs/editor.py | 998 | CODE | |
| LOW | metagpt/tools/libs/linter.py | 167 | CODE | |
| LOW | metagpt/ext/stanford_town/memory/retrieve.py | 58 | CODE | |
| LOW | metagpt/ext/stanford_town/plan/st_plan.py | 25 | CODE | |
| LOW | metagpt/ext/stanford_town/plan/st_plan.py | 435 | CODE | |
| LOW | metagpt/ext/stanford_town/plan/st_plan.py | 554 | CODE | |
| LOW | metagpt/ext/stanford_town/plan/st_plan.py | 566 | CODE | |
| LOW | metagpt/ext/stanford_town/reflect/reflect.py | 170 | CODE | |
| LOW | metagpt/ext/stanford_town/roles/st_role.py | 213 | CODE | |
| LOW | metagpt/ext/stanford_town/roles/st_role.py | 393 | CODE | |
| LOW | metagpt/ext/stanford_town/utils/utils.py | 20 | CODE | |
| LOW | metagpt/ext/stanford_town/utils/utils.py | 89 | CODE | |
| LOW | metagpt/ext/stanford_town/utils/utils.py | 90 | CODE | |
| LOW | …tagpt/ext/stanford_town/actions/gen_hourly_schedule.py | 111 | CODE | |
| LOW | metagpt/ext/stanford_town/actions/task_decomp.py | 82 | CODE | |
| LOW | metagpt/ext/stanford_town/actions/task_decomp.py | 83 | CODE | |
| LOW | …tagpt/ext/android_assistant/roles/android_assistant.py | 39 | CODE | |
| LOW | …tagpt/ext/android_assistant/roles/android_assistant.py | 101 | CODE | |
| LOW | metagpt/ext/android_assistant/utils/utils.py | 49 | CODE | |
| LOW | metagpt/ext/android_assistant/utils/utils.py | 111 | CODE | |
| LOW | metagpt/ext/android_assistant/utils/utils.py | 219 | CODE | |
| LOW | metagpt/ext/android_assistant/utils/utils.py | 289 | CODE | |
| LOW | metagpt/ext/android_assistant/utils/utils.py | 310 | CODE | |
| LOW | …xt/android_assistant/actions/self_learn_and_reflect.py | 80 | CODE | |
| LOW | …xt/android_assistant/actions/self_learn_and_reflect.py | 145 | CODE | |
| LOW | metagpt/ext/android_assistant/actions/parse_record.py | 38 | CODE | |
| LOW | …agpt/ext/android_assistant/actions/screenshot_parse.py | 94 | CODE | |
| LOW | metagpt/ext/android_assistant/actions/manual_record.py | 44 | CODE | |
| LOW | metagpt/ext/cr/actions/code_review.py | 95 | CODE | |
| LOW | metagpt/ext/cr/actions/code_review.py | 132 | CODE | |
| LOW | metagpt/ext/cr/actions/code_review.py | 176 | CODE | |
| LOW | metagpt/ext/cr/actions/code_review.py | 209 | CODE | |
| 63 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | …/metagpt/ext/stanford_town/memory/test_agent_memory.py | 55 | except: | CODE |
| HIGH | tests/metagpt/utils/test_s3.py | 67 | except Exception: | CODE |
| HIGH | metagpt/tools/tool_registry.py | 57 | except Exception: | CODE |
| HIGH | metagpt/ext/stanford_town/actions/decide_to_talk.py | 17 | except ValueError: | CODE |
| HIGH | metagpt/ext/stanford_town/actions/gen_iter_chat_utt.py | 19 | except Exception: | CODE |
| HIGH | metagpt/ext/stanford_town/actions/summarize_conv.py | 17 | except Exception: | CODE |
| HIGH | …tagpt/ext/stanford_town/actions/new_decomp_schedule.py | 31 | except Exception: | CODE |
| HIGH | metagpt/ext/stanford_town/actions/agent_chat_sum_rel.py | 17 | except Exception: | CODE |
| HIGH | metagpt/ext/cr/actions/code_review.py | 126 | except Exception: | CODE |
| HIGH | metagpt/ext/aflow/benchmark/math.py | 49 | except: | CODE |
| HIGH | metagpt/ext/aflow/benchmark/math.py | 54 | except: | CODE |
| HIGH | metagpt/ext/aflow/benchmark/math.py | 92 | except: | CODE |
| HIGH | metagpt/ext/aflow/benchmark/math.py | 98 | except: | CODE |
| HIGH | metagpt/ext/aflow/benchmark/math.py | 82 | except: | CODE |
| HIGH | metagpt/ext/aflow/benchmark/math.py | 73 | except: | CODE |
| HIGH | metagpt/utils/a11y_tree.py | 240 | except KeyError: | CODE |
| HIGH | metagpt/utils/common.py | 178 | except Exception: | CODE |
| HIGH | metagpt/utils/common.py | 189 | except Exception: | CODE |
| HIGH | metagpt/utils/common.py | 153 | except Exception: | CODE |
| HIGH | metagpt/utils/human_interaction.py | 70 | except Exception: | CODE |
| HIGH | metagpt/utils/custom_decoder.py | 160 | except IndexError: | CODE |
| HIGH | examples/di/InfiAgent-DABench/DABench.py | 240 | except ValueError: | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | tests/metagpt/tools/libs/test_web_scraping.py | 8 | # Define the test URL and parameters | COMMENT |
| MEDIUM | tests/metagpt/utils/test_pycst.py | 36 | """This function is used to add two numbers and return the result. | STRING |
| MEDIUM | tests/metagpt/utils/test_pycst.py | 48 | """This class represents a person's information, including name and age. | STRING |
| MEDIUM | tests/metagpt/utils/test_pycst.py | 93 | """This function is used to add two numbers and return the result. | STRING |
| MEDIUM | tests/metagpt/utils/test_pycst.py | 106 | """This class represents a person's information, including name and age. | STRING |
| MEDIUM | tests/metagpt/utils/test_custom_decoder.py | 15 | # Create a custom JSON decoder | COMMENT |
| MEDIUM | tests/metagpt/utils/test_custom_decoder.py | 83 | # Create a custom JSON decoder | STRING |
| MEDIUM | tests/metagpt/utils/test_custom_decoder.py | 104 | # Create a custom JSON decoder | COMMENT |
| MEDIUM | tests/metagpt/actions/test_write_test.py | 46 | # Create an instance of WriteTest | STRING |
| MEDIUM | tests/data/code/python/1.py | 26 | # Create a gridspec for adding subplots of different sizes | COMMENT |
| MEDIUM | tests/data/incremental_dev_project/mock.py | 441 | # Define the range of numbers for each difficulty level | COMMENT |
| MEDIUM | metagpt/tools/libs/email_login.py | 5 | # Define a dictionary mapping email domains to their IMAP server addresses | COMMENT |
| MEDIUM | metagpt/tools/libs/gpt_v_generator.py | 87 | # Create a folder called webpages in the workspace directory to store HTML, CSS, and JavaScript files | COMMENT |
| MEDIUM | metagpt/tools/libs/editor.py | 565 | # Create a temporary file | COMMENT |
| MEDIUM | metagpt/tools/swe_agent_commands/edit_linting.sh | 70 | # Create a backup of the current file | COMMENT |
| MEDIUM⚡ | metagpt/tools/swe_agent_commands/defaults.sh | 172 | # Create the file an empty new line | COMMENT |
| MEDIUM | metagpt/ext/aflow/scripts/operator.py | 121 | # Create a new global namespace | COMMENT |
| MEDIUM | metagpt/ext/aflow/scripts/optimizer.py | 131 | # Create a loop until the generated graph meets the check conditions | COMMENT |
| MEDIUM | metagpt/ext/aflow/data/download_data.py | 50 | # Define the datasets to be downloaded | COMMENT |
| MEDIUM | metagpt/ext/sela/runner/autogluon.py | 82 | # Define the root path to append | COMMENT |
| MEDIUM | metagpt/document_store/chromadb_store.py | 35 | # This function is similar to add(), but it's for more generalized updates | COMMENT |
| MEDIUM | metagpt/document_store/chromadb_store.py | 44 | # This function is for adding individual documents | COMMENT |
| MEDIUM | metagpt/document_store/lancedb_store.py | 46 | # This function is similar to add(), but it's for more generalized updates | COMMENT |
| MEDIUM | metagpt/document_store/lancedb_store.py | 62 | # This function is for adding individual documents | COMMENT |
| MEDIUM | metagpt/roles/teacher.py | 90 | # Define the special characters that need to be replaced. | COMMENT |
| MEDIUM | metagpt/utils/save_code.py | 26 | # Create the folder path if it doesn't exist | COMMENT |
| MEDIUM | metagpt/utils/read_document.py | 16 | # Create an empty list to store paragraph contents | COMMENT |
| MEDIUM | metagpt/actions/write_docstring.py | 157 | """This class is used to write docstrings for code. | STRING |
| MEDIUM | metagpt/prompts/di/swe_agent.py | 92 | ##### Create a pull request (Optional): Merge the changes from the new branch into the master branch. | COMMENT |
| MEDIUM | examples/di/automated_planning_of_tasks.py | 8 | # Create an instance of TeamLeader | COMMENT |
| MEDIUM | examples/di/data_analyst_write_code.py | 8 | # Create an instance of DataAnalyst role | COMMENT |
| MEDIUM | examples/di/InfiAgent-DABench/run_InfiAgent-DABench.py | 47 | bench = DABench() # Create an instance of DABench to access its methods and data | CODE |
| MEDIUM | examples/di/InfiAgent-DABench/run_InfiAgent-DABench.py | 72 | agent = DataInterpreter() # Create an instance of the DataInterpreter agent | CODE |
| MEDIUM | examples/di/InfiAgent-DABench/DABench.py | 207 | llm = LLM() # Create an instance of the LLM | CODE |
| MEDIUM | examples/exp_pool/manager.py | 15 | # Define the simple request and response | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM⚡ | tests/data/search_rsp_cache.json | 636 | "httplib2-GET-https://customsearch.googleapis.com/customsearch/v1-{\"params\": {\"q\": \"metagpt\", \"num\": \"8\", | CODE |
| MEDIUM⚡ | tests/data/search_rsp_cache.json | 636 | "httplib2-GET-https://customsearch.googleapis.com/customsearch/v1-{\"params\": {\"q\": \"metagpt\", \"num\": \"8\", | CODE |
| MEDIUM⚡ | tests/data/search_rsp_cache.json | 637 | "httplib2-GET-https://customsearch.googleapis.com/customsearch/v1-{\"params\": {\"q\": \"metagpt\", \"num\": \"6\", | CODE |
| MEDIUM⚡ | tests/data/search_rsp_cache.json | 637 | "httplib2-GET-https://customsearch.googleapis.com/customsearch/v1-{\"params\": {\"q\": \"metagpt\", \"num\": \"6\", | CODE |
| MEDIUM⚡ | tests/data/search_rsp_cache.json | 856 | "curl-cffi-GET-https://links.duckduckgo.com/d.js-{\"params\": {\"bing_market\": \"wt-WT\", \"df\": null, \"ex\": \"- | CODE |
| MEDIUM⚡ | tests/data/search_rsp_cache.json | 856 | "curl-cffi-GET-https://links.duckduckgo.com/d.js-{\"params\": {\"bing_market\": \"wt-WT\", \"df\": null, \"ex\": \"- | CODE |
| MEDIUM⚡ | tests/data/search_rsp_cache.json | 860 | "curl-cffi-GET-https://links.duckduckgo.com/d.js-{\"params\": {\"bing_market\": \"wt-WT\", \"df\": null, \"ex\": \"- | CODE |
| MEDIUM⚡ | tests/data/search_rsp_cache.json | 860 | "curl-cffi-GET-https://links.duckduckgo.com/d.js-{\"params\": {\"bing_market\": \"wt-WT\", \"df\": null, \"ex\": \"- | CODE |
| MEDIUM⚡ | tests/data/search_rsp_cache.json | 862 | "curl-cffi-GET-https://links.duckduckgo.com/d.js-{\"params\": {\"bing_market\": \"wt-WT\", \"df\": null, \"ex\": \"- | CODE |
| MEDIUM⚡ | tests/data/search_rsp_cache.json | 864 | "curl-cffi-GET-https://links.duckduckgo.com/d.js-{\"params\": {\"bing_market\": \"wt-WT\", \"df\": null, \"ex\": \"- | CODE |
| MEDIUM⚡ | tests/data/search_rsp_cache.json | 864 | "curl-cffi-GET-https://links.duckduckgo.com/d.js-{\"params\": {\"bing_market\": \"wt-WT\", \"df\": null, \"ex\": \"- | CODE |
| MEDIUM⚡ | tests/data/search_rsp_cache.json | 864 | "curl-cffi-GET-https://links.duckduckgo.com/d.js-{\"params\": {\"bing_market\": \"wt-WT\", \"df\": null, \"ex\": \"- | CODE |
| MEDIUM⚡ | tests/data/search_rsp_cache.json | 864 | "curl-cffi-GET-https://links.duckduckgo.com/d.js-{\"params\": {\"bing_market\": \"wt-WT\", \"df\": null, \"ex\": \"- | CODE |
| MEDIUM⚡ | tests/data/search_rsp_cache.json | 864 | "curl-cffi-GET-https://links.duckduckgo.com/d.js-{\"params\": {\"bing_market\": \"wt-WT\", \"df\": null, \"ex\": \"- | CODE |
| MEDIUM⚡ | tests/data/search_rsp_cache.json | 866 | "curl-cffi-GET-https://links.duckduckgo.com/d.js-{\"params\": {\"bing_market\": \"wt-WT\", \"df\": null, \"ex\": \"- | CODE |
| MEDIUM⚡ | tests/data/search_rsp_cache.json | 866 | "curl-cffi-GET-https://links.duckduckgo.com/d.js-{\"params\": {\"bing_market\": \"wt-WT\", \"df\": null, \"ex\": \"- | CODE |
| MEDIUM⚡ | tests/data/search_rsp_cache.json | 866 | "curl-cffi-GET-https://links.duckduckgo.com/d.js-{\"params\": {\"bing_market\": \"wt-WT\", \"df\": null, \"ex\": \"- | CODE |
| MEDIUM⚡ | tests/data/search_rsp_cache.json | 866 | "curl-cffi-GET-https://links.duckduckgo.com/d.js-{\"params\": {\"bing_market\": \"wt-WT\", \"df\": null, \"ex\": \"- | CODE |
| MEDIUM⚡ | tests/data/search_rsp_cache.json | 869 | "curl-cffi-GET-https://links.duckduckgo.com/d.js-{\"params\": {\"bing_market\": \"wt-WT\", \"df\": null, \"ex\": \"- | CODE |
| MEDIUM⚡ | tests/data/search_rsp_cache.json | 869 | "curl-cffi-GET-https://links.duckduckgo.com/d.js-{\"params\": {\"bing_market\": \"wt-WT\", \"df\": null, \"ex\": \"- | CODE |
| MEDIUM⚡ | tests/data/search_rsp_cache.json | 870 | "curl-cffi-GET-https://links.duckduckgo.com/d.js-{\"params\": {\"bing_market\": \"wt-WT\", \"df\": null, \"ex\": \"- | CODE |
| MEDIUM⚡ | tests/data/search_rsp_cache.json | 870 | "curl-cffi-GET-https://links.duckduckgo.com/d.js-{\"params\": {\"bing_market\": \"wt-WT\", \"df\": null, \"ex\": \"- | CODE |
| MEDIUM⚡ | tests/data/search_rsp_cache.json | 870 | "curl-cffi-GET-https://links.duckduckgo.com/d.js-{\"params\": {\"bing_market\": \"wt-WT\", \"df\": null, \"ex\": \"- | CODE |
| MEDIUM⚡ | tests/data/search_rsp_cache.json | 872 | "curl-cffi-GET-https://links.duckduckgo.com/d.js-{\"params\": {\"bing_market\": \"wt-WT\", \"df\": null, \"ex\": \"- | CODE |
| MEDIUM⚡ | tests/data/search_rsp_cache.json | 872 | "curl-cffi-GET-https://links.duckduckgo.com/d.js-{\"params\": {\"bing_market\": \"wt-WT\", \"df\": null, \"ex\": \"- | CODE |
| MEDIUM⚡ | tests/data/search_rsp_cache.json | 878 | "curl-cffi-GET-https://links.duckduckgo.com/d.js-{\"params\": {\"bing_market\": \"wt-WT\", \"df\": null, \"ex\": \"- | CODE |
| MEDIUM⚡ | tests/data/search_rsp_cache.json | 878 | "curl-cffi-GET-https://links.duckduckgo.com/d.js-{\"params\": {\"bing_market\": \"wt-WT\", \"df\": null, \"ex\": \"- | CODE |
| MEDIUM | metagpt/ext/aflow/scripts/prompts/optimize_prompt.py | 40 | # You can also concatenate previously generated string results in the input to provide more comprehensive contextual inf | COMMENT |
| LOW⚡ | metagpt/utils/human_interaction.py | 32 | # required_type = str, just return True | COMMENT |
| MEDIUM | metagpt/environment/android/android_env.py | 12 | """in order to use actual `reset`&`observe`, inherited order: AndroidExtEnv, Environment""" | STRING |
| LOW | metagpt/strategy/planner.py | 113 | pass # simply pass, not confirming the result | STRING |
| MEDIUM⚡ | examples/di/requirements_prompt.py | 22 | WEB_PAGE_IMITATION_REQ_09 = "This is a URL of webpage: https://medium.com/ . Firstly, utilize Selenium and WebDriver for | CODE |
| MEDIUM⚡ | examples/di/requirements_prompt.py | 23 | WEB_PAGE_IMITATION_REQ_10 = "This is a URL of webpage: https://pytorch.org/ . Firstly, utilize Selenium and WebDriver fo | CODE |
| MEDIUM⚡ | examples/di/requirements_prompt.py | 24 | WEB_PAGE_IMITATION_REQ_11 = "This is a URL of webpage: https://www.kaggle.com/ . Firstly, utilize Selenium and WebDriver | CODE |
| MEDIUM⚡ | examples/di/requirements_prompt.py | 25 | WEB_PAGE_IMITATION_REQ_12 = "This is a URL of webpage: https://chat.openai.com/auth/login . Firstly, utilize Selenium an | CODE |
| MEDIUM⚡ | examples/di/requirements_prompt.py | 26 | WEB_PAGE_IMITATION_REQ_13 = "This is a URL of webpage: https://deepmind.google/technologies/gemini/#introduction . First | CODE |
| MEDIUM⚡ | examples/di/requirements_prompt.py | 26 | WEB_PAGE_IMITATION_REQ_13 = "This is a URL of webpage: https://deepmind.google/technologies/gemini/#introduction . First | CODE |
| LOW | examples/data/exp_pool/engineer_exps.json | 6 | "content": "\n# Current Plan\n{'goal': \"Please write a 1048 game using JavaScript and HTML code without using any f | CODE |
| LOW | examples/data/exp_pool/engineer_exps.json | 19 | "content": "\n# Current Plan\n{'goal': \"Please write a 1048 game using JavaScript and HTML code without using any f | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | tests/metagpt/roles/di/run_project_manager.py | 0 | { "implementation approach": "we will use the pygame library to create the cli-based snake game. pygame is a set of pyth | STRING |
| HIGH | tests/metagpt/roles/di/run_architect.py | 0 | { "implementation approach": "we will use the pygame library to create the cli-based snake game. pygame is a set of pyth | STRING |
| HIGH | tests/metagpt/roles/di/run_engineer2.py | 0 | { "implementation approach": "we will use the pygame library to create the cli-based snake game. pygame is a set of pyth | STRING |
| HIGH | tests/metagpt/roles/di/run_data_analyst.py | 0 | 从36kr创投平台https://pitchhub.36kr.com/financing-flash 所有初创企业融资的信息, **注意: 这是一个中文网站**; 下面是一个大致流程, 你会根据每一步的运行结果对当前计划中的任务做出适当调整 | STRING |
| HIGH | tests/metagpt/environment/mgx_env/run_mgx_env.py | 0 | 从36kr创投平台https://pitchhub.36kr.com/financing-flash 所有初创企业融资的信息, **注意: 这是一个中文网站**; 下面是一个大致流程, 你会根据每一步的运行结果对当前计划中的任务做出适当调整 | STRING |
| HIGH | examples/di/crawl_webpage.py | 0 | 从36kr创投平台https://pitchhub.36kr.com/financing-flash 所有初创企业融资的信息, **注意: 这是一个中文网站**; 下面是一个大致流程, 你会根据每一步的运行结果对当前计划中的任务做出适当调整 | STRING |
| HIGH | metagpt/provider/base_llm.py | 0 | [{"role": "user", "content": msg}] to user: <msg> etc. | STRING |
| HIGH | metagpt/provider/bedrock/base_provider.py | 0 | [{"role": "user", "content": msg}] to user: <msg> etc. | STRING |
| HIGH | metagpt/provider/bedrock/bedrock_provider.py | 0 | [{"role": "user", "content": msg}] to user: <msg> etc. | STRING |
| HIGH | metagpt/actions/requirement_analysis/__init__.py | 0 | @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__.py | 0 | @time : 2024/6/13 @author : mashenquan @file : write_project_framework.py @desc : the implementation of rfc243. https:// | STRING |
| HIGH | metagpt/actions/requirement_analysis/trd/__init__.py | 0 | @time : 2024/6/13 @author : mashenquan @file : write_project_framework.py @desc : the implementation of rfc243. https:// | STRING |
| HIGH | metagpt/actions/requirement_analysis/evaluate_action.py | 0 | @time : 2024/6/13 @author : mashenquan @file : write_project_framework.py @desc : the implementation of rfc243. https:// | STRING |
| HIGH | examples/mgx_write_project_framework.py | 0 | @time : 2024/6/13 @author : mashenquan @file : write_project_framework.py @desc : the implementation of rfc243. https:// | STRING |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | config/config2.example.yaml | 121 | # pricing_plan: "" # Optional. Use for Azure LLM when its model name is not the same as OpenAI's | COMMENT |
| LOW | config/vault.example.yaml | 1 | # Usage: | COMMENT |
| LOW | tests/metagpt/test_prompt.py | 341 | # if __name__ == "__main__": | COMMENT |
| LOW | tests/metagpt/tools/libs/__init__.py | 1 | #!/usr/bin/env python | COMMENT |
| LOW | tests/metagpt/memory/__init__.py | 1 | #!/usr/bin/env python | COMMENT |
| LOW | tests/metagpt/ext/__init__.py | 1 | #!/usr/bin/env python | COMMENT |
| LOW | tests/metagpt/ext/stanford_town/__init__.py | 1 | #!/usr/bin/env python | COMMENT |
| LOW | tests/metagpt/ext/stanford_town/memory/__init__.py | 1 | #!/usr/bin/env python | COMMENT |
| LOW | tests/metagpt/ext/stanford_town/plan/__init__.py | 1 | #!/usr/bin/env python | COMMENT |
| LOW | tests/metagpt/ext/stanford_town/roles/__init__.py | 1 | #!/usr/bin/env python | COMMENT |
| LOW | tests/metagpt/ext/stanford_town/actions/__init__.py | 1 | #!/usr/bin/env python | COMMENT |
| LOW | tests/metagpt/ext/android_assistant/__init__.py | 1 | #!/usr/bin/env python | COMMENT |
| LOW | tests/metagpt/ext/werewolf/__init__.py | 1 | #!/usr/bin/env python | COMMENT |
| LOW | tests/metagpt/ext/werewolf/actions/__init__.py | 1 | #!/usr/bin/env python | COMMENT |
| LOW | tests/metagpt/serialize_deserialize/__init__.py | 1 | # -*- coding: utf-8 -*- | COMMENT |
| LOW | tests/metagpt/provider/zhipuai/__init__.py | 1 | #!/usr/bin/env python | COMMENT |
| LOW | tests/metagpt/provider/postprocess/__init__.py | 1 | #!/usr/bin/env python | COMMENT |
| LOW | tests/metagpt/environment/android_env/__init__.py | 1 | #!/usr/bin/env python | COMMENT |
| LOW | tests/metagpt/environment/stanford_town_env/__init__.py | 1 | #!/usr/bin/env python | COMMENT |
| LOW | tests/metagpt/environment/werewolf_env/__init__.py | 1 | #!/usr/bin/env python | COMMENT |
| LOW | tests/metagpt/environment/minecraft_env/__init__.py | 1 | #!/usr/bin/env python | COMMENT |
| LOW | tests/metagpt/environment/api/__init__.py | 1 | #!/usr/bin/env python | COMMENT |
| LOW | tests/metagpt/strategy/examples/__init__.py | 1 | # -*- coding: utf-8 -*- | COMMENT |
| LOW | tests/metagpt/strategy/prompt_templates/__init__.py | 1 | # -*- coding: utf-8 -*- | COMMENT |
| LOW | metagpt/__init__.py | 1 | #!/usr/bin/env python | COMMENT |
| LOW | metagpt/tools/libs/web_scraping.py | 41 | return html | COMMENT |
| LOW | metagpt/tools/swe_agent_commands/edit_linting.sh | 1 | # @yaml | COMMENT |
| LOW | metagpt/tools/swe_agent_commands/defaults.sh | 21 | local max_line=$(awk 'END {print NR}' $CURRENT_FILE) | COMMENT |
| LOW | metagpt/tools/swe_agent_commands/search.sh | 1 | # @yaml | COMMENT |
| LOW | metagpt/tools/swe_agent_commands/search.sh | 141 | # @yaml | COMMENT |
| LOW | metagpt/tools/swe_agent_commands/search.sh | 201 | done | COMMENT |
| LOW | metagpt/ext/__init__.py | 1 | #!/usr/bin/env python | COMMENT |
| LOW | metagpt/ext/stanford_town/__init__.py | 1 | #!/usr/bin/env python | COMMENT |
| LOW | metagpt/ext/stanford_town/plan/__init__.py | 1 | #!/usr/bin/env python | COMMENT |
| LOW | metagpt/ext/stanford_town/plan/st_plan.py | 41 | # <focused_event> takes the form of a dictionary like this: | COMMENT |
| LOW | metagpt/ext/stanford_town/reflect/__init__.py | 1 | #!/usr/bin/env python | COMMENT |
| LOW | metagpt/ext/stanford_town/roles/__init__.py | 1 | #!/usr/bin/env python | COMMENT |
| LOW | metagpt/ext/stanford_town/utils/__init__.py | 1 | #!/usr/bin/env python | COMMENT |
| LOW | metagpt/ext/stanford_town/actions/__init__.py | 1 | #!/usr/bin/env python | COMMENT |
| LOW | metagpt/ext/stanford_town/prompts/__init__.py | 1 | #!/usr/bin/env python | COMMENT |
| LOW | metagpt/ext/android_assistant/__init__.py | 1 | #!/usr/bin/env python | COMMENT |
| LOW | metagpt/ext/android_assistant/roles/__init__.py | 1 | #!/usr/bin/env python | COMMENT |
| LOW | metagpt/ext/android_assistant/utils/__init__.py | 1 | #!/usr/bin/env python | COMMENT |
| LOW | metagpt/ext/android_assistant/actions/__init__.py | 1 | #!/usr/bin/env python | COMMENT |
| LOW | metagpt/ext/android_assistant/prompts/__init__.py | 1 | #!/usr/bin/env python | COMMENT |
| LOW | metagpt/ext/cr/__init__.py | 1 | #!/usr/bin/env python | COMMENT |
| LOW | metagpt/ext/werewolf/__init__.py | 1 | #!/usr/bin/env python | COMMENT |
| LOW | metagpt/provider/zhipuai/__init__.py | 1 | #!/usr/bin/env python | COMMENT |
| LOW | metagpt/provider/bedrock/utils.py | 61 | "cohere.command-light-text-v14": 4096, | COMMENT |
| LOW | metagpt/provider/bedrock/utils.py | 81 | # Llama 3.1 Instruct | COMMENT |
| LOW | metagpt/provider/postprocess/__init__.py | 1 | #!/usr/bin/env python | COMMENT |
| LOW | metagpt/environment/mgx/__init__.py | 1 | #!/usr/bin/env python | COMMENT |
| LOW | metagpt/environment/stanford_town/__init__.py | 1 | #!/usr/bin/env python | COMMENT |
| LOW | metagpt/environment/software/__init__.py | 1 | #!/usr/bin/env python | COMMENT |
| LOW | metagpt/environment/android/__init__.py | 1 | #!/usr/bin/env python | COMMENT |
| LOW | metagpt/environment/android/const.py | 1 | #!/usr/bin/env python | COMMENT |
| LOW | metagpt/environment/api/__init__.py | 1 | #!/usr/bin/env python | COMMENT |
| LOW | metagpt/environment/minecraft/__init__.py | 1 | #!/usr/bin/env python | COMMENT |
| LOW | …craft/mineflayer/mineflayer-collectblock/tsconfig.json | 21 | // "noEmit": true, /* Do not emit outputs. */ | COMMENT |
| LOW | …craft/mineflayer/mineflayer-collectblock/tsconfig.json | 41 | // "baseUrl": "./", /* Base directory to resolve non-absolute module names. */ | COMMENT |
| 6 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tests/metagpt/test_incremental_dev.py | 116 | # Check if the project path exists | COMMENT |
| LOW | tests/metagpt/test_incremental_dev.py | 145 | # Check if the .gitignore exists. If it doesn't exist, create .gitignore and add the comment | COMMENT |
| LOW | tests/metagpt/test_incremental_dev.py | 148 | # Check if the 'base' tag exists | COMMENT |
| LOW | tests/metagpt/test_incremental_dev.py | 188 | # Check if the 'git tag' command was successful | COMMENT |
| LOW | tests/metagpt/rag/retrievers/test_hybrid_retriever.py | 43 | # Check if the results are as expected | COMMENT |
| LOW | tests/metagpt/rag/retrievers/test_hybrid_retriever.py | 47 | # Check if the scores are correct (assuming you want the highest score) | COMMENT |
| LOW | tests/metagpt/environment/mgx_env/run_mgx_env.py | 169 | # Set enable_human_input to True if you want to simulate sending messages in chatbox | COMMENT |
| LOW | metagpt/const.py | 21 | # Check if a project root is specified in the environment variable | COMMENT |
| LOW | metagpt/tools/libs/editor.py | 780 | # Check if the first_replaced_line_number and last_replaced_line_number correspond to the appropriate content. | COMMENT |
| LOW | metagpt/tools/swe_agent_commands/edit_linting.sh | 73 | # Read the file line by line into an array | COMMENT |
| LOW | metagpt/tools/swe_agent_commands/defaults.sh | 45 | # Check if the second argument is provided | COMMENT |
| LOW | metagpt/tools/swe_agent_commands/defaults.sh | 47 | # Check if the provided argument is a valid number | COMMENT |
| LOW⚡ | metagpt/tools/swe_agent_commands/defaults.sh | 165 | # Check if the file already exists | COMMENT |
| LOW⚡ | metagpt/tools/swe_agent_commands/defaults.sh | 182 | # Check if the patch file exists and is non-empty | COMMENT |
| LOW⚡ | metagpt/tools/swe_agent_commands/search.sh | 154 | # Check if the first argument is provided | COMMENT |
| LOW⚡ | metagpt/tools/swe_agent_commands/search.sh | 159 | # Check if the second argument is provided | COMMENT |
| LOW⚡ | metagpt/tools/swe_agent_commands/search.sh | 161 | # Check if the provided argument is a valid file | COMMENT |
| LOW⚡ | metagpt/tools/swe_agent_commands/search.sh | 170 | # Check if a file is open | COMMENT |
| LOW⚡ | metagpt/tools/swe_agent_commands/search.sh | 175 | local file="$CURRENT_FILE" # Set file to the current open file | CODE |
| LOW⚡ | metagpt/tools/swe_agent_commands/search.sh | 181 | # Check if no matches were found | COMMENT |
| LOW | metagpt/ext/stanford_town/utils/utils.py | 73 | # Check if both start and end indices were found | COMMENT |
| LOW | metagpt/ext/aflow/benchmark/utils.py | 55 | # Check if the log file already exists | COMMENT |
| LOW | metagpt/ext/aflow/scripts/utils.py | 46 | # Check if there are hardcoded test cases | COMMENT |
| LOW | metagpt/ext/aflow/scripts/optimizer.py | 157 | # Check if the modification meets the conditions | COMMENT |
| LOW | …ext/aflow/scripts/optimizer_utils/convergence_utils.py | 36 | # Read file and return data | COMMENT |
| LOW | …ext/aflow/scripts/optimizer_utils/convergence_utils.py | 100 | # Check if Y change is within acceptable confidence interval, i.e., convergence condition | COMMENT |
| LOW | metagpt/provider/general_api_base.py | 111 | # Check if val is already a string to avoid re-encoding into ascii. | COMMENT |
| LOW | metagpt/utils/common.py | 409 | # Check if the value is iterable, but not a string (since strings are technically iterable) | COMMENT |
| LOW | metagpt/environment/minecraft/minecraft_env.py | 124 | # Check if Skill Manager's vectordb right using | COMMENT |
| LOW | examples/di/InfiAgent-DABench/DABench.py | 176 | # Check if the true value is numeric and compare with the prediction | COMMENT |
| LOW | examples/di/InfiAgent-DABench/DABench.py | 182 | # Check if the true value is a string and compare with the prediction | COMMENT |
| LOW | examples/di/InfiAgent-DABench/DABench.py | 462 | results.append({"id": id, "correctness": correct}) # Append the result to the list | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tests/metagpt/test_incremental_dev.py | 135 | CODE | |
| LOW | tests/metagpt/actions/test_research.py | 98 | CODE | |
| LOW | metagpt/software_company.py | 14 | CODE | |
| LOW | metagpt/software_company.py | 78 | CODE | |
| LOW | metagpt/tools/libs/editor.py | 158 | CODE | |
| LOW | metagpt/tools/libs/editor.py | 620 | CODE | |
| LOW | metagpt/tools/libs/linter.py | 201 | CODE | |
| LOW | metagpt/ext/stanford_town/memory/agent_memory.py | 367 | CODE | |
| LOW | metagpt/ext/stanford_town/memory/agent_memory.py | 378 | CODE | |
| LOW | metagpt/ext/stanford_town/memory/retrieve.py | 55 | CODE | |
| LOW | metagpt/ext/stanford_town/reflect/reflect.py | 68 | CODE | |
| LOW | metagpt/ext/stanford_town/actions/summarize_conv.py | 23 | CODE | |
| LOW | metagpt/ext/aflow/benchmark/utils.py | 42 | CODE | |
| LOW | metagpt/ext/aflow/scripts/operator.py | 69 | CODE | |
| LOW | metagpt/ext/aflow/scripts/operator.py | 79 | CODE | |
| LOW | metagpt/ext/aflow/scripts/operator.py | 89 | CODE | |
| LOW | metagpt/ext/aflow/scripts/operator.py | 190 | CODE | |
| LOW | metagpt/ext/aflow/scripts/operator.py | 297 | CODE | |
| LOW | metagpt/ext/aflow/scripts/operator.py | 307 | CODE | |
| LOW | metagpt/ext/aflow/scripts/operator.py | 317 | CODE | |
| LOW | metagpt/document_store/milvus_store.py | 83 | CODE | |
| LOW | metagpt/provider/postprocess/llm_output_postprocess.py | 20 | CODE | |
| LOW | metagpt/roles/di/swe_agent.py | 36 | CODE | |
| LOW | metagpt/roles/di/engineer2.py | 60 | CODE | |
| LOW | metagpt/utils/repair_llm_raw_output.py | 140 | CODE | |
| LOW | metagpt/utils/di_graph_repository.py | 96 | CODE | |
| LOW | metagpt/utils/common.py | 64 | CODE | |
| LOW | metagpt/utils/omniparse_client.py | 108 | CODE | |
| LOW | metagpt/utils/omniparse_client.py | 129 | CODE | |
| LOW | metagpt/utils/git_repository.py | 451 | CODE | |
| LOW | metagpt/rag/benchmark/base.py | 36 | CODE | |
| LOW | metagpt/rag/benchmark/base.py | 166 | CODE | |
| LOW | metagpt/rag/engines/simple.py | 91 | CODE | |
| LOW | metagpt/exp_pool/decorator.py | 29 | CODE | |
| LOW | metagpt/actions/research.py | 245 | CODE | |
| LOW | metagpt/actions/action_node.py | 544 | CODE | |
| LOW | metagpt/actions/action_node.py | 551 | CODE | |
| LOW | metagpt/actions/di/execute_nb_code.py | 290 | CODE | |
| LOW | metagpt/actions/di/execute_nb_code.py | 298 | CODE | |
| LOW | …gpt/environment/stanford_town/stanford_town_ext_env.py | 263 | CODE | |
| LOW | metagpt/environment/android/android_ext_env.py | 101 | CODE | |
| LOW | metagpt/environment/werewolf/werewolf_ext_env.py | 153 | CODE | |
| LOW | examples/dalle_gpt4v_agent.py | 41 | CODE | |
| LOW | examples/android_assistant/run_assistant.py | 21 | CODE | |
| LOW | examples/rag/rag_bm.py | 175 | CODE | |
| LOW | examples/werewolf_game/start_game.py | 11 | CODE | |
| LOW | examples/werewolf_game/start_game.py | 43 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM⚡ | config/config2.example.yaml | 12 | # RAG Embedding. | COMMENT |
| MEDIUM⚡ | config/config2.example.yaml | 21 | dimensions: # output dimension of embedding model | CODE |
| MEDIUM⚡ | tests/data/search_rsp_cache.json | 636 | "httplib2-GET-https://customsearch.googleapis.com/customsearch/v1-{\"params\": {\"q\": \"metagpt\", \"num\": \"8\", | CODE |
| MEDIUM⚡ | tests/data/search_rsp_cache.json | 636 | "httplib2-GET-https://customsearch.googleapis.com/customsearch/v1-{\"params\": {\"q\": \"metagpt\", \"num\": \"8\", | CODE |
| MEDIUM⚡ | tests/data/search_rsp_cache.json | 637 | "httplib2-GET-https://customsearch.googleapis.com/customsearch/v1-{\"params\": {\"q\": \"metagpt\", \"num\": \"6\", | CODE |
| MEDIUM⚡ | tests/data/search_rsp_cache.json | 637 | "httplib2-GET-https://customsearch.googleapis.com/customsearch/v1-{\"params\": {\"q\": \"metagpt\", \"num\": \"6\", | CODE |
| MEDIUM⚡ | tests/data/search_rsp_cache.json | 856 | "curl-cffi-GET-https://links.duckduckgo.com/d.js-{\"params\": {\"bing_market\": \"wt-WT\", \"df\": null, \"ex\": \"- | CODE |
| MEDIUM⚡ | tests/data/search_rsp_cache.json | 860 | "curl-cffi-GET-https://links.duckduckgo.com/d.js-{\"params\": {\"bing_market\": \"wt-WT\", \"df\": null, \"ex\": \"- | CODE |
| MEDIUM⚡ | tests/data/search_rsp_cache.json | 862 | "curl-cffi-GET-https://links.duckduckgo.com/d.js-{\"params\": {\"bing_market\": \"wt-WT\", \"df\": null, \"ex\": \"- | CODE |
| MEDIUM⚡ | tests/data/search_rsp_cache.json | 862 | "curl-cffi-GET-https://links.duckduckgo.com/d.js-{\"params\": {\"bing_market\": \"wt-WT\", \"df\": null, \"ex\": \"- | CODE |
| MEDIUM⚡ | tests/data/search_rsp_cache.json | 864 | "curl-cffi-GET-https://links.duckduckgo.com/d.js-{\"params\": {\"bing_market\": \"wt-WT\", \"df\": null, \"ex\": \"- | CODE |
| MEDIUM⚡ | tests/data/search_rsp_cache.json | 864 | "curl-cffi-GET-https://links.duckduckgo.com/d.js-{\"params\": {\"bing_market\": \"wt-WT\", \"df\": null, \"ex\": \"- | CODE |
| MEDIUM⚡ | tests/data/search_rsp_cache.json | 866 | "curl-cffi-GET-https://links.duckduckgo.com/d.js-{\"params\": {\"bing_market\": \"wt-WT\", \"df\": null, \"ex\": \"- | CODE |
| MEDIUM⚡ | tests/data/search_rsp_cache.json | 872 | "curl-cffi-GET-https://links.duckduckgo.com/d.js-{\"params\": {\"bing_market\": \"wt-WT\", \"df\": null, \"ex\": \"- | CODE |
| MEDIUM | metagpt/config2.py | 55 | # RAG Embedding | COMMENT |
| MEDIUM | metagpt/tools/libs/web_scraping.py | 31 | # Since RAG is an optional optimization, if it fails, the simplified HTML can be used as a fallback. | COMMENT |
| MEDIUM | metagpt/configs/embedding_config.py | 47 | dimensions: Optional[int] = None # output dimension of embedding model | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | docs/install/docker_install.md | 6 | # Step 1: Download metagpt official image and prepare config2.yaml | COMMENT |
| LOW | docs/install/docker_install.md | 12 | # Step 2: Run metagpt demo with container | COMMENT |
| LOW⚡ | docs/install/cli_install.md | 12 | # Step 1: Ensure that Python 3.9+ is installed on your system. You can check this by using: | COMMENT |
| LOW⚡ | docs/install/cli_install.md | 18 | # Step 2: Clone the repository to your local machine for latest version, and install it. | COMMENT |
| LOW⚡ | docs/install/cli_install.md | 23 | # Step 3: setup your LLM key in the config2.yaml file | COMMENT |
| LOW⚡ | docs/install/cli_install.md | 28 | # Step 4: run metagpt cli | COMMENT |
| LOW⚡ | .devcontainer/postCreateCommand.sh | 1 | # Step 1: Ensure that NPM is installed on your system. Then install mermaid-js. | COMMENT |
| LOW⚡ | .devcontainer/postCreateCommand.sh | 5 | # Step 2: Ensure that Python 3.9+ is installed on your system. You can check this by using: | COMMENT |
| LOW | metagpt/ext/stanford_town/plan/st_plan.py | 38 | # Step 1: Retrieved may have multiple events represented in it. The first | COMMENT |
| LOW | metagpt/ext/stanford_town/plan/st_plan.py | 49 | # Step 2: Once we choose an event, we need to determine whether the | COMMENT |
| LOW | metagpt/ext/stanford_town/plan/st_plan.py | 66 | # Step 3: Chat-related state clean up. | COMMENT |
| LOW⚡ | metagpt/ext/stanford_town/plan/st_plan.py | 438 | # Step 1: Setting up the core variables for the function. | COMMENT |
| LOW⚡ | metagpt/ext/stanford_town/plan/st_plan.py | 444 | # Step 2: We need to create <main_act_dur> and <truncated_act_dur>. | COMMENT |
| LOW | metagpt/roles/architect.py | 46 | # NOTE: The following init setting will only be effective when self.use_fixed_sop is changed to True | COMMENT |
| LOW | metagpt/roles/project_manager.py | 38 | # NOTE: The following init setting will only be effective when self.use_fixed_sop is changed to True | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | metagpt/learn/__init__.py | 13 | __all__ = ["text_to_image", "text_to_speech", "google_search"] | CODE |
| LOW | metagpt/tools/__init__.py | 23 | __all__ = ["SearchEngineType", "WebBrowserEngineType", "TOOL_REGISTRY"] | CODE |
| LOW | metagpt/tools/libs/editor.py | 269 | def _set_workdir(self, path: str) -> None: | CODE |
| LOW | metagpt/memory/__init__.py | 14 | __all__ = [ | CODE |
| LOW | metagpt/ext/werewolf/roles/__init__.py | 13 | __all__ = ["BasePlayer", "Guard", "Moderator", "Seer", "Villager", "Witch", "Werewolf"] | CODE |
| LOW | metagpt/ext/werewolf/actions/__init__.py | 23 | __all__ = ["NighttimeWhispers", "Reflect", "AddNewExperiences", "RetrieveExperiences", "InstructSpeak"] | CODE |
| LOW | metagpt/document_store/__init__.py | 11 | __all__ = ["FaissStore"] | CODE |
| LOW | metagpt/provider/__init__.py | 24 | __all__ = [ | CODE |
| LOW | metagpt/roles/__init__.py | 22 | __all__ = [ | CODE |
| LOW | metagpt/utils/__init__.py | 18 | __all__ = [ | CODE |
| LOW | metagpt/rag/benchmark/__init__.py | 3 | __all__ = ["RAGBenchmark"] | CODE |
| LOW | metagpt/rag/retrievers/__init__.py | 5 | __all__ = ["SimpleHybridRetriever"] | CODE |
| LOW | metagpt/rag/parsers/__init__.py | 3 | __all__ = ["OmniParse"] | CODE |
| LOW | metagpt/rag/engines/__init__.py | 6 | __all__ = ["SimpleEngine", "FLAREEngine"] | CODE |
| LOW | metagpt/rag/factories/__init__.py | 9 | __all__ = ["get_retriever", "get_rankers", "get_rag_embedding", "get_index", "get_rag_llm"] | CODE |
| LOW | metagpt/exp_pool/__init__.py | 6 | __all__ = ["get_exp_manager", "exp_cache"] | CODE |
| LOW | metagpt/exp_pool/perfect_judges/__init__.py | 6 | __all__ = ["BasePerfectJudge", "SimplePerfectJudge"] | CODE |
| LOW | metagpt/exp_pool/scorers/__init__.py | 6 | __all__ = ["BaseScorer", "SimpleScorer"] | CODE |
| LOW | metagpt/exp_pool/serializers/__init__.py | 9 | __all__ = ["BaseSerializer", "SimpleSerializer", "ActionNodeSerializer", "RoleZeroSerializer"] | CODE |
| LOW | metagpt/exp_pool/context_builders/__init__.py | 7 | __all__ = ["BaseContextBuilder", "SimpleContextBuilder", "RoleZeroContextBuilder"] | CODE |
| LOW | metagpt/actions/__init__.py | 53 | __all__ = [ | CODE |
| LOW | metagpt/actions/requirement_analysis/__init__.py | 11 | __all__ = [EvaluationData, EvaluateAction] | CODE |
| LOW | …gpt/actions/requirement_analysis/framework/__init__.py | 86 | __all__ = [WriteFramework, EvaluateFramework] | CODE |
| LOW | metagpt/actions/requirement_analysis/trd/__init__.py | 16 | __all__ = [CompressExternalInterfaces, DetectInteraction, WriteTRD, EvaluateTRD] | CODE |
| LOW | metagpt/environment/__init__.py | 13 | __all__ = ["AndroidEnv", "WerewolfEnv", "StanfordTownEnv", "SoftwareEnv", "Environment"] | CODE |
| LOW | metagpt/base/__init__.py | 5 | __all__ = [ | CODE |
| LOW | metagpt/strategy/base.py | 42 | def update_value(self, value) -> None: | CODE |
| LOW | metagpt/strategy/base.py | 46 | def update_valid_status(self, status) -> None: | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW⚡ | .devcontainer/postCreateCommand.sh | 1 | # Step 1: Ensure that NPM is installed on your system. Then install mermaid-js. | COMMENT |
| LOW⚡ | .devcontainer/postCreateCommand.sh | 5 | # Step 2: Ensure that Python 3.9+ is installed on your system. You can check this by using: | COMMENT |
| LOW | metagpt/ext/stanford_town/plan/st_plan.py | 38 | # Step 1: Retrieved may have multiple events represented in it. The first | COMMENT |
| LOW | metagpt/ext/stanford_town/plan/st_plan.py | 49 | # Step 2: Once we choose an event, we need to determine whether the | COMMENT |
| LOW | metagpt/ext/stanford_town/plan/st_plan.py | 66 | # Step 3: Chat-related state clean up. | COMMENT |
| LOW⚡ | metagpt/ext/stanford_town/plan/st_plan.py | 438 | # Step 1: Setting up the core variables for the function. | COMMENT |
| LOW⚡ | metagpt/ext/stanford_town/plan/st_plan.py | 444 | # Step 2: We need to create <main_act_dur> and <truncated_act_dur>. | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH⚡ | tests/data/search_rsp_cache.json | 860 | "curl-cffi-GET-https://links.duckduckgo.com/d.js-{\"params\": {\"bing_market\": \"wt-WT\", \"df\": null, \"ex\": \"- | CODE |
| HIGH | docs/FAQ-EN.md | 43 | 1. There hasn't been a quantitative analysis yet, but the success rate of code generated by gpt-4-turbo is signific | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tests/metagpt/actions/mock_markdown.py | 212 | ## Anything UNCLEAR: Provide as Plain text. Try to clarify it. For example, don't forget a main entry. don't forget to i | STRING |
| LOW | tests/metagpt/actions/mock_markdown.py | 212 | ## Anything UNCLEAR: Provide as Plain text. Try to clarify it. For example, don't forget a main entry. don't forget to i | STRING |
| MEDIUM⚡ | tests/data/search_rsp_cache.json | 636 | "httplib2-GET-https://customsearch.googleapis.com/customsearch/v1-{\"params\": {\"q\": \"metagpt\", \"num\": \"8\", | CODE |
| LOW | metagpt/tools/swe_agent_commands/edit_linting.sh | 6 | # docstring: Line numbers start from 1. Replaces lines <start_line> through <end_line> (inclusive) with the given text i | COMMENT |
| MEDIUM | metagpt/document_store/lancedb_store.py | 75 | # LanceDB delete syntax uses SQL syntax, so you can use "in" or "=" | COMMENT |
| LOW | metagpt/prompts/di/role_zero.py | 12 | 4. Don't forget to append task first when all existing tasks are finished and new tasks are required. | CODE |
| LOW | metagpt/prompts/di/write_analysis_code.py | 78 | Analyze your previous code and error in [context] step by step, provide me with improved method and code. Remember to fo | CODE |
| LOW | metagpt/base/base_serialization.py | 36 | # it is a dict so make sure to remove the __module_class_name | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tests/metagpt/tools/test_tool_convert.py | 167 | def my_method(self, arg2: Union[list[str], str], arg3: pd.DataFrame, arg4: int = 1, arg5: Literal["a","b","c"] = "a" | CODE |
| LOW | tests/metagpt/tools/test_tool_convert.py | 186 | def my_function(arg1, arg2) -> dict: | CODE |
| LOW | tests/metagpt/tools/test_tool_convert.py | 223 | "code": 'class MyClass:\n """This is a MyClass docstring."""\n def __init__(self, arg1):\n """T | STRING |
| LOW | tests/metagpt/tools/test_tool_convert.py | 230 | "code": 'def my_function(arg1, arg2) -> dict:\n """This is a function docstring."""\n return arg1 + ar | STRING |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | examples/di/run_flask.py | 10 | # I have created the conda environment '{env_name}', please use this environment to execute. | STRING |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | config/vault.example.yaml | 1 | # Usage: | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | metagpt/config2.py | 87 | redis_key: str = "placeholder" | CODE |