A Simple and Universal Swarm Intelligence Engine, Predicting Anything. 简洁通用的群体智能引擎,预测万物
363 matches across 12 categories. Click a row to expand file-level details.
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | backend/app/utils/file_parser.py | 42 | except Exception: |
| LOW | backend/app/utils/file_parser.py | 51 | except Exception: |
| LOW | backend/app/utils/file_parser.py | 155 | except Exception as e: |
| LOW | backend/app/utils/retry.py | 226 | except Exception as e: |
| LOW | backend/app/api/simulation.py | 84 | except Exception as e: |
| LOW | backend/app/api/simulation.py | 117 | except Exception as e: |
| LOW | backend/app/api/simulation.py | 154 | except Exception as e: |
| LOW | backend/app/api/simulation.py | 231 | except Exception as e: |
| LOW | backend/app/api/simulation.py | 333 | except Exception as e: |
| LOW | backend/app/api/simulation.py | 355 | except Exception as e: |
| LOW | backend/app/api/simulation.py | 486 | except Exception as e: |
| LOW | backend/app/api/simulation.py | 599 | except Exception as e: |
| LOW | backend/app/api/simulation.py | 633 | except Exception as e: |
| LOW | backend/app/api/simulation.py | 747 | except Exception as e: |
| LOW | backend/app/api/simulation.py | 779 | except Exception as e: |
| LOW | backend/app/api/simulation.py | 808 | except Exception as e: |
| LOW | backend/app/api/simulation.py | 861 | except Exception: |
| LOW | backend/app/api/simulation.py | 871 | except Exception as e: |
| LOW | backend/app/api/simulation.py | 981 | except Exception as e: |
| LOW | backend/app/api/simulation.py | 1019 | except Exception as e: |
| LOW | backend/app/api/simulation.py | 1112 | except Exception: |
| LOW | backend/app/api/simulation.py | 1129 | except Exception as e: |
| LOW | backend/app/api/simulation.py | 1217 | except Exception: |
| LOW | backend/app/api/simulation.py | 1249 | except Exception as e: |
| LOW | backend/app/api/simulation.py | 1285 | except Exception as e: |
| LOW | backend/app/api/simulation.py | 1314 | except Exception as e: |
| LOW | backend/app/api/simulation.py | 1366 | except Exception as e: |
| LOW | backend/app/api/simulation.py | 1440 | except Exception as e: |
| LOW | backend/app/api/simulation.py | 1557 | except Exception as e: |
| LOW | backend/app/api/simulation.py | 1635 | except Exception as e: |
| LOW | backend/app/api/simulation.py | 1694 | except Exception as e: |
| LOW | backend/app/api/simulation.py | 1754 | except Exception as e: |
| LOW | backend/app/api/simulation.py | 1855 | except Exception as e: |
| LOW | backend/app/api/simulation.py | 1909 | except Exception as e: |
| LOW | backend/app/api/simulation.py | 1949 | except Exception as e: |
| LOW | backend/app/api/simulation.py | 1976 | except Exception as e: |
| LOW | backend/app/api/simulation.py | 2056 | except Exception as e: |
| LOW | backend/app/api/simulation.py | 2131 | except Exception as e: |
| LOW | backend/app/api/simulation.py | 2262 | except Exception as e: |
| LOW | backend/app/api/simulation.py | 2400 | except Exception as e: |
| LOW | backend/app/api/simulation.py | 2503 | except Exception as e: |
| LOW | backend/app/api/simulation.py | 2575 | except Exception as e: |
| LOW | backend/app/api/simulation.py | 2640 | except Exception as e: |
| LOW | backend/app/api/simulation.py | 2710 | except Exception as e: |
| LOW | backend/app/api/graph.py | 250 | except Exception as e: |
| LOW | backend/app/api/graph.py | 495 | except Exception as e: |
| LOW | backend/app/api/graph.py | 524 | except Exception as e: |
| LOW | backend/app/api/graph.py | 589 | except Exception as e: |
| LOW | backend/app/api/graph.py | 617 | except Exception as e: |
| LOW | backend/app/api/report.py | 174 | except Exception as e: |
| LOW | backend/app/api/report.py | 194 | except Exception as e: |
| LOW | backend/app/api/report.py | 267 | except Exception as e: |
| LOW | backend/app/api/report.py | 310 | except Exception as e: |
| LOW | backend/app/api/report.py | 349 | except Exception as e: |
| LOW | backend/app/api/report.py | 389 | except Exception as e: |
| LOW | backend/app/api/report.py | 435 | except Exception as e: |
| LOW | backend/app/api/report.py | 461 | except Exception as e: |
| LOW | backend/app/api/report.py | 558 | except Exception as e: |
| LOW | backend/app/api/report.py | 601 | except Exception as e: |
| LOW | backend/app/api/report.py | 652 | except Exception as e: |
| 102 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | backend/app/utils/file_parser.py | 6 | |
| LOW | backend/app/utils/file_parser.py | 8 | |
| LOW | backend/app/utils/__init__.py | 5 | |
| LOW | backend/app/utils/__init__.py | 6 | |
| LOW | backend/app/utils/__init__.py | 7 | |
| LOW | backend/app/utils/__init__.py | 7 | |
| LOW | backend/app/utils/__init__.py | 7 | |
| LOW | backend/app/utils/__init__.py | 7 | |
| LOW | backend/app/utils/zep_paging.py | 7 | |
| LOW | backend/app/models/__init__.py | 5 | |
| LOW | backend/app/models/__init__.py | 5 | |
| LOW | backend/app/models/__init__.py | 6 | |
| LOW | backend/app/models/__init__.py | 6 | |
| LOW | backend/app/models/__init__.py | 6 | |
| LOW | backend/app/models/project.py | 13 | |
| LOW | backend/app/api/simulation.py | 15 | |
| LOW | backend/app/api/__init__.py | 11 | |
| LOW | backend/app/api/__init__.py | 12 | |
| LOW | backend/app/api/__init__.py | 13 | |
| LOW | backend/app/api/report.py | 12 | |
| LOW | backend/app/services/report_agent.py | 14 | |
| LOW | backend/app/services/report_agent.py | 17 | |
| LOW | backend/app/services/report_agent.py | 25 | |
| LOW | backend/app/services/report_agent.py | 25 | |
| LOW | backend/app/services/report_agent.py | 25 | |
| LOW | backend/app/services/report_agent.py | 25 | |
| LOW | backend/app/services/simulation_runner.py | 10 | |
| LOW | backend/app/services/simulation_runner.py | 15 | |
| LOW | backend/app/services/simulation_runner.py | 21 | |
| LOW | backend/app/services/simulation_runner.py | 25 | |
| LOW | backend/app/services/simulation_runner.py | 25 | |
| LOW | backend/app/services/simulation_runner.py | 1125 | |
| LOW | backend/app/services/text_processor.py | 5 | |
| LOW | backend/app/services/__init__.py | 5 | |
| LOW | backend/app/services/__init__.py | 6 | |
| LOW | backend/app/services/__init__.py | 7 | |
| LOW | backend/app/services/__init__.py | 8 | |
| LOW | backend/app/services/__init__.py | 8 | |
| LOW | backend/app/services/__init__.py | 8 | |
| LOW | backend/app/services/__init__.py | 9 | |
| LOW | backend/app/services/__init__.py | 9 | |
| LOW | backend/app/services/__init__.py | 10 | |
| LOW | backend/app/services/__init__.py | 10 | |
| LOW | backend/app/services/__init__.py | 10 | |
| LOW | backend/app/services/__init__.py | 11 | |
| LOW | backend/app/services/__init__.py | 11 | |
| LOW | backend/app/services/__init__.py | 11 | |
| LOW | backend/app/services/__init__.py | 11 | |
| LOW | backend/app/services/__init__.py | 11 | |
| LOW | backend/app/services/__init__.py | 11 | |
| LOW | backend/app/services/__init__.py | 19 | |
| LOW | backend/app/services/__init__.py | 19 | |
| LOW | backend/app/services/__init__.py | 19 | |
| LOW | backend/app/services/__init__.py | 19 | |
| LOW | backend/app/services/__init__.py | 19 | |
| LOW | backend/app/services/__init__.py | 26 | |
| LOW | backend/app/services/__init__.py | 26 | |
| LOW | backend/app/services/__init__.py | 26 | |
| LOW | backend/app/services/__init__.py | 31 | |
| LOW | backend/app/services/__init__.py | 31 | |
| 18 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | backend/app/utils/file_parser.py | 161 | |
| LOW | backend/app/api/simulation.py | 240 | |
| LOW | backend/app/api/simulation.py | 643 | |
| LOW | backend/app/api/simulation.py | 817 | |
| LOW | backend/app/api/simulation.py | 1029 | |
| LOW | backend/app/api/simulation.py | 1139 | |
| LOW | backend/app/api/simulation.py | 1452 | |
| LOW | backend/app/services/report_agent.py | 956 | |
| LOW | backend/app/services/report_agent.py | 1221 | |
| LOW | backend/app/services/report_agent.py | 2019 | |
| LOW | backend/app/services/report_agent.py | 2132 | |
| LOW | backend/app/services/report_agent.py | 2301 | |
| LOW | backend/app/services/report_agent.py | 2500 | |
| LOW | backend/app/services/report_agent.py | 2521 | |
| LOW | backend/app/services/simulation_runner.py | 482 | |
| LOW | backend/app/services/simulation_runner.py | 584 | |
| LOW | backend/app/services/simulation_runner.py | 825 | |
| LOW | backend/app/services/simulation_runner.py | 1103 | |
| LOW | backend/app/services/simulation_runner.py | 1187 | |
| LOW | backend/app/services/simulation_runner.py | 1288 | |
| LOW | backend/app/services/simulation_runner.py | 1319 | |
| LOW | backend/app/services/zep_tools.py | 304 | |
| LOW | backend/app/services/zep_tools.py | 464 | |
| LOW | backend/app/services/zep_tools.py | 546 | |
| LOW | backend/app/services/zep_tools.py | 1485 | |
| LOW | backend/app/services/zep_tools.py | 1505 | |
| LOW | backend/app/services/oasis_profile_generator.py | 286 | |
| LOW | backend/app/services/oasis_profile_generator.py | 414 | |
| LOW | backend/app/services/oasis_profile_generator.py | 497 | |
| LOW | backend/app/services/oasis_profile_generator.py | 774 | |
| LOW | backend/app/services/oasis_profile_generator.py | 851 | |
| LOW | backend/app/services/oasis_profile_generator.py | 889 | |
| LOW | backend/app/services/simulation_manager.py | 463 | |
| LOW | backend/app/services/simulation_ipc.py | 117 | |
| LOW | backend/app/services/zep_entity_reader.py | 215 | |
| LOW | backend/app/services/graph_builder.py | 294 | |
| LOW | backend/app/services/graph_builder.py | 347 | |
| LOW | backend/app/services/graph_builder.py | 403 | |
| LOW | backend/app/services/zep_graph_memory_updater.py | 137 | |
| LOW | backend/app/services/zep_graph_memory_updater.py | 364 | |
| LOW | backend/app/services/zep_graph_memory_updater.py | 435 | |
| LOW | backend/app/services/zep_graph_memory_updater.py | 531 | |
| LOW | backend/app/services/simulation_config_generator.py | 434 | |
| LOW | backend/app/services/simulation_config_generator.py | 728 | |
| LOW | backend/app/services/simulation_config_generator.py | 908 | |
| LOW | backend/scripts/run_reddit_simulation.py | 523 | |
| LOW | backend/scripts/run_parallel_simulation.py | 749 | |
| LOW | backend/scripts/run_parallel_simulation.py | 857 | |
| LOW | backend/scripts/run_parallel_simulation.py | 938 | |
| LOW | backend/scripts/run_parallel_simulation.py | 1101 | |
| LOW | backend/scripts/run_parallel_simulation.py | 1293 | |
| LOW | backend/scripts/run_parallel_simulation.py | 1492 | |
| LOW | backend/scripts/run_parallel_simulation.py | 416 | |
| LOW | backend/scripts/run_twitter_simulation.py | 531 |
| Severity | File | Line | Snippet |
|---|---|---|---|
| MEDIUM | backend/requirements.txt | 1 | # =========================================== |
| MEDIUM | backend/requirements.txt | 3 | # =========================================== |
| MEDIUM | backend/requirements.txt | 6 | # =========================================== |
| MEDIUM | backend/app/services/report_agent.py | 470 | # ═══════════════════════════════════════════════════════════════ |
| MEDIUM | backend/app/services/report_agent.py | 472 | # ═══════════════════════════════════════════════════════════════ |
| MEDIUM | backend/app/services/report_agent.py | 860 | # ═══════════════════════════════════════════════════════════════ |
| MEDIUM | backend/app/services/report_agent.py | 862 | # ═══════════════════════════════════════════════════════════════ |
| MEDIUM | backend/scripts/run_parallel_simulation.py | 28 | # ============================================================ |
| MEDIUM | backend/scripts/run_parallel_simulation.py | 31 | # ============================================================ |
| Severity | File | Line | Snippet |
|---|---|---|---|
| HIGH | backend/scripts/run_reddit_simulation.py | 0 | 过滤掉 camel-ai 关于 max_tokens 的警告(我们故意不设置 max_tokens,让模型自行决定) |
| HIGH | backend/scripts/run_parallel_simulation.py | 0 | 过滤掉 camel-ai 关于 max_tokens 的警告(我们故意不设置 max_tokens,让模型自行决定) |
| HIGH | backend/scripts/run_twitter_simulation.py | 0 | 过滤掉 camel-ai 关于 max_tokens 的警告(我们故意不设置 max_tokens,让模型自行决定) |
| HIGH | backend/scripts/run_reddit_simulation.py | 0 | select user_id, info, created_at from trace where action = ? and user_id = ? order by created_at desc limit 1 |
| HIGH | backend/scripts/run_parallel_simulation.py | 0 | select user_id, info, created_at from trace where action = ? and user_id = ? order by created_at desc limit 1 |
| HIGH | backend/scripts/run_twitter_simulation.py | 0 | select user_id, info, created_at from trace where action = ? and user_id = ? order by created_at desc limit 1 |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | backend/app/api/simulation.py | 28 | def optimize_interview_prompt(prompt: str) -> str: |
| LOW | backend/app/api/simulation.py | 240 | def _check_simulation_prepared(simulation_id: str) -> tuple: |
| LOW | backend/app/api/simulation.py | 817 | def _get_report_id_for_simulation(simulation_id: str) -> str: |
| LOW | backend/app/api/simulation.py | 1029 | def get_simulation_profiles_realtime(simulation_id: str): |
| LOW | backend/app/api/simulation.py | 1139 | def get_simulation_config_realtime(simulation_id: str): |
| LOW | backend/app/api/simulation.py | 1295 | def download_simulation_config(simulation_id: str): |
| LOW | backend/app/api/simulation.py | 1324 | def download_simulation_script(script_name: str): |
| LOW | backend/app/api/report.py | 984 | def get_graph_statistics_tool(): |
| LOW | backend/app/services/report_agent.py | 258 | def log_section_full_complete( |
| LOW | backend/app/services/report_agent.py | 1928 | def _get_report_markdown_path(cls, report_id: str) -> str: |
| LOW | backend/app/services/simulation_runner.py | 694 | def _check_all_platforms_completed(cls, state: SimulationRunState) -> bool: |
| LOW | backend/app/services/simulation_runner.py | 1659 | def _get_interview_history_from_db( |
| LOW | backend/app/services/zep_tools.py | 1485 | def _clean_tool_call_response(response: str) -> str: |
| LOW | backend/app/services/zep_tools.py | 1551 | def _select_agents_for_interview( |
| LOW | backend/app/services/zep_tools.py | 1634 | def _generate_interview_questions( |
| LOW | backend/app/services/zep_tools.py | 1683 | def _generate_interview_summary( |
| LOW | backend/app/services/oasis_profile_generator.py | 212 | def generate_profile_from_entity( |
| LOW | backend/app/services/oasis_profile_generator.py | 497 | def _generate_profile_with_llm( |
| LOW | backend/app/services/oasis_profile_generator.py | 677 | def _build_individual_persona_prompt( |
| LOW | backend/app/services/oasis_profile_generator.py | 774 | def _generate_profile_rule_based( |
| LOW | backend/app/services/oasis_profile_generator.py | 851 | def generate_profiles_from_entities( |
| LOW | backend/app/services/oasis_profile_generator.py | 726 | def _build_group_persona_prompt( |
| LOW | backend/app/services/zep_graph_memory_updater.py | 166 | def _describe_dislike_comment(self) -> str: |
| LOW | backend/app/services/zep_graph_memory_updater.py | 271 | def _get_platform_display_name(self, platform: str) -> str: |
| LOW | backend/app/services/simulation_config_generator.py | 728 | def _assign_initial_post_agents( |
| LOW | backend/app/services/simulation_config_generator.py | 813 | def _generate_agent_configs_batch( |
| LOW | backend/app/services/simulation_config_generator.py | 908 | def _generate_agent_config_by_rule(self, entity: EntityNode) -> Dict[str, Any]: |
| LOW | backend/scripts/run_reddit_simulation.py | 469 | def _get_active_agents_for_round( |
| LOW | backend/scripts/run_parallel_simulation.py | 141 | def init_logging_for_simulation(simulation_dir: str): |
| LOW | backend/scripts/run_parallel_simulation.py | 317 | async def _interview_single_platform(self, agent_id: int, prompt: str, platform: str) -> Dict[str, Any]: |
| LOW | backend/scripts/run_parallel_simulation.py | 633 | def get_agent_names_from_config(config: Dict[str, Any]) -> Dict[int, str]: |
| LOW | backend/scripts/run_parallel_simulation.py | 657 | def fetch_new_actions_from_db( |
| LOW | backend/scripts/run_parallel_simulation.py | 1040 | def get_active_agents_for_round( |
| LOW | backend/scripts/run_twitter_simulation.py | 462 | def _get_active_agents_for_round( |
| Severity | File | Line | Snippet |
|---|---|---|---|
| HIGH | backend/app/services/report_agent.py | 957 | 执行工具调用 Args: tool_name: 工具名称 parameters: 工具参数 report_conte |
| HIGH | backend/app/services/simulation_runner.py | 1436 | 采访单个Agent Args: simulation_id: 模拟ID agent_id: Agent ID prompt: 采访问 |
| HIGH | backend/app/services/simulation_runner.py | 1499 | 批量采访多个Agent Args: simulation_id: 模拟ID interviews: 采访列表,每个元素包含 {"agent_id": int |
| HIGH | backend/app/services/simulation_ipc.py | 124 | 发送命令并等待响应 Args: command_type: 命令类型 args: 命令参数 timeout: 超时时 |
| HIGH | backend/app/services/simulation_config_generator.py | 255 | 智能生成完整的模拟配置(分步生成) Args: simulation_id: 模拟ID project_id: 项目ID |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | backend/app/services/zep_tools.py | 981 | # Step 1: 使用LLM生成子问题 |
| LOW | backend/app/services/zep_tools.py | 991 | # Step 2: 对每个子问题进行语义搜索 |
| LOW | backend/app/services/zep_tools.py | 1026 | # Step 3: 从边中提取相关实体UUID,只获取这些实体的信息(不获取全部节点) |
| LOW | backend/app/services/zep_tools.py | 1071 | # Step 4: 构建所有关系链(不限制数量) |
| LOW | backend/app/services/zep_tools.py | 1316 | # Step 1: 读取人设文件 |
| LOW | backend/app/services/zep_tools.py | 1327 | # Step 2: 使用LLM选择要采访的Agent(返回agent_id列表) |
| LOW | backend/app/services/zep_tools.py | 1339 | # Step 3: 生成采访问题(如果没有提供) |
| LOW | backend/app/services/zep_tools.py | 1365 | # Step 4: 调用真实的采访API(不指定platform,默认双平台同时采访) |
| LOW | backend/app/services/zep_tools.py | 1395 | # Step 5: 解析API返回结果,构建AgentInterview对象 |
| LOW | backend/app/services/zep_tools.py | 1474 | # Step 6: 生成采访摘要 |
| Severity | File | Line | Snippet |
|---|---|---|---|
| HIGH | README.md | 121 | LLM_API_KEY=your_api_key |
| HIGH | README-ZH.md | 121 | LLM_API_KEY=your_api_key |
| Severity | File | Line | Snippet |
|---|---|---|---|
| HIGH | backend/app/api/simulation.py | 1790 | "result": null, |
| Severity | File | Line | Snippet |
|---|---|---|---|
| MEDIUM | frontend/package-lock.json | 1963 | "resolved": "https://registry.npmjs.org/robust-predicates/-/robust-predicates-3.0.2.tgz", |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | backend/requirements.txt | 1 | # =========================================== |