Repository Analysis

VRSEN/agency-swarm

Reliable Multi-Agent Orchestration Framework

34.4 Strong AI signal View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of VRSEN/agency-swarm, a Python project with 4,479 GitHub stars. SynthScan v2.0 examined 80,371 lines of code across 383 source files, recording 2473 pattern matches distributed across 23 syntactic categories. The overall adjusted score of 34.4 places this repository in the Strong AI signal band.

The scanner applied 160+ deterministic lexical heuristics, multi-line block detectors, abstract syntax tree depth profilers, and a cross-file Jaccard similarity matrix to construct a statistically normalised synthetic code estimate. All matches are individually weighted by severity coefficient and contextual multiplier before summation, and the resulting headline score is temporally discounted to account for the repository's development history relative to the commercial emergence of large language model coding tooling (November 2022 onward).

34.4
Adjusted Score
34.4
Raw Score
100%
Time Factor
2026-07-14
Last Push
4.5K
Stars
Python
Language
80.4K
Lines of Code
383
Files
2.5K
Pattern Hits
2026-07-14
Scan Date
0.04
HC Hit Rate

What These Metrics Mean

Adjusted Score
Primary synthetic code indicator. Raw score normalised per 1,000 lines of code and multiplied by the temporal discount factor. This is the definitive comparative metric — use it to rank repositories by AI authorship density.
Raw Score
The unmodified sum of all severity-weighted, context-multiplied pattern match scores before temporal discounting. Reflects the absolute signal strength independent of when the repository was last active.
Time Factor
The temporal discount multiplier (0–100%) applied to the raw score. Repositories last updated before ChatGPT's launch (Nov 2022) receive a 5% factor. Full signal is only assigned to repositories active in the post-adoption era (Jan 2024+).
Pattern Hits
Total count of individual pattern matches across all files and categories. A high hit count with a low score may indicate a very large codebase with isolated AI snippets; a low count with a high score indicates dense, concentrated AI signatures.
HC Hit Rate
High+Critical pattern hits per file, averaged across the repository. This orthogonal signal catches repositories where a few files are densely packed with high-severity AI tells — a strong indicator even when the normalised score appears moderate due to codebase size.
Lines of Code / Files
Total lines and files analysed. The scanner examines 94 file extensions. These denominators are used to normalise the score, enabling fair comparison between repositories of vastly different sizes.

Score History

Longitudinal tracking requires multiple scan runs. Once this repository is re-scanned after new commits land, this chart will visualise how the synthetic code signal evolves over time — enabling you to detect whether AI authorship is growing, stabilising, or being actively corrected by human engineers.

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

Severity Breakdown

Classifies detected patterns by their diagnostic confidence and structural impact. CRITICAL patterns (coefficient 10) represent definitive synthetic signatures — hallucinated imports, explicit LLM attribution metadata — virtually never produced by human authors. HIGH (5) indicates strong structural tells such as cross-file repetition or cross-linguistic idioms. MEDIUM (2) covers recognisable conversational padding and AI-specific vocabulary. LOW (1) captures subtle indicators like tautological comments and generic boilerplate that require density to carry independent signal.

CRITICAL 7HIGH 8MEDIUM 94LOW 2364

Directory Score Breakdown

This horizontal bar chart decomposes the repository's raw synthetic code score by top-level directory, allowing you to pinpoint precisely which modules or components carry the highest AI authorship density. Directories with disproportionately high scores relative to their size warrant targeted manual review: concentrated AI signatures often trace back to mass-generated configuration layers, auto-ported test suites, LLM-scaffolded boilerplate classes, or entire subsystems authored under heavy copilot assistance. Use this view to prioritise your human code-review effort.

Pattern Findings

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

