Repository Analysis

strands-agents/harness-sdk

Build an agent harness and control it end-to-end. Open-source SDK for production AI agents in Python & TypeScript - any model, any cloud.

22.1 Moderate AI signal View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of strands-agents/harness-sdk, a Python project with 6,771 GitHub stars. SynthScan v2.0 examined 380,471 lines of code across 1674 source files, recording 6491 pattern matches distributed across 26 syntactic categories. The overall adjusted score of 22.1 places this repository in the Moderate 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).

22.1
Adjusted Score
22.1
Raw Score
100%
Time Factor
2026-07-31
Last Push
6.8K
Stars
Python
Language
380.5K
Lines of Code
1.7K
Files
6.5K
Pattern Hits
2026-08-02
Scan Date
0.18
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 2HIGH 292MEDIUM 481LOW 5716

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 6491 distinct pattern matches across 26 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 Identifiers4502 hits · 4081 pts
SeverityFileLineSnippetContext
LOW…rands-py/tests_integ/test_hot_tool_reload_decorator.py19def test_hot_reload_decorator():CODE
LOW…rands-py/tests_integ/test_hot_tool_reload_decorator.py72def test_hot_reload_decorator_update():STRING
LOWstrands-py/tests_integ/conftest.py190def _load_api_keys_from_secrets_manager():CODE
LOWstrands-py/tests_integ/test_tool_retry_hook.py12def test_tool_retry_hook_causes_reexecution():CODE
LOWstrands-py/tests_integ/test_multiagent_graph.py110async def test_graph_execution_with_string(math_agent, summary_agent, validation_agent, nested_computation_graph):CODE
LOWstrands-py/tests_integ/test_multiagent_graph.py116 def proceed_to_second_summary(state):CODE
LOWstrands-py/tests_integ/test_multiagent_graph.py179async def test_graph_execution_with_image(image_analysis_agent, summary_agent, yellow_img, hook_provider):CODE
LOWstrands-py/tests_integ/test_multiagent_graph.py256async def test_graph_streaming_with_agents(alist):CODE
LOWstrands-py/tests_integ/test_multiagent_graph.py312async def test_graph_streaming_with_custom_node(alist):CODE
LOWstrands-py/tests_integ/test_multiagent_graph.py368async def test_nested_graph_streaming(alist):CODE
LOWstrands-py/tests_integ/test_multiagent_graph.py425async def test_graph_metrics_accumulation():CODE
LOWstrands-py/tests_integ/test_multiagent_graph.py469async def test_graph_interrupt_and_resume():CODE
LOWstrands-py/tests_integ/test_multiagent_graph.py539async def test_self_loop_resume_from_persisted_state(tmp_path):CODE
LOWstrands-py/tests_integ/test_multiagent_graph.py593async def test_conditional_routing_with_invocation_state():CODE
LOWstrands-py/tests_integ/test_multiagent_graph.py647async def test_legacy_conditions_unaffected_by_invocation_state():CODE
LOWstrands-py/tests_integ/test_multiagent_graph.py679async def test_condition_combining_graph_state_and_invocation_state():CODE
LOWstrands-py/tests_integ/test_multiagent_graph.py734async def test_diamond_graph_conditional_convergence():CODE
LOWstrands-py/tests_integ/test_multiagent_graph.py797async def test_invocation_state_persisted_on_resume(tmp_path):CODE
LOWstrands-py/tests_integ/test_multiagent_graph.py853async def test_invocation_state_streaming_with_conditional_edges():CODE
LOWstrands-py/tests_integ/test_session.py40def test_agent_with_file_session(temp_dir):CODE
LOWstrands-py/tests_integ/test_session.py63def test_agent_with_file_session_and_conversation_manager(temp_dir):CODE
LOWstrands-py/tests_integ/test_session.py104def test_agent_with_file_session_with_image(temp_dir, yellow_img):CODE
LOWstrands-py/tests_integ/test_session.py167def test_agent_with_file_session_server_side_conversation(temp_dir):CODE
LOW…g/test_summarizing_conversation_manager_integration.py76def test_summarization_with_context_overflow(model):CODE
LOW…g/test_summarizing_conversation_manager_integration.py187def test_tool_preservation_during_summarization(model, tools):STRING
LOW…g/test_summarizing_conversation_manager_integration.py300def test_dedicated_summarization_agent(model, summarization_model):STRING
LOW…g/test_summarizing_conversation_manager_integration.py378def test_summarization_with_tool_messages_and_no_tools():STRING
LOW…g/test_summarizing_conversation_manager_integration.py414def test_dedicated_summarization_agent_with_structured_output(model, summarization_model):STRING
LOWstrands-py/tests_integ/test_tool_context_injection.py31def _validate_tool_result_content(agent: Agent):CODE
LOWstrands-py/tests_integ/test_tool_context_injection.py42def test_strands_context_integration_context_true():CODE
LOWstrands-py/tests_integ/test_tool_context_injection.py52def test_strands_context_integration_context_custom():CODE
LOWstrands-py/tests_integ/test_tool_context_injection.py68def test_agent_state_access_through_tool_context():CODE
LOWstrands-py/tests_integ/test_multiagent_swarm.py117def test_swarm_execution_with_string(researcher_agent, analyst_agent, writer_agent, hook_provider):CODE
LOWstrands-py/tests_integ/test_multiagent_swarm.py153async def test_swarm_execution_with_image(researcher_agent, analyst_agent, writer_agent, yellow_img):CODE
LOWstrands-py/tests_integ/test_multiagent_swarm.py236async def test_swarm_node_result_structure():CODE
LOWstrands-py/tests_integ/test_multiagent_swarm.py283async def test_swarm_multiple_handoffs_with_agent_results():CODE
LOWstrands-py/tests_integ/test_multiagent_swarm.py327async def test_swarm_get_agent_results_flattening():CODE
LOWstrands-py/tests_integ/test_multiagent_swarm.py362def test_swarm_resume_from_executing_state(tmpdir, exit_hook, verify_hook):CODE
LOWstrands-py/tests_integ/test_skills_plugin.py39def test_agent_activates_skill_and_injects_metadata(agent, skills_plugin):CODE
LOWstrands-py/tests_integ/test_skills_plugin.py52def test_direct_tool_invocation_and_state_persistence(agent, skills_plugin):CODE
LOWstrands-py/tests_integ/test_skills_plugin.py62def test_load_skills_from_directory(tmp_path):CODE
LOWstrands-py/tests_integ/test_agent_as_tool.py13async def test_stream_async_with_agent_tool():CODE
LOW…ds-py/tests_integ/test_structured_output_agent_loop.py161 def test_regular_call_without_structured_output(self):CODE
LOW…ds-py/tests_integ/test_structured_output_agent_loop.py169 def test_simple_structured_output(self):CODE
LOW…ds-py/tests_integ/test_structured_output_agent_loop.py183 def test_follow_up_without_structured_output(self):CODE
LOW…ds-py/tests_integ/test_structured_output_agent_loop.py201 def test_tool_use_without_structured_output(self):CODE
LOW…ds-py/tests_integ/test_structured_output_agent_loop.py212 def test_tool_use_with_structured_output(self):CODE
LOW…ds-py/tests_integ/test_structured_output_agent_loop.py230 async def test_async_structured_output(self):CODE
LOW…ds-py/tests_integ/test_structured_output_agent_loop.py256 async def test_streaming_with_structured_output(self):CODE
LOW…ds-py/tests_integ/test_structured_output_agent_loop.py282 def test_multiple_invocations_different_models(self):CODE
LOW…ds-py/tests_integ/test_structured_output_agent_loop.py309 def test_agent_with_default_structured_output(self):CODE
LOW…ds-py/tests_integ/test_structured_output_agent_loop.py325 def test_validation_forces_retry(self):CODE
LOWstrands-py/tests_integ/test_cancellation.py52async def test_cancel_during_streaming_bedrock():CODE
LOWstrands-py/tests_integ/test_cancellation.py78async def test_cancel_with_tools_bedrock():CODE
LOWstrands-py/tests_integ/test_cancellation.py132async def test_cancel_from_thread_bedrock():CODE
LOWstrands-py/tests_integ/test_invalid_tool_names.py16def test_invalid_tool_names_works(temp_dir):CODE
LOWstrands-py/tests_integ/test_goal_loop.py15 def test_runs_n_attempts_and_surfaces_last_result(self):CODE
LOWstrands-py/tests_integ/test_goal_loop.py55 def test_restores_transcript_between_attempts(self):CODE
LOW…nds-py/tests_integ/test_agentic_context_integration.py42 def test_agent_responds_normally_with_agentic_enabled(self, model):CODE
LOW…nds-py/tests_integ/test_agentic_context_integration.py51 def test_works_alongside_user_defined_tools(self, model):CODE
4442 more matches not shown…
Docstring Block Structure160 hits · 800 pts
SeverityFileLineSnippetContext
HIGHstrands-py/AGENTS.md116Brief description of function. Longer description if needed. This docstring is used by LLMs to understand the fSTRING
HIGHstrands-py/tests/strands/tools/test_decorator.py317This is the main description. This is more description text. Args: param1: First parameterSTRING
HIGHstrands-py/tests/strands/tools/test_decorator.py444Main description here. Args: param: This should be excluded Returns: This shouSTRING
HIGHstrands-py/tests/strands/tools/test_decorator.py1161This is the summary line. This is a more detailed description that spans multiple lines and provides adSTRING
HIGHstrands-py/src/strands/_identifier.py15Validate strands id. Args: id_: Id to validate. type_: Type of the identifier (e.g., session id, agSTRING
HIGHstrands-py/src/strands/experimental/agent_config.py55Create an Agent from a configuration file or dictionary. This function supports tools that can be loaded declarativSTRING
HIGHstrands-py/src/strands/experimental/tools/stop/stop.py49Validate an optional stop message and return the effective value. Args: message: The model-supplied messageSTRING
HIGHstrands-py/src/strands/experimental/tools/stop/stop.py77Create a stop tool that gracefully ends the agent loop. The tool sets ``invocation_state["request_state"]["stop_eveSTRING
HIGHstrands-py/src/strands/_middleware/stages.py90Request a human-in-the-loop interrupt. On first execution (no prior response) this raises ``InterruptException`STRING
HIGHstrands-py/src/strands/tools/decorator.py370Validate input data using the Pydantic model. This method ensures that the input data meets the expected schemaSTRING
HIGHstrands-py/src/strands/tools/decorator.py420Check if a parameter should be automatically injected by the framework or is a standard Python method param. SpSTRING
HIGHstrands-py/src/strands/tools/decorator.py743Decorator that transforms a Python function into a Strands tool. This decorator seamlessly enables a function to beSTRING
HIGHstrands-py/src/strands/tools/tools.py83Normalize a single property definition. Args: prop_name: The name of the property. prop_def: The prSTRING
HIGHstrands-py/src/strands/tools/tools.py117Normalize a JSON schema to match expectations. This function recursively processes nested objects to preserve the cSTRING
HIGHstrands-py/src/strands/tools/tools.py153Normalize a complete tool specification by transforming its inputSchema. Args: tool_spec: The tool specificSTRING
HIGHstrands-py/src/strands/tools/loader.py23Load a tool's Python module from a file path with sys.modules and sys.path discipline. The module's ``__name__`` isSTRING
HIGHstrands-py/src/strands/tools/loader.py318DEPRECATED: Load tools from a file based on its file extension. Args: tool_path: Path to the tool fSTRING
HIGHstrands-py/src/strands/tools/_caller.py50Call tool as a function. This method enables the method-style interface (e.g., `agent.tool.tool_name(param="valSTRING
HIGHstrands-py/src/strands/tools/_caller.py70Call a tool directly by name. Args: user_message_override: Optional custom message to recorSTRING
HIGHstrands-py/src/strands/tools/mcp/mcp_client.py169Create MCPClient instances from an ``mcpServers`` JSON config (file path or mapping). Returns one client per enSTRING
HIGHstrands-py/src/strands/types/interrupt.py83Trigger the interrupt with a reason. Args: name: User defined name for the interrupt. Must be uSTRING
HIGHstrands-py/src/strands/multiagent/swarm.py451Wrap an async generator with timeout for total execution time. Tracks elapsed time from start and enforces timeSTRING
HIGHstrands-py/src/strands/multiagent/a2a/_converters.py28Convert AgentInput to A2A Message. Args: prompt: Input in various formats (string, message list, or contentSTRING
HIGHstrands-py/src/strands/multiagent/a2a/executor.py664Extract Strands interrupt responses from inbound A2A message parts. A client resumes a task parked in ``input_rSTRING
HIGH…trands/vended_memory_stores/test_memory_store/store.py164Search stored entries for those whose content overlaps the query. Results are ranked by query-token overlap, wiSTRING
HIGH…trands/vended_memory_stores/test_memory_store/store.py208Add ``content`` (with optional ``metadata``) to the store. Identical content is deduplicated: a repeat write reSTRING
HIGH…s/vended_memory_stores/bedrock_knowledge_base/store.py184Search the knowledge base for entries matching the query. Args: query: The search query text. STRING
HIGH…s/vended_memory_stores/bedrock_knowledge_base/store.py247Ingest ``content`` (with optional ``metadata``) into the knowledge base. Only ``CUSTOM`` and ``S3`` data sourceSTRING
HIGHstrands-py/src/strands/plugins/decorator.py42Mark a method as a hook callback for automatic registration. Infers event type from the callback's type hint. SuppoSTRING
HIGHstrands-py/src/strands/event_loop/event_loop.py192Execute a single cycle of the event loop. This core function processes a single conversation turn, handling model iSTRING
HIGHstrands-py/src/strands/event_loop/event_loop.py455Handle model execution with retry logic for throttling exceptions. Executes the model inference with automatic retrSTRING
HIGHstrands-py/src/strands/agent/a2a_agent.py100Synchronously invoke the remote A2A agent. Args: prompt: Input to the agent (string, message list, STRING
HIGHstrands-py/src/strands/agent/a2a_agent.py120Asynchronously invoke the remote A2A agent. Args: prompt: Input to the agent (string, message list,STRING
HIGHstrands-py/src/strands/agent/a2a_agent.py148Stream remote agent execution asynchronously. This method provides an asynchronous interface for streaming A2A STRING
HIGHstrands-py/src/strands/agent/a2a_agent.py255Send message to A2A agent. Args: prompt: Input to send to the agent. Yields: ASTRING
HIGHstrands-py/src/strands/agent/agent.py196Initialize the Agent with the specified configuration. Args: model: Provider for running inference STRING
HIGHstrands-py/src/strands/agent/agent.py510Resolve context_manager facade into concrete conversation_manager and plugins. When context_manager is None, reSTRING
HIGHstrands-py/src/strands/agent/agent.py720Process a natural language prompt through the agent's event loop. This method implements the conversational intSTRING
HIGHstrands-py/src/strands/agent/agent.py802Process a natural language prompt through the agent's event loop. This method implements the conversational intSTRING
HIGHstrands-py/src/strands/agent/agent.py1087Process a natural language prompt and yield events as an async iterator. This method provides an asynchronous iSTRING
HIGHstrands-py/src/strands/agent/agent.py1551Capture current agent state as an in-memory snapshot. Args: preset: Named preset of fields to captuSTRING
HIGHstrands-py/src/strands/agent/agent_result.py95Rehydrate an AgentResult from persisted JSON. Args: data: Dictionary containing the serialized AgenSTRING
HIGH…nversation_manager/summarizing_conversation_manager.py202Generate a summary of the provided messages. When a dedicated summarization_agent was provided at init time, itSTRING
HIGH…nversation_manager/summarizing_conversation_manager.py294Adjust the split point to avoid breaking ToolUse/ToolResult pairs. Thin wrapper around the shared :func:`adjustSTRING
HIGH…nds/agent/conversation_manager/conversation_manager.py67Initialize the ConversationManager. Args: proactive_compression: Enable proactive context compressiSTRING
HIGH…onversation_manager/compression/context_compression.py63Adjust a split point forward to avoid breaking toolUse/toolResult pairs. Walks the split point forward until the meSTRING
HIGH…onversation_manager/compression/context_compression.py154Generate a summary of the provided messages by calling the model directly. This bypasses the full agent pipeline (lSTRING
HIGHstrands-py/src/strands/models/llamaapi.py103Format a LlamaAPI content block. - NOTE: "reasoningContent" and "video" are not supported currently. ASTRING
HIGHstrands-py/src/strands/models/llamaapi.py227Format a Llama API chat streaming request. Args: messages: List of message objects to be processed STRING
HIGHstrands-py/src/strands/models/llamaapi.py353Stream conversation with the LlamaAPI model. Args: messages: List of message objects to be processeSTRING
HIGHstrands-py/src/strands/models/llamaapi.py442Get structured output from the model. Args: output_model: The output model to use for the agent. STRING
HIGHstrands-py/src/strands/models/mistral.py126Format a Mistral content block. Args: content: Message content. Returns: MistrSTRING
HIGHstrands-py/src/strands/models/mistral.py253Format a Mistral chat streaming request. Args: messages: List of message objects to be processed bySTRING
HIGHstrands-py/src/strands/models/mistral.py297Format the Mistral response events into standardized message chunks. Args: event: A response event STRING
HIGHstrands-py/src/strands/models/mistral.py416Stream conversation with the Mistral model. Args: messages: List of message objects to be processedSTRING
HIGHstrands-py/src/strands/models/mistral.py522Get structured output from the model. Args: output_model: The output model to use for the agent. STRING
HIGHstrands-py/src/strands/models/openai_responses.py89Encode media bytes to a base64 data URL with size validation. Args: data: Raw bytes of the media content. STRING
HIGHstrands-py/src/strands/models/openai_responses.py298Stream conversation with the OpenAI Responses API model. Args: messages: List of message objects toSTRING
HIGHstrands-py/src/strands/models/openai_responses.py498Get structured output from the OpenAI Responses API model. Args: output_model: The output model to STRING
HIGHstrands-py/src/strands/models/openai_responses.py541Format an OpenAI Responses API compatible response streaming request. Args: messages: List of messaSTRING
100 more matches not shown…
Decorative Section Separators163 hits · 590 pts
SeverityFileLineSnippetContext
MEDIUMstrands-py/pyproject.toml303# =========================COMMENT
MEDIUMstrands-py/pyproject.toml305# =========================COMMENT
MEDIUMstrands-py/tests_integ/sandbox/conftest.py39# ---------------------------------------------------------------------------COMMENT
MEDIUMstrands-py/tests_integ/sandbox/conftest.py41# ---------------------------------------------------------------------------COMMENT
MEDIUMstrands-py/tests_integ/sandbox/conftest.py127# ---------------------------------------------------------------------------COMMENT
MEDIUMstrands-py/tests_integ/sandbox/conftest.py129# ---------------------------------------------------------------------------COMMENT
MEDIUMstrands-py/tests_integ/sandbox/conftest.py149# ---------------------------------------------------------------------------COMMENT
MEDIUMstrands-py/tests_integ/sandbox/conftest.py151# ---------------------------------------------------------------------------COMMENT
MEDIUMstrands-py/tests_integ/sandbox/test_ssh.py19# ---------------------------------------------------------------------------COMMENT
MEDIUMstrands-py/tests_integ/sandbox/test_ssh.py21# ---------------------------------------------------------------------------COMMENT
MEDIUMstrands-py/tests_integ/sandbox/test_ssh.py43# ---------------------------------------------------------------------------COMMENT
MEDIUMstrands-py/tests_integ/sandbox/test_ssh.py45# ---------------------------------------------------------------------------COMMENT
MEDIUMstrands-py/tests_integ/sandbox/test_ssh.py73# ---------------------------------------------------------------------------COMMENT
MEDIUMstrands-py/tests_integ/sandbox/test_ssh.py75# ---------------------------------------------------------------------------COMMENT
MEDIUMstrands-py/tests_integ/sandbox/test_ssh.py91# ---------------------------------------------------------------------------COMMENT
MEDIUMstrands-py/tests_integ/sandbox/test_ssh.py93# ---------------------------------------------------------------------------COMMENT
MEDIUMstrands-py/tests_integ/sandbox/test_ssh.py122# ---------------------------------------------------------------------------COMMENT
MEDIUMstrands-py/tests_integ/sandbox/test_ssh.py124# ---------------------------------------------------------------------------COMMENT
MEDIUMstrands-py/tests_integ/sandbox/test_ssh.py137# ---------------------------------------------------------------------------COMMENT
MEDIUMstrands-py/tests_integ/sandbox/test_ssh.py139# ---------------------------------------------------------------------------COMMENT
MEDIUMstrands-py/tests_integ/sandbox/test_ssh.py154# ---------------------------------------------------------------------------COMMENT
MEDIUMstrands-py/tests_integ/sandbox/test_ssh.py156# ---------------------------------------------------------------------------COMMENT
MEDIUMstrands-py/tests_integ/sandbox/test_ssh.py164# ---------------------------------------------------------------------------COMMENT
MEDIUMstrands-py/tests_integ/sandbox/test_ssh.py166# ---------------------------------------------------------------------------COMMENT
MEDIUMstrands-py/tests_integ/sandbox/test_ssh.py175# ---------------------------------------------------------------------------COMMENT
MEDIUMstrands-py/tests_integ/sandbox/test_ssh.py177# ---------------------------------------------------------------------------COMMENT
MEDIUMstrands-py/tests_integ/sandbox/test_ssh.py194# ---------------------------------------------------------------------------COMMENT
MEDIUMstrands-py/tests_integ/sandbox/test_ssh.py196# ---------------------------------------------------------------------------COMMENT
MEDIUMstrands-py/tests/strands/test_interrupt.py132# ============================================================================COMMENT
MEDIUMstrands-py/tests/strands/test_interrupt.py134# ============================================================================COMMENT
MEDIUMstrands-py/tests/strands/types/test__events.py508# =========================================================================COMMENT
MEDIUMstrands-py/tests/strands/types/test__events.py510# =========================================================================COMMENT
MEDIUMstrands-py/tests/strands/types/test_json_dict.py114# ============================================================================COMMENT
MEDIUMstrands-py/tests/strands/types/test_json_dict.py116# ============================================================================COMMENT
MEDIUMstrands-py/tests/strands/multiagent/test_graph.py2584# =============================================================================COMMENT
MEDIUMstrands-py/tests/strands/multiagent/test_graph.py2586# =============================================================================COMMENT
MEDIUMstrands-py/tests/strands/multiagent/test_graph.py2991# ---------------------------------------------------------------------------COMMENT
MEDIUMstrands-py/tests/strands/multiagent/test_graph.py2993# ---------------------------------------------------------------------------COMMENT
MEDIUM…nds-py/tests/strands/multiagent/a2a/test_converters.py248# =========================================================================COMMENT
MEDIUM…nds-py/tests/strands/multiagent/a2a/test_converters.py250# =========================================================================COMMENT
MEDIUM…nds-py/tests/strands/multiagent/a2a/test_converters.py407# =========================================================================COMMENT
MEDIUM…nds-py/tests/strands/multiagent/a2a/test_converters.py409# =========================================================================COMMENT
MEDIUM…rands-py/tests/strands/multiagent/a2a/test_executor.py1343# =========================================================================COMMENT
MEDIUM…rands-py/tests/strands/multiagent/a2a/test_executor.py1345# =========================================================================COMMENT
MEDIUM…rands-py/tests/strands/multiagent/a2a/test_executor.py1708# =========================================================================COMMENT
MEDIUM…rands-py/tests/strands/multiagent/a2a/test_executor.py1710# =========================================================================COMMENT
MEDIUM…rands-py/tests/strands/multiagent/a2a/test_executor.py2116# =========================================================================COMMENT
MEDIUM…rands-py/tests/strands/multiagent/a2a/test_executor.py2118# =========================================================================COMMENT
MEDIUM…rands-py/tests/strands/multiagent/a2a/test_executor.py1946# =========================================================================COMMENT
MEDIUM…rands-py/tests/strands/multiagent/a2a/test_executor.py1953# =========================================================================COMMENT
MEDIUM…rands-py/tests/strands/multiagent/a2a/test_executor.py2273# ── Inbound interrupt responses ──────────────────────────────────────────────COMMENT
MEDIUM…rands-py/tests/strands/multiagent/a2a/test_executor.py2598# ── Outbound interrupt advertisement ─────────────────────────────────────────COMMENT
MEDIUMstrands-py/tests/strands/agent/test_agent_result.py405# =========================================================================COMMENT
MEDIUMstrands-py/tests/strands/agent/test_agent_result.py410# =========================================================================COMMENT
MEDIUMstrands-py/tests/strands/agent/test_agent.py2397# ============================================================================COMMENT
MEDIUMstrands-py/tests/strands/agent/test_agent.py2399# ============================================================================COMMENT
MEDIUMstrands-py/tests/strands/agent/test_agent.py3421# ============================================================================COMMENT
MEDIUMstrands-py/tests/strands/agent/test_agent.py3423# ============================================================================COMMENT
MEDIUM…strands/agent/test_summarizing_conversation_manager.py831# ==============================================================================COMMENT
MEDIUM…strands/agent/test_summarizing_conversation_manager.py833# ==============================================================================COMMENT
103 more matches not shown…
Self-Referential Comments183 hits · 556 pts
SeverityFileLineSnippetContext
MEDIUM…rands-py/tests_integ/test_hot_tool_reload_decorator.py32 # Create an Agent instance without any toolsCOMMENT
MEDIUM…rands-py/tests_integ/test_hot_tool_reload_decorator.py35 # Create a test tool using @tool decoratorCOMMENT
MEDIUM…rands-py/tests_integ/test_hot_tool_reload_decorator.py84 # Create an Agent instanceSTRING
MEDIUM…rands-py/tests_integ/test_hot_tool_reload_decorator.py87 # Create the initial version of the toolSTRING
MEDIUMstrands-py/tests_integ/test_multiagent_graph.py326 # Create a custom nodeCOMMENT
MEDIUMstrands-py/tests_integ/test_session.py43 # Create a sessionCOMMENT
MEDIUMstrands-py/tests_integ/test_session.py106 # Create a sessionCOMMENT
MEDIUM…g/test_summarizing_conversation_manager_integration.py302 # Create a dedicated summarization agentCOMMENT
MEDIUM…g/test_summarizing_conversation_manager_integration.py309 # Create main agent with dedicated summarization agentCOMMENT
MEDIUM…g/test_summarizing_conversation_manager_integration.py427 # Create a summarization agent with structured_output_model configuredSTRING
MEDIUMstrands-py/tests_integ/test_bedrock_s3_location.py39 # Create the bucket if it doesn't existCOMMENT
MEDIUMstrands-py/tests_integ/test_multiagent_swarm.py119 # Create the swarmCOMMENT
MEDIUMstrands-py/tests_integ/test_multiagent_swarm.py122 # Define a task that requires collaborationCOMMENT
MEDIUMstrands-py/tests_integ/test_multiagent_swarm.py155 # Create the swarmCOMMENT
MEDIUMstrands-py/tests_integ/test_skills_plugin.py64 # Create a skill directory with SKILL.mdCOMMENT
MEDIUMstrands-py/tests_integ/a2a/a2a_server.py4# Create an agent and serve it over A2ACOMMENT
MEDIUMstrands-py/tests_integ/a2a/test_multiagent_a2a.py83 # Create a regular AgentCOMMENT
MEDIUMstrands-py/tests_integ/models/test_model_openai.py257 # Create a very long text that should exceed context windowCOMMENT
MEDIUMstrands-py/tests_integ/models/test_model_openai.py291 # Create a message that's very long to trigger token-per-minute rate limitsCOMMENT
MEDIUMstrands-py/tests_integ/models/test_model_llamacpp.py486 # Create a very long message that might exceed contextCOMMENT
MEDIUMstrands-py/tests/strands/tools/test_registry.py294 # Create a mock MCP client that simulates a real tool providerCOMMENT
MEDIUMstrands-py/tests/strands/tools/test_registry.py361 # Create a mock tool provider that fails during load_toolsCOMMENT
MEDIUMstrands-py/tests/strands/tools/test_registry.py390 # Create a mock tool provider that tracks call orderCOMMENT
MEDIUMstrands-py/tests/strands/tools/test_caller.py167 # Create a non-serializable object (Agent instance)COMMENT
MEDIUMstrands-py/tests/strands/tools/test_watcher.py68 # Create a mock event with the specified propertiesCOMMENT
MEDIUMstrands-py/tests/strands/tools/test_watcher.py90 # Create a mock event with a Python file pathCOMMENT
MEDIUMstrands-py/tests/strands/tools/test_decorator.py1246 # Define a tool with a complex anyOf type that could trigger edge case handlingCOMMENT
MEDIUMstrands-py/tests/strands/tools/test_decorator.py1287 # Define a class with a decorated method to test exception handling in method detectionCOMMENT
MEDIUMstrands-py/tests/strands/tools/test_decorator.py1298 # Create a mock instance where attribute access will raise exceptionsCOMMENT
MEDIUMstrands-py/tests/strands/tools/test_decorator.py1331 # Create a standalone function to test regular function callsCOMMENT
MEDIUMstrands-py/tests/strands/tools/mcp/conftest.py35 # Create a mock context manager for ClientSessionCOMMENT
MEDIUMstrands-py/tests/strands/tools/mcp/test_mcp_client.py829 # Create a client.with a mock transportCOMMENT
MEDIUMstrands-py/tests/strands/tools/mcp/test_mcp_client.py833 # Create a mock future that is not runningCOMMENT
MEDIUMstrands-py/tests/strands/tools/mcp/test_mcp_client.py838 # Create a mock event loopCOMMENT
MEDIUMstrands-py/tests/strands/tools/mcp/test_mcp_client.py619 # Create a mock future that returns the mock resultCOMMENT
MEDIUMstrands-py/tests/strands/tools/mcp/test_mcp_client.py623 # Create an async mock that resolves to the mock resultCOMMENT
MEDIUMstrands-py/tests/strands/tools/mcp/test_mcp_client.py691 # Create an async mock that resolves to the mock resultCOMMENT
MEDIUMstrands-py/tests/strands/tools/mcp/test_mcp_client.py740 # Create an async mock that raises an exceptionCOMMENT
MEDIUMstrands-py/tests/strands/tools/mcp/test_mcp_client.py1170 # Create a mock embedded resource with unknown resource typeCOMMENT
MEDIUM…py/tests/strands/tools/mcp/test_mcp_instrumentation.py404 # Create a mock request with tools/call method and Pydantic paramsCOMMENT
MEDIUM…py/tests/strands/tools/mcp/test_mcp_instrumentation.py412 # Create the patch functionCOMMENT
MEDIUM…py/tests/strands/tools/mcp/test_mcp_instrumentation.py462 # Create a mock request with tools/call method and dict paramsCOMMENT
MEDIUM…py/tests/strands/tools/mcp/test_mcp_instrumentation.py467 # Create the patch functionCOMMENT
MEDIUM…py/tests/strands/tools/mcp/test_mcp_instrumentation.py114 # Create a mock params object that doesn't have 'get' method but has '_meta' attributeCOMMENT
MEDIUM…py/tests/strands/tools/mcp/test_mcp_instrumentation.py512 # Create a mock request that will cause an exceptionCOMMENT
MEDIUM…py/tests/strands/tools/mcp/test_mcp_instrumentation.py531 # Create a Pydantic-like class that fails on model_validateCOMMENT
MEDIUM…py/tests/strands/tools/mcp/test_mcp_instrumentation.py542 # Create a mock request with failing Pydantic paramsCOMMENT
MEDIUM…sts/strands/tools/mcp/test_mcp_client_tool_provider.py333 # Create a mock MCP tool (not MCPAgentTool)COMMENT
MEDIUM…sts/strands/tools/mcp/test_mcp_client_tool_provider.py512 # Create a mock MCP toolCOMMENT
MEDIUM…sts/strands/tools/mcp/test_mcp_client_tool_provider.py555 # Create a mock MCP toolCOMMENT
MEDIUM…sts/strands/tools/mcp/test_mcp_client_tool_provider.py598 # Create a mock MCP toolCOMMENT
MEDIUM…ands-py/tests/strands/tools/executors/test_executor.py494 # Create a tool that yields a ToolInterruptEvent with an interrupt NOT pre-registered on the agentCOMMENT
MEDIUM…ands-py/tests/strands/tools/executors/test_executor.py870 # Create a BidiAfterToolCallEvent (which has no retry attribute)COMMENT
MEDIUMstrands-py/tests/strands/types/test_session.py76 # Create a message with bytes contentCOMMENT
MEDIUMstrands-py/tests/strands/types/test_session.py82 # Create a SessionMessageCOMMENT
MEDIUMstrands-py/tests/strands/multiagent/test_swarm.py455 # Create a simple agent that doesn't hand offCOMMENT
MEDIUMstrands-py/tests/strands/multiagent/test_swarm.py458 # Create a swarm with just this agentCOMMENT
MEDIUMstrands-py/tests/strands/multiagent/test_swarm.py542 # Create a different agent with same name as agent1COMMENT
MEDIUMstrands-py/tests/strands/multiagent/test_swarm.py337 # Create an agent that will hand off to another agentCOMMENT
MEDIUMstrands-py/tests/strands/multiagent/test_swarm.py388 # Create a swarm with reasonable limitsCOMMENT
123 more matches not shown…
Cross-File Repetition105 hits · 525 pts
SeverityFileLineSnippetContext
HIGHstrands-py/tests_integ/models/test_model_ollama.py0extracts the time and weather from the user's message with the exact strings.STRING
HIGHstrands-py/tests_integ/models/test_model_litellm.py0extracts the time and weather from the user's message with the exact strings.STRING
HIGHstrands-py/tests_integ/models/test_model_mistral.py0extracts the time and weather from the user's message with the exact strings.STRING
HIGHstrands-py/tests_integ/models/test_model_anthropic.py0extracts the time and weather from the user's message with the exact strings.STRING
HIGHstrands-py/tests_integ/models/test_model_gemini.py0extracts the time and weather from the user's message with the exact strings.STRING
HIGH…rands/experimental/bidi/models/test_openai_realtime.py0test complete connection lifecycle with various configurations.STRING
HIGH…s/strands/experimental/bidi/models/test_gemini_live.py0test complete connection lifecycle with various configurations.STRING
HIGH…ts/strands/experimental/bidi/models/test_nova_sonic.py0test complete connection lifecycle with various configurations.STRING
HIGH…rands/experimental/bidi/models/test_openai_realtime.py0test sending all content types through unified send() method.STRING
HIGH…s/strands/experimental/bidi/models/test_gemini_live.py0test sending all content types through unified send() method.STRING
HIGH…ts/strands/experimental/bidi/models/test_nova_sonic.py0test sending all content types through unified send() method.STRING
HIGHstrands-py/tests/strands/memory/test_memory_manager.py0fire every recorded hook registered for ``event``'s type.STRING
HIGH…s/vended_memory_stores/test_memory_store/test_store.py0fire every recorded hook registered for ``event``'s type.STRING
HIGH…ded_memory_stores/bedrock_knowledge_base/test_store.py0fire every recorded hook registered for ``event``'s type.STRING
HIGHstrands-py/tests/strands/models/test_anthropic.py0test that toolchoice doesn't emit warning for supported providers.STRING
HIGHstrands-py/tests/strands/models/test_openai.py0test that toolchoice doesn't emit warning for supported providers.STRING
HIGHstrands-py/tests/strands/models/test_litellm.py0test that toolchoice doesn't emit warning for supported providers.STRING
HIGHstrands-py/tests/strands/models/test_bedrock.py0test that toolchoice doesn't emit warning for supported providers.STRING
HIGHstrands-py/tests/strands/models/test_anthropic.py0test that images with location sources are filtered out with warning.STRING
HIGHstrands-py/tests/strands/models/test_mistral.py0test that images with location sources are filtered out with warning.STRING
HIGHstrands-py/tests/strands/models/test_openai.py0test that images with location sources are filtered out with warning.STRING
HIGHstrands-py/tests/strands/models/test_writer.py0test that images with location sources are filtered out with warning.STRING
HIGHstrands-py/tests/strands/models/test_llamaapi.py0test that images with location sources are filtered out with warning.STRING
HIGHstrands-py/tests/strands/models/test_ollama.py0test that images with location sources are filtered out with warning.STRING
HIGHstrands-py/tests/strands/models/test_llamacpp.py0test that images with location sources are filtered out with warning.STRING
HIGHstrands-py/tests/strands/models/test_gemini.py0test that images with location sources are filtered out with warning.STRING
HIGHstrands-py/tests/strands/models/test_anthropic.py0test that documents with location sources are filtered out with warning.STRING
HIGHstrands-py/tests/strands/models/test_mistral.py0test that documents with location sources are filtered out with warning.STRING
HIGHstrands-py/tests/strands/models/test_openai.py0test that documents with location sources are filtered out with warning.STRING
HIGHstrands-py/tests/strands/models/test_writer.py0test that documents with location sources are filtered out with warning.STRING
HIGHstrands-py/tests/strands/models/test_llamaapi.py0test that documents with location sources are filtered out with warning.STRING
HIGHstrands-py/tests/strands/models/test_ollama.py0test that documents with location sources are filtered out with warning.STRING
HIGHstrands-py/tests/strands/models/test_llamacpp.py0test that documents with location sources are filtered out with warning.STRING
HIGHstrands-py/tests/strands/models/test_gemini.py0test that documents with location sources are filtered out with warning.STRING
HIGHstrands-py/tests/strands/models/test_sagemaker.py0test that non-none toolchoice emits warning for unsupported providers.STRING
HIGHstrands-py/tests/strands/models/test_llamaapi.py0test that non-none toolchoice emits warning for unsupported providers.STRING
HIGHstrands-py/tests/strands/models/test_ollama.py0test that non-none toolchoice emits warning for unsupported providers.STRING
HIGHstrands-py/src/strands/experimental/bidi/__init__.py0lazy load model implementations only when accessed. this defers the import of optional dependencies until actually needeSTRING
HIGH…ds-py/src/strands/experimental/bidi/models/__init__.py0lazy load model implementations only when accessed. this defers the import of optional dependencies until actually needeSTRING
HIGHstrands-py/src/strands/vended_memory_stores/__init__.py0lazy load model implementations only when accessed. this defers the import of optional dependencies until actually needeSTRING
HIGHstrands-py/src/strands/models/__init__.py0lazy load model implementations only when accessed. this defers the import of optional dependencies until actually needeSTRING
HIGH…-py/src/strands/experimental/bidi/models/nova_sonic.py0merge user config with defaults (user takes precedence).STRING
HIGH…py/src/strands/experimental/bidi/models/gemini_live.py0merge user config with defaults (user takes precedence).STRING
HIGH…rc/strands/experimental/bidi/models/openai_realtime.py0merge user config with defaults (user takes precedence).STRING
HIGHstrands-py/src/strands/types/media.py0streaming-related type definitions for the sdk. these types are modeled after the bedrock api. - bedrock docs: https://dSTRING
HIGHstrands-py/src/strands/types/tools.py0streaming-related type definitions for the sdk. these types are modeled after the bedrock api. - bedrock docs: https://dSTRING
HIGHstrands-py/src/strands/types/guardrails.py0streaming-related type definitions for the sdk. these types are modeled after the bedrock api. - bedrock docs: https://dSTRING
HIGHstrands-py/src/strands/types/streaming.py0streaming-related type definitions for the sdk. these types are modeled after the bedrock api. - bedrock docs: https://dSTRING
HIGHstrands-py/src/strands/models/llamaapi.py0format an ollama compatible messages array. args: messages: list of message objects to be processed by the model. systemSTRING
HIGHstrands-py/src/strands/models/mistral.py0format an ollama compatible messages array. args: messages: list of message objects to be processed by the model. systemSTRING
HIGHstrands-py/src/strands/models/writer.py0format an ollama compatible messages array. args: messages: list of message objects to be processed by the model. systemSTRING
HIGHstrands-py/src/strands/models/ollama.py0format an ollama compatible messages array. args: messages: list of message objects to be processed by the model. systemSTRING
HIGHstrands-py/src/strands/models/llamaapi.py0format an ollama chat streaming request. args: messages: list of message objects to be processed by the model. tool_specSTRING
HIGHstrands-py/src/strands/models/mistral.py0format an ollama chat streaming request. args: messages: list of message objects to be processed by the model. tool_specSTRING
HIGHstrands-py/src/strands/models/ollama.py0format an ollama chat streaming request. args: messages: list of message objects to be processed by the model. tool_specSTRING
HIGHstrands-py/src/strands/models/llamaapi.py0stream conversation with the ollama model. args: messages: list of message objects to be processed by the model. tool_spSTRING
HIGHstrands-py/src/strands/models/mistral.py0stream conversation with the ollama model. args: messages: list of message objects to be processed by the model. tool_spSTRING
HIGHstrands-py/src/strands/models/sagemaker.py0stream conversation with the ollama model. args: messages: list of message objects to be processed by the model. tool_spSTRING
HIGHstrands-py/src/strands/models/writer.py0stream conversation with the ollama model. args: messages: list of message objects to be processed by the model. tool_spSTRING
HIGHstrands-py/src/strands/models/ollama.py0stream conversation with the ollama model. args: messages: list of message objects to be processed by the model. tool_spSTRING
45 more matches not shown…
Unused Imports516 hits · 502 pts
SeverityFileLineSnippetContext
LOWstrands-py/tests_integ/_ssm.py20CODE
LOWstrands-py/tests_integ/_aws.py3CODE
LOWstrands-py/tests_integ/memory/conftest.py8CODE
LOW…ests_integ/memory/test_bedrock_knowledge_base_store.py9CODE
LOW…ands-py/tests_integ/memory/_bedrock_kb_test_helpers.py8CODE
LOW…g/memory/test_bedrock_knowledge_base_memory_manager.py23CODE
LOWstrands-py/tests_integ/bidi/context.py14CODE
LOWstrands-py/tests_integ/bidi/context.py16CODE
LOWstrands-py/tests_integ/sandbox/conftest.py9CODE
LOWstrands-py/tests/strands/tools/test_decorator_pep563.py11CODE
LOW…rands-py/tests/strands/multiagent/a2a/test_executor.py1964CODE
LOW…rands-py/tests/strands/multiagent/a2a/test_executor.py2208CODE
LOWstrands-py/tests/strands/memory/test_model_extractor.py15CODE
LOWstrands-py/tests/strands/memory/test_extraction.py17CODE
LOWstrands-py/tests/strands/memory/test_telemetry.py9CODE
LOW…tests/strands/memory/test_resolve_extraction_config.py7CODE
LOWstrands-py/tests/strands/memory/test_memory_manager.py31CODE
LOW…s/vended_memory_stores/test_memory_store/test_store.py9CODE
LOW…ded_memory_stores/bedrock_knowledge_base/test_store.py15CODE
LOW…ds/vended_interventions/cedar/test_schema_generator.py8CODE
LOW…nds-py/tests/strands/vended_tools/test_http_request.py3CODE
LOWstrands-py/src/strands/interrupt.py7CODE
LOWstrands-py/src/strands/interrupt.py8CODE
LOWstrands-py/src/strands/__init__.py3CODE
LOWstrands-py/src/strands/__init__.py3CODE
LOWstrands-py/src/strands/__init__.py3CODE
LOWstrands-py/src/strands/__init__.py3CODE
LOWstrands-py/src/strands/__init__.py3CODE
LOWstrands-py/src/strands/__init__.py4CODE
LOWstrands-py/src/strands/__init__.py5CODE
LOWstrands-py/src/strands/__init__.py6CODE
LOWstrands-py/src/strands/__init__.py7CODE
LOWstrands-py/src/strands/__init__.py8CODE
LOWstrands-py/src/strands/__init__.py8CODE
LOWstrands-py/src/strands/__init__.py9CODE
LOWstrands-py/src/strands/__init__.py9CODE
LOWstrands-py/src/strands/__init__.py13CODE
LOWstrands-py/src/strands/__init__.py13CODE
LOWstrands-py/src/strands/__init__.py14CODE
LOWstrands-py/src/strands/__init__.py15CODE
LOWstrands-py/src/strands/__init__.py16CODE
LOWstrands-py/src/strands/__init__.py17CODE
LOWstrands-py/src/strands/__init__.py17CODE
LOWstrands-py/src/strands/experimental/__init__.py6CODE
LOWstrands-py/src/strands/experimental/__init__.py6CODE
LOWstrands-py/src/strands/experimental/__init__.py6CODE
LOWstrands-py/src/strands/experimental/__init__.py7CODE
LOWstrands-py/src/strands/experimental/tools/__init__.py6CODE
LOWstrands-py/src/strands/experimental/tools/__init__.py6CODE
LOWstrands-py/src/strands/experimental/tools/stop/stop.py25CODE
LOW…nds-py/src/strands/experimental/tools/stop/__init__.py14CODE
LOW…nds-py/src/strands/experimental/tools/stop/__init__.py14CODE
LOW…nds-py/src/strands/experimental/checkpoint/__init__.py10CODE
LOW…nds-py/src/strands/experimental/checkpoint/__init__.py10CODE
LOW…nds-py/src/strands/experimental/checkpoint/__init__.py10CODE
LOWstrands-py/src/strands/experimental/bidi/__init__.py7CODE
LOWstrands-py/src/strands/experimental/bidi/__init__.py7CODE
LOWstrands-py/src/strands/experimental/bidi/__init__.py7CODE
LOWstrands-py/src/strands/experimental/bidi/__init__.py12CODE
LOWstrands-py/src/strands/experimental/bidi/__init__.py15CODE
456 more matches not shown…
Excessive Try-Catch Wrapping207 hits · 208 pts
SeverityFileLineSnippetContext
LOWstrands-py/tests_integ/conftest.py204 except Exception as e:CODE
LOWstrands-py/tests_integ/_ssm.py63 except Exception as error: # noqa: BLE001 - any failure means "unavailable", not "error".CODE
LOWstrands-py/tests_integ/_ssm.py98 except Exception as error: # noqa: BLE001 - any failure means "skip", not "error".CODE
LOWstrands-py/tests_integ/test_multiagent_graph.py501 except Exception as e:CODE
LOWstrands-py/tests_integ/test_multiagent_graph.py578 except Exception as e:CODE
LOWstrands-py/tests_integ/test_multiagent_graph.py833 except Exception as e:CODE
LOWstrands-py/tests_integ/test_multiagent_swarm.py34 except Exception as e:CODE
LOWstrands-py/tests_integ/test_a2a_executor.py82 except Exception as e:CODE
LOWstrands-py/tests_integ/memory/conftest.py83 except Exception: # noqa: BLE001 - best-effort cleanup.CODE
LOW…ands-py/tests_integ/memory/_bedrock_kb_test_helpers.py123 except Exception: # noqa: BLE001 - best-effort; don't mask test failures.CODE
LOW…ands-py/tests_integ/memory/_bedrock_kb_test_helpers.py147 except Exception: # noqa: BLE001 - best-effort.CODE
LOW…ands-py/tests_integ/memory/_bedrock_kb_test_helpers.py157 except Exception: # noqa: BLE001 - best-effort.CODE
MEDIUM…ands-py/tests_integ/memory/_bedrock_kb_test_helpers.py116def _cleanup() -> None:CODE
LOW…g/memory/test_bedrock_knowledge_base_memory_manager.py149 except Exception: # noqa: BLE001 - best-effort; don't mask test failures.CODE
LOWstrands-py/tests_integ/bidi/context.py340 except Exception as e:CODE
LOWstrands-py/tests_integ/bidi/context.py359 except Exception as e:CODE
LOWstrands-py/tests_integ/bidi/generators/audio.py102 except Exception as e:CODE
MEDIUMstrands-py/tests_integ/mcp/test_mcp_client.py50 print(f"Error while generating custom image: {e}")CODE
MEDIUMstrands-py/tests_integ/mcp/test_mcp_client.py44def generate_custom_image() -> MCPImageContent:CODE
LOWstrands-py/tests_integ/mcp/test_mcp_client.py49 except Exception as e:CODE
LOWstrands-py/tests_integ/mcp/test_mcp_client.py557 except Exception:CODE
LOWstrands-py/tests_integ/models/test_model_llamacpp.py502 except Exception as e:CODE
LOWstrands-py/tests_integ/sandbox/conftest.py108 except Exception: # noqa: BLE001 - best-effort cleanupCODE
MEDIUMstrands-py/tests/strands/middleware/test_registry.py603def transformer(context, next_fn):CODE
LOWstrands-py/tests/strands/middleware/test_registry.py706 except Exception: # noqa: BLE001 — deliberately broad; must NOT catch CancelledErrorCODE
LOW…sts/strands/middleware/test_execute_tool_middleware.py251 except Exception:CODE
LOWstrands-py/tests/strands/tools/test_decorator_pep563.py139 except Exception as e:CODE
LOWstrands-py/tests/strands/tools/mcp/test_mcp_client.py847 except Exception:CODE
LOWstrands-py/tests/strands/types/test_exceptions.py331 except Exception as e:CODE
LOWstrands-py/tests/strands/multiagent/test_swarm.py782 except Exception:CODE
LOWstrands-py/tests/strands/multiagent/test_swarm.py825 except Exception:CODE
MEDIUMstrands-py/tests/strands/agent/test_agent.py2415def invoke():CODE
MEDIUMstrands-py/tests/strands/agent/test_agent.py3066def invoke():CODE
MEDIUMstrands-py/tests/strands/agent/test_agent.py3104def invoke_abc():CODE
MEDIUMstrands-py/tests/strands/agent/test_agent.py3113def invoke_def():CODE
MEDIUMstrands-py/tests/strands/agent/test_agent.py3153def invoke_with_token():CODE
MEDIUMstrands-py/tests/strands/agent/test_agent.py3162def invoke_without_token():CODE
MEDIUMstrands-py/tests/strands/agent/test_agent.py3202def invoke():CODE
MEDIUMstrands-py/tests/strands/agent/test_agent.py3259def invoke():CODE
MEDIUMstrands-py/tests/strands/agent/test_agent.py3303def invoke_abc():CODE
MEDIUMstrands-py/tests/strands/agent/test_agent.py3312def invoke_def():CODE
MEDIUMstrands-py/tests/strands/agent/test_agent.py3366def invoke():CODE
LOWstrands-py/tests/strands/agent/test_agent.py3034 except Exception as e:CODE
LOWstrands-py/tests/strands/agent/test_agent.py3069 except Exception as e:CODE
LOWstrands-py/tests/strands/agent/test_agent.py3109 except Exception as e:CODE
LOWstrands-py/tests/strands/agent/test_agent.py3118 except Exception as e:CODE
LOWstrands-py/tests/strands/agent/test_agent.py3158 except Exception as e:CODE
LOWstrands-py/tests/strands/agent/test_agent.py3167 except Exception as e:CODE
LOWstrands-py/tests/strands/agent/test_agent.py3207 except Exception as e:CODE
LOWstrands-py/tests/strands/agent/test_agent.py3264 except Exception as e:CODE
LOWstrands-py/tests/strands/agent/test_agent.py3308 except Exception as e:CODE
LOWstrands-py/tests/strands/agent/test_agent.py3317 except Exception as e:CODE
LOWstrands-py/tests/strands/agent/test_agent.py3371 except Exception as e:CODE
LOW…rands/vended_plugins/context_offloader/test_storage.py225 except Exception as e:CODE
LOW…rands/vended_plugins/context_offloader/test_storage.py81 except Exception as e:CODE
LOW…s/strands/vended_plugins/steering/core/test_handler.py289 except Exception:CODE
MEDIUMstrands-py/tests/strands/telemetry/test_metrics.py523def create_and_use_client():CODE
LOWstrands-py/tests/strands/telemetry/test_metrics.py531 except Exception as e:CODE
LOWstrands-py/tests/strands/telemetry/test_tracer.py1234 except Exception:CODE
LOW…ds-py/src/strands/experimental/bidi/_async/__init__.py26 except Exception as exception:CODE
147 more matches not shown…
Modern AI Meta-Vocabulary60 hits · 194 pts
SeverityFileLineSnippetContext
MEDIUM.agents/references/voice-guide.md27 - [Multi-agent patterns](#multi-agent-patterns)CODE
MEDIUMtest-infra/scripts/run-selective-ts.sh92 '^test-infra/scripts/run-selective-ts\.sh$' # this orchestration scriptCODE
MEDIUMstrands-py/AGENTS.md30│ ├── multiagent/ # Multi-agent orchestration (A2A, graphs, swarm)CODE
MEDIUMstrands-py/tests_integ/models/test_model_openai.py247 # Use gpt-4o-mini which has a smaller context window to make this test more reliableCOMMENT
MEDIUMstrands-py/tests_integ/models/test_model_openai.py257 # Create a very long text that should exceed context windowCOMMENT
MEDIUMstrands-py/tests_integ/models/test_model_llamacpp.py228 "penalty_last_n": 64, # Penalty context windowCODE
MEDIUM…py/tests/strands/test_tracking_id_history_invariant.py130 # The agentic ``summarize_context`` tool generates a summary and splices it straight intoCOMMENT
MEDIUMstrands-py/tests/strands/multiagent/test_graph.py1879 # Create a multi-agent that streams events but never yields a resultCOMMENT
MEDIUM…sts/strands/session/test_repository_session_manager.py209 # Create multi-agent firstCOMMENT
MEDIUM…sts/strands/session/test_repository_session_manager.py212 # Sync multi-agentCOMMENT
MEDIUM…sts/strands/session/test_repository_session_manager.py225 # Verify multi-agent was createdCOMMENT
MEDIUM…sts/strands/session/test_repository_session_manager.py243 # Initialize multi-agentCOMMENT
MEDIUM…sts/strands/session/test_repository_session_manager.py1158 # Create mock multi-agentCOMMENT
MEDIUM…sts/strands/session/test_repository_session_manager.py1163 # Initialize multi-agentCOMMENT
MEDIUM…sts/strands/session/test_repository_session_manager.py1190 # Create mock multi-agentCOMMENT
MEDIUM…sts/strands/session/test_repository_session_manager.py1195 # Initialize multi-agentCOMMENT
MEDIUM…-py/tests/strands/session/test_file_session_manager.py470 # Create session and multi-agentCOMMENT
MEDIUM…-py/tests/strands/session/test_file_session_manager.py474 # Read multi-agentCOMMENT
MEDIUM…-py/tests/strands/session/test_file_session_manager.py489 # Create session and multi-agentCOMMENT
MEDIUM…ds-py/tests/strands/session/test_s3_session_manager.py477 # Create session and multi-agentCOMMENT
MEDIUM…ds-py/tests/strands/session/test_s3_session_manager.py481 # Read multi-agentCOMMENT
MEDIUM…ds-py/tests/strands/session/test_s3_session_manager.py497 # Create session and multi-agentCOMMENT
MEDIUMstrands-py/src/strands/multiagent/graph.py1015 # For nested multi-agent systems, stream their events and collect resultCOMMENT
MEDIUMstrands-py/src/strands/multiagent/graph.py1018 # Forward nested multi-agent events with node contextCOMMENT
MEDIUMstrands-py/src/strands/agent/agent.py365 # Inject the model-driven context-management tools when running in agentic mode.COMMENT
MEDIUMstrands-py/src/strands/agent/agent.py414 # In agentic mode, surface live token usage to the model so it can decide when to compress.COMMENT
MEDIUMstrands-py/src/strands/models/openai_responses.py348 # - reasoning_text: full chain-of-thought (gpt-oss models)COMMENT
MEDIUMstrands-ts/AGENTS.md30│ ├── multiagent/ # Multi-agent orchestration (A2A, graphs, swarm)CODE
MEDIUMstrands-ts/src/__fixtures__/mock-message-model.ts272 // GuardContentBlock is handled by guardrails and doesn't generate model eventsCOMMENT
MEDIUMstrands-ts/src/agent/agent.ts1987 // Handle user content redaction if guardrails blocked inputCOMMENT
MEDIUMstrands-ts/src/models/bedrock.ts179 * @see https://docs.aws.amazon.com/bedrock/latest/userguide/guardrails.htmlCOMMENT
MEDIUMstrands-ts/src/models/bedrock.ts309 * @see https://docs.aws.amazon.com/bedrock/latest/userguide/guardrails.htmlCOMMENT
MEDIUMstrands-ts/src/models/bedrock.ts944 // Bedrock guardrails only support png/jpeg formatsCOMMENT
MEDIUMstrands-ts/src/models/bedrock.ts952 // Bedrock guardrails only support bytes source (not S3 or URL)COMMENT
MEDIUMstrands-ts/src/models/bedrock.ts1380 // Check for blocked guardrails and emit redaction eventsCOMMENT
MEDIUMstrands-ts/src/models/bedrock.ts1567 // Check for blocked guardrails in trace and emit redaction eventsCOMMENT
MEDIUMstrands-ts/src/models/model.ts456 // Handle content redaction from guardrailsCOMMENT
MEDIUMteam/designs/0006-cedar-authorization.md55Most agents today are single-user, but even in the single-user case, you don't want the agent to have the full permissioCODE
MEDIUMteam/designs/0006-cedar-authorization.md125See [Appendix E](#appendix-e-tool-set-swapping-vs-cedar) for a side-by-side comparison table. **The rule of thumb**: If CODE
MEDIUMteam/designs/0006-cedar-authorization.md243Cedar is purpose-built for authorization — `principal`, `action`, `resource`, and `context` are language primitives, notCODE
MEDIUMteam/designs/0006-cedar-authorization.md243Cedar is purpose-built for authorization — `principal`, `action`, `resource`, and `context` are language primitives, notCODE
MEDIUMteam/designs/0006-cedar-authorization.md247Building this plugin also led to a broader investigation into Cedar as an [intervention handler](#future-cedar-as-an-intCODE
MEDIUMteam/designs/0006-cedar-authorization.md928| 3 | [Can your governance keep pace with your AI ambitions? AI risk intelligence in the agentic era](https://aws.amazonCODE
MEDIUMteam/designs/0006-cedar-authorization.md929| 4 | [Agentic AI in the Enterprise Part 2: Guidance by Persona](https://aws.amazon.com/blogs/machine-learning/operationCODE
MEDIUMteam/designs/0007-intervention-primitive.md51Several independent tools already control agent behavior at runtime — [steering](https://strandsagents.com/docs/user-guiCODE
MEDIUMteam/designs/0003-context-management.md60[Recursive Language Models](https://arxiv.org/abs/2512.24601) train models to recursively process long prompts by chunkiCODE
MEDIUMteam/designs/0010-multimodal-i2t-evaluation.md22# The judge never sees the image — it cannot detect visual hallucinationsCOMMENT
MEDIUMteam/designs/0008-proactive-context-compression.md143**Context window limit on Model ([#1295](https://github.com/strands-agents/harness-sdk/issues/1295)).** The threshold chCODE
MEDIUMteam/designs/0011-context-strategy.md90### `"agentic"` — The agent decidesCOMMENT
MEDIUMteam/designs/0011-context-strategy.md491 // ContextNavigation plugin config (agentic only)COMMENT
MEDIUMteam/designs/0011-context-strategy.md496 // ContextDelegation plugin config (agentic only)COMMENT
MEDIUMteam/designs/0012-strandslator-design.md108- **[Adversarial and cross-language differential testing](https://gist.github.com/agent-of-mkmeral/5a4d0ce16a1242a711d77CODE
MEDIUMteam/designs/0012-strandslator-design.md108- **[Adversarial and cross-language differential testing](https://gist.github.com/agent-of-mkmeral/5a4d0ce16a1242a711d77CODE
MEDIUMteam/designs/0011-memory-manager.md263### 2. Single store (no multi-store orchestration)COMMENT
MEDIUMsite/src/content/testimonials/zafran.md8We chose Strands because it's AWS-native, intuitive, and made agent development accessible across our engineering team. CODE
MEDIUM…content/docs/user-guide/concepts/context-management.ts12 // --8<-- [start:agentic]COMMENT
MEDIUM…content/docs/user-guide/concepts/context-management.ts16 // --8<-- [end:agentic]COMMENT
MEDIUM…/user-guide/concepts/model-providers/amazon-bedrock.ts404 // --8<-- [start:guardrails]COMMENT
MEDIUM…/user-guide/concepts/model-providers/amazon-bedrock.ts405 // Using guardrails with BedrockModelCOMMENT
MEDIUM…/user-guide/concepts/model-providers/amazon-bedrock.ts426 // --8<-- [end:guardrails]COMMENT
Modern Structural Boilerplate183 hits · 183 pts
SeverityFileLineSnippetContext
LOWstrands-py/tests_integ/conftest.py11logger = logging.getLogger(__name__)CODE
LOWstrands-py/tests_integ/test_max_tokens_reached.py10logger = logging.getLogger(__name__)CODE
LOWstrands-py/tests_integ/_ssm.py29logger = logging.getLogger(__name__)CODE
LOWstrands-py/tests_integ/memory/conftest.py17logger = logging.getLogger(__name__)CODE
LOWstrands-py/tests_integ/bidi/conftest.py9logger = logging.getLogger(__name__)CODE
LOWstrands-py/tests_integ/bidi/context.py18logger = logging.getLogger(__name__)CODE
LOWstrands-py/tests_integ/bidi/test_bidirectional_agent.py24logger = logging.getLogger(__name__)CODE
LOWstrands-py/tests_integ/bidi/generators/audio.py15logger = logging.getLogger(__name__)CODE
LOWstrands-py/tests_integ/mcp/test_mcp_tool_provider.py15logger = logging.getLogger(__name__)CODE
LOWstrands-py/tests_integ/sandbox/conftest.py33logger = logging.getLogger(__name__)CODE
LOW…ds-py/tests/strands/tools/mcp/test_mcp_client_tasks.py82 def _setup_task_tool(self, mock_session, tool_name: str) -> None:CODE
LOW…sts/strands/vended_plugins/skills/test_agent_skills.py84def _set_system_prompt(agent: MagicMock, value: str | list | None) -> None:CODE
LOWstrands-py/src/strands/__init__.py19__all__ = [CODE
LOWstrands-py/src/strands/experimental/__init__.py9__all__ = ["checkpoint", "config_to_agent", "tools", "steering"]CODE
LOWstrands-py/src/strands/experimental/tools/__init__.py24__all__ = [CODE
LOW…nds-py/src/strands/experimental/tools/stop/__init__.py16__all__ = [CODE
LOW…s-py/src/strands/experimental/checkpoint/checkpoint.py38logger = logging.getLogger(__name__)CODE
LOW…nds-py/src/strands/experimental/checkpoint/__init__.py12__all__ = ["CHECKPOINT_SCHEMA_VERSION", "Checkpoint", "CheckpointPosition"]CODE
LOWstrands-py/src/strands/experimental/bidi/__init__.py40__all__ = [CODE
LOW…nds-py/src/strands/experimental/bidi/tools/__init__.py18__all__ = ["stop_conversation"]CODE
LOW…rands-py/src/strands/experimental/bidi/types/events.py33logger = logging.getLogger(__name__)CODE
LOW…nds-py/src/strands/experimental/bidi/types/__init__.py24__all__ = [CODE
LOW…ds-py/src/strands/experimental/bidi/_async/__init__.py8__all__ = ["_TaskGroup", "_TaskPool"]CODE
LOWstrands-py/src/strands/experimental/bidi/io/__init__.py6__all__ = ["BidiAudioIO", "BidiTextIO"]CODE
LOWstrands-py/src/strands/experimental/bidi/io/text.py17logger = logging.getLogger(__name__)CODE
LOWstrands-py/src/strands/experimental/bidi/io/audio.py23logger = logging.getLogger(__name__)CODE
LOW…nds-py/src/strands/experimental/bidi/agent/__init__.py5__all__ = ["BidiAgent"]CODE
LOWstrands-py/src/strands/experimental/bidi/agent/agent.py50logger = logging.getLogger(__name__)CODE
LOWstrands-py/src/strands/experimental/bidi/agent/loop.py38logger = logging.getLogger(__name__)CODE
LOW…-py/src/strands/experimental/bidi/models/nova_sonic.py66logger = logging.getLogger(__name__)CODE
LOW…py/src/strands/experimental/bidi/models/gemini_live.py46logger = logging.getLogger(__name__)CODE
LOW…ds-py/src/strands/experimental/bidi/models/__init__.py7__all__ = [CODE
LOW…rands-py/src/strands/experimental/bidi/models/model.py27logger = logging.getLogger(__name__)CODE
LOW…rc/strands/experimental/bidi/models/openai_realtime.py43logger = logging.getLogger(__name__)CODE
LOWstrands-py/src/strands/experimental/hooks/__init__.py26__all__ = [CODE
LOW…py/src/strands/experimental/hooks/multiagent/events.py22__all__ = [CODE
LOW…/src/strands/experimental/hooks/multiagent/__init__.py14__all__ = [CODE
LOWstrands-py/src/strands/tools/registry.py27logger = logging.getLogger(__name__)CODE
LOWstrands-py/src/strands/tools/registry.py635 def _update_tool_config(self, tool_config: dict[str, Any], new_tool: NewToolDict) -> None:CODE
LOWstrands-py/src/strands/tools/decorator.py72logger = logging.getLogger(__name__)CODE
LOWstrands-py/src/strands/tools/tools.py18logger = logging.getLogger(__name__)CODE
LOWstrands-py/src/strands/tools/__init__.py11__all__ = [CODE
LOWstrands-py/src/strands/tools/loader.py17logger = logging.getLogger(__name__)CODE
LOWstrands-py/src/strands/tools/watcher.py16logger = logging.getLogger(__name__)CODE
LOW…ands/tools/structured_output/structured_output_tool.py18logger = logging.getLogger(__name__)CODE
LOW…nds-py/src/strands/tools/structured_output/__init__.py6__all__ = ["convert_pydantic_to_tool_spec", "DEFAULT_STRUCTURED_OUTPUT_PROMPT"]CODE
LOW…/tools/structured_output/_structured_output_context.py14logger = logging.getLogger(__name__)CODE
LOW…/tools/structured_output/_structured_output_context.py77 def set_forced_mode(self, tool_choice: dict | None = None) -> None:CODE
LOWstrands-py/src/strands/tools/mcp/__init__.py14__all__ = ["MCPAgentTool", "MCPClient", "MCPServerConfig", "MCPTransport", "TasksConfig", "ToolFilters"]CODE
LOWstrands-py/src/strands/tools/mcp/mcp_agent_tool.py21logger = logging.getLogger(__name__)CODE
LOWstrands-py/src/strands/tools/mcp/mcp_client.py68logger = logging.getLogger(__name__)CODE
LOWstrands-py/src/strands/tools/mcp/mcp_client.py533 async def _set_close_event() -> None:CODE
LOWstrands-py/src/strands/tools/executors/__init__.py11__all__ = [CODE
LOWstrands-py/src/strands/tools/executors/_executor.py31logger = logging.getLogger(__name__)CODE
LOWstrands-py/src/strands/types/__init__.py7__all__ = ["Limits", "PaginatedList", "Snapshot"]CODE
LOWstrands-py/src/strands/multiagent/swarm.py61logger = logging.getLogger(__name__)CODE
LOWstrands-py/src/strands/multiagent/swarm.py488 def _setup_swarm(self, nodes: list[Agent]) -> None:CODE
LOWstrands-py/src/strands/multiagent/graph.py61logger = logging.getLogger(__name__)CODE
LOWstrands-py/src/strands/multiagent/__init__.py15__all__ = [CODE
LOWstrands-py/src/strands/multiagent/base.py23logger = logging.getLogger(__name__)CODE
123 more matches not shown…
Structural Annotation Overuse66 hits · 124 pts
SeverityFileLineSnippetContext
LOW.agents/skills/docs-audit/SKILL.md27### Step 1: Fetch and classifyCOMMENT
LOW.agents/skills/docs-audit/SKILL.md33### Step 2: Voice stack reviewCOMMENT
LOW.agents/skills/docs-audit/SKILL.md43### Step 3: Accuracy checkCOMMENT
LOW.agents/skills/docs-audit/SKILL.md57### Step 4: AI-readability checkCOMMENT
LOW.agents/skills/docs-audit/SKILL.md65### Step 5: Competitive comparison (optional)COMMENT
LOW.agents/skills/docs-writer/SKILL.md20### Step 1: Load voice contextCOMMENT
LOW.agents/skills/docs-writer/SKILL.md28### Step 2: OutlineCOMMENT
LOW.agents/skills/docs-writer/SKILL.md39### Step 3: DraftCOMMENT
LOW.agents/skills/docs-writer/SKILL.md71### Step 4: ConstrainCOMMENT
LOW.agents/skills/docs-writer/SKILL.md94### Step 5: AuthenticateCOMMENT
LOW.agents/skills/docs-writer/SKILL.md102### Step 6: MetadataCOMMENT
LOW.agents/skills/docs-writer/SKILL.md115### Step 7: Run docs-reviewerCOMMENT
LOW.agents/skills/docs-planner/SKILL.md18### Step 1: Inventory current docsCOMMENT
LOW.agents/skills/docs-planner/SKILL.md22### Step 2: Identify gapsCOMMENT
LOW.agents/skills/docs-planner/SKILL.md31### Step 3: PrioritizeCOMMENT
LOW.agents/skills/docs-planner/SKILL.md40### Step 4: Produce the backlogCOMMENT
LOWstrands-py/src/strands/tools/mcp/mcp_client.py1610 # Step 4: Get the actual result for completed tasks (with error handling for race conditions)COMMENT
LOWstrands-py/src/strands/tools/mcp/mcp_client.py1525 # Step 1: Create the taskCOMMENT
LOWstrands-py/src/strands/tools/mcp/mcp_client.py1568 # Step 2: Poll until terminal status (with timeout protection)COMMENT
LOWstrands-py/src/strands/tools/mcp/mcp_client.py1596 # Step 3: Handle terminal statusCOMMENT
LOWstrands-py/src/strands/types/_snapshot.py119 # Step 1: start with presetCOMMENT
LOWstrands-py/src/strands/types/_snapshot.py125 # Step 2: union with includeCOMMENT
LOWstrands-py/src/strands/types/_snapshot.py129 # Step 3: subtract excludeCOMMENT
LOWstrands-ts/test/integ/tools/notebook.test.ts21 // Step 1: Create a notebookCOMMENT
LOWstrands-ts/test/integ/tools/notebook.test.ts32 // Step 2: Add content to the notebookCOMMENT
LOWstrands-ts/test/integ/tools/notebook.test.ts39 // Step 3: Read the notebookCOMMENT
LOWsite/docs/examples/python/agents_workflow.py46 # Step 1: Researcher Agent with enhanced web capabilitiesCOMMENT
LOWsite/docs/examples/python/agents_workflow.py71 # Step 2: Analyst Agent to verify factsCOMMENT
LOWsite/docs/examples/python/agents_workflow.py94 # Step 3: Writer Agent to create reportCOMMENT
LOW…mples/typescript/deploy_to_bedrock_agentcore/README.md93### Step 1: Create IAM RoleCOMMENT
LOW…mples/typescript/deploy_to_bedrock_agentcore/README.md110### Step 2: Set Environment VariablesCOMMENT
LOW…mples/typescript/deploy_to_bedrock_agentcore/README.md129### Step 3: Create ECR RepositoryCOMMENT
LOW…mples/typescript/deploy_to_bedrock_agentcore/README.md137### Step 4: Build and Push Docker ImageCOMMENT
LOW…mples/typescript/deploy_to_bedrock_agentcore/README.md158### Step 5: Create AgentCore RuntimeCOMMENT
LOW…mples/typescript/deploy_to_bedrock_agentcore/README.md170### Step 6: Verify DeploymentCOMMENT
LOW…mples/typescript/deploy_to_bedrock_agentcore/README.md184### Step 7: Test Your DeploymentCOMMENT
LOWsite/docs/examples/evals-sdk/evaluate_async.py28 ### Step 1: Define task ###COMMENT
LOWsite/docs/examples/evals-sdk/evaluate_async.py43 ### Step 2: Create test cases ###COMMENT
LOWsite/docs/examples/evals-sdk/evaluate_swarm.py27 ### Step 1: Define task ###COMMENT
LOWsite/docs/examples/evals-sdk/evaluate_swarm.py53 ### Step 2: Create test cases ###COMMENT
LOWsite/docs/examples/evals-sdk/evaluate_swarm.py59 ### Step 3: Create evaluator ###COMMENT
LOWsite/docs/examples/evals-sdk/evaluate_swarm.py68 ### Step 4: Create dataset ###COMMENT
LOWsite/docs/examples/evals-sdk/evaluate_swarm.py72 ### Step 5: Run evaluation ###COMMENT
LOWsite/docs/examples/evals-sdk/evaluate_graph.py27 ### Step 1: Define task ###COMMENT
LOWsite/docs/examples/evals-sdk/evaluate_graph.py60 ### Step 2: Create test cases ###COMMENT
LOWsite/docs/examples/evals-sdk/evaluate_graph.py72 ### Step 2: Create evaluator ###COMMENT
LOWsite/docs/examples/evals-sdk/evaluate_graph.py88 ### Step 4: Create dataset ###COMMENT
LOWsite/docs/examples/evals-sdk/evaluate_graph.py92 ### Step 5: Run evaluation ###COMMENT
LOW…mples/evals-sdk/experiment_generator/simple_dataset.py24 ### Step 1: Define task ###COMMENT
LOW…mples/evals-sdk/experiment_generator/simple_dataset.py33 # Step 2: Initialize the experiment generator for string typesCOMMENT
LOW…mples/evals-sdk/experiment_generator/simple_dataset.py36 # Step 3: Generate experiment from scratch with specified topicsCOMMENT
LOW…mples/evals-sdk/experiment_generator/simple_dataset.py48 # Step 4: Run evaluations on the generated test casesCOMMENT
LOW…s/evals-sdk/experiment_generator/trajectory_dataset.py51 ### Step 1: Define task ###COMMENT
LOW…s/evals-sdk/experiment_generator/trajectory_dataset.py68 ### Step 2: Initialize the experiment generator ###COMMENT
LOW…s/evals-sdk/experiment_generator/trajectory_dataset.py71 ### Step 3: Generate experiment with tool context ###COMMENT
LOW…s/evals-sdk/experiment_generator/trajectory_dataset.py94 ### Step 4: Run evaluations on the generated test cases ###STRING
LOW…als-sdk/experiment_generator/topic_planning_dataset.py21 ### Step 1: Define task ###COMMENT
LOW…als-sdk/experiment_generator/topic_planning_dataset.py28 # Step 2: Initialize the experiment generator for string typesCOMMENT
LOW…als-sdk/experiment_generator/topic_planning_dataset.py31 # Step 3: Generate experiment with topic planning for better coverageCOMMENT
LOW…als-sdk/experiment_generator/topic_planning_dataset.py48 # Step 4: Run evaluations on the generated test casesCOMMENT
6 more matches not shown…
Cross-Language Confusion16 hits · 110 pts
SeverityFileLineSnippetContext
HIGHstrands-py/tests_integ/sandbox/test_ssh.py25 result = await ssh_sandbox.execute("echo hello && echo err >&2")CODE
HIGHstrands-py/tests_integ/sandbox/test_ssh.py50 async for item in ssh_sandbox.execute_streaming("echo line1 && echo line2"):CODE
HIGHstrands-py/tests_integ/sandbox/test_ssh.py63 async for item in ssh_sandbox.execute_streaming("echo OUT && echo ERR >&2"):CODE
HIGHstrands-py/tests_integ/sandbox/test_docker.py58 result = await sandbox.execute("echo hello && echo err >&2")CODE
HIGH…sts/strands/middleware/test_execute_tool_middleware.py78 TS runs the middleware chain for unknown tools too (context.tool === undefined), lettingSTRING
HIGHstrands-py/tests/strands/sandbox/test_ssh.py88 assert _args(mock_stream_process) == BASE + ["--", "user@server.com", "cd /remote/path && echo hi"]CODE
HIGHstrands-py/tests/strands/sandbox/test_ssh.py103 "cd /w && ls",CODE
HIGHstrands-py/tests/strands/sandbox/test_ssh.py110 assert _args(mock_stream_process) == BASE + ["-i", "/home/user/.ssh/key", "--", "h", "cd /w && ls"]CODE
HIGHstrands-py/tests/strands/sandbox/test_ssh.py125 "cd /w && ls",CODE
HIGHstrands-py/tests/strands/sandbox/test_ssh.py139 "cd /w && ls",CODE
HIGHstrands-py/tests/strands/sandbox/test_ssh.py158 assert _args(mock_stream_process) == BASE + ["--", "h", "cd /override && ls"]CODE
HIGHstrands-py/tests/strands/sandbox/test_ssh.py164 assert _args(mock_stream_process) == BASE + ["--", "h", "cd /w && export FOO=bar BAZ=qux && echo $FOO"]CODE
HIGHstrands-py/tests/strands/sandbox/test_ssh.py172 assert _args(mock_stream_process) == BASE + ["--", "h", "cd /w && export FOO='$(whoami)' && echo $FOO"]CODE
HIGHstrands-py/src/strands/tools/decorator.py342 # Handle Optional[Type] case (represented as anyOf[Type, null])COMMENT
HIGH…nds/tools/structured_output/structured_output_utils.py104 # Check if this is an Optional[...] case (one null, one type)COMMENT
HIGHsite/scripts/api-generation-python.py13 pip install pydoc-markdown && python scripts/api-generation-python.py # fallbackSTRING
Deep Nesting108 hits · 93 pts
SeverityFileLineSnippetContext
LOWstrands-py/tests_integ/conftest.py28CODE
LOWstrands-py/tests_integ/conftest.py190CODE
LOW…ds-py/tests_integ/test_structured_output_agent_loop.py132CODE
LOWstrands-py/tests_integ/bidi/context.py226CODE
LOWstrands-py/tests_integ/bidi/context.py253CODE
LOWstrands-py/tests_integ/bidi/context.py301CODE
LOWstrands-py/tests_integ/bidi/test_bidirectional_agent.py29CODE
LOWstrands-py/tests_integ/mcp/test_mcp_client.py536CODE
LOWstrands-py/tests_integ/mcp/echo_server.py37CODE
LOWstrands-py/tests_integ/mcp/echo_server.py75CODE
LOWstrands-py/tests_integ/sandbox/conftest.py58CODE
LOWstrands-py/tests/strands/tools/test_decorator.py1355CODE
LOWstrands-py/tests/strands/tools/test_decorator.py1359CODE
LOWstrands-py/tests/strands/tools/mcp/test_mcp_client.py526CODE
LOW…rands-py/tests/strands/multiagent/a2a/test_executor.py2031CODE
LOWstrands-py/tests/strands/memory/test_extraction.py165CODE
LOW…ds-py/tests/strands/agent/test_conversation_manager.py314CODE
LOWstrands-py/tests/strands/agent/test_snapshot.py187CODE
LOWstrands-py/tests/strands/agent/test_agent_hooks.py626CODE
LOWstrands-py/tests/strands/agent/test_agent_hooks.py639CODE
LOW…trands/vended_plugins/context_offloader/test_plugin.py46CODE
LOWstrands-py/tests/strands/sandbox/test_posix_shell.py40CODE
LOWstrands-py/src/strands/experimental/bidi/io/text.py37CODE
LOWstrands-py/src/strands/experimental/bidi/agent/agent.py236CODE
LOWstrands-py/src/strands/experimental/bidi/agent/loop.py210CODE
LOW…-py/src/strands/experimental/bidi/models/nova_sonic.py307CODE
LOW…-py/src/strands/experimental/bidi/models/nova_sonic.py408CODE
LOW…py/src/strands/experimental/bidi/models/gemini_live.py212CODE
LOW…py/src/strands/experimental/bidi/models/gemini_live.py380CODE
LOW…rc/strands/experimental/bidi/models/openai_realtime.py314CODE
LOW…rc/strands/experimental/bidi/models/openai_realtime.py441CODE
LOW…rc/strands/experimental/bidi/models/openai_realtime.py687CODE
LOWstrands-py/src/strands/tools/registry.py44CODE
LOWstrands-py/src/strands/tools/registry.py335CODE
LOWstrands-py/src/strands/tools/registry.py360CODE
LOWstrands-py/src/strands/tools/registry.py444CODE
LOWstrands-py/src/strands/tools/registry.py72CODE
LOWstrands-py/src/strands/tools/decorator.py118CODE
LOWstrands-py/src/strands/tools/decorator.py233CODE
LOWstrands-py/src/strands/tools/decorator.py314CODE
LOWstrands-py/src/strands/tools/decorator.py671CODE
LOWstrands-py/src/strands/tools/watcher.py80CODE
LOW…nds/tools/structured_output/structured_output_utils.py10CODE
LOW…nds/tools/structured_output/structured_output_utils.py82CODE
LOW…nds/tools/structured_output/structured_output_utils.py221CODE
LOW…nds/tools/structured_output/structured_output_utils.py351CODE
LOWstrands-py/src/strands/tools/mcp/mcp_instrumentation.py43CODE
LOWstrands-py/src/strands/tools/mcp/mcp_instrumentation.py64CODE
LOWstrands-py/src/strands/tools/mcp/mcp_client.py1117CODE
LOWstrands-py/src/strands/tools/mcp/mcp_client.py1371CODE
LOWstrands-py/src/strands/tools/executors/_executor.py109CODE
LOWstrands-py/src/strands/multiagent/swarm.py735CODE
LOWstrands-py/src/strands/multiagent/graph.py618CODE
LOWstrands-py/src/strands/multiagent/graph.py819CODE
LOWstrands-py/src/strands/multiagent/graph.py976CODE
LOWstrands-py/src/strands/multiagent/graph.py1153CODE
LOWstrands-py/src/strands/multiagent/a2a/_converters.py27CODE
LOWstrands-py/src/strands/multiagent/a2a/_converters.py110CODE
LOWstrands-py/src/strands/multiagent/a2a/executor.py776CODE
LOWstrands-py/src/strands/memory/memory_manager.py90CODE
48 more matches not shown…
Verbosity Indicators43 hits · 84 pts
SeverityFileLineSnippetContext
LOWstrands-py/src/strands/tools/mcp/mcp_client.py1610 # Step 4: Get the actual result for completed tasks (with error handling for race conditions)COMMENT
LOWstrands-py/src/strands/tools/mcp/mcp_client.py1525 # Step 1: Create the taskCOMMENT
LOWstrands-py/src/strands/tools/mcp/mcp_client.py1568 # Step 2: Poll until terminal status (with timeout protection)COMMENT
LOWstrands-py/src/strands/tools/mcp/mcp_client.py1596 # Step 3: Handle terminal statusCOMMENT
LOWstrands-py/src/strands/types/_snapshot.py119 # Step 1: start with presetCOMMENT
LOWstrands-py/src/strands/types/_snapshot.py125 # Step 2: union with includeCOMMENT
LOWstrands-py/src/strands/types/_snapshot.py129 # Step 3: subtract excludeCOMMENT
LOWstrands-ts/test/integ/tools/notebook.test.ts21 // Step 1: Create a notebookCOMMENT
LOWstrands-ts/test/integ/tools/notebook.test.ts32 // Step 2: Add content to the notebookCOMMENT
LOWstrands-ts/test/integ/tools/notebook.test.ts39 // Step 3: Read the notebookCOMMENT
LOWsite/docs/examples/python/agents_workflow.py46 # Step 1: Researcher Agent with enhanced web capabilitiesCOMMENT
LOWsite/docs/examples/python/agents_workflow.py71 # Step 2: Analyst Agent to verify factsCOMMENT
LOWsite/docs/examples/python/agents_workflow.py94 # Step 3: Writer Agent to create reportCOMMENT
LOWsite/docs/examples/evals-sdk/evaluate_async.py28 ### Step 1: Define task ###COMMENT
LOWsite/docs/examples/evals-sdk/evaluate_async.py43 ### Step 2: Create test cases ###COMMENT
LOWsite/docs/examples/evals-sdk/evaluate_swarm.py27 ### Step 1: Define task ###COMMENT
LOWsite/docs/examples/evals-sdk/evaluate_swarm.py53 ### Step 2: Create test cases ###COMMENT
LOWsite/docs/examples/evals-sdk/evaluate_swarm.py59 ### Step 3: Create evaluator ###COMMENT
LOWsite/docs/examples/evals-sdk/evaluate_swarm.py68 ### Step 4: Create dataset ###COMMENT
LOWsite/docs/examples/evals-sdk/evaluate_swarm.py72 ### Step 5: Run evaluation ###COMMENT
LOWsite/docs/examples/evals-sdk/evaluate_graph.py27 ### Step 1: Define task ###COMMENT
LOWsite/docs/examples/evals-sdk/evaluate_graph.py60 ### Step 2: Create test cases ###COMMENT
LOWsite/docs/examples/evals-sdk/evaluate_graph.py72 ### Step 2: Create evaluator ###COMMENT
LOWsite/docs/examples/evals-sdk/evaluate_graph.py88 ### Step 4: Create dataset ###COMMENT
LOWsite/docs/examples/evals-sdk/evaluate_graph.py92 ### Step 5: Run evaluation ###COMMENT
LOW…mples/evals-sdk/experiment_generator/simple_dataset.py24 ### Step 1: Define task ###COMMENT
LOW…mples/evals-sdk/experiment_generator/simple_dataset.py33 # Step 2: Initialize the experiment generator for string typesCOMMENT
LOW…mples/evals-sdk/experiment_generator/simple_dataset.py36 # Step 3: Generate experiment from scratch with specified topicsCOMMENT
LOW…mples/evals-sdk/experiment_generator/simple_dataset.py48 # Step 4: Run evaluations on the generated test casesCOMMENT
LOW…s/evals-sdk/experiment_generator/trajectory_dataset.py51 ### Step 1: Define task ###COMMENT
LOW…s/evals-sdk/experiment_generator/trajectory_dataset.py68 ### Step 2: Initialize the experiment generator ###COMMENT
LOW…s/evals-sdk/experiment_generator/trajectory_dataset.py71 ### Step 3: Generate experiment with tool context ###COMMENT
LOW…s/evals-sdk/experiment_generator/trajectory_dataset.py94 ### Step 4: Run evaluations on the generated test cases ###STRING
LOW…als-sdk/experiment_generator/topic_planning_dataset.py21 ### Step 1: Define task ###COMMENT
LOW…als-sdk/experiment_generator/topic_planning_dataset.py28 # Step 2: Initialize the experiment generator for string typesCOMMENT
LOW…als-sdk/experiment_generator/topic_planning_dataset.py31 # Step 3: Generate experiment with topic planning for better coverageCOMMENT
LOW…als-sdk/experiment_generator/topic_planning_dataset.py48 # Step 4: Run evaluations on the generated test casesCOMMENT
LOWsite/scripts/api-generation-typescript.ts211 // Step 1: Clean output directoryCOMMENT
LOWsite/scripts/api-generation-typescript.ts217 // Step 2: Run typedocCOMMENT
LOWsite/scripts/api-generation-typescript.ts228 // Step 3: Get all generated filesCOMMENT
LOWsite/scripts/api-generation-typescript.ts232 // Step 4: Process each file (skip the index file - we have our own)COMMENT
LOW…c/content/docs/user-guide/concepts/agents/snapshots.ts102 // Step 1: Gather informationCOMMENT
LOW…c/content/docs/user-guide/concepts/agents/snapshots.ts106 // Step 2: Analyze (might fail or produce poor results)COMMENT
AI Slop Vocabulary34 hits · 80 pts
SeverityFileLineSnippetContext
MEDIUMstrands-py/tests_integ/test_invalid_tool_names.py17 # Per https://github.com/strands-agents/harness-sdk/issues/1069 we want to ensure that invalid tool don't poisonCOMMENT
MEDIUMstrands-py/tests_integ/mcp/test_mcp_client.py75 # Start comprehensive server with tools, prompts, and resourcesCOMMENT
MEDIUMstrands-py/tests_integ/mcp/test_mcp_client.py314 """Test comprehensive MCP client with streamable HTTP transport."""STRING
MEDIUMstrands-py/tests_integ/models/test_model_openai.py229 # See https://github.com/strands-agents/harness-sdk/issues/320 for additional detailsCOMMENT
LOWstrands-py/tests/strands/tools/test_decorator.py1020 # The wrapper should preserve our format and just add the toolUseIdCOMMENT
MEDIUMstrands-py/tests/strands/multiagent/test_graph.py2104 # Monotonic fake clock advanced explicitly; robust to how many times time.time() is called.COMMENT
MEDIUMstrands-py/tests/strands/multiagent/test_graph.py206 """Test comprehensive graph execution with diverse nodes and conditional edges."""STRING
MEDIUMstrands-py/tests/strands/multiagent/test_graph.py1163 """Test comprehensive self-loop functionality including conditions and reset behavior."""STRING
MEDIUM…rands-py/tests/strands/multiagent/a2a/test_executor.py2275# Regression coverage for https://github.com/strands-agents/harness-sdk/issues/2948: a clientCOMMENT
MEDIUMstrands-py/tests/strands/models/test_bedrock.py813 # We used to hang on None, so ensure we don't regress: https://github.com/strands-agents/harness-sdk/issues/642COMMENT
LOW…s/strands/vended_plugins/steering/core/test_handler.py278 # The context callback is wrapped in a lambda, so we just call all callbacksCOMMENT
LOW…s/strands/vended_plugins/steering/core/test_handler.py470 # Should not raise, just return earlyCOMMENT
LOW…s/strands/vended_plugins/steering/core/test_handler.py490 # Should not raise, just return earlyCOMMENT
MEDIUM…nds-py/tests/strands/vended_interventions/test_hitl.py638 without a per-file ``# type: ignore`` is tracked in harness-sdk#2800.STRING
MEDIUMstrands-py/src/strands/_exception_notes.py3# add_note was added in 3.11 - we hoist to a constant to facilitate testingCOMMENT
MEDIUMstrands-py/src/strands/tools/decorator.py153 # Deferring this complexity until there is clear demand and a robustCOMMENT
LOWstrands-py/src/strands/tools/decorator.py674 # Result is already in the expected format, just add toolUseIdCOMMENT
MEDIUMstrands-py/src/strands/tools/_tool_helpers.py7# https://github.com/strands-agents/harness-sdk/issues/998COMMENT
MEDIUMstrands-py/src/strands/tools/_caller.py134 # TODO: https://github.com/strands-agents/harness-sdk/issues/1311COMMENT
MEDIUMstrands-py/src/strands/tools/mcp/mcp_client.py341 # See: https://github.com/strands-agents/harness-sdk/issues/1440COMMENT
MEDIUMstrands-py/src/strands/event_loop/streaming.py72 # https://github.com/strands-agents/harness-sdk/issues/1069COMMENT
MEDIUMstrands-py/src/strands/models/openai_responses.py35# A major version bump is proposed in https://github.com/strands-agents/harness-sdk/pull/1370COMMENT
MEDIUMstrands-py/src/strands/models/openai_responses.py663 # tracked in https://github.com/strands-agents/harness-sdk/issues/3389.COMMENT
MEDIUMstrands-py/src/strands/models/openai.py240 # See https://github.com/strands-agents/harness-sdk/issues/1696COMMENT
MEDIUMstrands-py/src/strands/models/openai.py378 # TODO: Handle caching blocks https://github.com/strands-agents/harness-sdk/issues/1140COMMENT
MEDIUMstrands-py/src/strands/models/bedrock.py522 # TODO: Replace with systematic model configuration registry (https://github.com/strands-agents/harness-COMMENT
MEDIUM…_plugins/steering/context_providers/ledger_provider.py1"""Ledger context provider for comprehensive agent activity tracking.STRING
MEDIUMstrands-py/src/strands/hooks/registry.py252 # Related issue: https://github.com/strands-agents/harness-sdk/issues/330COMMENT
MEDIUMstrands-py/src/strands/telemetry/metrics.py398 """Generate a comprehensive summary of all collected metrics.STRING
MEDIUM…s-py/src/strands/session/repository_session_manager.py240 # Fix broken session histories: https://github.com/strands-agents/harness-sdk/issues/859COMMENT
MEDIUM…s-py/src/strands/session/repository_session_manager.py405 # Fix broken session histories: https://github.com/strands-agents/harness-sdk/issues/859COMMENT
MEDIUM.github/workflows/changelog-sync.yml121 # step whether the harness step passed or failed (the two syncs areCOMMENT
MEDIUM.github/workflows/changelog-sync.yml122 # independent -- a harness failure must not delay the evals backstop a day)COMMENT
MEDIUMsite/test/changelog/run.test.ts174 body: '## New Contributors\n* @newdev made their first contribution in https://github.com/strands-agents/harnessCODE
Redundant / Tautological Comments43 hits · 69 pts
SeverityFileLineSnippetContext
LOWstrands-py/tests_integ/bidi/context.py186 # Check if we have minimum eventsCOMMENT
LOWstrands-py/tests_integ/bidi/test_bidirectional_agent.py134 # Check if provider is availableCOMMENT
LOWstrands-py/tests_integ/steering/test_model_steering.py170 # Check if the required tool was used in this messageCOMMENT
LOW…rands/experimental/bidi/models/test_openai_realtime.py226 # Check if any session update has toolsCOMMENT
LOWstrands-py/tests/strands/event_loop/test_event_loop.py443 # Set tool_handler to None for this testCOMMENT
LOWstrands-py/tests/strands/models/test_litellm.py584 # Check if stream parameter is being setCOMMENT
LOW…py/src/strands/experimental/bidi/models/gemini_live.py247 # Check if the transcription object has text contentCOMMENT
LOW…py/src/strands/experimental/bidi/models/gemini_live.py265 # Check if the transcription object has text contentCOMMENT
LOW…py/src/strands/experimental/bidi/models/gemini_live.py301 # Check if part has text attribute and it's not emptyCOMMENT
LOWstrands-py/src/strands/tools/decorator.py255 # Check if we're starting the Args sectionCOMMENT
LOWstrands-py/src/strands/tools/decorator.py260 # Check if we're starting a new section (not Args)COMMENT
LOWstrands-py/src/strands/tools/loader.py166 # Check if the module attribute is a DecoratedFunctiontoolCOMMENT
LOW…nds/tools/structured_output/structured_output_utils.py75 # Check if required props are empty, if so, raise an error because it means there is a circular referenceCOMMENT
LOW…nds/tools/structured_output/structured_output_utils.py104 # Check if this is an Optional[...] case (one null, one type)COMMENT
LOW…nds/tools/structured_output/structured_output_utils.py376 # Check if this is a BaseModel subclassCOMMENT
LOWstrands-py/src/strands/multiagent/swarm.py821 # Check if handoff requested during executionCOMMENT
LOWstrands-py/src/strands/multiagent/graph.py849 # Check if it's an exception - fail fastCOMMENT
LOWstrands-py/src/strands/multiagent/graph.py962 # Check if at least one incoming edge condition is satisfiedCOMMENT
LOWstrands-py/src/strands/multiagent/a2a/executor.py304 # Check if agent returned with interrupts (input_required)COMMENT
LOWstrands-py/src/strands/event_loop/event_loop.py597 # Check if hooks want to retry the model callCOMMENT
LOWstrands-py/src/strands/event_loop/event_loop.py625 # Check if hooks want to retry the model callCOMMENT
LOWstrands-py/src/strands/event_loop/_retry.py135 # Check if we have an exception and reset state if no exceptionCOMMENT
LOWstrands-py/src/strands/event_loop/_retry.py146 # Check if we've exceeded max attemptsCOMMENT
LOWstrands-py/src/strands/agent/agent.py1442 # Check if all item in input list are dictionariesCOMMENT
LOWstrands-py/src/strands/agent/agent.py1444 # Check if all items are messagesCOMMENT
LOWstrands-py/src/strands/agent/agent.py1449 # Check if all items are content blocksCOMMENT
LOWstrands-py/src/strands/agent/agent.py1455 # Check if all items are interrupt responsesCOMMENT
LOWstrands-py/src/strands/agent/agent.py1420 # Check if the latest message is toolUseCOMMENT
LOW…rsation_manager/sliding_window_conversation_manager.py106 # Check if per_turn is enabledCOMMENT
LOW…/agent/conversation_manager/compression/pin_message.py44 # Check if adjacent partner shares a toolUseId and is pinnedCOMMENT
LOWstrands-py/src/strands/models/openai_responses.py435 # Check if stopped due to max_output_tokensCOMMENT
LOWstrands-py/src/strands/models/gemini.py649 # Check if the tool has function_declarations attribute and it's not emptyCOMMENT
LOWstrands-py/src/strands/models/bedrock.py1209 # Check if input is a dictionaryCOMMENT
LOWstrands-py/src/strands/models/bedrock.py1211 # Check if current dictionary has action: BLOCKED and detected: trueCOMMENT
LOWstrands-py/src/strands/models/bedrock.py378 # Check if tool_choice is forcing tool use ("any" or specific "tool")COMMENT
LOWstrands-py/src/strands/hooks/_type_inference.py60 # Check if it's a Union type (Union[A, B] or A | B)COMMENT
LOWstrands-py/src/strands/telemetry/metrics.py521 # Check if this trace contains tool info with toolUseIdCOMMENT
LOWstrands-py/src/strands/telemetry/tracer.py369 # Check if the message contains a tool resultCOMMENT
LOWstrands-py/src/strands/session/s3_session_manager.py170 # Check if session already existsCOMMENT
LOW…s-py/src/strands/session/repository_session_manager.py119 # Check if we have a previous state to compare againstCOMMENT
LOWsite/docs/examples/python/mcp_calculator.py146 # Check if the user wants to exitSTRING
LOW…escript/deploy_to_bedrock_agentcore/create-iam-role.sh123# Check if role already existsCOMMENT
LOWsite/scripts/api-generation-python.py110 # Check if any part of the module path starts with underscoreCOMMENT
Dead Code28 hits · 55 pts
SeverityFileLineSnippetContext
MEDIUMstrands-py/tests_integ/test_multiagent_graph.py495CODE
MEDIUMstrands-py/tests_integ/test_multiagent_graph.py827CODE
MEDIUMstrands-py/tests/strands/middleware/test_registry.py414CODE
MEDIUMstrands-py/tests/strands/middleware/test_registry.py504CODE
MEDIUMstrands-py/tests/strands/middleware/test_registry.py519CODE
MEDIUMstrands-py/tests/strands/middleware/test_registry.py533CODE
MEDIUMstrands-py/tests/strands/middleware/test_registry.py601CODE
MEDIUMstrands-py/tests/strands/middleware/test_registry.py621CODE
MEDIUMstrands-py/tests/strands/middleware/test_registry.py639CODE
MEDIUMstrands-py/tests/strands/middleware/test_registry.py700CODE
MEDIUMstrands-py/tests/strands/middleware/test_registry.py720CODE
MEDIUMstrands-py/tests/strands/middleware/test_registry.py738CODE
MEDIUMstrands-py/tests/strands/middleware/test_registry.py764CODE
MEDIUM…s-py/tests/strands/middleware/test_agent_middleware.py271CODE
MEDIUM…sts/strands/middleware/test_execute_tool_middleware.py232CODE
MEDIUM…sts/strands/middleware/test_execute_tool_middleware.py889CODE
MEDIUM…ds-py/tests/strands/tools/mcp/test_mcp_client_tasks.py189CODE
MEDIUMstrands-py/tests/strands/tools/executors/conftest.py69CODE
MEDIUMstrands-py/tests/strands/memory/test_model_extractor.py189CODE
MEDIUMstrands-py/tests/strands/memory/test_model_extractor.py169CODE
MEDIUMstrands-py/tests/strands/agent/test_agent.py243CODE
MEDIUMstrands-py/tests/strands/agent/test_agent.py2605CODE
MEDIUM…strands/agent/test_summarizing_conversation_manager.py34CODE
MEDIUMstrands-py/tests/strands/agent/test_agent_as_tool.py236CODE
MEDIUMstrands-py/tests/strands/agent/test_a2a_agent.py526CODE
MEDIUM…nds/agent/conversation_manager/test_agentic_context.py45CODE
MEDIUM…agent/conversation_manager/test_context_compression.py45CODE
MEDIUMstrands-py/tests/strands/models/test_ollama.py767CODE
Magic Placeholder Names8 hits · 55 pts
SeverityFileLineSnippetContext
HIGHstrands-ts/src/models/google/model.ts38 * apiKey: 'your-api-key',COMMENT
HIGHstrands-ts/src/models/google/model.ts67 * apiKey: 'your-api-key'COMMENT
HIGHstrands-ts/src/models/google/model.ts72 * apiKey: 'your-api-key',COMMENT
HIGHstrands-ts/src/models/google/model.ts83 * const client = new GoogleGenAI({ apiKey: 'your-api-key' })COMMENT
HIGHstrands-ts/src/models/google/model.ts211 * const provider = new GoogleModel({ apiKey: 'your-api-key' })COMMENT
HIGHstrands-ts/src/models/google/index.ts9 * apiKey: 'your-api-key',COMMENT
HIGHsite/src/content/changelog/harness/typescript-v0.2.1.md30 apiKey: 'your-api-key',CODE
HIGHsite/src/content/changelog/harness/typescript-v0.2.1.md40const client = new GoogleGenAI({ apiKey: 'your-api-key' })CODE
Over-Commented Block29 hits · 27 pts
SeverityFileLineSnippetContext
LOW.agents/skills/pre-push/run-checks.sh1#!/usr/bin/env bashCOMMENT
LOW.agents/skills/pre-push/run-checks.sh21# --all Fix + check every area regardless of what changed.COMMENT
LOW.agents/skills/pre-push/run-checks.sh261 command -v npm >/dev/null 2>&1 && return 0COMMENT
LOWtest-infra/scripts/run-selective-ts.sh1#!/usr/bin/env bashCOMMENT
LOWtest-infra/scripts/run-selective-ts.sh101TS_SOURCE="$(echo "$CHANGED" | grep -E '^strands-ts/' || true)"COMMENT
LOWstrands-py/tests/strands/memory/test_memory_manager.py1141 flushed = asyncio.ensure_future(mm.flush())COMMENT
LOWstrands-py/tests/strands/models/test_sagemaker.py201 assert isinstance(config, dict)COMMENT
LOWstrands-py/tests/strands/models/test_sagemaker.py221 # "role": "assistant",COMMENT
LOWstrands-py/tests/strands/models/test_sagemaker.py241 # assert request["ContentType"] == "application/json"COMMENT
LOWstrands-py/src/strands/tools/decorator.py141 # because of the complexities of Pydantic v2's immutable Core Schema.COMMENT
LOWstrands-py/src/strands/models/llamaapi.py461 # },COMMENT
LOWstrands-py/src/strands/sandbox/constants.py21#: Pattern for validating environment variable names: a leading letter orCOMMENT
LOW.github/dependabot.yml1# Dependabot configuration.COMMENT
LOW.github/workflows/typescript-integration-test.yml141 run: npm run buildCOMMENT
LOW.github/workflows/typescript-test-package-pack.yml1# End-to-end package install smoke test.COMMENT
LOW.github/workflows/bot-pr-review-gate.yml21 steps:COMMENT
LOW.github/workflows/python-test-package-build.yml1# End-to-end wheel install smoke test.COMMENT
LOWsite/docs/examples/python/memory_agent.py61# Load environment variables from .env file if it existsCOMMENT
LOWsite/docs/examples/deploy_to_eks/chart/values.yaml61 # cpu: 100mCOMMENT
LOWsite/docs/examples/deploy_to_eks/chart/values.yaml81 # labelSelector:COMMENT
LOWsite/scripts/changelog/enrich.ts1// Enrich a parsed line from its linked PR: area-* labels, breaking flag,COMMENT
LOWsite/scripts/changelog/parse-release-body.ts1// Parse the "New Contributors" section of a GitHub release body, and classifyCOMMENT
LOWsite/src/config/navigation.yml1# Navigation configuration for Strands Agents SDK documentationCOMMENT
LOWsite/src/config/tags.yml1# Allowed tag vocabulary for user-guide pages. Drives the headlessCOMMENT
LOWsite/src/config/tags.yml21#COMMENT
LOW…docs/user-guide/concepts/tools/vended-tools-imports.ts1// @ts-nocheckCOMMENT
LOW…nt/docs/user-guide/concepts/tools/executors_imports.ts1// @ts-nocheckCOMMENT
LOW…ide/concepts/agents/interventions/human-in-the-loop.py161 # User must type "confirm" to approve (not just "y" or "yes")COMMENT
LOW…e/concepts/agents/interventions/cedar-authorization.py321 # After editing agent.cedar on disk:COMMENT
Hallucination Indicators2 hits · 20 pts
SeverityFileLineSnippetContext
CRITICALstrands-py/tests/strands/models/test_openai.py1281 openai_client.beta.chat.completions.parse.assert_called_once_with(CODE
CRITICALstrands-py/tests/strands/models/test_openai.py1778 mock_injected_client.beta.chat.completions.parse.assert_called_once()CODE
Fake / Example Data13 hits · 13 pts
SeverityFileLineSnippetContext
LOW…ds-py/tests_integ/test_structured_output_agent_loop.py179 assert result.structured_output.name == "John Doe"CODE
LOW…ds-py/tests_integ/test_structured_output_agent_loop.py290 assert person_result.structured_output.name == "John Doe"CODE
LOW…ds-py/tests_integ/test_structured_output_agent_loop.py317 assert result.structured_output.name == "John Doe"CODE
LOW…ls/structured_output/test_structured_output_context.py95 test_result = SampleModel(name="John Doe", age=30, email="john@example.com")CODE
LOWstrands-py/tests/strands/agent/test_agent.py2230 {"image": {"format": "png", "source": {"bytes": b"fake_data"}}},CODE
LOWstrands-py/tests/strands/agent/test_agent.py201 return User(name="Jane Doe", age=30, email="jane@doe.com")STRING
LOWstrands-py/tests/strands/agent/test_agent_hooks.py102 return User(name="Jane Doe", age=30)CODE
LOWstrands-py/tests/strands/models/test_model.py323 obj = {"x": "lorem ipsum " * 1000}CODE
LOWstrands-ts/docs/TESTING.md226 name: 'John Doe',CODE
LOWstrands-ts/docs/TESTING.md247 expect(user.name).toBe('John Doe')CODE
LOWstrands-ts/src/a2a/__tests__/adapters.test.ts34 const parts: Part[] = [{ kind: 'file', file: { bytes: encodeBase64('fake-data'), mimeType, name: 'test' } }]CODE
LOWsite/src/content/docs/examples/structured_output.ts55 console.log(`Name: ${person.name}`) // "Jane Doe"CODE
LOWsite/src/content/docs/examples/structured_output.ts57 console.log(`Street: ${person.address.street}`) // "123 Main St"CODE
Synthetic Comment Markers2 hits · 10 pts
SeverityFileLineSnippetContext
HIGHAGENTS.md83- **Self-review the diff** end to end as if you were the reviewer, and confirm you can truthfully check every box in theCODE
HIGH.github/PULL_REQUEST_TEMPLATE.md30- [ ] I have reviewed and understand every line of code in this PR, including any generated by AI tools, and I can explaCODE
AI Structural Patterns10 hits · 8 pts
SeverityFileLineSnippetContext
LOW…s-py/tests_integ/interrupts/multiagent/test_session.py19CODE
LOW…ands-py/tests_integ/interrupts/multiagent/test_node.py18CODE
LOW…ands-py/tests_integ/interrupts/multiagent/test_node.py37CODE
LOWstrands-py/tests/strands/memory/test_memory_manager.py65CODE
LOWstrands-py/src/strands/experimental/bidi/agent/agent.py63CODE
LOWstrands-py/src/strands/tools/mcp/mcp_client.py223CODE
LOWstrands-py/src/strands/multiagent/swarm.py240CODE
LOWstrands-py/src/strands/multiagent/graph.py497CODE
LOWstrands-py/src/strands/multiagent/a2a/server.py32CODE
LOWstrands-py/src/strands/agent/agent.py166CODE
Example Usage Blocks6 hits · 5 pts
SeverityFileLineSnippetContext
LOW.agents/skills/pre-push/run-checks.sh14# Usage:COMMENT
LOWsite/docs/examples/python/weather_forecaster.py95# Example usageSTRING
LOWsite/docs/examples/python/meta_tooling.py113# Example usageSTRING
LOWsite/docs/examples/python/memory_agent.py110# Example usageCOMMENT
LOWsite/docs/examples/python/file_operations.py90# Example usageSTRING
LOW…mples/python/multi_agent_example/teachers_assistant.py56# Example usageSTRING
Cross-Language Confusion (JS/TS)1 hit · 5 pts
SeverityFileLineSnippetContext
HIGHsite/test/html-to-markdown.test.ts103 print("Hello")</code></pre>CODE
Slop Phrases2 hits · 3 pts
SeverityFileLineSnippetContext
MEDIUMsite/docs/examples/python/weather_forecaster.py120 # This is just for demonstration purposesSTRING
MEDIUMsite/docs/examples/python/knowledge_base_agent.py39 print(f"Using DEFAULT_KB_ID '{DEFAULT_KB_ID}' for demonstration purposes only.")CODE
TODO Padding1 hit · 2 pts
SeverityFileLineSnippetContext
LOWstrands-py/src/strands/models/openai.py378 # TODO: Handle caching blocks https://github.com/strands-agents/harness-sdk/issues/1140COMMENT