Repository Analysis

2FastLabs/agent-squad

Flexible and powerful framework for managing multiple AI agents and handling complex conversations

8.9 Low AI signal View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of 2FastLabs/agent-squad, a Swift project with 7,727 GitHub stars. SynthScan v2.0 examined 142,115 lines of code across 505 source files, recording 818 pattern matches distributed across 20 syntactic categories. The overall adjusted score of 8.9 places this repository in the Low 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).

8.9
Adjusted Score
8.9
Raw Score
100%
Time Factor
2026-07-29
Last Push
7.7K
Stars
Swift
Language
142.1K
Lines of Code
505
Files
818
Pattern Hits
2026-08-02
Scan Date
0.06
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 4HIGH 24MEDIUM 133LOW 657

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 818 distinct pattern matches across 20 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.

Decorative Section Separators88 hits · 346 pts
SeverityFileLineSnippetContext
MEDIUMpython/src/tests/tools/test_mcp_tool_provider.py54# ---------------------------------------------------------------------------COMMENT
MEDIUMpython/src/tests/tools/test_mcp_tool_provider.py56# ---------------------------------------------------------------------------COMMENT
MEDIUMpython/src/tests/tools/test_mcp_tool_provider.py152# ---------------------------------------------------------------------------COMMENT
MEDIUMpython/src/tests/tools/test_mcp_tool_provider.py154# ---------------------------------------------------------------------------COMMENT
MEDIUMpython/src/tests/tools/test_mcp_tool_provider.py172# ---------------------------------------------------------------------------COMMENT
MEDIUMpython/src/tests/tools/test_mcp_tool_provider.py174# ---------------------------------------------------------------------------COMMENT
MEDIUMpython/src/tests/tools/test_mcp_tool_provider.py209# ---------------------------------------------------------------------------COMMENT
MEDIUMpython/src/tests/tools/test_mcp_tool_provider.py211# ---------------------------------------------------------------------------COMMENT
MEDIUMpython/src/tests/tools/test_mcp_tool_provider.py238# ---------------------------------------------------------------------------COMMENT
MEDIUMpython/src/tests/tools/test_mcp_tool_provider.py240# ---------------------------------------------------------------------------COMMENT
MEDIUMpython/src/tests/tools/test_mcp_tool_provider.py272# ---------------------------------------------------------------------------COMMENT
MEDIUMpython/src/tests/tools/test_mcp_tool_provider.py274# ---------------------------------------------------------------------------COMMENT
MEDIUMpython/src/tests/tools/test_mcp_tool_provider.py300# ---------------------------------------------------------------------------COMMENT
MEDIUMpython/src/tests/tools/test_mcp_tool_provider.py302# ---------------------------------------------------------------------------COMMENT
MEDIUMpython/src/tests/tools/test_mcp_tool_provider.py332# ---------------------------------------------------------------------------COMMENT
MEDIUMpython/src/tests/tools/test_mcp_tool_provider.py334# ---------------------------------------------------------------------------COMMENT
MEDIUMpython/src/tests/tools/test_mcp_tool_provider.py494# ---------------------------------------------------------------------------COMMENT
MEDIUMpython/src/tests/tools/test_mcp_tool_provider.py496# ---------------------------------------------------------------------------COMMENT
MEDIUMpython/src/tests/tools/test_mcp_tool_provider.py528# ---------------------------------------------------------------------------COMMENT
MEDIUMpython/src/tests/tools/test_mcp_tool_provider.py530# ---------------------------------------------------------------------------COMMENT
MEDIUMpython/src/tests/tools/test_mcp_tool_provider.py558# ---------------------------------------------------------------------------COMMENT
MEDIUMpython/src/tests/tools/test_mcp_tool_provider.py560# ---------------------------------------------------------------------------COMMENT
MEDIUMpython/src/tests/tools/test_mcp_tool_provider.py17# ---------------------------------------------------------------------------COMMENT
MEDIUMpython/src/tests/tools/test_mcp_tool_provider.py19# ---------------------------------------------------------------------------COMMENT
MEDIUMpython/src/tests/tools/test_mcp_tool_provider.py111# ---------------------------------------------------------------------------COMMENT
MEDIUMpython/src/tests/tools/test_mcp_tool_provider.py113# ---------------------------------------------------------------------------COMMENT
MEDIUMpython/src/tests/tools/test_mcp_tool_provider.py129# ---------------------------------------------------------------------------COMMENT
MEDIUMpython/src/tests/tools/test_mcp_tool_provider.py131# ---------------------------------------------------------------------------COMMENT
MEDIUMpython/src/tests/tools/test_mcp_tool_provider.py723# ---------------------------------------------------------------------------COMMENT
MEDIUMpython/src/tests/tools/test_mcp_tool_provider.py725# ---------------------------------------------------------------------------COMMENT
MEDIUMpython/src/tests/agents/test_grounded_agent.py88# ---------------------------------------------------------------------------COMMENT
MEDIUMpython/src/tests/agents/test_grounded_agent.py90# ---------------------------------------------------------------------------COMMENT
MEDIUMpython/src/tests/agents/test_grounded_agent.py147# ---------------------------------------------------------------------------COMMENT
MEDIUMpython/src/tests/agents/test_grounded_agent.py149# ---------------------------------------------------------------------------COMMENT
MEDIUMpython/src/tests/agents/test_grounded_agent.py165# ---------------------------------------------------------------------------COMMENT
MEDIUMpython/src/tests/agents/test_grounded_agent.py167# ---------------------------------------------------------------------------COMMENT
MEDIUMpython/src/tests/agents/test_grounded_agent.py181# ---------------------------------------------------------------------------COMMENT
MEDIUMpython/src/tests/agents/test_grounded_agent.py183# ---------------------------------------------------------------------------COMMENT
MEDIUMpython/src/tests/agents/test_grounded_agent.py214# ---------------------------------------------------------------------------COMMENT
MEDIUMpython/src/tests/agents/test_grounded_agent.py216# ---------------------------------------------------------------------------COMMENT
MEDIUMpython/src/tests/agents/test_grounded_agent.py300# ---------------------------------------------------------------------------COMMENT
MEDIUMpython/src/tests/agents/test_grounded_agent.py302# ---------------------------------------------------------------------------COMMENT
MEDIUMpython/src/tests/agents/test_grounded_agent.py341# ---------------------------------------------------------------------------COMMENT
MEDIUMpython/src/tests/agents/test_grounded_agent.py343# ---------------------------------------------------------------------------COMMENT
MEDIUMpython/src/tests/agents/test_grounded_agent.py361# ---------------------------------------------------------------------------COMMENT
MEDIUMpython/src/tests/agents/test_grounded_agent.py363# ---------------------------------------------------------------------------COMMENT
MEDIUMpython/src/tests/agents/test_chain_agent.py27# ---------------------------------------------------------------------------COMMENT
MEDIUMpython/src/tests/agents/test_chain_agent.py29# ---------------------------------------------------------------------------COMMENT
MEDIUMpython/src/tests/agents/test_chain_agent.py50# ---------------------------------------------------------------------------COMMENT
MEDIUMpython/src/tests/agents/test_chain_agent.py52# ---------------------------------------------------------------------------COMMENT
MEDIUMpython/src/tests/agents/test_chain_agent.py84# ---------------------------------------------------------------------------COMMENT
MEDIUMpython/src/tests/agents/test_chain_agent.py86# ---------------------------------------------------------------------------COMMENT
MEDIUM…hon/src/tests/storage/test_summarizing_chat_storage.py29# ---------------------------------------------------------------------------COMMENT
MEDIUM…hon/src/tests/storage/test_summarizing_chat_storage.py31# ---------------------------------------------------------------------------COMMENT
MEDIUM…hon/src/tests/storage/test_summarizing_chat_storage.py100# ---------------------------------------------------------------------------COMMENT
MEDIUM…hon/src/tests/storage/test_summarizing_chat_storage.py102# ---------------------------------------------------------------------------COMMENT
MEDIUM…hon/src/tests/storage/test_summarizing_chat_storage.py117# ---------------------------------------------------------------------------COMMENT
MEDIUM…hon/src/tests/storage/test_summarizing_chat_storage.py119# ---------------------------------------------------------------------------COMMENT
MEDIUM…hon/src/tests/storage/test_summarizing_chat_storage.py165# ---------------------------------------------------------------------------COMMENT
MEDIUM…hon/src/tests/storage/test_summarizing_chat_storage.py167# ---------------------------------------------------------------------------COMMENT
28 more matches not shown…
Hyper-Verbose Identifiers347 hits · 340 pts
SeverityFileLineSnippetContext
LOWpython/src/tests/test_agent_overlap_analyzer.py36def test_analyze_overlap_returns_analysis_result():CODE
LOWpython/src/tests/test_agent_overlap_analyzer.py42def test_pairwise_overlap_has_correct_number_of_pairs():CODE
LOWpython/src/tests/test_agent_overlap_analyzer.py49def test_pairwise_keys_are_formatted_with_double_underscore():CODE
LOWpython/src/tests/test_agent_overlap_analyzer.py60def test_overlap_percentage_is_valid_string():CODE
LOWpython/src/tests/test_agent_overlap_analyzer.py70def test_potential_conflict_levels_are_valid():CODE
LOWpython/src/tests/test_agent_overlap_analyzer.py78def test_uniqueness_scores_count_matches_agent_count():CODE
LOWpython/src/tests/test_agent_overlap_analyzer.py84def test_uniqueness_score_is_valid_string():CODE
LOWpython/src/tests/test_agent_overlap_analyzer.py94def test_high_conflict_for_very_similar_agents():CODE
LOWpython/src/tests/test_agent_overlap_analyzer.py101def test_returns_none_for_single_agent(capsys):CODE
LOWpython/src/tests/test_agent_overlap_analyzer.py111def test_returns_none_for_empty_agents(capsys):CODE
LOWpython/src/tests/test_agent_overlap_analyzer.py119def test_identical_descriptions_produce_high_overlap():CODE
LOWpython/src/tests/test_agent_overlap_analyzer.py131def test_completely_different_descriptions_produce_low_overlap():CODE
LOWpython/src/tests/test_orchestrator.py77def test_init_with_dict_options(mock_boto3_client):CODE
LOWpython/src/tests/test_orchestrator.py85def test_init_with_invalid_options(mock_boto3_client):CODE
LOWpython/src/tests/test_orchestrator.py117async def test_classify_request_success(orchestrator, mock_agent):CODE
LOWpython/src/tests/test_orchestrator.py125async def test_classify_request_no_agent_with_default(orchestrator):CODE
LOWpython/src/tests/test_orchestrator.py133async def test_classify_request_error(orchestrator):CODE
LOWpython/src/tests/test_orchestrator.py141async def test_dispatch_to_agent_success(orchestrator, mock_agent):CODE
LOWpython/src/tests/test_orchestrator.py160async def test_dispatch_to_agent_no_agent(orchestrator):CODE
LOWpython/src/tests/test_orchestrator.py176async def test_agent_process_request_streaming(orchestrator, mock_streaming_agent):CODE
LOWpython/src/tests/test_orchestrator.py203async def test_route_request_success(orchestrator, mock_agent):CODE
LOWpython/src/tests/test_orchestrator.py282async def test_measure_execution_time(orchestrator):CODE
LOWpython/src/tests/test_orchestrator.py294async def test_measure_execution_time_error(orchestrator):CODE
LOWpython/src/tests/test_orchestrator.py325def test_create_metadata_no_agent(orchestrator):CODE
LOWpython/src/tests/retrievers/test_dakera_retriever.py26def test_init_requires_namespace(dakera_client):CODE
LOWpython/src/tests/retrievers/test_dakera_retriever.py31def test_init_requires_api_key(monkeypatch):CODE
LOWpython/src/tests/retrievers/test_dakera_retriever.py47def test_init_defaults_to_localhost(dakera_client, monkeypatch):CODE
LOWpython/src/tests/retrievers/test_dakera_retriever.py74async def test_retrieve_uses_option_top_k_and_filter(dakera_client):CODE
LOWpython/src/tests/retrievers/test_dakera_retriever.py85async def test_retrieve_empty_text_raises(dakera_client):CODE
LOWpython/src/tests/retrievers/test_dakera_retriever.py92async def test_retrieve_and_combine_results(dakera_client):CODE
LOWpython/src/tests/retrievers/test_dakera_retriever.py108async def test_retrieve_and_generate_not_supported(dakera_client):CODE
LOWpython/src/tests/retrievers/test_retriever.py13 async def retrieve_and_combine_results(self, text: str) -> str:CODE
LOWpython/src/tests/retrievers/test_retriever.py30async def test_retrieve_and_combine_results(retriever):CODE
LOWpython/src/tests/retrievers/test_retriever.py35async def test_retrieve_and_generate(retriever):CODE
LOWpython/src/tests/tools/test_mcp_tool_provider.py40def _make_read_resource_result(text: str, mime_type: str = "text/html;profile=mcp-app"):CODE
LOWpython/src/tests/tools/test_mcp_tool_provider.py45def _make_read_resource_blob_result(blob_b64: str, mime_type: str = "text/html;profile=mcp-app"):CODE
LOWpython/src/tests/tools/test_mcp_tool_provider.py145def test_to_anthropic_format_alias(mock_mcp_modules):CODE
LOWpython/src/tests/tools/test_mcp_tool_provider.py177async def test_tool_handler_bedrock(mock_mcp_modules):CODE
LOWpython/src/tests/tools/test_mcp_tool_provider.py214async def test_tool_handler_anthropic(mock_mcp_modules):CODE
LOWpython/src/tests/tools/test_mcp_tool_provider.py243async def test_tool_handler_mcp_error(mock_mcp_modules):CODE
LOWpython/src/tests/tools/test_mcp_tool_provider.py277async def test_tool_handler_unknown_tool(mock_mcp_modules):CODE
LOWpython/src/tests/tools/test_mcp_tool_provider.py305async def test_tool_handler_call_exception(mock_mcp_modules):CODE
LOWpython/src/tests/tools/test_mcp_tool_provider.py337async def test_lazy_connection_stdio(mock_mcp_modules):CODE
LOWpython/src/tests/tools/test_mcp_tool_provider.py499async def test_stdio_missing_command(mock_mcp_modules):CODE
LOWpython/src/tests/tools/test_mcp_tool_provider.py519async def test_unknown_transport_type(mock_mcp_modules):CODE
LOWpython/src/tests/tools/test_mcp_tool_provider.py532def test_multiple_tools_format(mock_mcp_modules):CODE
LOWpython/src/tests/tools/test_mcp_tool_provider.py562def test_ui_resource_uri_helper():CODE
LOWpython/src/tests/tools/test_mcp_tool_provider.py570def test_model_visible_helper():CODE
LOWpython/src/tests/tools/test_mcp_tool_provider.py579def test_app_only_tools_hidden_from_model_but_callable(mock_mcp_modules):CODE
LOWpython/src/tests/tools/test_mcp_tool_provider.py413async def test_lazy_connection_streamable_http(mock_mcp_modules):CODE
LOWpython/src/tests/tools/test_mcp_tool_provider.py455async def test_streamable_http_missing_url(mock_mcp_modules):CODE
LOWpython/src/tests/tools/test_mcp_tool_provider.py465async def test_streamable_http_requires_recent_mcp(mock_mcp_modules):CODE
LOWpython/src/tests/tools/test_mcp_tool_provider.py479async def test_ensure_connected_idempotent(mock_mcp_modules):CODE
LOWpython/src/tests/tools/test_mcp_tool_provider.py592async def test_tool_handler_widget_passthrough(mock_mcp_modules):CODE
LOWpython/src/tests/tools/test_mcp_tool_provider.py628async def test_tool_handler_no_ui_returns_plain_toolresult(mock_mcp_modules):CODE
LOWpython/src/tests/tools/test_mcp_tool_provider.py654async def test_template_cache_fetches_once(mock_mcp_modules):CODE
LOWpython/src/tests/tools/test_mcp_tool_provider.py666async def test_widget_template_from_blob(mock_mcp_modules):CODE
LOWpython/src/tests/tools/test_mcp_tool_provider.py680async def test_widget_fetch_failure_degrades_to_text(mock_mcp_modules):CODE
LOWpython/src/tests/tools/test_mcp_tool_provider.py694async def test_empty_content_falls_back_to_structured_json(mock_mcp_modules):CODE
LOWpython/src/tests/tools/test_mcp_tool_provider.py710async def test_app_only_tool_still_callable(mock_mcp_modules):CODE
287 more matches not shown…
Unused Imports151 hits · 140 pts
SeverityFileLineSnippetContext
LOWpython/src/tests/test_agent_overlap_analyzer.py1CODE
LOWpython/src/tests/test_orchestrator.py4CODE
LOWpython/src/tests/test_orchestrator.py5CODE
LOWpython/src/tests/test_orchestrator.py7CODE
LOWpython/src/tests/test_orchestrator.py7CODE
LOWpython/src/tests/test_orchestrator.py14CODE
LOWpython/src/tests/test_orchestrator.py14CODE
LOWpython/src/tests/test_orchestrator.py20CODE
LOWpython/src/tests/retrievers/test_retriever.py2CODE
LOWpython/src/tests/tools/test_mcp_tool_provider.py6CODE
LOWpython/src/tests/agents/test_lex_bot_agent.py2CODE
LOWpython/src/tests/agents/test_supervisor_agent.py4CODE
LOWpython/src/tests/agents/test_supervisor_agent.py15CODE
LOWpython/src/tests/agents/test_strands_agent.py7CODE
LOWpython/src/tests/agents/test_agent.py3CODE
LOWpython/src/tests/agents/test_comprehend_agent.py3CODE
LOWpython/src/tests/agents/test_comprehend_agent.py3CODE
LOWpython/src/tests/agents/test_amazon_bedrock_agent.py3CODE
LOWpython/src/tests/agents/test_bedrock_inline_agent.py3CODE
LOWpython/src/tests/agents/test_bedrock_inline_agent.py4CODE
LOWpython/src/tests/agents/test_bedrock_inline_agent.py4CODE
LOWpython/src/tests/agents/test_anthropic_agent.py2CODE
LOWpython/src/tests/agents/test_lambda_agent.py1CODE
LOWpython/src/tests/agents/test_lambda_agent.py5CODE
LOWpython/src/tests/agents/test_lambda_agent.py6CODE
LOWpython/src/tests/agents/test_bedrock_flows_agent.py2CODE
LOWpython/src/tests/utils/test_helpers.py1CODE
LOWpython/src/tests/utils/test_tool.py4CODE
LOWpython/src/tests/utils/test_logger.py3CODE
LOWpython/src/tests/utils/test_logger.py3CODE
LOW…ests/classifier_test_tool/test_classifier_test_tool.py6CODE
LOWpython/src/tests/classifiers/test_classifier.py2CODE
LOWpython/src/tests/classifiers/test_classifier.py2CODE
LOWpython/src/tests/classifiers/test_classifier.py2CODE
LOWpython/src/tests/classifiers/test_classifier.py3CODE
LOWpython/src/tests/classifiers/test_classifier.py6CODE
LOWpython/src/agent_squad/__init__.py6CODE
LOWpython/src/agent_squad/__init__.py6CODE
LOWpython/src/agent_squad/classifier_test_tool.py38CODE
LOWpython/src/agent_squad/classifier_test_tool.py45CODE
LOWpython/src/agent_squad/classifier_test_tool.py47CODE
LOWpython/src/agent_squad/classifier_test_tool.py47CODE
LOWpython/src/agent_squad/agent_overlap_analyzer.py1CODE
LOW…thon/src/agent_squad/retrievers/amazon_kb_retriever.py2CODE
LOWpython/src/agent_squad/retrievers/__init__.py1CODE
LOWpython/src/agent_squad/retrievers/__init__.py2CODE
LOWpython/src/agent_squad/retrievers/__init__.py2CODE
LOWpython/src/agent_squad/retrievers/__init__.py3CODE
LOWpython/src/agent_squad/retrievers/__init__.py3CODE
LOWpython/src/agent_squad/tools/mcp_tool_provider.py31CODE
LOWpython/src/agent_squad/tools/__init__.py4CODE
LOWpython/src/agent_squad/tools/__init__.py4CODE
LOWpython/src/agent_squad/types/__init__.py2CODE
LOWpython/src/agent_squad/types/__init__.py2CODE
LOWpython/src/agent_squad/types/__init__.py2CODE
LOWpython/src/agent_squad/types/__init__.py2CODE
LOWpython/src/agent_squad/types/__init__.py2CODE
LOWpython/src/agent_squad/types/__init__.py2CODE
LOWpython/src/agent_squad/types/__init__.py2CODE
LOWpython/src/agent_squad/types/__init__.py2CODE
91 more matches not shown…
Excessive Try-Catch Wrapping85 hits · 95 pts
SeverityFileLineSnippetContext
LOWpython/src/tests/agents/test_amazon_bedrock_agent.py73 except Exception as error:CODE
MEDIUMpython/src/tests/agents/test_anthropic_agent.py19def test_no_api_key_init(mock_anthropic):CODE
MEDIUMpython/src/tests/agents/test_anthropic_agent.py44def test_client(mock_anthropic):CODE
LOWpython/src/tests/agents/test_anthropic_agent.py28 except Exception as e:CODE
LOWpython/src/tests/agents/test_anthropic_agent.py56 except Exception as e:CODE
LOWpython/src/tests/agents/test_anthropic_agent.py70 except Exception as e:CODE
LOWpython/src/tests/utils/test_tool.py482 except Exception as e:CODE
LOWpython/src/tests/utils/test_tool.py500 except Exception as e:CODE
LOWpython/src/tests/utils/test_tool.py512 except Exception as e:CODE
MEDIUMpython/src/tests/utils/test_tool.py475def test_tool_not_found():CODE
MEDIUMpython/src/tests/utils/test_tool.py495def test_no_func():CODE
MEDIUMpython/src/tests/utils/test_tool.py504def test_no_tool_block():CODE
LOWpython/src/agent_squad/orchestrator.py133 except Exception as error:CODE
LOWpython/src/agent_squad/orchestrator.py240 except Exception as error:CODE
LOWpython/src/agent_squad/orchestrator.py276 except Exception as error:CODE
LOWpython/src/agent_squad/orchestrator.py315 except Exception as error:CODE
LOWpython/src/agent_squad/classifier_test_tool.py213 except Exception as exc:CODE
LOWpython/src/agent_squad/tools/mcp_tool_provider.py349 except Exception: # noqa: BLE001CODE
LOWpython/src/agent_squad/tools/mcp_tool_provider.py356 except Exception: # noqa: BLE001CODE
LOWpython/src/agent_squad/tools/mcp_tool_provider.py451 except Exception as exc: # noqa: BLE001CODE
LOWpython/src/agent_squad/tools/mcp_tool_provider.py494 except Exception: # noqa: BLE001CODE
LOWpython/src/agent_squad/tools/mcp_tool_provider.py507 except Exception: # noqa: BLE001CODE
LOW…hon/src/agent_squad/agents/bedrock_translator_agent.py129 except Exception as error:CODE
LOWpython/src/agent_squad/agents/strands_agent.py80 except Exception as e:CODE
LOWpython/src/agent_squad/agents/strands_agent.py120 except Exception as e:CODE
LOWpython/src/agent_squad/agents/strands_agent.py127 except Exception as e:CODE
LOWpython/src/agent_squad/agents/strands_agent.py284 except Exception as error:CODE
LOWpython/src/agent_squad/agents/strands_agent.py345 except Exception as error:CODE
LOWpython/src/agent_squad/agents/strands_agent.py463 except Exception as error:CODE
LOW…thon/src/agent_squad/agents/comprehend_filter_agent.py101 except Exception as error:CODE
LOWpython/src/agent_squad/agents/bedrock_llm_agent.py424 except Exception as error:CODE
LOWpython/src/agent_squad/agents/bedrock_llm_agent.py560 except Exception as error:CODE
LOWpython/src/agent_squad/agents/bedrock_flows_agent.py114 except Exception as error:CODE
LOWpython/src/agent_squad/agents/chain_agent.py63 except Exception as error:CODE
LOWpython/src/agent_squad/agents/openai_agent.py140 except Exception as error:CODE
LOWpython/src/agent_squad/agents/openai_agent.py162 except Exception as error:CODE
LOWpython/src/agent_squad/agents/openai_agent.py184 except Exception as error:CODE
LOWpython/src/agent_squad/agents/supervisor_agent.py254 except Exception as e:CODE
LOWpython/src/agent_squad/agents/supervisor_agent.py283 except Exception as e:CODE
LOWpython/src/agent_squad/agents/supervisor_agent.py324 except Exception as e:CODE
LOWpython/src/agent_squad/agents/bedrock_inline_agent.py320 except Exception as error:CODE
LOWpython/src/agent_squad/agents/anthropic_agent.py380 except Exception as error:CODE
LOWpython/src/agent_squad/agents/anthropic_agent.py439 except Exception as error:CODE
LOWpython/src/agent_squad/shared/user_agent.py42 except Exception:CODE
LOWpython/src/agent_squad/shared/user_agent.py80 except Exception:CODE
MEDIUMpython/src/agent_squad/shared/user_agent.py66def add_mao_feature(request, **kwargs):CODE
LOWpython/src/agent_squad/storage/sql_chat_storage.py55 except Exception as error:STRING
LOWpython/src/agent_squad/storage/sql_chat_storage.py126 except Exception as error:STRING
LOWpython/src/agent_squad/storage/sql_chat_storage.py217 except Exception as error:STRING
LOWpython/src/agent_squad/storage/sql_chat_storage.py252 except Exception as error:STRING
LOWpython/src/agent_squad/storage/sql_chat_storage.py280 except Exception as error:STRING
LOWpython/src/agent_squad/storage/sql_chat_storage.py300 except Exception as error:CODE
LOWpython/src/agent_squad/storage/dynamodb_chat_storage.py64 except Exception as error:CODE
LOWpython/src/agent_squad/storage/dynamodb_chat_storage.py116 except Exception as error:CODE
LOWpython/src/agent_squad/storage/dynamodb_chat_storage.py135 except Exception as error:CODE
LOWpython/src/agent_squad/storage/dynamodb_chat_storage.py152 except Exception as error:CODE
LOWpython/src/agent_squad/storage/dynamodb_chat_storage.py193 except Exception as error:CODE
LOW…on/src/agent_squad/classifiers/anthropic_classifier.py125 except Exception as error:CODE
LOWpython/src/agent_squad/classifiers/openai_classifier.py104 except Exception as error:CODE
LOWpython/src/agent_squad/classifiers/__init__.py9except Exception as e:CODE
25 more matches not shown…
Self-Referential Comments28 hits · 81 pts
SeverityFileLineSnippetContext
MEDIUMpython/src/tests/agents/test_bedrock_llm_agent.py356 # Create a mock retrieverCOMMENT
MEDIUMpython/src/tests/agents/test_bedrock_llm_agent.py434 # Create a mock AgentToolsCOMMENT
MEDIUMpython/src/tests/agents/test_bedrock_llm_agent.py445 # Create a test LLM response with toolUseCOMMENT
MEDIUMpython/src/tests/agents/test_bedrock_llm_agent.py465 # Create a test LLM response with toolUseCOMMENT
MEDIUMpython/src/tests/agents/test_bedrock_llm_agent.py758 # Create a mock clientCOMMENT
MEDIUMpython/src/tests/agents/test_strands_agent.py661 # Create a generator that raises an exception mid-streamCOMMENT
MEDIUMpython/src/tests/agents/test_agent.py176 # Create a mock loggerCOMMENT
MEDIUMpython/src/tests/agents/test_anthropic_agent.py551 # Create the agent with streaming enabledCOMMENT
MEDIUMpython/src/tests/agents/test_anthropic_agent.py561 # Create a simple async generator function that mimics the behavior of handle_streaming_responseCOMMENT
MEDIUMpython/src/tests/agents/test_anthropic_agent.py161 # Create a mock Anthropic clientCOMMENT
MEDIUMpython/src/tests/agents/test_anthropic_agent.py496 # Create a mock Anthropic clientCOMMENT
MEDIUMpython/src/tests/agents/test_anthropic_agent.py608 # Create a single response for non-streaming pathCOMMENT
MEDIUMpython/src/tests/agents/test_anthropic_agent.py617 # Create a streaming response for the streaming pathCOMMENT
MEDIUMpython/src/tests/agents/test_anthropic_agent.py668 # Create a mock client that raises an exceptionCOMMENT
MEDIUMpython/src/tests/agents/test_anthropic_agent.py706 # Create a mock custom stream class that acts as both async iterator and context managerCOMMENT
MEDIUMpython/src/tests/agents/test_openai_agent.py55 # Create a mock response objectCOMMENT
MEDIUMpython/src/tests/agents/test_lambda_agent.py92 # Create a mock response that matches the actual Lambda invoke responseCOMMENT
MEDIUMpython/src/agent_squad/orchestrator.py176 # Create an async generator function to handle the streamingCOMMENT
MEDIUM…hon/src/agent_squad/agents/bedrock_translator_agent.py36 # Define the translation toolCOMMENT
MEDIUMpython/src/agent_squad/agents/bedrock_inline_agent.py117 # Define the tool handlerCOMMENT
MEDIUMpython/src/agent_squad/agents/bedrock_inline_agent.py267 # Create the user messageCOMMENT
MEDIUMpython/src/agent_squad/shared/user_agent.py73 # This function is exclusive to client and resources objects created in MAOCOMMENT
MEDIUM…text-2-structured-output/multi_agent_query_analyzer.py116 # Create a new orchestrator for this querySTRING
MEDIUMexamples/tools/python/weather_tool_example.py21# Create a tool definition with clear name and descriptionCOMMENT
MEDIUMexamples/tools/python/weather_tool_example.py138 # Create a unique user and session ID for tracking conversationsCOMMENT
MEDIUMexamples/python/travel-planner/travel-planner-demo.py81# Define the async request handlerSTRING
MEDIUM…mples/python/movie-production/movie-production-demo.py46# Define the toolsSTRING
MEDIUM…mples/python/movie-production/movie-production-demo.py58# Define the agentsSTRING
Cross-File Repetition14 hits · 70 pts
SeverityFileLineSnippetContext
HIGHpython/src/tests/utils/test_tool.py0fetches weather data for the given latitude and longitude using the open-meteo api. returns the weather data or an errorSTRING
HIGHexamples/python-demo/tools/weather_tool.py0fetches weather data for the given latitude and longitude using the open-meteo api. returns the weather data or an errorSTRING
HIGHexamples/langfuse-demo/tools/weather_tool.py0fetches weather data for the given latitude and longitude using the open-meteo api. returns the weather data or an errorSTRING
HIGHpython/src/agent_squad/agents/strands_agent.py0prepare the conversation history with the new user message.STRING
HIGHpython/src/agent_squad/agents/bedrock_llm_agent.py0prepare the conversation history with the new user message.STRING
HIGHpython/src/agent_squad/agents/anthropic_agent.py0prepare the conversation history with the new user message.STRING
HIGHpython/src/agent_squad/agents/bedrock_llm_agent.py0you are a \(name). \(description) you will engage in an open-ended conversation, providing helpful and accurate informatSTRING
HIGHpython/src/agent_squad/agents/bedrock_inline_agent.py0you are a \(name). \(description) you will engage in an open-ended conversation, providing helpful and accurate informatSTRING
HIGHpython/src/agent_squad/agents/openai_agent.py0you are a \(name). \(description) you will engage in an open-ended conversation, providing helpful and accurate informatSTRING
HIGHpython/src/agent_squad/agents/anthropic_agent.py0you are a \(name). \(description) you will engage in an open-ended conversation, providing helpful and accurate informatSTRING
HIGHswift/Sources/AgentSquad/Agents/Agent.swift0you are a \(name). \(description) you will engage in an open-ended conversation, providing helpful and accurate informatSTRING
HIGHexamples/python-demo/tools/weather_tool.py0you are a weather assistant that provides current weather data for user-specified locations using only the weather_tool,STRING
HIGHexamples/langfuse-demo/tools/weather_tool.py0you are a weather assistant that provides current weather data for user-specified locations using only the weather_tool,STRING
HIGHexamples/supervisor-mode/weather_tool.py0you are a weather assistant that provides current weather data for user-specified locations using only the weather_tool,STRING
Docstring Block Structure9 hits · 45 pts
SeverityFileLineSnippetContext
HIGHpython/src/agent_squad/agents/strands_agent.py41 Initialize the Strands Agent. Args: options: Configuration options for the agent STRING
HIGHpython/src/agent_squad/agents/strands_agent.py214 Handle streaming response from Strands SDK agent. Args: input_text: User input text STRING
HIGHpython/src/agent_squad/agents/strands_agent.py294 Handle single (non-streaming) response from Strands SDK agent. Args: input_text: User inpuSTRING
HIGHpython/src/agent_squad/agents/strands_agent.py356 Process the request using the specified strategy (streaming or non-streaming). This method routes the STRING
HIGHpython/src/agent_squad/agents/strands_agent.py417 Process a user request using the Strands SDK agent. Args: input_text: The user's input texSTRING
HIGHpython/src/agent_squad/agents/agent.py82 Callback method that runs when an agent starts processing. This method is called at the beginning of aSTRING
HIGHpython/src/agent_squad/agents/agent.py114 Callback method that runs when an agent completes its processing. This method is called at the end of STRING
HIGHpython/src/agent_squad/agents/agent.py143 Callback method that runs when an llm starts processing. This method is called at the beginning of an STRING
HIGHpython/src/agent_squad/agents/agent.py191 Callback method that runs when an llm stops. This method is called at the end of an llm's execution, pSTRING
Hallucination Indicators4 hits · 40 pts
SeverityFileLineSnippetContext
CRITICALpython/src/agent_squad/shared/user_agent.py195 resource.meta.client.meta.events.register(TARGET_SDK_EVENT, _create_feature_function(feature))CODE
CRITICAL…on/src/agent_squad/classifiers/anthropic_classifier.py4from agent_squad.utils.helpers import is_tool_inputCODE
CRITICALpython/src/agent_squad/classifiers/openai_classifier.py4from agent_squad.utils.helpers import is_tool_inputCODE
CRITICAL…thon/src/agent_squad/classifiers/bedrock_classifier.py5from agent_squad.utils.helpers import is_tool_inputCODE
Over-Commented Block32 hits · 32 pts
SeverityFileLineSnippetContext
LOWpython/ruff.toml1# Enable rules.COMMENT
LOWpython/ruff.toml21 #"PL", # pylint - https://docs.astral.sh/ruff/rules/#pylint-plCOMMENT
LOWdocs/src/env.d.ts1/// <reference path="../.astro/types.d.ts" />COMMENT
LOWdocs/src/content/docs/swift/mcp/custom.md41 self.endpoint = endpointCOMMENT
LOWdocs/src/content/docs/swift/mcp/custom.md61 // )COMMENT
LOWswift/Tests/AgentSquadTests/DakeraRetrieverTests.swift141 #expect(tools.first?.name == "search_memory")COMMENT
LOWswift/Tests/AgentSquadTests/OTLPExporterTests.swift81COMMENT
LOW…gentSquadTests/OpenAIGroundedVoiceAssistantTests.swift341 transport.push(responseDone("r2")) // settled with results → present()COMMENT
LOWswift/Tests/AgentSquadTests/RealtimeWireTests.swift181 #expect(frame?.contains(#""item_id":"item_B""#) == true)COMMENT
LOWswift/Tests/AgentSquadTests/RealtimeWireTests.swift201 #expect(event == .audioTranscriptDelta(responseId: "p1", text: "hi"))COMMENT
LOW…urces/AgentSquad/Core/Tracing/BatchSpanProcessor.swift1import FoundationCOMMENT
LOWswift/Sources/AgentSquad/Core/Tracing/Tracing.swift21 public func shutdown() async {}COMMENT
LOWswift/Sources/AgentSquad/Core/Tracing/Tracing.swift61COMMENT
LOW…gentSquad/Runtimes/Realtime/OpenAIVoiceAssistant.swift41 private var replyText = "" // the spoken reply, captured for persistence in every output modeCOMMENT
LOW…rces/AgentSquad/Runtimes/Realtime/VoiceAssistant.swift81 /// PCM16 @ 24 kHz to play (only for the response currently playing — the session drops stale audio on `interrupt()`COMMENT
LOW…ources/AgentSquad/Runtimes/Realtime/RealtimeWire.swift1import FoundationCOMMENT
LOW…s/AgentSquad/Runtimes/Realtime/RealtimeTransport.swift1import FoundationCOMMENT
LOW…entSquad/Runtimes/Realtime/OpenAIRealtimeSession.swift1import FoundationCOMMENT
LOW…urces/AgentSquad/Storage/TransformingChatStorage.swift1import FoundationCOMMENT
LOW…t/Sources/AgentSquad/Storage/InMemoryChatStorage.swift1import FoundationCOMMENT
LOW…ources/AgentSquad/Storage/SummarizingChatStorage.swift41/// An in-memory buffer is maintained per (userId, sessionId, agentId) slot:COMMENT
LOW…ources/AgentSquad/Storage/SummarizingChatStorage.swift61/// return [summary] + recentCOMMENT
LOW…ift/Sources/AgentSquad/Retrieval/DakeraRetriever.swift81 /// The server returned a non-2xx status.COMMENT
LOW…ft/Sources/AgentSquadAudio/VoiceProcessedAudioIO.swift1import AVFoundationCOMMENT
LOWswift/Sources/AgentSquadAudio/PlaybackClock.swift1import AVFoundationCOMMENT
LOWexamples/chat-demo-app/test/chat-demo-app.ts1// import * as cdk from 'aws-cdk-lib';COMMENT
LOWexamples/python-demo/main-stream.py201 # streaming=True,COMMENT
LOWexamples/python-demo/main-stream.py221 # callbacks=LLMAgentCallbacks()COMMENT
LOWexamples/python-demo/main.py81 ))COMMENT
LOWexamples/python-demo/main.py101 # name="Weather Agent",COMMENT
LOW…-simulator/test/ai-ecommerce-support-simulator.test.ts1// import * as cdk from 'aws-cdk-lib';COMMENT
LOW.github/workflows/claude.yml41 actions: readCOMMENT
Deep Nesting21 hits · 21 pts
SeverityFileLineSnippetContext
LOWpython/src/agent_squad/orchestrator.py137CODE
LOWpython/src/agent_squad/tools/mcp_tool_provider.py261CODE
LOW…hon/src/agent_squad/agents/bedrock_translator_agent.py56CODE
LOWpython/src/agent_squad/agents/strands_agent.py141CODE
LOWpython/src/agent_squad/agents/bedrock_llm_agent.py233CODE
LOWpython/src/agent_squad/agents/bedrock_llm_agent.py428CODE
LOWpython/src/agent_squad/agents/bedrock_llm_agent.py245CODE
LOWpython/src/agent_squad/agents/chain_agent.py20CODE
LOWpython/src/agent_squad/agents/supervisor_agent.py178CODE
LOWpython/src/agent_squad/agents/supervisor_agent.py193CODE
LOWpython/src/agent_squad/agents/bedrock_inline_agent.py175CODE
LOWpython/src/agent_squad/agents/amazon_bedrock_agent.py93CODE
LOWpython/src/agent_squad/agents/anthropic_agent.py192CODE
LOWpython/src/agent_squad/agents/anthropic_agent.py384CODE
LOWpython/src/agent_squad/agents/anthropic_agent.py204CODE
LOWpython/src/agent_squad/storage/dynamodb_chat_storage.py156CODE
LOW…thon/src/agent_squad/storage/in_memory_chat_storage.py83CODE
LOW…thon/src/agent_squad/classifiers/bedrock_classifier.py77CODE
LOW…text-2-structured-output/multi_agent_query_analyzer.py114CODE
LOWexamples/python-demo/main-stream.py99CODE
LOWexamples/supervisor-mode/main.py204CODE
Modern Structural Boilerplate16 hits · 16 pts
SeverityFileLineSnippetContext
LOWpython/src/agent_squad/retrievers/__init__.py5__all__ = [CODE
LOWpython/src/agent_squad/types/__init__.py20__all__ = [CODE
LOWpython/src/agent_squad/agents/__init__.py50__all__ = [CODE
LOWpython/src/agent_squad/agents/bedrock_llm_agent.py575 def update_system_prompt(self) -> None:CODE
LOWpython/src/agent_squad/agents/openai_agent.py197 def update_system_prompt(self) -> None:CODE
LOWpython/src/agent_squad/agents/bedrock_inline_agent.py333 def update_system_prompt(self) -> None:CODE
LOWpython/src/agent_squad/agents/anthropic_agent.py443 def set_system_prompt(self, template: Optional[str] = None, variables: Optional[TemplateVariables] = None) -> None:CODE
LOWpython/src/agent_squad/agents/anthropic_agent.py450 def update_system_prompt(self) -> None:CODE
LOWpython/src/agent_squad/utils/__init__.py7__all__ = [CODE
LOWpython/src/agent_squad/utils/logger.py32 def set_logger(cls, logger: Any) -> None:CODE
LOWpython/src/agent_squad/shared/user_agent.py15logger = logging.getLogger(__name__)CODE
LOWpython/src/agent_squad/storage/__init__.py23__all__ = [CODE
LOWpython/src/agent_squad/classifiers/classifier.py148 def set_agents(self, agents: Dict[str, Agent]) -> None:STRING
LOWpython/src/agent_squad/classifiers/classifier.py153 def set_history(self, messages: List[ConversationMessage]) -> None:STRING
LOWpython/src/agent_squad/classifiers/classifier.py184 def update_system_prompt(self) -> None:STRING
LOWpython/src/agent_squad/classifiers/__init__.py24__all__ = [CODE
Overly Generic Function Names9 hits · 8 pts
SeverityFileLineSnippetContext
LOWexamples/python/travel-planner/travel-planner-demo.py82async def handle_request(_orchestrator: AgentSquad, _user_input: str, _user_id: str, _session_id: str):STRING
LOW…mples/python/movie-production/movie-production-demo.py118async def handle_request(_orchestrator: AgentSquad, _user_input: str, _user_id: str, _session_id: str):STRING
LOWexamples/bedrock-flows/python/main.py10async def handle_request(_orchestrator: AgentSquad,agent:Agent, _user_input:str, _user_id:str, _session_id:str):CODE
LOWexamples/bedrock-prompt-routing/main.py22async def handle_request(_orchestrator: AgentSquad, _user_input:str, _user_id:str, _session_id:str):CODE
LOWexamples/python-demo/main-stream.py99async def handle_request(_orchestrator: AgentSquad, _user_input:str, _user_id:str, _session_id:str):CODE
LOWexamples/python-demo/main.py26async def handle_request(_orchestrator: AgentSquad, _user_input:str, _user_id:str, _session_id:str):CODE
LOWexamples/supervisor-mode/main.py204async def handle_request(_orchestrator: AgentSquad, _user_input:str, _user_id:str, _session_id:str):CODE
LOWexamples/langfuse-demo/main.py250async def handle_request(_orchestrator: AgentSquad, _user_input:str, _user_id:str, _session_id:str) -> str:CODE
LOWexamples/strands-agents-demo/main.py59async def handle_request(_orchestrator: AgentSquad, _user_input:str, _user_id:str, _session_id:str):CODE
Modern AI Meta-Vocabulary3 hits · 8 pts
SeverityFileLineSnippetContext
MEDIUMREADME.md16 <a href="#new-the-swift-runtime--on-device-orchestration"><strong>See what's included ↓</strong></a> · <a href="swift/CODE
MEDIUMREADME.md170## New: the Swift runtime — on-device orchestrationCOMMENT
MEDIUM…entSquad/Runtimes/Realtime/OpenAIRealtimeSession.swift39 // Shared per-turn scaffold (cleared by each actor's `resetTurn`).COMMENT
AI Response Leakage1 hit · 8 pts
SeverityFileLineSnippetContext
HIGHdocs/src/content/docs/general/faq.md74##### Is there a way to check if the agents I've added to the orchestrator don't overlap?COMMENT
AI Structural Patterns4 hits · 4 pts
SeverityFileLineSnippetContext
LOWpython/src/tests/agents/test_supervisor_agent.py55CODE
LOWpython/src/agent_squad/orchestrator.py109CODE
LOWpython/src/agent_squad/agents/strands_agent.py29CODE
LOWexamples/bedrock-inline-agents/python/main.py57CODE
Redundant / Tautological Comments2 hits · 3 pts
SeverityFileLineSnippetContext
LOW…hon/src/agent_squad/agents/bedrock_translator_agent.py62 # Check if input is a number and return it as-is if trueCOMMENT
LOWpython/src/agent_squad/agents/bedrock_inline_agent.py312 # Check if tool use is requiredCOMMENT
AI Slop Vocabulary1 hit · 3 pts
SeverityFileLineSnippetContext
MEDIUMpython/src/agent_squad/agents/amazon_bedrock_agent.py128 # Invoke Bedrock agent with comprehensive configurationCOMMENT
Dead Code1 hit · 2 pts
SeverityFileLineSnippetContext
MEDIUMpython/src/tests/agents/test_strands_agent.py666CODE
Fake / Example Data1 hit · 2 pts
SeverityFileLineSnippetContext
LOWpython/src/tests/classifiers/test_classifier.py90 "COMPANY": "Acme Corp"CODE
Example Usage Blocks1 hit · 2 pts
SeverityFileLineSnippetContext
LOWexamples/chat-demo-app/scripts/download.js25// Example usage:COMMENT