Reading the findings table: The Severity column indicates the diagnostic confidence level (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — comment-context matches receive a ×1.5 weight because LLMs systematically over-annotate. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier as dense clusters constitute far stronger evidence of synthetic authorship than isolated hits.

Hyper-Verbose Identifiers1542 hits · 1531 pts
SeverityFileLineSnippetContext
LOWhatch_build.py36def _warn_if_pricing_file_missing(pricing_file_path: Path) -> None:CODE
LOWtests/conftest.py26 def get_conversation_history_side_effect(agent, caller_agent=None):CODE
LOWtests/conftest.py36 def get_all_messages_side_effect():CODE
LOWtests/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/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
LOWtests/response_history_helpers.py188def assert_unencrypted_reasoning_is_dropped(model_input: str | list[TResponseInputItem]) -> None:CODE
LOWtests/response_history_helpers.py195def assert_store_false_requests_encrypted_reasoning(model_settings: ModelSettings) -> None:CODE
LOWtests/response_history_helpers.py201def assert_history_input_has_no_response_ids(model_input: str | list[TResponseInputItem]) -> None:CODE
LOWtests/response_history_helpers.py207def assert_messages_have_no_response_ids(messages: list[dict[str, Any]]) -> None:CODE
LOWtests/test_agency_modules/test_ui_metadata.py16 def test_get_metadata_rich_metadata(self):CODE
LOWtests/test_agency_modules/test_ui_metadata.py45 def test_get_metadata_includes_quick_replies(self):CODE
LOWtests/test_agency_modules/test_ui_metadata.py61 def test_get_metadata_uses_openrouter_model_alias(self):CODE
LOWtests/test_agency_modules/test_ui_metadata.py76 def test_hosted_mcp_tools_unique_ids(self):CODE
LOWtests/test_agency_modules/test_ui_metadata.py112 def test_get_agency_structure_deprecated_alias(self):CODE
LOWtests/test_agency_modules/test_ui_metadata.py121def test_copilot_demo_launcher_sets_client_facing_backend_url():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
LOWtests/test_agency_modules/test_agentswarm_cli_tui.py85def test_agentswarm_cli_tui_installs_agent_swarm_cli(monkeypatch):CODE
LOWtests/test_agency_modules/test_agentswarm_cli_tui.py92def test_agentswarm_cli_tui_prefers_explicit_cli(monkeypatch):CODE
LOWtests/test_agency_modules/test_agentswarm_cli_tui.py99def test_agentswarm_cli_tui_rejects_hidden_reasoning():CODE
LOWtests/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.py379def test_agentswarm_cli_tui_notifies_on_first_run(monkeypatch, tmp_path):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_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
LOWtests/test_agency_modules/test_ui.py95 def test_hierarchical_layout_with_tools(self):CODE
LOWtests/test_agency_modules/test_ui.py111 def test_hierarchical_layout_orphaned_tools(self):CODE
LOWtests/test_agency_modules/test_ui.py168 def test_load_template_not_found(self):CODE
LOWtests/test_agency_modules/test_ui.py176 def test_open_in_browser_success(self, mock_webbrowser):CODE
LOWtests/test_agency_modules/test_ui.py186 def test_open_in_browser_error(self, mock_print, mock_webbrowser):CODE
1482 more matches not shown…
Excessive Try-Catch Wrapping266 hits · 290 pts
SeverityFileLineSnippetContext
LOWhatch_build.py22except Exception:CODE
LOWhatch_build.py51 except Exception:CODE
LOWhatch_build.py101 except Exception as e:CODE
LOWtests/integration/agency/test_agent_handoffs.py181 except Exception as e:CODE
LOWtests/integration/mcp/test_mcp_server.py82 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.py77 except Exception:CODE
LOW…ation/persistence/test_thread_isolation_persistence.py90 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
MEDIUMtests/integration/files/test_file_handling.py250 print(f"Error cleaning up file {file.name}: {e}")CODE
MEDIUMtests/integration/files/test_file_handling.py259 print(f"Error cleaning up vector store: {e}")CODE
MEDIUMtests/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
LOWtests/integration/files/test_file_handling.py249 except Exception as e:CODE
LOWtests/integration/files/test_file_handling.py258 except Exception as e:CODE
LOWtests/integration/files/test_file_handling.py260 except Exception as e:CODE
MEDIUMtests/integration/files/test_file_handling.py490 print(f"Error cleaning up: {e}, dir: {tmp_dir.glob('*')}")STRING
LOWtests/integration/files/test_file_handling.py99 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.py660 except Exception as e:CODE
LOWtests/integration/files/test_file_handling.py715 except Exception:CODE
LOWtests/integration/files/test_file_handling.py741 except Exception as e:CODE
LOWtests/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.py114 except Exception:CODE
LOW…ration/fin_agency/test_agent_run_id_live_fin_agency.py167 except Exception:CODE
LOW…ration/fin_agency/test_agent_run_id_live_fin_agency.py233 except Exception:CODE
LOW…ration/fin_agency/test_agent_run_id_live_fin_agency.py272 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.py153 except Exception as e:CODE
LOWtests/fastapi_debugging/debug_delegation_events.py124 except Exception:CODE
LOW.claude/agents/tools-creator.md106 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.py150 except Exception:CODE
LOWexamples/mcp_servers.py127 except Exception as e:CODE
LOWexamples/fastapi_integration/client.py92 except Exception as e:CODE
LOWexamples/fastapi_integration/client.py279 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
LOWsrc/agency_swarm/hooks.py93 except Exception as e:CODE
LOWsrc/agency_swarm/ui/core/agui_adapter.py89 except Exception as exc: # pragma: no coverCODE
LOWsrc/agency_swarm/ui/core/console_event_adapter.py48 except Exception:CODE
206 more matches not shown…
Unused Imports280 hits · 229 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
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
LOWtests/test_agent_modules/test_agent_flow.py1CODE
LOWtests/test_agent_modules/test_openclaw_agent.py1CODE
LOWtests/test_agent_modules/test_file_sync.py1CODE
LOWtests/test_agent_modules/test_mcp_manager.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
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
220 more matches not shown…
Self-Referential Comments50 hits · 154 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.py157 # Create a temporary MCP server script with inline tool definitionCOMMENT
MEDIUMtests/integration/mcp/test_mcp_server.py367 # 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.py459 # 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.py127 # Create an agent WITHOUT custom file processing toolsCOMMENT
MEDIUMtests/integration/files/test_file_handling.py523 # Create a vision-capable agent with temperature=0 for deterministic responsesCOMMENT
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
MEDIUMtests/test_utils_modules/test_create_agent_template.py292 # Create the folder firstCOMMENT
MEDIUMtests/data/scripts/stdio_server.py3# Create the MCP serverCOMMENT
MEDIUMtests/test_agent_modules/test_tool_factory_core.py72 # Create a file with syntax errorsCOMMENT
MEDIUMtests/test_agent_modules/test_agent_initialization.py251 # 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.py22 # 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
MEDIUMtests/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
MEDIUMtests/test_tools_modules/test_tool_system.py124 # Create an instance of SendMessage for testing its on_invoke_tool method directlyCOMMENT
MEDIUMtests/test_tools_modules/test_tool_system.py133 # Create a class that inherits from BaseToolCOMMENT
MEDIUMdocs/analise_docs.py80# Define the thresholdCOMMENT
MEDIUMexamples/custom_persistence.py130 # 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
MEDIUMsrc/agency_swarm/tools/send_message.py278 # Create a minimal agency context for multi-agent communicationCOMMENT
MEDIUMsrc/agency_swarm/tools/mcp_manager.py44 # Create a per-server driver task with a command queue if missingCOMMENT
MEDIUMsrc/agency_swarm/messages/message_formatter.py363 # Create a copy without agency fields (including citations which OpenAI doesn't accept)COMMENT
MEDIUMsrc/agency_swarm/messages/message_formatter.py400 # 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.py357 # Create a wrapper function that calls original callable and joins shared/additional instructionsCOMMENT
MEDIUMsrc/agency_swarm/integrations/mcp_server.py158 # Create a custom tool to maintain input schemaCOMMENT
MEDIUMsrc/agency_swarm/integrations/mcp_server.py160 # Create a custom tool class that extends ToolCOMMENT
MEDIUMsrc/agency_swarm/integrations/mcp_server.py177 # Create a minimal ToolContext for the FunctionToolCOMMENT
Deep Nesting135 hits · 118 pts
SeverityFileLineSnippetContext
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.py324CODE
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.py201CODE
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/tools/send_message.py57CODE
LOWsrc/agency_swarm/tools/send_message.py314CODE
LOWsrc/agency_swarm/tools/send_message.py575CODE
LOWsrc/agency_swarm/tools/send_message.py596CODE
LOWsrc/agency_swarm/tools/base_tool.py31CODE
LOWsrc/agency_swarm/tools/base_tool.py41CODE
LOWsrc/agency_swarm/tools/utils.py145CODE
LOWsrc/agency_swarm/tools/mcp_manager.py43CODE
LOWsrc/agency_swarm/tools/mcp_manager.py54CODE
LOW…ncy_swarm/tools/tool_factory_utils/openapi_importer.py45CODE
LOWsrc/agency_swarm/tools/built_in/PresentFiles.py130CODE
LOWsrc/agency_swarm/tools/built_in/PersistentShellTool.py22CODE
LOWsrc/agency_swarm/tools/built_in/IPythonInterpreter.py104CODE
LOWsrc/agency_swarm/tools/built_in/IPythonInterpreter.py144CODE
75 more matches not shown…
Hallucination Indicators7 hits · 85 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/agent/file_sync.py174 vs_file = self.agent.client_sync.vector_stores.files.retrieve(CODE
CRITICALsrc/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
CRITICALsrc/agency_swarm/agent/file_manager.py400 existing_files = self.agent.client_sync.vector_stores.files.list(vector_store_id=vector_store_id)CODE
CRITICALsrc/agency_swarm/agent/file_manager.py410 vs_file: VectorStoreFile = self.agent.client_sync.vector_stores.files.create_and_poll(CODE
CRITICALsrc/agency_swarm/agent/file_manager.py166 enqueue_response = self.agent.client_sync.vector_stores.files.create(CODE
Modern Structural Boilerplate77 hits · 78 pts
SeverityFileLineSnippetContext
LOWhatch_build.py27logger = logging.getLogger(__name__)CODE
LOWhatch_build.py109__all__ = ["CustomBuildHook"]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.py15logger = 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.py8logger = logging.getLogger(__name__)CODE
LOWsrc/agency_swarm/__init__.py111__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
LOWsrc/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.py60def 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/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/__init__.py50__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_converter.py21logger = logging.getLogger(__name__)CODE
LOWsrc/agency_swarm/tools/mcp_manager.py11logger = 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.py37logger = logging.getLogger(__name__)CODE
LOWsrc/agency_swarm/agency/responses.py22logger = logging.getLogger(__name__)CODE
LOWsrc/agency_swarm/agency/__init__.py17__all__ = [CODE
LOWsrc/agency_swarm/agency/core.py37logger = logging.getLogger(__name__)CODE
LOWsrc/agency_swarm/agency/visualization.py18logger = logging.getLogger(__name__)CODE
LOWsrc/agency_swarm/agency/setup.py23logger = logging.getLogger(__name__)CODE
LOWsrc/agency_swarm/agency/helpers.py17logger = 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.py30__all__ = [CODE
LOWsrc/agency_swarm/utils/usage_tracking.py18logger = logging.getLogger(__name__)CODE
LOWsrc/agency_swarm/utils/__init__.py11__all__ = [CODE
LOWsrc/agency_swarm/agent/execution_stream_response.py9logger = logging.getLogger(__name__)CODE
LOWsrc/agency_swarm/agent/subagents.py13logger = logging.getLogger(__name__)CODE
LOWsrc/agency_swarm/agent/execution.py61logger = logging.getLogger(__name__)CODE
LOWsrc/agency_swarm/agent/file_sync.py14logger = logging.getLogger(__name__)CODE
LOWsrc/agency_swarm/agent/execution_stream_persistence.py17logger = logging.getLogger(__name__)CODE
17 more matches not shown…
Decorative Section Separators16 hits · 57 pts
SeverityFileLineSnippetContext
MEDIUMexamples/observability.py39# ────────────────────────────────COMMENT
MEDIUMexamples/observability.py41# ────────────────────────────────COMMENT
MEDIUMexamples/observability.py51# ────────────────────────────────COMMENT
MEDIUMexamples/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.py132 # Step 1: Create messages with unique informationCOMMENT
LOW…ation/persistence/test_thread_isolation_persistence.py136 # Step 2: Verify shared user thread before persistenceCOMMENT
LOW…ation/persistence/test_thread_isolation_persistence.py146 # Step 3: Verify saved data contains the full shared conversationCOMMENT
LOW…ation/persistence/test_thread_isolation_persistence.py152 # 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.md232 # Step 1: ValidateCOMMENT
LOW.claude/agents/tools-creator.md234 # Step 2: ProcessCOMMENT
LOW.claude/agents/tools-creator.md236 # Step 3: FormatCOMMENT
LOWexamples/agency_context.py119 # Step 1: Store customer dataCOMMENT
LOWexamples/agency_context.py124 # Step 2: Delegate analysis to another agentCOMMENT
LOWexamples/agency_context.py131 # Step 3: Show final context stateCOMMENT
LOWsrc/agency_swarm/tools/built_in/LoadFileAttachment.py36 # Step 1: Check if file existsCOMMENT
LOWsrc/agency_swarm/tools/built_in/LoadFileAttachment.py52 # Step 2: Check if the file is an imageCOMMENT
LOWsrc/agency_swarm/tools/built_in/LoadFileAttachment.py55 # Step 3: Return appropriate output typeCOMMENT
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.py132 # Step 1: Create messages with unique informationCOMMENT
LOW…ation/persistence/test_thread_isolation_persistence.py136 # Step 2: Verify shared user thread before persistenceCOMMENT
LOW…ation/persistence/test_thread_isolation_persistence.py146 # Step 3: Verify saved data contains the full shared conversationCOMMENT
LOW…ation/persistence/test_thread_isolation_persistence.py152 # Step 4: Verify loaded messages match saved messagesCOMMENT
LOWexamples/agency_context.py119 # Step 1: Store customer dataCOMMENT
LOWexamples/agency_context.py124 # Step 2: Delegate analysis to another agentCOMMENT
LOWexamples/agency_context.py131 # Step 3: Show final context stateCOMMENT
LOWsrc/agency_swarm/tools/built_in/LoadFileAttachment.py36 # Step 1: Check if file existsCOMMENT
LOWsrc/agency_swarm/tools/built_in/LoadFileAttachment.py52 # Step 2: Check if the file is an imageCOMMENT
LOWsrc/agency_swarm/tools/built_in/LoadFileAttachment.py55 # Step 3: Return appropriate output typeCOMMENT
Modern AI Meta-Vocabulary10 hits · 34 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
MEDIUMtests/integration/agency/test_parent_run_id_tracking.py70 # Create agency with orchestration flowsCOMMENT
MEDIUMtests/integration/agency/test_parent_run_id_tracking.py74 ceo > manager, # CEO can orchestrate ManagerCODE
MEDIUMtests/integration/agency/test_parent_run_id_tracking.py75 manager > worker, # Manager can orchestrate WorkerCODE
MEDIUMtests/integration/agency/test_agent_handoffs.py174 # 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
MEDIUMsrc/agency_swarm/tools/send_message.py278 # Create a minimal agency context for multi-agent communicationCOMMENT
MEDIUMsrc/agency_swarm/utils/usage_tracking.py391 # Try per-response costing first for multi-agent correctness.COMMENT
MEDIUMsrc/agency_swarm/agent/core.py260 # Wrap input guardrailsCOMMENT
Redundant / Tautological Comments16 hits · 24 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.py275 # Check if we found the specific errorCOMMENT
LOWtests/fastapi_debugging/debug_streaming.py68 # 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.py271 # Check if there's a custom tool class for this specific pairCOMMENT
LOWsrc/agency_swarm/agency/setup.py548 # Check if server is already added (by identity or name)COMMENT
LOWsrc/agency_swarm/utils/usage_tracking.py185 # Check if last 3 parts look like a date (YYYY-MM-DD)COMMENT
LOWsrc/agency_swarm/agent/tools.py177 # Check if the tool is a class (uninitialized) rather than an instance.COMMENT
LOWsrc/agency_swarm/agent/execution_streaming.py447 # 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.py532 # Check if folder has any processable files before creating vector storeCOMMENT
LOWsrc/agency_swarm/cli/import_tool.py57 # Check if file already existsCOMMENT
LOW…_swarm/integrations/fastapi_utils/endpoint_handlers.py1060 # 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 Patterns11 hits · 10 pts
SeverityFileLineSnippetContext
LOWtests/test_agency_modules/_response_test_helpers.py60CODE
LOWtests/integration/fin_agency/main.py154CODE
LOWdocs/analise_docs.py26CODE
LOWsrc/agency_swarm/tools/function_tool_compat.py160CODE
LOWsrc/agency_swarm/tools/function_tool_compat.py181CODE
LOWsrc/agency_swarm/agency/core.py77CODE
LOWsrc/agency_swarm/utils/create_agent_template.py9CODE
LOWsrc/agency_swarm/agent/execution.py73CODE
LOWsrc/agency_swarm/agent/execution.py404CODE
LOWsrc/agency_swarm/agent/execution_streaming.py208CODE
LOWsrc/agency_swarm/integrations/fastapi.py13CODE
Docstring Block Structure2 hits · 10 pts
SeverityFileLineSnippetContext
HIGHsrc/agency_swarm/agency/responses.py148 Initiates an interaction with a specified agent within the agency. This method resolves the target agent, valiSTRING
HIGHsrc/agency_swarm/agency/helpers.py110Resolve an agent reference to an Agent instance. Args: agency: Agency instance agent_ref: Either anSTRING
TODO Padding3 hits · 7 pts
SeverityFileLineSnippetContext
LOWtests/test_tools_modules/test_tool_system.py490# TODO: Add tests for response validation aspectsCOMMENT
LOWtests/test_tools_modules/test_tool_system.py491# TODO: Add tests for context/hooks propagation (more complex, might need integration tests)COMMENT
LOWtests/test_tools_modules/test_tool_system.py493# 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.py48 # More robust validation occurs in Agency during context creation.COMMENT
LOW…_swarm/integrations/fastapi_utils/endpoint_handlers.py1260 # 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.py262CODE
MEDIUMtests/test_agent_modules/test_guardrail_validation.py314CODE
Fake / Example Data2 hits · 2 pts
SeverityFileLineSnippetContext
LOWtests/integration/fastapi/test_fastapi_metadata.py498 "/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
Overly Generic Function Names1 hit · 1 pts
SeverityFileLineSnippetContext
LOW…tion/communication/test_streaming_order_consistency.py79def process_data(data: str) -> str:CODE
Over-Commented Block1 hit · 1 pts
SeverityFileLineSnippetContext
LOWtests/integration/fin_agency/agency_fin.py41 # response = await agency.get_response(COMMENT