AI Slop Code RIsk Monitor

VRSEN/agency-swarm

Reliable Multi-Agent Orchestration Framework

38.0 High pattern signal View on GitHub

Maintenance and Governance Review

This report summarizes scanner evidence for VRSEN/agency-swarm, a Python project with 4,598 GitHub stars. SynthScan examined 104,695 lines of code across 493 source files, recording 3478 pattern matches distributed across 25 syntactic categories. The legacy adjusted pattern signal is 38.0 (High 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.

38.0
Adjusted Signal
38.0
Raw Pattern Score
100%
Time Factor
2026-10-10
Last Push
4.6K
Stars
Python
Language
104.7K
Lines of Code
493
Files
3.5K
Pattern Hits
2026-10-12
Scan Date
0.17
HC Hit Rate

Risk Review · v3

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

Cognitive Ownership Risk 70.5/100 · HIGH

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

Hallucinated Dependency & Supply Chain Risk 23.9/100 · LOW

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

Agent Over-Engineering Ratio 75.4/100 · CRITICAL

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

PR Review Velocity Impact 86.2/100 · CRITICAL

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

What These Metrics Mean

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

Pattern-Signal History

This chart tracks the legacy adjusted pattern score across scan runs. Changes can reflect source changes, scan coverage, or detector/scoring versions; they do not measure AI adoption or prove that a team refactored code. Compare runs only when their scoring versions are compatible. The dashed line tracks the raw pattern-hit count.

Severity Breakdown

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

CRITICAL 8HIGH 78MEDIUM 100LOW 3292

Directory Score Breakdown

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

Pattern Findings

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

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

Hyper-Verbose Identifiers2070 hits · 2068 pts
SeverityFileLineSnippetContext
LOWhatch_build.py176def _validate_existing_pricing_file(pricing_file_path: Path) -> None:CODE
LOW⚡tests/conftest.py26 def get_conversation_history_side_effect(agent, caller_agent=None):CODE
LOW⚡tests/conftest.py36 def get_all_messages_side_effect():CODE
LOW⚡tests/conftest.py40 def replace_messages_side_effect(new_messages):CODE
LOWtests/conftest.py79 def mock_create_minimal_context():CODE
LOWtests/deterministic_model.py44def _extract_text_from_content(content: Any) -> str | None:CODE
LOWtests/deterministic_model.py74def _extract_last_tool_output(items: str | list[TResponseInputItem]) -> str | None:CODE
LOWtests/deterministic_model.py92def _extract_secret_from_history(items: list[TResponseInputItem]) -> str | None:CODE
LOWtests/deterministic_model.py153def _build_tool_call_response(tool_name: str, arguments: dict[str, Any]) -> ModelResponse:CODE
LOWtests/deterministic_model.py308async def _stream_output_item_events(CODE
LOWtests/response_history_samples.py6def history_with_encrypted_reasoning() -> list[dict[str, Any]]:CODE
LOWtests/response_history_samples.py56def history_with_unencrypted_reasoning() -> list[dict[str, Any]]:CODE
LOWtests/response_history_samples.py63def history_with_unencrypted_reasoning_before_tool_pair() -> list[dict[str, Any]]:CODE
LOWtests/response_history_samples.py90def history_with_unencrypted_reasoning_before_current_user_message() -> list[dict[str, Any]]:CODE
LOWtests/response_history_samples.py102def history_with_unencrypted_reasoning_before_builtin_tool_call() -> list[dict[str, Any]]:CODE
LOWtests/response_history_samples.py119def history_with_unencrypted_reasoning_before_tool_search_pair() -> list[dict[str, Any]]:CODE
LOWtests/response_history_samples.py145def history_with_user_and_legacy_unencrypted_reasoning_turn() -> list[dict[str, Any]]:CODE
LOWtests/response_history_helpers.py97def parse_sse_messages_payload(chunks: list[str]) -> dict[str, Any]:CODE
LOWtests/response_history_helpers.py109def agency_factory_with_store(CODE
LOWtests/response_history_helpers.py146def build_store_false_agency_factory(CODE
LOWtests/response_history_helpers.py168def assert_store_false_input_preserves_stateless_reasoning(model_input: str | list[TResponseInputItem]) -> None:CODE
LOW⚡tests/response_history_helpers.py188def assert_unencrypted_reasoning_is_dropped(model_input: str | list[TResponseInputItem]) -> None:CODE
LOW⚡tests/response_history_helpers.py195def assert_store_false_requests_encrypted_reasoning(model_settings: ModelSettings) -> None:CODE
LOW⚡tests/response_history_helpers.py201def assert_history_input_has_no_response_ids(model_input: str | list[TResponseInputItem]) -> None:CODE
LOW⚡tests/response_history_helpers.py207def assert_messages_have_no_response_ids(messages: list[dict[str, Any]]) -> None:CODE
LOWtests/test_agency_modules/test_ui_metadata.py17 def test_get_metadata_rich_metadata(self):CODE
LOWtests/test_agency_modules/test_ui_metadata.py46 def test_get_metadata_includes_quick_replies(self):CODE
LOWtests/test_agency_modules/test_ui_metadata.py62 def test_get_metadata_uses_openrouter_model_alias(self):CODE
LOWtests/test_agency_modules/test_ui_metadata.py77 def test_hosted_mcp_tools_unique_ids(self):CODE
LOWtests/test_agency_modules/test_ui_metadata.py113 def test_get_agency_structure_deprecated_alias(self):CODE
LOWtests/test_agency_modules/test_ui_metadata.py122def test_copilot_demo_launcher_sets_client_facing_backend_url():CODE
LOWtests/test_agency_modules/test_ui_metadata.py153def test_server_helpers_default_to_loopback_host():CODE
LOWtests/test_agency_modules/test_agentswarm_cli_tui.py32def test_agentswarm_cli_tui_launches_agent_swarm_cli(monkeypatch):CODE
LOWtests/test_agency_modules/test_agentswarm_cli_tui.py64def test_agentswarm_cli_tui_continues_after_reload(monkeypatch):CODE
LOW⚡tests/test_agency_modules/test_agentswarm_cli_tui.py85def test_agentswarm_cli_tui_installs_agent_swarm_cli(monkeypatch):CODE
LOW⚡tests/test_agency_modules/test_agentswarm_cli_tui.py92def test_agentswarm_cli_tui_prefers_explicit_cli(monkeypatch):CODE
LOW⚡tests/test_agency_modules/test_agentswarm_cli_tui.py99def test_agentswarm_cli_tui_rejects_hidden_reasoning():CODE
LOW⚡tests/test_agency_modules/test_agentswarm_cli_tui.py106def test_agentswarm_cli_tui_raises_when_bridge_fails(monkeypatch):CODE
LOWtests/test_agency_modules/test_agentswarm_cli_tui.py120def test_agentswarm_cli_tui_raises_when_cli_launch_fails(monkeypatch):CODE
LOWtests/test_agency_modules/test_agentswarm_cli_tui.py139def test_agentswarm_cli_tui_contains_python_prints_while_cli_runs(monkeypatch, capsys, tmp_path):CODE
LOWtests/test_agency_modules/test_agentswarm_cli_tui.py203def test_agentswarm_cli_tui_reports_bridge_output_on_failure(monkeypatch, capsys, tmp_path):CODE
LOWtests/test_agency_modules/test_agentswarm_cli_tui.py255def test_agentswarm_cli_tui_capture_includes_bridge_worker_threads(capsys, tmp_path):CODE
LOWtests/test_agency_modules/test_agentswarm_cli_tui.py280def test_agentswarm_cli_tui_capture_keeps_other_threads_on_real_streams(capsys, tmp_path):CODE
LOWtests/test_agency_modules/test_agentswarm_cli_tui.py310def test_agentswarm_cli_tui_downloads_platform_cli(monkeypatch, tmp_path):CODE
LOWtests/test_agency_modules/test_agentswarm_cli_tui.py382def test_agentswarm_cli_tui_notifies_on_first_run(monkeypatch, tmp_path):CODE
LOW…s/test_agency_modules/test_chained_handoffs_runtime.py127async def test_same_turn_chained_handoff_reaches_final_agent() -> None:CODE
LOW…s/test_agency_modules/test_chained_handoffs_runtime.py143async def test_runtime_handoffs_are_restored_after_run() -> None:CODE
LOW…/test_agency_modules/test_package_init_lazy_litellm.py28def test_import_agency_swarm_does_not_eager_import_litellm_when_installed() -> None:CODE
LOW…/test_agency_modules/test_package_init_lazy_litellm.py44def test_litellm_model_export_loads_and_patches_lazily() -> None:CODE
LOW…/test_agency_modules/test_package_init_lazy_litellm.py69def test_package_star_import_includes_litellm_model_when_installed() -> None:CODE
LOW…/test_agency_modules/test_package_init_lazy_litellm.py91def test_agent_with_sdk_litellm_model_patches_when_model_is_used() -> None:CODE
LOWtests/test_agency_modules/test_agency_helpers.py23def test_integrations_fastapi_imports_without_optional_dependencies(caplog):CODE
LOWtests/test_agency_modules/test_agency_helpers.py49def test_run_fastapi_creates_new_agency_instance(mocker):CODE
LOWtests/test_agency_modules/test_agency_helpers.py81def test_run_fastapi_preserves_custom_tool_mappings(mocker):CODE
LOWtests/test_agency_modules/test_agency_helpers.py104def test_run_fastapi_preserves_default_and_custom_tool_mappings(mocker):CODE
LOWtests/test_agency_modules/test_agency_helpers.py129def test_run_fastapi_normalizes_relative_shared_folders_for_factory_calls(mocker, tmp_path: Path):CODE
LOWtests/test_agency_modules/test_agency_helpers.py195def test_run_fastapi_preserves_oauth_token_path(mocker, tmp_path: Path) -> None:CODE
LOWtests/test_agency_modules/test_agency_helpers.py215def test_package_star_import_succeeds_without_jupyter_dependencies() -> None:CODE
LOWtests/test_agency_modules/test_ui.py61 def test_hierarchical_layout_basic(self, sample_agency_data):CODE
LOWtests/test_agency_modules/test_ui.py80 def test_hierarchical_layout_entry_points_on_top(self, sample_agency_data):CODE
2010 more matches not shown…
Unused Imports588 hits · 422 pts
SeverityFileLineSnippetContext
LOWtests/deterministic_model.py1CODE
LOWtests/response_history_samples.py1CODE
LOWtests/response_history_helpers.py1CODE
LOWtests/test_cli_modules/test_main.py1CODE
LOWtests/integration/conftest.py8CODE
LOWtests/integration/test_package_init_lazy_openclaw.py1CODE
LOW…/integration/agency/test_tool_result_history_replay.py9CODE
LOWtests/integration/fastapi/conftest.py1CODE
LOWtests/integration/fastapi/test_openclaw_layout.py1CODE
LOW…egration/fastapi/test_openclaw_current_app_defaults.py1CODE
LOWtests/integration/fastapi/test_openclaw_tool_mode.py1CODE
LOW…ntegration/fastapi/test_fastapi_uvicorn_ws_fallback.py1CODE
LOW…s/integration/fastapi/test_openclaw_proxy_streaming.py1CODE
LOW…s/integration/fastapi/test_openclaw_runtime_process.py1CODE
LOWtests/integration/fastapi/_openclaw_test_support.py1CODE
LOW…gration/fastapi/test_openclaw_store_false_reasoning.py1CODE
LOW…ts/integration/fastapi/test_openclaw_proxy_requests.py1CODE
LOWtests/integration/fastapi/test_fastapi_user_context.py1CODE
LOW…/integration/fastapi/test_openclaw_response_history.py1CODE
LOWtests/integration/fastapi/test_openclaw_model_auth.py1CODE
LOW…s/integration/fastapi/test_openclaw_runtime_startup.py1CODE
LOWtests/integration/fastapi/test_fastapi_client_config.py3CODE
LOW…ration/test_litellm_openai_responses_history_switch.py3CODE
LOW…financial_research_agency/PortfolioManager/__init__.py1CODE
LOW…ency/financial_research_agency/RiskAnalyst/__init__.py1CODE
LOW…/financial_research_agency/ReportGenerator/__init__.py1CODE
LOW…test_fastapi_utils_modules/test_tool_request_models.py1CODE
LOWtests/test_fastapi_utils_modules/test_tool_endpoints.py1CODE
LOW…sts/test_fastapi_utils_modules/test_override_policy.py3CODE
LOWtests/test_utils_modules/test_usage_tracking.py1CODE
LOW…test_messages_modules/test_response_input_sanitizer.py1CODE
LOW…st_agent_modules/test_system_reminders_run_contract.py1CODE
LOWtests/test_agent_modules/test_agent_flow.py1CODE
LOW…modules/test_system_reminders_lifecycle_regressions.py1CODE
LOWtests/test_agent_modules/test_openclaw_agent.py1CODE
LOWtests/test_agent_modules/test_file_sync.py1CODE
LOW…nt_modules/test_system_reminders_runner_regressions.py1CODE
LOWtests/test_agent_modules/test_mcp_manager.py1CODE
LOW…/test_agent_modules/test_system_reminders_streaming.py9CODE
LOW…nt_modules/test_system_reminders_review_regressions.py1CODE
LOWtests/test_agent_modules/test_system_reminders.py1CODE
LOWsrc/agency_swarm/__init__.py10CODE
LOWsrc/agency_swarm/__init__.py10CODE
LOWsrc/agency_swarm/__init__.py10CODE
LOWsrc/agency_swarm/__init__.py10CODE
LOWsrc/agency_swarm/__init__.py10CODE
LOWsrc/agency_swarm/__init__.py10CODE
LOWsrc/agency_swarm/__init__.py10CODE
LOWsrc/agency_swarm/__init__.py10CODE
LOWsrc/agency_swarm/__init__.py10CODE
LOWsrc/agency_swarm/__init__.py10CODE
LOWsrc/agency_swarm/__init__.py10CODE
LOWsrc/agency_swarm/__init__.py10CODE
LOWsrc/agency_swarm/__init__.py10CODE
LOWsrc/agency_swarm/__init__.py10CODE
LOWsrc/agency_swarm/__init__.py10CODE
LOWsrc/agency_swarm/__init__.py10CODE
LOWsrc/agency_swarm/__init__.py10CODE
LOWsrc/agency_swarm/__init__.py10CODE
LOWsrc/agency_swarm/__init__.py10CODE
528 more matches not shown…
Excessive Try-Catch Wrapping306 hits · 345 pts
SeverityFileLineSnippetContext
LOWhatch_build.py28except Exception:CODE
LOWhatch_build.py155 except Exception:CODE
LOW⚡tests/integration/agency/test_agent_handoffs.py178 except Exception as e:CODE
LOWtests/integration/mcp/test_mcp_server.py84 except Exception:CODE
LOW…ts/integration/fastapi/test_fastapi_file_processing.py57 except Exception as e:CODE
LOW…ts/integration/fastapi/test_fastapi_file_processing.py120 except Exception as e:CODE
LOWtests/integration/persistence/test_persistence.py26 except Exception as e:CODE
LOWtests/integration/persistence/test_persistence.py49 except Exception as e:CODE
LOWtests/integration/persistence/test_persistence.py119 except Exception as e:CODE
LOWtests/integration/persistence/test_persistence.py131 except Exception as e:CODE
LOW…ation/persistence/test_thread_isolation_persistence.py74 except Exception:CODE
LOW…ation/persistence/test_thread_isolation_persistence.py87 except Exception:CODE
LOW…tion/files/test_file_attachment_citation_extraction.py105 except Exception as err:STRING
LOW…tion/files/test_file_attachment_citation_extraction.py166 except Exception as e:STRING
LOW…tion/files/test_file_attachment_citation_extraction.py221 except Exception as err:STRING
LOW…tion/files/test_file_attachment_citation_extraction.py241 except Exception as err:STRING
MEDIUM⚡tests/integration/files/test_file_handling.py250 print(f"Error cleaning up file {file.name}: {e}")CODE
MEDIUM⚡tests/integration/files/test_file_handling.py259 print(f"Error cleaning up vector store: {e}")CODE
MEDIUM⚡tests/integration/files/test_file_handling.py261 print(f"Error during cleanup: {e}")CODE
MEDIUMtests/integration/files/test_file_handling.py184 print(f"Error cleaning up file {file_id}: {e}")CODE
LOW⚡tests/integration/files/test_file_handling.py249 except Exception as e:CODE
LOW⚡tests/integration/files/test_file_handling.py258 except Exception as e:CODE
LOW⚡tests/integration/files/test_file_handling.py260 except Exception as e:CODE
MEDIUM⚡tests/integration/files/test_file_handling.py490 print(f"Error cleaning up: {e}, dir: {tmp_dir.glob('*')}")STRING
LOWtests/integration/files/test_file_handling.py101 except Exception as e:CODE
LOWtests/integration/files/test_file_handling.py183 except Exception as e:CODE
LOWtests/integration/files/test_file_handling.py383 except Exception as e:CODE
LOWtests/integration/files/test_file_handling.py659 except Exception as e:CODE
LOWtests/integration/files/test_file_handling.py714 except Exception:CODE
LOWtests/integration/files/test_file_handling.py740 except Exception as e:CODE
LOW⚡tests/integration/files/test_file_handling.py489 except Exception as e:STRING
LOWtests/integration/communication/test_communication.py284 except Exception:CODE
LOW…ration/fin_agency/test_agent_run_id_live_fin_agency.py42 except Exception:CODE
LOW…ration/fin_agency/test_agent_run_id_live_fin_agency.py49 except Exception:CODE
LOW…ration/fin_agency/test_agent_run_id_live_fin_agency.py60 except Exception:CODE
LOW…ration/fin_agency/test_agent_run_id_live_fin_agency.py116 except Exception:CODE
LOW…ration/fin_agency/test_agent_run_id_live_fin_agency.py237 except Exception:CODE
LOWtests/integration/fin_agency/main.py98 except Exception:CODE
LOWtests/integration/fin_agency/main.py196 except Exception:CODE
LOW…/ReportGenerator/tools/FormatProfessionalReportTool.py167 except Exception as e:STRING
LOWtests/fastapi_debugging/debug_streaming.py158 except Exception as e:CODE
LOWtests/fastapi_debugging/debug_delegation_events.py124 except Exception:CODE
LOW.claude/agents/tools-creator.md107 except Exception as e:CODE
LOWdocs/analise_docs.py67 except Exception as e:CODE
MEDIUMdocs/analise_docs.py68 print(f"Error processing {file_path}: {e}")CODE
LOWexamples/agency_visualization.py104 except Exception as e:CODE
LOWexamples/message_attachments.py64 except Exception as e:CODE
LOWexamples/message_attachments.py111 except Exception as e:CODE
LOWexamples/message_attachments.py149 except Exception:CODE
LOWexamples/mcp_servers.py127 except Exception as e:CODE
LOWexamples/fastapi_integration/oauth_agency.py64 except Exception as exc: # noqa: BLE001CODE
MEDIUMexamples/fastapi_integration/oauth_agency.py61def _run_once() -> None:CODE
LOWexamples/fastapi_integration/client.py92 except Exception as e:CODE
LOWexamples/fastapi_integration/client.py280 except Exception as e:CODE
LOWexamples/utils/stdio_mcp_server.py36 except Exception as e:CODE
LOWexamples/interactive/copilot_demo.py64 except Exception as e:CODE
LOWexamples/mcp_oauth/notion_client.py61 except Exception:CODE
LOWexamples/mcp_oauth/google_client.py66 except Exception:CODE
LOWexamples/mcp_oauth/github_client.py144 except Exception as e:CODE
LOWexamples/mcp_oauth/github_client.py177 except Exception:CODE
246 more matches not shown…
Empty Error Handlers63 hits · 315 pts
SeverityFileLineSnippetContext
HIGH…/integration/guardrails/test_guardrails_integration.py156except OutputGuardrailTripwireTriggered:CODE
HIGH…ntegration/fastapi/test_fastapi_stream_cancellation.py92except json.JSONDecodeError:CODE
HIGH…ts/integration/fastapi/test_fastapi_file_processing.py499except json.JSONDecodeError:CODE
HIGH…ation/persistence/test_thread_isolation_persistence.py74except Exception:CODE
HIGHtests/integration/files/test_file_handling.py714except Exception:CODE
HIGH…ration/fin_agency/test_agent_run_id_live_fin_agency.py271except httpx2.HTTPError:CODE
HIGH…ration/fin_agency/test_agent_run_id_live_fin_agency.py49except Exception:CODE
HIGHtests/integration/fin_agency/main.py98except Exception:CODE
HIGHtests/integration/fin_agency/main.py185except json.JSONDecodeError:CODE
HIGH…t_fastapi_utils_modules/test_file_handler_downloads.py63except OSError:CODE
HIGH…t_fastapi_utils_modules/test_file_handler_downloads.py61except OSError:CODE
HIGHexamples/message_attachments.py149except Exception:CODE
HIGHexamples/fastapi_integration/client.py171except json.JSONDecodeError:CODE
HIGHexamples/mcp_oauth/notion_client.py61except Exception:CODE
HIGHexamples/mcp_oauth/google_client.py66except Exception:CODE
HIGHexamples/mcp_oauth/github_client.py177except Exception:CODE
HIGHsrc/agency_swarm/ui/core/console_event_adapter.py48except Exception:CODE
HIGHsrc/agency_swarm/ui/core/console_event_adapter.py56except Exception:CODE
HIGHsrc/agency_swarm/ui/core/console_event_adapter.py220except Exception:CODE
HIGHsrc/agency_swarm/ui/core/console_event_adapter.py338except Exception:CODE
HIGHsrc/agency_swarm/ui/core/console_event_adapter.py365except Exception:CODE
HIGHsrc/agency_swarm/ui/core/console_event_adapter.py136except Exception:CODE
HIGHsrc/agency_swarm/ui/core/console_event_adapter.py234except Exception:CODE
HIGHsrc/agency_swarm/ui/core/console_event_adapter.py410except Exception:CODE
HIGHsrc/agency_swarm/ui/core/console_event_adapter.py183except Exception:CODE
HIGHsrc/agency_swarm/ui/core/console_event_adapter.py204except Exception:CODE
HIGHsrc/agency_swarm/ui/demos/persistence.py258except Exception:CODE
HIGHsrc/agency_swarm/ui/demos/terminal.py410except Exception:CODE
HIGHsrc/agency_swarm/ui/demos/terminal.py111except Exception:CODE
HIGHsrc/agency_swarm/ui/demos/terminal.py272except KeyboardInterrupt:CODE
HIGHsrc/agency_swarm/ui/demos/terminal.py117except Exception:CODE
HIGHsrc/agency_swarm/ui/demos/compact.py89except Exception:CODE
HIGHsrc/agency_swarm/ui/demos/realtime/app/server.py330except WebSocketDisconnect:CODE
HIGHsrc/agency_swarm/tools/built_in/PresentFiles.py79except Exception:CODE
HIGHsrc/agency_swarm/tools/built_in/IPythonInterpreter.py346except Exception:CODE
HIGHsrc/agency_swarm/tools/built_in/IPythonInterpreter.py336except Exception:CODE
HIGHsrc/agency_swarm/messages/message_formatter.py630except Exception:CODE
HIGHsrc/agency_swarm/utils/files.py29except Exception:CODE
HIGHsrc/agency_swarm/utils/usage_tracking.py328except Exception:CODE
HIGHsrc/agency_swarm/agent/execution_stream_response.py218except Exception: # pragma: no cover - defensiveCODE
HIGHsrc/agency_swarm/agent/execution_stream_response.py165except Exception: # pragma: no cover - defensiveCODE
HIGHsrc/agency_swarm/agent/execution.py152except Exception:CODE
HIGHsrc/agency_swarm/agent/execution.py507except Exception:CODE
HIGHsrc/agency_swarm/agent/file_sync.py128except NotFoundError:CODE
HIGHsrc/agency_swarm/agent/execution_stream_persistence.py141except Exception:CODE
HIGHsrc/agency_swarm/agent/core.py650except Exception:CODE
HIGHsrc/agency_swarm/agent/execution_streaming.py195except Exception:CODE
HIGHsrc/agency_swarm/agent/execution_streaming.py601except Exception:CODE
HIGHsrc/agency_swarm/agent/execution_streaming.py357except asyncio.QueueFull:CODE
HIGHsrc/agency_swarm/agent/execution_guardrails.py58except Exception:CODE
HIGHsrc/agency_swarm/agent/execution_helpers.py253except Exception:CODE
HIGHsrc/agency_swarm/agent/openai_client.py97except ImportError:CODE
HIGHsrc/agency_swarm/streaming/utils.py43except Exception:CODE
HIGHsrc/agency_swarm/streaming/utils.py48except Exception:CODE
HIGHsrc/agency_swarm/streaming/utils.py54except Exception:CODE
HIGHsrc/agency_swarm/streaming/utils.py59except Exception:CODE
HIGHsrc/agency_swarm/streaming/utils.py201except asyncio.CancelledError:CODE
HIGHsrc/agency_swarm/integrations/realtime.py327except WebSocketDisconnect:CODE
HIGHsrc/agency_swarm/integrations/openclaw.py1080except FileNotFoundError:CODE
HIGH…gency_swarm/integrations/fastapi_utils/file_handler.py282except ValueError:CODE
3 more matches not shown…
Self-Referential Comments49 hits · 152 pts
SeverityFileLineSnippetContext
MEDIUMtests/conftest.py74 # Create an agency and replace its thread manager with our mockCOMMENT
MEDIUMtests/conftest.py101 # Create a proper async generator mock for get_response_streamCOMMENT
MEDIUMtests/conftest.py117 # Create a proper async generator mock for get_response_streamCOMMENT
MEDIUMtests/test_agency_modules/test_ui.py378 # Create a more complex structure with manager and leaf agentsCOMMENT
MEDIUM…sts/integration/tools/test_tools_folder_integration.py16 # Create a simple test toolCOMMENT
MEDIUMtests/integration/tools/test_ipython_interpreter.py267 # Create a custom tool class with a short timeoutCOMMENT
MEDIUMtests/integration/tools/test_ipython_interpreter.py346 # Create a test file in temp directoryCOMMENT
MEDIUMtests/integration/tools/test_responses_api_tools.py176 # Create an agency with the agentCOMMENT
MEDIUMtests/integration/tools/test_responses_api_tools.py314 # Create an agency with the agentSTRING
MEDIUMtests/integration/tools/test_load_file_attachment.py30 # Create a simple PNG image (1x1 red pixel)COMMENT
MEDIUMtests/integration/tools/test_load_file_attachment.py42 # Create a JPEG file markerCOMMENT
MEDIUMtests/integration/tools/test_load_file_attachment.py48 # Create a PDF file markerCOMMENT
MEDIUMtests/integration/tools/test_load_file_attachment.py191 # Create a dummy fileCOMMENT
MEDIUM…integration/tools/test_tool_concurrency_integration.py105 # Create a tools folder with function toolsCOMMENT
MEDIUMtests/integration/mcp/test_mcp_server.py184 # Create a temporary MCP server script with inline tool definitionCOMMENT
MEDIUM⚡tests/integration/mcp/test_mcp_server.py392 # Create a mock tool that's neither BaseTool nor FunctionToolCOMMENT
MEDIUM…egration/cli/test_create_agent_template_integration.py208 # Create the folder firstCOMMENT
MEDIUMtests/integration/fastapi/test_logging_middleware.py457 # Create a test log fileCOMMENT
MEDIUM…tion/files/test_file_attachment_citation_extraction.py190 # Create a separate file for direct attachment to avoid conflictsSTRING
MEDIUMtests/integration/files/test_file_handling.py129 # Create an agent WITHOUT custom file processing toolsCOMMENT
MEDIUMtests/integration/files/test_file_handling.py523 # Create a vision-capable agentCOMMENT
MEDIUMtests/test_utils_modules/test_files.py22 # Create a user script that imports and calls get_external_caller_directoryCOMMENT
MEDIUMtests/test_utils_modules/test_files.py101 # Create a tool fileSTRING
MEDIUMtests/test_utils_modules/test_files.py247 # Create a script that uses exec() to call get_external_caller_directoryCOMMENT
MEDIUM⚡tests/test_utils_modules/test_create_agent_template.py292 # Create the folder firstCOMMENT
MEDIUMtests/data/scripts/stdio_server.py5# Create the MCP serverCOMMENT
MEDIUM⚡tests/test_agent_modules/test_tool_factory_core.py73 # Create a file with syntax errorsCOMMENT
MEDIUMtests/test_agent_modules/test_agent_initialization.py281 # Create a temporary test directoryCOMMENT
MEDIUMtests/test_agent_modules/test_agent_file_manager.py460 # Create a file so the folder is not emptyCOMMENT
MEDIUMtests/test_agent_modules/test_attachment_manager.py105 # Create a mock agent without file_managerCOMMENT
MEDIUM…t_modules/test_execution_stream_persistence_fake_id.py352 # Create a ToolCallItem and ToolCallOutputItem for call_b updateCOMMENT
MEDIUMtests/test_agent_modules/test_tool_factory_langchain.py22 # Create a simple dummy tool classCOMMENT
MEDIUM…ts/test_agent_modules/test_output_guardrail_retries.py37 # Create the exception with the guardrail_resultCOMMENT
MEDIUM⚡tests/test_agent_modules/test_streaming_utils.py22 # Create a simple object without pre-existing attributesCOMMENT
MEDIUMtests/test_agent_modules/test_streaming_utils.py35 # Create a simple object with type attributeCOMMENT
MEDIUM⚡tests/test_tools_modules/test_tool_system.py124 # Create an instance of SendMessage for testing its on_invoke_tool method directlyCOMMENT
MEDIUM⚡tests/test_tools_modules/test_tool_system.py133 # Create a class that inherits from BaseToolCOMMENT
MEDIUMdocs/analise_docs.py80# Define the thresholdCOMMENT
MEDIUMexamples/custom_persistence.py127 # Create a second agent instance for the reloaded agency (to avoid agent reuse)COMMENT
MEDIUMexamples/message_attachments.py121 # Create a single agent that can handle both files and visionCOMMENT
MEDIUMexamples/utils/stdio_mcp_server.py11# Define the async function that implements the tool logic using the decoratorCOMMENT
MEDIUM⚡src/agency_swarm/tools/send_message.py278 # Create a minimal agency context for multi-agent communicationCOMMENT
MEDIUMsrc/agency_swarm/messages/message_formatter.py330 # Create a copy without agency fields (including citations which OpenAI doesn't accept)COMMENT
MEDIUMsrc/agency_swarm/messages/message_formatter.py367 # Create a copy to avoid modifying the originalCOMMENT
MEDIUMsrc/agency_swarm/utils/create_agent_template.py226 # Define the fields with descriptions using Pydantic FieldCOMMENT
MEDIUMsrc/agency_swarm/agent/execution_helpers.py349 # Create a wrapper function that calls original callable and joins shared/additional instructionsCOMMENT
MEDIUMsrc/agency_swarm/integrations/mcp_server.py156 # Create a custom tool to maintain input schemaCOMMENT
MEDIUMsrc/agency_swarm/integrations/mcp_server.py158 # Create a custom tool class that extends ToolCOMMENT
MEDIUMsrc/agency_swarm/integrations/mcp_server.py175 # Create a minimal ToolContext for the FunctionToolCOMMENT
Deep Nesting159 hits · 147 pts
SeverityFileLineSnippetContext
LOWtests/test_build_modules/test_retired_model_guard.py36CODE
LOWtests/integration/tools/test_responses_api_tools.py54CODE
LOWtests/integration/tools/test_responses_api_tools.py262CODE
LOWtests/integration/agency/test_parent_run_id_tracking.py216CODE
LOWtests/integration/agency/test_shared_resources.py330CODE
LOW…ntegration/fastapi/test_fastapi_stream_cancellation.py53CODE
LOW…ts/integration/fastapi/test_fastapi_file_processing.py474CODE
LOW…gration/files/test_vector_store_citation_extraction.py28CODE
LOWtests/integration/files/test_file_handling.py238CODE
LOWtests/integration/files/test_file_handling.py339CODE
LOWtests/integration/files/test_file_handling.py405CODE
LOW…llm_integration/test_litellm_anthropic_nonstreaming.py77CODE
LOW…llm_integration/test_litellm_anthropic_nonstreaming.py115CODE
LOW…integration/test_litellm_anthropic_message_ordering.py86CODE
LOW…integration/test_litellm_anthropic_message_ordering.py125CODE
LOWtests/integration/communication/test_communication.py241CODE
LOW…ration/fin_agency/test_agent_run_id_live_fin_agency.py65CODE
LOW…ration/fin_agency/test_agent_run_id_live_fin_agency.py203CODE
LOWtests/integration/fin_agency/main.py157CODE
LOWtests/integration/fin_agency/main.py88CODE
LOW…t_fastapi_utils_modules/test_file_handler_downloads.py50CODE
LOWtests/fastapi_debugging/debug_streaming.py15CODE
LOWtests/fastapi_debugging/debug_delegation_events.py33CODE
LOWdocs/analise_docs.py57CODE
LOWexamples/streaming.py102CODE
LOWexamples/fastapi_integration/server.py38CODE
LOWexamples/fastapi_integration/client.py24CODE
LOWexamples/fastapi_integration/client.py106CODE
LOWexamples/interactive/tui.py47CODE
LOWsrc/agency_swarm/ui/core/layout_algorithms.py14CODE
LOWsrc/agency_swarm/ui/core/agui_adapter.py93CODE
LOWsrc/agency_swarm/ui/core/console_event_adapter.py78CODE
LOWsrc/agency_swarm/ui/core/console_event_adapter.py127CODE
LOWsrc/agency_swarm/ui/core/console_event_adapter.py226CODE
LOWsrc/agency_swarm/ui/core/console_event_adapter.py328CODE
LOWsrc/agency_swarm/ui/demos/persistence.py59CODE
LOWsrc/agency_swarm/ui/demos/terminal.py339CODE
LOWsrc/agency_swarm/ui/demos/terminal.py67CODE
LOWsrc/agency_swarm/ui/demos/terminal.py87CODE
LOWsrc/agency_swarm/ui/demos/terminal.py229CODE
LOWsrc/agency_swarm/ui/demos/terminal.py477CODE
LOWsrc/agency_swarm/ui/demos/terminal.py544CODE
LOWsrc/agency_swarm/ui/demos/terminal.py663CODE
LOWsrc/agency_swarm/ui/demos/terminal.py743CODE
LOWsrc/agency_swarm/ui/demos/agentswarm_cli.py295CODE
LOWsrc/agency_swarm/ui/demos/agentswarm_cli.py372CODE
LOWsrc/agency_swarm/ui/demos/agentswarm_cli.py485CODE
LOWsrc/agency_swarm/ui/demos/realtime/app/server.py194CODE
LOWsrc/agency_swarm/ui/demos/realtime/app/server.py130CODE
LOWsrc/agency_swarm/ui/demos/realtime/app/server.py147CODE
LOWsrc/agency_swarm/ui/demos/realtime/app/server.py221CODE
LOW…gency_swarm/ui/demos/realtime/twilio/twilio_handler.py122CODE
LOW…gency_swarm/ui/demos/realtime/twilio/twilio_handler.py165CODE
LOWsrc/agency_swarm/tools/send_message.py57CODE
LOWsrc/agency_swarm/tools/send_message.py316CODE
LOWsrc/agency_swarm/tools/send_message.py577CODE
LOWsrc/agency_swarm/tools/send_message.py598CODE
LOWsrc/agency_swarm/tools/base_tool.py31CODE
LOWsrc/agency_swarm/tools/base_tool.py41CODE
LOWsrc/agency_swarm/tools/utils.py145CODE
99 more matches not shown…
Modern Structural Boilerplate105 hits · 110 pts
SeverityFileLineSnippetContext
LOWhatch_build.py33logger = logging.getLogger(__name__)CODE
LOWhatch_build.py297__all__ = ["CustomBuildHook"]CODE
LOW⚡tests/test_agency_modules/test_agency_oauth_support.py25 def update_oauth_cache_dir(self, _cache_dir: Path) -> None:CODE
LOWtests/integration/tools/test_responses_api_tools.py22logger = logging.getLogger(__name__)CODE
LOWtests/integration/agency/test_parent_run_id_tracking.py18logger = logging.getLogger(__name__)CODE
LOWtests/integration/mcp/test_mcp_integration.py14logger = logging.getLogger(__name__)CODE
LOW…tion/communication/test_streaming_order_consistency.py16logger = logging.getLogger(__name__)CODE
LOW…financial_research_agency/PortfolioManager/__init__.py3__all__ = ["portfolio_manager"]CODE
LOW…ency/financial_research_agency/RiskAnalyst/__init__.py3__all__ = ["risk_analyst"]CODE
LOW…/financial_research_agency/ReportGenerator/__init__.py3__all__ = ["report_generator"]CODE
LOWsrc/agency_swarm/hooks.py12logger = logging.getLogger(__name__)CODE
LOWsrc/agency_swarm/__init__.py115__all__ = [CODE
LOWsrc/agency_swarm/context.py21logger = logging.getLogger(__name__)CODE
LOWsrc/agency_swarm/ui/__init__.py11__all__ = ["HTMLVisualizationGenerator", "LayoutAlgorithms"]CODE
LOWsrc/agency_swarm/ui/core/agui_adapter.py34logger = logging.getLogger(__name__)CODE
LOW⚡src/agency_swarm/ui/core/console_event_adapter.py40 def set_show_reasoning(self, enabled: bool) -> None:CODE
LOWsrc/agency_swarm/ui/demos/persistence.py28def set_chats_dir(path: str) -> None:CODE
LOWsrc/agency_swarm/ui/demos/persistence.py117def update_index(chat_id: str, messages: list[TResponseInputItem], branch: str) -> None:CODE
LOWsrc/agency_swarm/ui/demos/terminal.py294 def update_invalidator(self, invalidate: Callable[[], None]) -> None:CODE
LOWsrc/agency_swarm/ui/demos/terminal.py297 def set_items(self, items: list[DropdownItem]) -> None:CODE
LOWsrc/agency_swarm/ui/demos/compact.py61def set_compact_prompt(prompt: str) -> None:CODE
LOWsrc/agency_swarm/ui/demos/launcher.py44 def set_compact_prompt(prompt: str) -> None:CODE
LOWsrc/agency_swarm/ui/demos/launcher.py50 def set_chats_dir(path: str) -> None:CODE
LOWsrc/agency_swarm/ui/demos/launcher.py65 def set_current_chat_id(chat_id: str | None) -> None:CODE
LOWsrc/agency_swarm/ui/demos/agentswarm_cli.py35logger = logging.getLogger(__name__)CODE
LOWsrc/agency_swarm/ui/demos/realtime/__init__.py99__all__ = ["RealtimeDemoLauncher"]CODE
LOWsrc/agency_swarm/ui/demos/realtime/app/server.py22logger = logging.getLogger(__name__)CODE
LOWsrc/agency_swarm/tools/mcp_oauth_bridge.py22logger = logging.getLogger(__name__)CODE
LOWsrc/agency_swarm/tools/send_message.py35logger = logging.getLogger(__name__)CODE
LOWsrc/agency_swarm/tools/send_message.py203 def _update_schema(self) -> None:CODE
LOWsrc/agency_swarm/tools/mcp_persistence.py32logger = logging.getLogger(__name__)CODE
LOWsrc/agency_swarm/tools/mcp_persistence.py292 def update_oauth_cache_dir(self, cache_dir: Path | None) -> None:CODE
LOWsrc/agency_swarm/tools/__init__.py51__all__ = [CODE
LOWsrc/agency_swarm/tools/tool_factory.py5__all__ = ["ToolFactory"]CODE
LOWsrc/agency_swarm/tools/utils.py24logger = logging.getLogger(__name__)CODE
LOWsrc/agency_swarm/tools/mcp_server_binding.py59 def _set_oauth_context(self, user_id: str | None, runtime_context: Any | None) -> None:CODE
LOWsrc/agency_swarm/tools/mcp_converter.py20logger = logging.getLogger(__name__)CODE
LOW…cy_swarm/tools/tool_factory_utils/base_tool_adapter.py18logger = logging.getLogger(__name__)CODE
LOWsrc/agency_swarm/tools/tool_factory_utils/__init__.py3__all__ = ["ToolFactory"]CODE
LOW…c/agency_swarm/tools/tool_factory_utils/file_loader.py16logger = logging.getLogger(__name__)CODE
LOWsrc/agency_swarm/tools/tool_factory_utils/factory.py29__all__ = ["ToolFactory", "FunctionTool", "BaseTool"]CODE
LOWsrc/agency_swarm/tools/tool_factory_utils/mcp.py5__all__ = ["from_mcp"]CODE
LOW…ncy_swarm/tools/tool_factory_utils/openapi_importer.py21logger = logging.getLogger(__name__)CODE
LOW…ncy_swarm/tools/tool_factory_utils/openapi_exporter.py15logger = logging.getLogger(__name__)CODE
LOWsrc/agency_swarm/tools/built_in/__init__.py5__all__ = [CODE
LOWsrc/agency_swarm/messages/__init__.py6__all__ = [CODE
LOWsrc/agency_swarm/messages/message_filter.py8logger = logging.getLogger(__name__)CODE
LOWsrc/agency_swarm/messages/message_formatter.py36logger = logging.getLogger(__name__)CODE
LOWsrc/agency_swarm/agency/responses.py24logger = logging.getLogger(__name__)CODE
LOWsrc/agency_swarm/agency/user_context.py38def _set_user_context(self: _HasInitialUserContext, value: dict[str, Any]) -> None:CODE
LOWsrc/agency_swarm/agency/__init__.py17__all__ = [CODE
LOWsrc/agency_swarm/agency/core.py68logger = logging.getLogger(__name__)CODE
LOWsrc/agency_swarm/agency/visualization.py18logger = logging.getLogger(__name__)CODE
LOWsrc/agency_swarm/agency/setup.py22logger = logging.getLogger(__name__)CODE
LOWsrc/agency_swarm/agency/helpers.py21logger = logging.getLogger(__name__)CODE
LOWsrc/agency_swarm/agents/__init__.py8__all__ = ["Agent"]CODE
LOWsrc/agency_swarm/utils/model_utils.py23logger = logging.getLogger(__name__)CODE
LOWsrc/agency_swarm/utils/citation_extractor.py18logger = logging.getLogger(__name__)CODE
LOWsrc/agency_swarm/utils/thread.py8logger = logging.getLogger(__name__)CODE
LOWsrc/agency_swarm/utils/openrouter.py31__all__ = [CODE
45 more matches not shown…
Hallucination Indicators8 hits · 95 pts
SeverityFileLineSnippetContext
CRITICALtests/test_agent_modules/test_agent_file_manager.py162 not_found_agent.client_sync.vector_stores.files.create.assert_not_called()CODE
CRITICALtests/test_agent_modules/test_agent_file_manager.py655 mock_agent.client_sync.vector_stores.files.create_and_poll.assert_called_once_with(CODE
CRITICALsrc/agency_swarm/ui/demos/realtime/app/server.py341 raise SystemExit("Use agency_swarm.ui.demos.realtime.RealtimeDemoLauncher.start() to run the realtime demo.")CODE
CRITICALsrc/agency_swarm/agent/file_sync.py174 vs_file = self.agent.client_sync.vector_stores.files.retrieve(CODE
CRITICAL⚡src/agency_swarm/agent/file_sync.py268 self.agent.client_sync.vector_stores.files.retrieve(vector_store_id=vector_store_id, file_id=file_id)CODE
CRITICAL⚡src/agency_swarm/agent/file_manager.py397 existing_files = self.agent.client_sync.vector_stores.files.list(vector_store_id=vector_store_id)CODE
CRITICAL⚡src/agency_swarm/agent/file_manager.py407 vs_file: VectorStoreFile = self.agent.client_sync.vector_stores.files.create_and_poll(CODE
CRITICALsrc/agency_swarm/agent/file_manager.py163 enqueue_response = self.agent.client_sync.vector_stores.files.create(CODE
Decorative Section Separators16 hits · 57 pts
SeverityFileLineSnippetContext
MEDIUM⚡examples/observability.py39# ────────────────────────────────COMMENT
MEDIUM⚡examples/observability.py41# ────────────────────────────────COMMENT
MEDIUM⚡examples/observability.py51# ────────────────────────────────COMMENT
MEDIUM⚡examples/observability.py53# ────────────────────────────────COMMENT
MEDIUMexamples/observability.py89# ────────────────────────────────COMMENT
MEDIUMexamples/observability.py91# ────────────────────────────────COMMENT
MEDIUMexamples/observability.py134# ────────────────────────────────COMMENT
MEDIUMexamples/observability.py136# ────────────────────────────────COMMENT
MEDIUM⚡…gency_swarm/integrations/fastapi_utils/file_handler.py20# ============================================================COMMENT
MEDIUM⚡…gency_swarm/integrations/fastapi_utils/file_handler.py22# ============================================================COMMENT
MEDIUM…gency_swarm/integrations/fastapi_utils/file_handler.py142# ============================================================COMMENT
MEDIUM…gency_swarm/integrations/fastapi_utils/file_handler.py144# ============================================================COMMENT
MEDIUM…gency_swarm/integrations/fastapi_utils/file_handler.py179# ============================================================COMMENT
MEDIUM…gency_swarm/integrations/fastapi_utils/file_handler.py181# ============================================================COMMENT
MEDIUM…gency_swarm/integrations/fastapi_utils/file_handler.py246# ============================================================COMMENT
MEDIUM…gency_swarm/integrations/fastapi_utils/file_handler.py248# ============================================================COMMENT
Structural Annotation Overuse24 hits · 52 pts
SeverityFileLineSnippetContext
LOW⚡…gration/persistence/test_agent_to_agent_persistence.py96 # Step 1: Verify no agent-to-agent messages exist initiallyCOMMENT
LOW⚡…gration/persistence/test_agent_to_agent_persistence.py100 # Step 2: Trigger communication that should create agent-to-agent threadCOMMENT
LOW⚡…gration/persistence/test_agent_to_agent_persistence.py103 # Step 3: CRITICAL VERIFICATION - Agent-to-agent messages must existCOMMENT
LOW⚡…gration/persistence/test_agent_to_agent_persistence.py107 # Step 4: Verify messages contain both input and outputCOMMENT
LOW⚡…gration/persistence/test_agent_to_agent_persistence.py321 # Step 1: User shares private info with coordinator onlyCOMMENT
LOW⚡…gration/persistence/test_agent_to_agent_persistence.py326 # Step 2: User asks coordinator to relay different info to workerCOMMENT
LOW⚡…integration/persistence/test_thread_isolation_basic.py58 # Step 1: Send unique info to CEOCOMMENT
LOW⚡…integration/persistence/test_thread_isolation_basic.py61 # Step 2: Send different info to DeveloperCOMMENT
LOW⚡…integration/persistence/test_thread_isolation_basic.py64 # Step 3: Verify both agents see the same conversation historyCOMMENT
LOW⚡…ation/persistence/test_thread_isolation_persistence.py129 # Step 1: Create messages with unique informationCOMMENT
LOW⚡…ation/persistence/test_thread_isolation_persistence.py133 # Step 2: Verify shared user thread before persistenceCOMMENT
LOW⚡…ation/persistence/test_thread_isolation_persistence.py143 # Step 3: Verify saved data contains the full shared conversationCOMMENT
LOW⚡…ation/persistence/test_thread_isolation_persistence.py149 # Step 4: Verify loaded messages match saved messagesCOMMENT
LOW.claude/agents/tools-creator.md23### Step 1: Identify MCP Servers from api_docs.mdCOMMENT
LOW.claude/agents/tools-creator.md26### Step 2: Update Agent Files with MCP ServersCOMMENT
LOW⚡.claude/agents/tools-creator.md237 # Step 1: ValidateCOMMENT
LOW⚡.claude/agents/tools-creator.md239 # Step 2: ProcessCOMMENT
LOW⚡.claude/agents/tools-creator.md241 # Step 3: FormatCOMMENT
LOW⚡examples/agency_context.py121 # Step 1: Store customer dataCOMMENT
LOW⚡examples/agency_context.py131 # Step 2: Delegate analysis to another agentCOMMENT
LOW⚡examples/agency_context.py140 # Step 3: Show final context stateCOMMENT
LOWsrc/agency_swarm/tools/built_in/LoadFileAttachment.py36 # Step 1: Check if file existsCOMMENT
LOW⚡src/agency_swarm/tools/built_in/LoadFileAttachment.py52 # Step 2: Check if the file is an imageCOMMENT
LOW⚡src/agency_swarm/tools/built_in/LoadFileAttachment.py55 # Step 3: Return appropriate output typeCOMMENT
Cross-Language Confusion7 hits · 42 pts
SeverityFileLineSnippetContext
HIGHexamples/fastapi_integration/notion_hosted_mcp_tool.py86 let lastAuthUrl = null;CODE
HIGHexamples/fastapi_integration/notion_hosted_mcp_tool.py108 lastAuthUrl = null;CODE
HIGH⚡examples/fastapi_integration/notion_hosted_mcp_tool.py138 dataLines.push(line.slice(5).trimStart());CODE
HIGH⚡examples/fastapi_integration/notion_hosted_mcp_tool.py143 let parsed = null;CODE
HIGH⚡examples/fastapi_integration/notion_hosted_mcp_tool.py146 if (eventName === "oauth_redirect" && parsed && parsed.auth_url) {CODE
HIGHexamples/fastapi_integration/notion_hosted_mcp_tool.py161 if (eventName === "meta" && parsed && parsed.run_id) {CODE
HIGHexamples/fastapi_integration/notion_hosted_mcp_tool.py189 start().catch((err) => log("Error: " + (err && err.message ? err.message : String(err))));CODE
Verbosity Indicators19 hits · 42 pts
SeverityFileLineSnippetContext
LOW⚡…gration/persistence/test_agent_to_agent_persistence.py96 # Step 1: Verify no agent-to-agent messages exist initiallyCOMMENT
LOW⚡…gration/persistence/test_agent_to_agent_persistence.py100 # Step 2: Trigger communication that should create agent-to-agent threadCOMMENT
LOW⚡…gration/persistence/test_agent_to_agent_persistence.py103 # Step 3: CRITICAL VERIFICATION - Agent-to-agent messages must existCOMMENT
LOW⚡…gration/persistence/test_agent_to_agent_persistence.py107 # Step 4: Verify messages contain both input and outputCOMMENT
LOW⚡…gration/persistence/test_agent_to_agent_persistence.py321 # Step 1: User shares private info with coordinator onlyCOMMENT
LOW⚡…gration/persistence/test_agent_to_agent_persistence.py326 # Step 2: User asks coordinator to relay different info to workerCOMMENT
LOW⚡…integration/persistence/test_thread_isolation_basic.py58 # Step 1: Send unique info to CEOCOMMENT
LOW⚡…integration/persistence/test_thread_isolation_basic.py61 # Step 2: Send different info to DeveloperCOMMENT
LOW⚡…integration/persistence/test_thread_isolation_basic.py64 # Step 3: Verify both agents see the same conversation historyCOMMENT
LOW⚡…ation/persistence/test_thread_isolation_persistence.py129 # Step 1: Create messages with unique informationCOMMENT
LOW⚡…ation/persistence/test_thread_isolation_persistence.py133 # Step 2: Verify shared user thread before persistenceCOMMENT
LOW⚡…ation/persistence/test_thread_isolation_persistence.py143 # Step 3: Verify saved data contains the full shared conversationCOMMENT
LOW⚡…ation/persistence/test_thread_isolation_persistence.py149 # Step 4: Verify loaded messages match saved messagesCOMMENT
LOW⚡examples/agency_context.py121 # Step 1: Store customer dataCOMMENT
LOW⚡examples/agency_context.py131 # Step 2: Delegate analysis to another agentCOMMENT
LOW⚡examples/agency_context.py140 # Step 3: Show final context stateCOMMENT
LOWsrc/agency_swarm/tools/built_in/LoadFileAttachment.py36 # Step 1: Check if file existsCOMMENT
LOW⚡src/agency_swarm/tools/built_in/LoadFileAttachment.py52 # Step 2: Check if the file is an imageCOMMENT
LOW⚡src/agency_swarm/tools/built_in/LoadFileAttachment.py55 # Step 3: Return appropriate output typeCOMMENT
Modern AI Meta-Vocabulary9 hits · 32 pts
SeverityFileLineSnippetContext
MEDIUMtests/integration/agency/test_parent_run_id_tracking.py48 # Create Manager agent (middle layer - orchestrates Worker)COMMENT
MEDIUMtests/integration/agency/test_parent_run_id_tracking.py59 # Create CEO agent (top layer - orchestrates Manager)COMMENT
MEDIUM⚡tests/integration/agency/test_parent_run_id_tracking.py70 # Create agency with orchestration flowsCOMMENT
MEDIUM⚡tests/integration/agency/test_parent_run_id_tracking.py74 ceo > manager, # CEO can orchestrate ManagerCODE
MEDIUM⚡tests/integration/agency/test_parent_run_id_tracking.py75 manager > worker, # Manager can orchestrate WorkerCODE
MEDIUM⚡tests/integration/agency/test_agent_handoffs.py171 # AgentA orchestrates by sending message to AgentBCOMMENT
MEDIUMexamples/handoffs.py68# By default, to reduce hallucinations, when using Handoff, a reminder system message is added to the history.COMMENT
MEDIUM⚡src/agency_swarm/tools/send_message.py278 # Create a minimal agency context for multi-agent communicationCOMMENT
MEDIUMsrc/agency_swarm/agent/core.py338 # Wrap input guardrailsCOMMENT
Redundant / Tautological Comments15 hits · 22 pts
SeverityFileLineSnippetContext
LOWtests/integration/agency/test_parent_run_id_tracking.py231 # Check if this is the initial CEO event (not a sub-agent call result)COMMENT
LOW…ts/integration/fastapi/test_fastapi_file_processing.py492 # Check if this is an error eventCOMMENT
LOW…ration/fin_agency/test_agent_run_id_live_fin_agency.py279 # Check if we found the specific errorCOMMENT
LOWtests/fastapi_debugging/debug_streaming.py69 # Check if data is wrappedCOMMENT
LOWsrc/agency_swarm/ui/demos/terminal.py128 # Check if stdin is a real terminal (not mocked in tests)COMMENT
LOWsrc/agency_swarm/ui/demos/terminal.py254 # Check if child exitedCOMMENT
LOWsrc/agency_swarm/tools/built_in/PersistentShellTool.py73 # Check if this is a chained command (contains &&, ||, ;, |)COMMENT
LOWsrc/agency_swarm/agency/setup.py270 # Check if there's a custom tool class for this specific pairCOMMENT
LOWsrc/agency_swarm/agency/setup.py547 # Check if server is already added (by identity or name)COMMENT
LOWsrc/agency_swarm/agent/tools.py183 # Check if the tool is a class (uninitialized) rather than an instance.COMMENT
LOWsrc/agency_swarm/agent/execution_streaming.py459 # Check if input guardrail tripped either via exception or SDK resultsCOMMENT
LOWsrc/agency_swarm/agent/file_manager.py78 # Check if file has already been uploaded and compare mtime vs remote created_atCOMMENT
LOWsrc/agency_swarm/agent/file_manager.py529 # Check if folder has any processable files before creating vector storeCOMMENT
LOWsrc/agency_swarm/cli/import_tool.py57 # Check if file already existsCOMMENT
LOW…cy_swarm/integrations/fastapi_utils/stream_endpoint.py330 # Check if client disconnected (tab close, refresh, etc.)COMMENT
Cross-File Repetition4 hits · 20 pts
SeverityFileLineSnippetContext
HIGH…i_utils_modules/test_openai_client_config_streaming.py0minimal tests for fastapi request models that include `client_config`. the end-to-end behavior is covered in integrationSTRING
HIGH…ils_modules/test_openai_client_config_request_state.py0minimal tests for fastapi request models that include `client_config`. the end-to-end behavior is covered in integrationSTRING
HIGH…tapi_utils_modules/test_openai_client_config_models.py0minimal tests for fastapi request models that include `client_config`. the end-to-end behavior is covered in integrationSTRING
HIGH…odules/test_openai_client_config_response_overrides.py0minimal tests for fastapi request models that include `client_config`. the end-to-end behavior is covered in integrationSTRING
AI Structural Patterns18 hits · 18 pts
SeverityFileLineSnippetContext
LOWtests/test_agency_modules/_response_test_helpers.py61CODE
LOWtests/integration/fin_agency/main.py154CODE
LOWdocs/analise_docs.py26CODE
LOWsrc/agency_swarm/ui/demos/realtime/__init__.py11CODE
LOWsrc/agency_swarm/tools/function_tool_compat.py160CODE
LOWsrc/agency_swarm/tools/function_tool_compat.py181CODE
LOWsrc/agency_swarm/agency/core.py111CODE
LOWsrc/agency_swarm/agency/core.py499CODE
LOWsrc/agency_swarm/agency/helpers.py64CODE
LOWsrc/agency_swarm/utils/create_agent_template.py9CODE
LOWsrc/agency_swarm/agent/runner.py59CODE
LOWsrc/agency_swarm/agent/runner.py134CODE
LOWsrc/agency_swarm/agent/runner.py209CODE
LOWsrc/agency_swarm/agent/execution.py69CODE
LOWsrc/agency_swarm/agent/execution.py354CODE
LOWsrc/agency_swarm/agent/execution_streaming.py219CODE
LOWsrc/agency_swarm/integrations/realtime.py124CODE
LOWsrc/agency_swarm/integrations/fastapi.py27CODE
Docstring Block Structure2 hits · 10 pts
SeverityFileLineSnippetContext
HIGHsrc/agency_swarm/agency/responses.py184 Initiates an interaction with a specified agent within the agency. This method resolves the target agent, valiSTRING
HIGHsrc/agency_swarm/agency/helpers.py164Resolve an agent reference to an Agent instance. Args: agency: Agency instance agent_ref: Either anSTRING
TODO Padding3 hits · 7 pts
SeverityFileLineSnippetContext
LOW⚡tests/test_tools_modules/test_tool_system.py496# TODO: Add tests for response validation aspectsCOMMENT
LOW⚡tests/test_tools_modules/test_tool_system.py497# TODO: Add tests for context/hooks propagation (more complex, might need integration tests)COMMENT
LOW⚡tests/test_tools_modules/test_tool_system.py499# TODO: Add tests for specific schema validation failures (if FunctionTool provides hooks)COMMENT
AI Slop Vocabulary3 hits · 6 pts
SeverityFileLineSnippetContext
MEDIUMexamples/interactive/hybrid_communication_flows.py69 """Perform comprehensive security audit of a component."""STRING
MEDIUMsrc/agency_swarm/context.py49 # More robust validation occurs in Agency during context creation.COMMENT
LOW…ency_swarm/integrations/fastapi_utils/agui_endpoint.py152 # Choose / build an agent – here we just create a demo agent each time.COMMENT
Magic Placeholder Names1 hit · 5 pts
SeverityFileLineSnippetContext
HIGHREADME.md55 export OPENAI_API_KEY="YOUR_API_KEY"CODE
Cross-Language Confusion (JS/TS)1 hit · 5 pts
SeverityFileLineSnippetContext
HIGH…agency_swarm/cli/utils/generate-agent-from-settings.ts374 print(agency.get_response_sync("What's your name?"))CODE
Dead Code2 hits · 4 pts
SeverityFileLineSnippetContext
MEDIUMtests/test_agent_modules/test_guardrail_validation.py268CODE
MEDIUMtests/test_agent_modules/test_guardrail_validation.py320CODE
Fake / Example Data3 hits · 3 pts
SeverityFileLineSnippetContext
LOWtests/integration/realtime/test_realtime.py101 greeter = Agent(name="Greeter", instructions="placeholder")CODE
LOWtests/integration/fastapi/test_fastapi_metadata.py574 "/tool/UserTool", json={"name": "Alice", "address": {"street": "123 Main St", "zip_code": 12345}}CODE
LOWtests/test_agent_modules/test_thread_manager.py125 "output": "placeholder",CODE
Over-Commented Block2 hits · 2 pts
SeverityFileLineSnippetContext
LOWtests/integration/fin_agency/agency_fin.py41 # response = await agency.get_response(COMMENT
LOWsrc/agency_swarm/agent/agency_session.py121 # Per-session, sequence-bounded reconciliation — never a store scan. The SDKCOMMENT
Overly Generic Function Names1 hit · 1 pts
SeverityFileLineSnippetContext
LOW…tion/communication/test_streaming_order_consistency.py82def process_data(data: str) -> str:CODE