AI Slop Code RIsk Monitor

openai/openai-agents-python

A lightweight, powerful framework for multi-agent workflows

26.5 Elevated pattern signal View on GitHub

Maintenance and Governance Review

This report summarizes scanner evidence for openai/openai-agents-python, a Python project with 29,955 GitHub stars. SynthScan examined 544,513 lines of code across 1605 source files, recording 14047 pattern matches distributed across 24 syntactic categories. The legacy adjusted pattern signal is 26.5 (Elevated pattern signal); it is not an authorship estimate.

Use the findings to ask whether maintainers can explain intent, verify dependencies, simplify unnecessary scaffolding, and focus review effort. Risk Payload v1 adds ownership, supply-chain, over-engineering, and review-effort vectors when available. These are prompts for human verification, not probabilities, security findings, or measured maintenance costs.

26.5
Adjusted Signal
26.5
Raw Pattern Score
100%
Time Factor
2026-10-08
Last Push
30.0K
Stars
Python
Language
544.5K
Lines of Code
1.6K
Files
14.0K
Pattern Hits
2026-10-12
Scan Date
0.27
HC Hit Rate

Risk Review · v3

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

Cognitive Ownership Risk 57.9/100 · HIGH

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

Hallucinated Dependency & Supply Chain Risk 14.7/100 · LOW

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

Agent Over-Engineering Ratio 65.1/100 · HIGH

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

PR Review Velocity Impact 79.7/100 · CRITICAL

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

What These Metrics Mean

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

Pattern-Signal History

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

Severity Breakdown

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

CRITICAL 2HIGH 431MEDIUM 579LOW 13035

Directory Score Breakdown

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

Pattern Findings

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

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

Hyper-Verbose Identifiers10191 hits · 8154 pts
SeverityFileLineSnippetContext
LOW⚡integration_tests/_contract_surface.py1196def _optional_dependency_is_available_for_contract(CODE
LOW⚡integration_tests/_contract_surface.py1205def _optional_dependency_is_unsupported_for_contract(CODE
LOW⚡integration_tests/_contract_surface.py1212def _optional_dependency_for_binding(CODE
LOWintegration_tests/_contract_surface.py40 def is_supported_on_current_platform(self) -> bool:CODE
LOWintegration_tests/_contract_surface.py61def load_submodule_export_policy(path: Path) -> SubmoduleExportPolicy:CODE
LOWintegration_tests/_contract_surface.py271def _public_class_contract_policy(value: object) -> tuple[dict[str, Any], ...]:CODE
LOWintegration_tests/_contract_surface.py334def _public_typed_dict_policy(value: object) -> tuple[dict[str, Any], ...]:CODE
LOWintegration_tests/_contract_surface.py378def _public_type_alias_policy(value: object) -> tuple[dict[str, str], ...]:CODE
LOWintegration_tests/_contract_surface.py405def _add_legacy_literal_types(value: object) -> None:CODE
LOWintegration_tests/_contract_surface.py525def _dataclass_field_contract(value: object) -> list[dict[str, object]]:CODE
LOWintegration_tests/_contract_surface.py550def _pydantic_model_field_contract(value: object) -> list[dict[str, object]] | None:CODE
LOWintegration_tests/_contract_surface.py654def _sdk_public_class_descriptor(value: type, name: str) -> object | None:CODE
LOWintegration_tests/_contract_surface.py669def _public_class_member_contract(value: object) -> dict[str, dict[str, object]]:CODE
LOWintegration_tests/_contract_surface.py731def _public_property_identity(entry: Mapping[str, Any]) -> tuple[str, str, str]:CODE
LOWintegration_tests/_contract_surface.py752def _sorted_type_alias_members(members: Iterable[dict[str, object]]) -> list[dict[str, object]]:CODE
LOWintegration_tests/_contract_surface.py767def _is_type_alias_annotation(annotation: object, module: object) -> bool:CODE
LOWintegration_tests/_contract_surface.py784def _module_declares_type_alias(module: object, alias_name: str, value: object) -> bool:CODE
LOWintegration_tests/_contract_surface.py832 def _visit_function_definition(self, node: ast.FunctionDef | ast.AsyncFunctionDef) -> None:CODE
LOWintegration_tests/_contract_surface.py967def _has_explicit_type_alias_declaration(CODE
LOWintegration_tests/_contract_surface.py1082def _public_type_alias_contract(CODE
LOWintegration_tests/_contract_surface.py1107def _typed_dict_field_is_required(typed_dict: type, name: str, annotation: object) -> bool:CODE
LOWintegration_tests/_contract_surface.py1132def _typed_dict_field_contract(typed_dict: type, name: str) -> dict[str, object] | None:CODE
LOWintegration_tests/_contract_surface.py1143def _public_typed_dict_contract(CODE
LOWintegration_tests/_contract_surface.py1171def _optional_dependency_unsupported_platforms(CODE
LOWintegration_tests/_contract_surface.py1232def _optional_dependency_for_binding_in_modules(CODE
LOWintegration_tests/_contract_surface.py1243def _optional_dependency_for_module_import(CODE
LOWintegration_tests/_contract_surface.py1281def _submodule_export_contract(CODE
LOWintegration_tests/_contract_surface.py1328def _optional_dependency_modules(value: object, *, field_name: str) -> dict[str, str]:CODE
LOWintegration_tests/_contract_surface.py1343def _optional_dependency_is_available(module_name: str) -> bool:CODE
LOWintegration_tests/_contract_surface.py1349def _matches_platform_import_error(CODE
LOWintegration_tests/conftest.py26def _external_providers_enabled() -> bool:CODE
LOWintegration_tests/conftest.py34def _direct_providers_enabled() -> bool:CODE
LOWintegration_tests/conftest.py101def pytest_collection_modifyitems(config: pytest.Config, items: list[pytest.Item]) -> None:CODE
LOWintegration_tests/conftest.py142def _provider_model_credentials(model: str) -> tuple[str, ...]:CODE
LOWintegration_tests/conftest.py222def integration_realtime_model() -> str:CODE
LOWintegration_tests/_contract_validation.py15def _validate_parameter_contract(CODE
LOWintegration_tests/_contract_validation.py59def _validate_pydantic_model_field_contract(CODE
LOWintegration_tests/_contract_validation.py83def _validate_public_property_contract(CODE
LOWintegration_tests/_contract_validation.py142def _validate_public_class_contract(CODE
LOWintegration_tests/_contract_validation.py189def _validate_public_typed_dict_contract(CODE
LOWintegration_tests/_contract_validation.py230def _validate_public_type_alias_contract(CODE
LOWintegration_tests/_contract_validation.py277def validate_released_api_contract(CODE
LOW⚡integration_tests/_contract_state.py82def _deserialize_common_sandbox_session_state(payload: dict[str, object]) -> Any:CODE
LOW⚡integration_tests/_contract_state.py90def _normalized_durable_state(payload: dict[str, Any]) -> dict[str, Any]:CODE
LOW⚡integration_tests/_contract_state.py96def _normalize_legacy_mount_credentials(payload: dict[str, Any]) -> dict[str, Any]:CODE
LOWintegration_tests/_contract_state.py119def _legacy_driver_option_errors(payload: dict[str, Any]) -> list[str]:CODE
LOWintegration_tests/_contract_state.py184async def validate_historical_run_state_fixture(path: Path) -> list[str]:CODE
LOWintegration_tests/_contract_state.py218async def validate_historical_resume_behavior(CODE
LOWintegration_tests/_contract_state.py331async def validate_legacy_credential_run_state_fixture(CODE
LOWintegration_tests/_contract_support.py58def _merge_public_class_contracts(CODE
LOWintegration_tests/_contract_support.py83def _validate_voice_public_class_contract_policy(CODE
LOWintegration_tests/_contract_support.py138def _merge_public_type_aliases(CODE
LOWintegration_tests/_contract_support.py152def _merge_public_typed_dicts(CODE
LOWintegration_tests/_contract_support.py179def _preserve_released_callable_for_promotion(CODE
LOWintegration_tests/_contract_support.py199def _preserve_released_submodule_callables(CODE
LOWintegration_tests/_contract_support.py208def build_released_api_contract(CODE
LOW…egration_tests/packaging/test_distribution_contents.py18def test_wheel_excludes_integration_tests_and_contains_runtime_modules() -> None:CODE
LOW…egration_tests/packaging/test_distribution_contents.py32def test_source_distribution_excludes_repository_automation_and_local_caches() -> None:CODE
LOW…egration_tests/packaging/test_distribution_contents.py48def test_installed_distribution_advertises_expected_optional_extras() -> None:CODE
LOW…egration_tests/packaging/test_distribution_contents.py87def test_public_runtime_modules_import_from_the_distribution(module_name: str) -> None:CODE
10131 more matches not shown…
Unused Imports1534 hits · 1230 pts
SeverityFileLineSnippetContext
LOWintegration_tests/conftest.py1CODE
LOWintegration_tests/_contract_validation.py3CODE
LOWintegration_tests/_contract_state.py3CODE
LOWintegration_tests/_contract_support.py3CODE
LOWintegration_tests/packaging/test_mcp_compat.py1CODE
LOW…egration_tests/packaging/test_distribution_contents.py1CODE
LOWintegration_tests/packaging/test_provider_selection.py1CODE
LOWintegration_tests/packaging/test_optional_extras.py1CODE
LOWintegration_tests/packaging/mcp_legacy_server.py1CODE
LOW…ration_tests/security/test_packaged_mount_redaction.py1CODE
LOW…gration_tests/security/test_local_sandbox_isolation.py1CODE
LOWintegration_tests/providers/test_any_llm.py1CODE
LOWintegration_tests/providers/test_litellm.py1CODE
LOWintegration_tests/hosted/test_web_search.py1CODE
LOWintegration_tests/hosted/test_multi_agent.py1CODE
LOWintegration_tests/hosted/test_tool_search.py1CODE
LOW…gration_tests/hosted/test_programmatic_tool_calling.py1CODE
LOWintegration_tests/hosted/test_local_tool_families.py1CODE
LOWintegration_tests/hosted/test_mcp.py1CODE
LOWintegration_tests/hosted/test_code_interpreter.py1CODE
LOWintegration_tests/realtime/test_realtime.py1CODE
LOWintegration_tests/voice/test_voice_pipeline.py1CODE
LOWintegration_tests/containers/test_dapr_redis.py10CODE
LOWintegration_tests/openai/test_retry.py1CODE
LOWintegration_tests/openai/test_tracing.py1CODE
LOWintegration_tests/openai/test_approval_resume.py1CODE
LOWintegration_tests/openai/test_guardrails.py1CODE
LOWintegration_tests/openai/test_websocket.py1CODE
LOWintegration_tests/openai/test_sessions.py1CODE
LOWintegration_tests/openai/test_chat_completions.py1CODE
LOWintegration_tests/openai/test_handoffs.py1CODE
LOWintegration_tests/openai/test_responses.py1CODE
LOWintegration_tests/openai/test_model_settings.py1CODE
LOWintegration_tests/openai/test_execution_controls.py1CODE
LOWtests/test_tool_approval_call_id_reuse.py1CODE
LOWtests/test_tool_use_tracker.py1CODE
LOWtests/test_live_example.py1CODE
LOWtests/test_tool_metadata.py1CODE
LOWtests/test_asyncio_progress.py1CODE
LOWtests/test_run_serial_tests.py1CODE
LOWtests/test_run_config.py1CODE
LOWtests/test_update_rclone_pin.py1CODE
LOWtests/model_test_helpers.py1CODE
LOWtests/test_shell_call_serialization.py1CODE
LOWtests/test_tracing_errors.py1CODE
LOWtests/testing_processor.py1CODE
LOWtests/conftest.py1CODE
LOWtests/test_shell_examples.py1CODE
LOWtests/test_tool_use_behavior.py3CODE
LOWtests/test_usaspending_setup_db.py1CODE
LOWtests/test_scripted_sandbox.py1CODE
LOWtests/test_agent_tool_state.py1CODE
LOWtests/test_tool_origin.py1CODE
LOWtests/test_code_change_verification_policy.py1CODE
LOWtests/test_runner_model_provider_lifecycle.py1CODE
LOWtests/test_prompt_cache_key.py1CODE
LOWtests/test_tracing.py1CODE
LOWtests/test_agent_memory_leak.py1CODE
LOWtests/test_call_model_input_filter.py1CODE
LOWtests/test_release_provenance.py1CODE
1474 more matches not shown…
Empty Error Handlers185 hits · 922 pts
SeverityFileLineSnippetContext
HIGH…gration_tests/security/test_local_sandbox_isolation.py281except docker.errors.NotFound:CODE
HIGH…gration_tests/security/test_local_sandbox_isolation.py283except docker.errors.DockerException:CODE
HIGHintegration_tests/containers/test_dapr_redis.py116except Exception:CODE
HIGHintegration_tests/containers/test_dapr_redis.py139except Exception:CODE
HIGHtests/test_code_change_verification_runner.py240except ProcessLookupError:CODE
HIGHtests/test_soft_cancel.py211except StopAsyncIteration:CODE
HIGHtests/mcp/test_mcp_util.py1251except Exception:CODE
HIGHtests/mcp/test_prompt_server.py63except KeyError:CODE
HIGHtests/extensions/memory/test_dapr_session.py297except Exception:CODE
HIGHtests/extensions/memory/test_dapr_session.py650except Exception:CODE
HIGHtests/extensions/memory/test_dapr_session.py715except Exception:CODE
HIGHtests/extensions/memory/test_advanced_sqlite_session.py2516except Exception:CODE
HIGHtests/extensions/memory/test_redis_session.py437except Exception:CODE
HIGHtests/extensions/memory/test_redis_session.py664except Exception:CODE
HIGHtests/extensions/memory/test_redis_session.py717except Exception:CODE
HIGHtests/extensions/memory/test_redis_session.py763except Exception:CODE
HIGHtests/extensions/memory/test_redis_session.py841except Exception:CODE
HIGHtests/extensions/memory/test_redis_session.py890except Exception:CODE
HIGHtests/realtime/test_openai_realtime.py3727except Exception:CODE
HIGHtests/realtime/test_session.py690except Exception: # noqa: S110CODE
HIGHtests/voice/test_input.py11except ImportError:CODE
HIGHtests/voice/test_openai_stt.py42except ImportError:CODE
HIGHtests/voice/test_workflow.py17except ImportError:CODE
HIGHtests/voice/test_openai_tts.py11except ImportError:CODE
HIGHtests/voice/helpers.py3except ImportError:CODE
HIGHtests/voice/test_pipeline.py44except ImportError:CODE
HIGHtests/sandbox/test_unix_local_special_files.py100except OSError:CODE
HIGHtests/sandbox/test_unix_local_special_files.py107except BlockingIOError:CODE
HIGHtests/sandbox/test_sandboxes_import.py23except AttributeError:CODE
HIGHtests/sandbox/test_docker.py445except ValueError:CODE
HIGHtests/sandbox/test_docker.py522except FileNotFoundError:CODE
HIGH…ls/implementation-final-review/scripts/review_state.py183except FileNotFoundError:CODE
HIGH…ls/implementation-final-review/scripts/review_state.py193except OSError:CODE
HIGHexamples/memory/file_session.py78except FileNotFoundError:CODE
HIGHexamples/memory/file_session.py82except FileNotFoundError:CODE
HIGHexamples/basic/trace_redaction.py43except Exception:CODE
HIGHexamples/mcp/streamablehttp_example/server.py36except Exception:CODE
HIGHexamples/realtime/app/server.py665except WebSocketDisconnect:CODE
HIGHexamples/realtime/cli/demo.py137except Exception:CODE
HIGHexamples/realtime/cli/demo.py202except Exception:CODE
HIGHexamples/realtime/twilio/twilio_handler.py200except WebSocketDisconnect:CODE
HIGHexamples/realtime/twilio/twilio_handler.py166except WebSocketDisconnect:CODE
HIGHexamples/voice/streamed/main.py142except Exception:CODE
HIGHexamples/voice/streamed/main.py205except KeyboardInterrupt:CODE
HIGHexamples/sandbox/unix_local_runner.py105except WorkspaceArchiveWriteError:CODE
HIGHexamples/sandbox/docker/mounts/mount_smoke.py52except docker.errors.ImageNotFound:CODE
HIGH…/sandbox/extensions/temporal/temporal_sandbox_agent.py654except docker.errors.DockerException:CODE
HIGH…/sandbox/extensions/temporal/temporal_sandbox_agent.py235except (json.JSONDecodeError, TypeError):CODE
HIGH…/sandbox/extensions/temporal/temporal_sandbox_agent.py615except Exception:CODE
HIGH…es/sandbox/extensions/temporal/temporal_sandbox_tui.py359except (json.JSONDecodeError, TypeError):CODE
HIGH…es/sandbox/extensions/temporal/temporal_sandbox_tui.py947except Exception:CODE
HIGH…es/sandbox/extensions/temporal/temporal_sandbox_tui.py317except Exception:CODE
HIGH…es/sandbox/extensions/temporal/temporal_sandbox_tui.py1154except Exception:CODE
HIGH…es/sandbox/extensions/temporal/temporal_sandbox_tui.py1144except Exception:CODE
HIGH…ndbox/extensions/daytona/usaspending_text2sql/agent.py220except Exception:CODE
HIGHexamples/live/app/server.py193except WebSocketDisconnect:CODE
HIGHexamples/live/app/server.py121except Exception:CODE
HIGH.github/scripts/run_integration_tests.py462except OSError:CODE
HIGHsrc/agents/run_state.py2999except Exception:CODE
HIGHsrc/agents/run_state.py1731except (TypeError, ValueError):CODE
125 more matches not shown…
Decorative Section Separators236 hits · 784 pts
SeverityFileLineSnippetContext
MEDIUM⚡tests/memory/test_session.py974# ============================================================================COMMENT
MEDIUM⚡tests/memory/test_session.py976# ============================================================================COMMENT
MEDIUM⚡tests/memory/test_openai_conversations_session.py1509# ============================================================================COMMENT
MEDIUM⚡tests/memory/test_openai_conversations_session.py1511# ============================================================================COMMENT
MEDIUM⚡tests/extensions/test_tool_output_trimmer.py85# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/extensions/test_tool_output_trimmer.py87# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/extensions/test_tool_output_trimmer.py116# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/extensions/test_tool_output_trimmer.py118# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/extensions/test_tool_output_trimmer.py163# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/extensions/test_tool_output_trimmer.py165# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/extensions/test_tool_output_trimmer.py1103# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/extensions/test_tool_output_trimmer.py1105# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/extensions/test_tool_output_trimmer.py20# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/extensions/test_tool_output_trimmer.py22# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/extensions/test_tool_output_trimmer.py55# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/extensions/test_tool_output_trimmer.py57# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/extensions/test_tool_output_trimmer.py1045# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/extensions/test_tool_output_trimmer.py1047# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/extensions/memory/test_encrypt_session.py1696# ============================================================================COMMENT
MEDIUM⚡tests/extensions/memory/test_encrypt_session.py1698# ============================================================================COMMENT
MEDIUM⚡tests/extensions/memory/test_dapr_session.py915# ============================================================================COMMENT
MEDIUM⚡tests/extensions/memory/test_dapr_session.py917# ============================================================================COMMENT
MEDIUM⚡tests/extensions/memory/test_advanced_sqlite_session.py2976# ============================================================================COMMENT
MEDIUM⚡tests/extensions/memory/test_advanced_sqlite_session.py2978# ============================================================================COMMENT
MEDIUM⚡tests/extensions/memory/test_mongodb_session.py284# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/extensions/memory/test_mongodb_session.py286# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/extensions/memory/test_mongodb_session.py344# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/extensions/memory/test_mongodb_session.py346# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/extensions/memory/test_mongodb_session.py622# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/extensions/memory/test_mongodb_session.py624# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/extensions/memory/test_mongodb_session.py685# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/extensions/memory/test_mongodb_session.py687# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/extensions/memory/test_mongodb_session.py720# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/extensions/memory/test_mongodb_session.py722# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/extensions/memory/test_mongodb_session.py872# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/extensions/memory/test_mongodb_session.py874# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/extensions/memory/test_mongodb_session.py1165# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/extensions/memory/test_mongodb_session.py1167# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/extensions/memory/test_mongodb_session.py31# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/extensions/memory/test_mongodb_session.py33# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/extensions/memory/test_mongodb_session.py317# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/extensions/memory/test_mongodb_session.py319# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/extensions/memory/test_mongodb_session.py934# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/extensions/memory/test_mongodb_session.py936# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/extensions/memory/test_mongodb_session.py1091# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/extensions/memory/test_mongodb_session.py1093# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/extensions/memory/test_redis_session.py1117# ============================================================================COMMENT
MEDIUM⚡tests/extensions/memory/test_redis_session.py1119# ============================================================================COMMENT
MEDIUMtests/extensions/sandbox/test_daytona.py1708# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/extensions/sandbox/test_daytona.py1710# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/extensions/sandbox/test_blaxel.py42# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/extensions/sandbox/test_blaxel.py44# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/extensions/sandbox/test_blaxel.py56# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/extensions/sandbox/test_blaxel.py58# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/extensions/sandbox/test_blaxel.py763# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/extensions/sandbox/test_blaxel.py765# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/extensions/sandbox/test_blaxel.py882# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/extensions/sandbox/test_blaxel.py884# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/extensions/sandbox/test_blaxel.py1104# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/extensions/sandbox/test_blaxel.py1106# ---------------------------------------------------------------------------COMMENT
176 more matches not shown…
Cross-File Repetition155 hits · 775 pts
SeverityFileLineSnippetContext
HIGHtests/test_function_tool_decorator.py0get the temperature for a given city. args: city: the city to get temperature for. returns: temperature information for STRING
HIGHexamples/agent_patterns/human_in_the_loop.py0get the temperature for a given city. args: city: the city to get temperature for. returns: temperature information for STRING
HIGHexamples/agent_patterns/human_in_the_loop_stream.py0get the temperature for a given city. args: city: the city to get temperature for. returns: temperature information for STRING
HIGHtests/memory/test_session.py0add_items([]) must not bypass the closed check through the empty-list fast path.STRING
HIGHtests/extensions/memory/test_dapr_session.py0add_items([]) must not bypass the closed check through the empty-list fast path.STRING
HIGHtests/extensions/memory/test_async_sqlite_session.py0add_items([]) must not bypass the closed check through the empty-list fast path.STRING
HIGHtests/extensions/memory/test_advanced_sqlite_session.py0add_items([]) must not bypass the closed check through the empty-list fast path.STRING
HIGHtests/extensions/memory/test_mongodb_session.py0add_items([]) must not bypass the closed check through the empty-list fast path.STRING
HIGHtests/extensions/memory/test_redis_session.py0add_items([]) must not bypass the closed check through the empty-list fast path.STRING
HIGHtests/memory/test_session.py0pop_item skips corrupt newest rows and returns the next valid item.STRING
HIGHtests/extensions/memory/test_async_sqlite_session.py0pop_item skips corrupt newest rows and returns the next valid item.STRING
HIGHtests/extensions/memory/test_sqlalchemy_session.py0pop_item skips corrupt newest rows and returns the next valid item.STRING
HIGHtests/memory/test_session.py0pop_item removes corrupt rows and returns none when no valid items remain.STRING
HIGHtests/extensions/memory/test_async_sqlite_session.py0pop_item removes corrupt rows and returns none when no valid items remain.STRING
HIGHtests/extensions/memory/test_sqlalchemy_session.py0pop_item removes corrupt rows and returns none when no valid items remain.STRING
HIGHtests/memory/test_session.py0limit counts valid items, expanding past corrupt newest rows.STRING
HIGHtests/extensions/memory/test_async_sqlite_session.py0limit counts valid items, expanding past corrupt newest rows.STRING
HIGHtests/extensions/memory/test_sqlalchemy_session.py0limit counts valid items, expanding past corrupt newest rows.STRING
HIGHtests/extensions/memory/test_advanced_sqlite_session.py0limit counts valid items, expanding past corrupt newest rows.STRING
HIGHtests/memory/test_session.py0test that session correctly stores and retrieves unicode/non-ascii content.STRING
HIGHtests/extensions/memory/test_dapr_session.py0test that session correctly stores and retrieves unicode/non-ascii content.STRING
HIGHtests/extensions/memory/test_redis_session.py0test that session correctly stores and retrieves unicode/non-ascii content.STRING
HIGHtests/memory/test_session.py0test concurrent access to the same session to verify data integrity.STRING
HIGHtests/extensions/memory/test_dapr_session.py0test concurrent access to the same session to verify data integrity.STRING
HIGHtests/extensions/memory/test_redis_session.py0test concurrent access to the same session to verify data integrity.STRING
HIGHtests/memory/test_session.py0test that session_settings defaults to empty sessionsettings.STRING
HIGHtests/memory/test_openai_conversations_session.py0test that session_settings defaults to empty sessionsettings.STRING
HIGHtests/extensions/memory/test_dapr_session.py0test that session_settings defaults to empty sessionsettings.STRING
HIGHtests/extensions/memory/test_async_sqlite_session.py0test that session_settings defaults to empty sessionsettings.STRING
HIGHtests/extensions/memory/test_sqlalchemy_session.py0test that session_settings defaults to empty sessionsettings.STRING
HIGHtests/extensions/memory/test_advanced_sqlite_session.py0test that session_settings defaults to empty sessionsettings.STRING
HIGHtests/extensions/memory/test_redis_session.py0test that session_settings defaults to empty sessionsettings.STRING
HIGHtests/memory/test_session.py0test that get_items uses session_settings.limit as default.STRING
HIGHtests/extensions/memory/test_dapr_session.py0test that get_items uses session_settings.limit as default.STRING
HIGHtests/extensions/memory/test_async_sqlite_session.py0test that get_items uses session_settings.limit as default.STRING
HIGHtests/extensions/memory/test_sqlalchemy_session.py0test that get_items uses session_settings.limit as default.STRING
HIGHtests/extensions/memory/test_advanced_sqlite_session.py0test that get_items uses session_settings.limit as default.STRING
HIGHtests/extensions/memory/test_redis_session.py0test that get_items uses session_settings.limit as default.STRING
HIGHtests/memory/test_session.py0test that explicit limit parameter overrides session_settings.STRING
HIGHtests/extensions/memory/test_encrypt_session.py0test that explicit limit parameter overrides session_settings.STRING
HIGHtests/extensions/memory/test_dapr_session.py0test that explicit limit parameter overrides session_settings.STRING
HIGHtests/extensions/memory/test_async_sqlite_session.py0test that explicit limit parameter overrides session_settings.STRING
HIGHtests/extensions/memory/test_sqlalchemy_session.py0test that explicit limit parameter overrides session_settings.STRING
HIGHtests/extensions/memory/test_advanced_sqlite_session.py0test that explicit limit parameter overrides session_settings.STRING
HIGHtests/extensions/memory/test_redis_session.py0test that explicit limit parameter overrides session_settings.STRING
HIGHtests/memory/test_session.py0test that runconfig can override session's default settings.STRING
HIGHtests/extensions/memory/test_encrypt_session.py0test that runconfig can override session's default settings.STRING
HIGHtests/extensions/memory/test_dapr_session.py0test that runconfig can override session's default settings.STRING
HIGHtests/extensions/memory/test_sqlalchemy_session.py0test that runconfig can override session's default settings.STRING
HIGHtests/extensions/memory/test_advanced_sqlite_session.py0test that runconfig can override session's default settings.STRING
HIGHtests/extensions/memory/test_redis_session.py0test that runconfig can override session's default settings.STRING
HIGHtests/models/test_litellm_chatcompletions_stream.py0cancelling during the cleanup `aclose` continues that close instead of abandoning it.STRING
HIGHtests/models/test_openai_chatcompletions_stream.py0cancelling during the cleanup `aclose` continues that close instead of abandoning it.STRING
HIGHtests/models/test_openai_responses.py0cancelling during the cleanup `aclose` continues that close instead of abandoning it.STRING
HIGHtests/extensions/memory/test_dapr_session.py0test that different session ids result in isolated conversation histories.STRING
HIGHtests/extensions/memory/test_async_sqlite_session.py0test that different session ids result in isolated conversation histories.STRING
HIGHtests/extensions/memory/test_sqlalchemy_session.py0test that different session ids result in isolated conversation histories.STRING
HIGHtests/extensions/memory/test_redis_session.py0test that different session ids result in isolated conversation histories.STRING
HIGHtests/extensions/memory/test_dapr_session.py0test that pop_item returns none on an empty session.STRING
HIGHtests/extensions/memory/test_async_sqlite_session.py0test that pop_item returns none on an empty session.STRING
95 more matches not shown…
Excessive Try-Catch Wrapping658 hits · 595 pts
SeverityFileLineSnippetContext
LOWintegration_tests/_contract_surface.py1011 except Exception as error:CODE
LOWintegration_tests/_contract_validation.py106 except Exception as error:CODE
LOWintegration_tests/_contract_validation.py165 except Exception as error:CODE
LOWintegration_tests/_contract_validation.py212 except Exception as error:CODE
LOWintegration_tests/_contract_validation.py254 except Exception as error:CODE
LOWintegration_tests/_contract_validation.py335 except Exception as error:CODE
LOWintegration_tests/_contract_validation.py496 except Exception as error:CODE
LOWintegration_tests/_contract_validation.py503 except Exception as error:CODE
LOWintegration_tests/_contract_validation.py533 except Exception as error:CODE
LOWintegration_tests/_contract_validation.py553 except Exception as error:CODE
LOWintegration_tests/_contract_support.py347 except Exception as error:CODE
LOWintegration_tests/_contract_support.py364 except Exception as error:CODE
LOWintegration_tests/_contract_support.py466 except Exception as error:CODE
LOWintegration_tests/containers/test_dapr_redis.py116 except Exception:CODE
LOWintegration_tests/containers/test_dapr_redis.py139 except Exception:CODE
LOWtests/memory/test_session.py80 except Exception:CODE
LOWtests/mcp/test_mcp_util.py1251 except Exception:CODE
LOW⚡tests/extensions/memory/test_dapr_session.py715 except Exception:CODE
LOWtests/extensions/memory/test_dapr_session.py297 except Exception:CODE
LOWtests/extensions/memory/test_dapr_session.py650 except Exception:CODE
LOWtests/extensions/memory/test_sqlalchemy_session.py785 except Exception as exc:CODE
LOWtests/extensions/memory/test_sqlalchemy_session.py833 except Exception as exc:CODE
LOWtests/extensions/memory/test_advanced_sqlite_session.py1306 except Exception as exc:CODE
LOWtests/extensions/memory/test_advanced_sqlite_session.py1330 except Exception as exc:CODE
LOWtests/extensions/memory/test_advanced_sqlite_session.py2516 except Exception:CODE
LOW⚡tests/extensions/memory/test_redis_session.py717 except Exception:CODE
LOW⚡tests/extensions/memory/test_redis_session.py841 except Exception:CODE
LOWtests/extensions/memory/test_redis_session.py437 except Exception:CODE
LOWtests/extensions/memory/test_redis_session.py664 except Exception:CODE
LOWtests/extensions/memory/test_redis_session.py763 except Exception:CODE
LOWtests/extensions/memory/test_redis_session.py890 except Exception:CODE
MEDIUMtests/realtime/test_openai_realtime.py3698def handler(websocket):CODE
LOWtests/realtime/test_openai_realtime.py3727 except Exception:CODE
LOWtests/realtime/test_session.py690 except Exception: # noqa: S110CODE
LOWtests/sandbox/test_docker_removal_worker.py486 except Exception as exc:CODE
MEDIUMdocs/ja/realtime/quickstart.md96 print(f"Error: {event.error}")CODE
MEDIUMdocs/realtime/quickstart.md92 print(f"Error: {event.error}")CODE
MEDIUMdocs/zh/realtime/quickstart.md96 print(f"Error: {event.error}")CODE
LOWdocs/scripts/translate_docs.py706 except Exception:CODE
MEDIUMdocs/scripts/translate_docs.py834 print("Error: No valid files found to translate")CODE
MEDIUMdocs/ko/realtime/quickstart.md96 print(f"Error: {event.error}")CODE
LOW⚡examples/memory/dapr_session_example.py236 except Exception as e:CODE
MEDIUM⚡examples/memory/dapr_session_example.py237 print(f"Error: {e}")CODE
LOWexamples/memory/dapr_session_example.py310 except Exception as e:CODE
LOW⚡examples/memory/dapr_session_example.py433 except Exception as e:CODE
LOWexamples/memory/file_hitl_example.py87 except Exception as exc: # noqa: BLE001CODE
LOWexamples/memory/file_hitl_example.py147 except Exception:CODE
LOWexamples/memory/redis_session_example.py148 except Exception:CODE
LOWexamples/memory/redis_session_example.py175 except Exception:CODE
LOWexamples/memory/mongodb_session_example.py37 except Exception:CODE
LOWexamples/financial_research_agent/manager.py185 except Exception:CODE
LOWexamples/basic/trace_redaction.py43 except Exception:CODE
MEDIUMexamples/basic/non_strict_output_type.py71 print(f"Error (expected): {e}")CODE
LOWexamples/research_bot/manager.py102 except Exception:CODE
LOW…mples/mcp/streamablehttp_custom_client_example/main.py129 except Exception as e:CODE
MEDIUM…mples/mcp/streamablehttp_custom_client_example/main.py130 print(f"Error starting Streamable HTTP server: {e}")CODE
LOWexamples/mcp/streamablehttp_example/server.py36 except Exception:CODE
LOWexamples/mcp/streamablehttp_example/main.py96 except Exception as e:CODE
MEDIUMexamples/mcp/streamablehttp_example/main.py97 print(f"Error starting Streamable HTTP server: {e}")CODE
LOWexamples/mcp/prompt_server/main.py44 except Exception as e:CODE
598 more matches not shown…
Self-Referential Comments133 hits · 419 pts
SeverityFileLineSnippetContext
MEDIUM⚡tests/test_responses_tracing.py296 # Create an instance of the modelCOMMENT
MEDIUM⚡tests/test_responses_tracing.py299 # Define a dummy fetch function that returns an async stream with a dummy responseCOMMENT
MEDIUM⚡tests/test_responses_tracing.py441 # Create an instance of the modelCOMMENT
MEDIUM⚡tests/test_responses_tracing.py447 # Define a dummy fetch function that returns an async stream with a dummy responseCOMMENT
MEDIUM⚡tests/test_responses_tracing.py649 # Create an instance of the modelCOMMENT
MEDIUM⚡tests/test_responses_tracing.py652 # Define a dummy fetch function that returns an async stream with a dummy responseCOMMENT
MEDIUMtests/test_responses_tracing.py70 # Create an instance of the modelCOMMENT
MEDIUMtests/test_responses_tracing.py134 # Create an instance of the modelCOMMENT
MEDIUMtests/test_responses_tracing.py255 # Create an instance of the modelCOMMENT
MEDIUMtests/test_run_state_agent_identity.py406 # Create a cycle A -> B -> A.COMMENT
MEDIUM⚡tests/test_run_state_agent_identity.py425 # Create a graph: A -> B, C; B -> D; C -> D.COMMENT
MEDIUM⚡tests/test_items_helpers.py208 # Create a non-message run item of a different type, e.g., a reasoning trace.COMMENT
MEDIUMtests/test_agent_runner_streamed.py2179 # Create a tool that requires approvalCOMMENT
MEDIUMtests/test_hitl_error_scenarios.py652 # Create the tool with needs_approval directlyCOMMENT
MEDIUMtests/test_usage.py300 # Create a usage with request_usage_entriesCOMMENT
MEDIUMtests/test_agent_runner.py6886 # Define a tool that will be called by the orchestrator agentCOMMENT
MEDIUMtests/test_agent_runner.py6974 # Create a computer tool (not a FunctionTool)COMMENT
MEDIUMtests/test_agent_runner.py7016 # Create an approved tool call for the computer toolCOMMENT
MEDIUMtests/test_agent_runner.py7048 # Create a rejected tool callCOMMENT
MEDIUMtests/test_agent_runner.py7230 # Create a tool call with unclear status (neither approved nor rejected)COMMENT
MEDIUMtests/test_agent_runner.py7253 # Create an approved tool call for a tool that doesn't existCOMMENT
MEDIUMtests/test_agent_as_tool.py225 # Create a simple agentCOMMENT
MEDIUMtests/test_agent_as_tool.py273 # Create a simple agentCOMMENT
MEDIUMtests/test_agent_as_tool.py321 # Create a simple agentCOMMENT
MEDIUMtests/test_agent_as_tool.py384 # Create a simple agentCOMMENT
MEDIUMtests/test_computer_action.py545 # Create a dummy click action to trigger a click and screenshot.COMMENT
MEDIUM⚡tests/test_run_state.py6809 # Create a tool call itemCOMMENT
MEDIUM⚡tests/test_run_state.py6819 # Create a ProcessedResponse with the tool call item in new_itemsCOMMENT
MEDIUM⚡tests/test_run_state.py6902 # Create a tool call itemCOMMENT
MEDIUM⚡tests/test_run_state.py6912 # Create a ProcessedResponse with the tool call itemCOMMENT
MEDIUM⚡tests/test_run_state.py10131 # Create a tool call itemCOMMENT
MEDIUM⚡tests/test_run_state.py10141 # Create a ProcessedResponseCOMMENT
MEDIUM⚡tests/test_run_state.py10161 # Create a tool call itemCOMMENT
MEDIUM⚡tests/test_run_state.py10171 # Create a ProcessedResponseCOMMENT
MEDIUM⚡tests/test_run_state.py10260 # Create a mock MCP tool that will be recognized as HostedMCPToolCOMMENT
MEDIUM⚡tests/test_run_state.py10265 # Create a minimal Mcp configCOMMENT
MEDIUMtests/test_run_state.py1364 # Create a mock item that has id and type directly on the item (not in raw_item)COMMENT
MEDIUMtests/test_run_state.py4910 # Create a handoff output itemCOMMENT
MEDIUMtests/test_run_state.py6729 # Create a RunState with contextCOMMENT
MEDIUMtests/test_run_state.py6749 # Create a RunState with contextCOMMENT
MEDIUMtests/test_run_state.py6773 # Create a run that will have interruptionsCOMMENT
MEDIUMtests/test_run_state.py6841 # Create a message with nested contentCOMMENT
MEDIUMtests/test_run_state.py7118 # Create a handoff with a name attribute but no tool_nameCOMMENT
MEDIUMtests/test_run_state.py7263 # Create a shell tool with descriptionCOMMENT
MEDIUMtests/test_run_state.py7301 # Create an apply patch tool with descriptionCOMMENT
MEDIUMtests/test_run_state.py7347 # Create a mock MCP tool - HostedMCPTool doesn't have a simple constructorCOMMENT
MEDIUMtests/test_run_state.py7386 # Create a message itemCOMMENT
MEDIUMtests/test_run_state.py7677 # Create a mock item with a raw_item that is neither dict nor has model_dumpCOMMENT
MEDIUMtests/test_run_state.py7697 # Create an agent without get_all_tools methodCOMMENT
MEDIUMtests/test_run_state.py7726 # Create a handoff with tool_nameCOMMENT
MEDIUMtests/test_run_state.py8381 # Create a mock MCP toolCOMMENT
MEDIUMtests/test_run_state.py10221 # Create a handoff with name attribute but no tool_nameCOMMENT
MEDIUMtests/test_run_state.py10311 # Create an agent without get_all_tools methodCOMMENT
MEDIUMtests/test_run_state.py10374 # Create an item with missing type field to trigger the union adapter fallbackCOMMENT
MEDIUM⚡tests/test_extension_filters.py789 # Create a nested summary that will be parsedCOMMENT
MEDIUM⚡tests/test_extension_filters.py797 # Create a second nested summary that includes the firstCOMMENT
MEDIUM⚡tests/test_extension_filters.py896 # Create an item with a circular reference or other unserializable contentCOMMENT
MEDIUM⚡tests/test_extension_filters.py901 # Create an item that will trigger TypeError in json.dumpsCOMMENT
MEDIUMtests/test_extension_filters.py631 # Create an item that doesn't have a role (e.g., a function call)COMMENT
MEDIUMtests/test_extension_filters.py768 # Create a summary message with non-string content (array)COMMENT
73 more matches not shown…
Cross-Language Confusion72 hits · 405 pts
SeverityFileLineSnippetContext
HIGHtests/test_tool_approval_call_id_reuse.py169 "arguments": '{"value": null}',CODE
HIGHtests/test_agent_as_tool_output_guardrails.py60 final_message = get_text_message('{"response":null}')CODE
HIGHtests/test_agent_tool_input.py93 assert "- count (integer | null, optional) - Optional count." in info.summaryCODE
HIGHtests/test_run_state.py4324 "output": '{"temperature":20,"unit":"celsius","humidity":null}',CODE
HIGHtests/extensions/memory/test_dapr_session.py1428 # still non-null, which is the situation the guard is actually for.COMMENT
HIGHtests/extensions/memory/test_mongodb_session.py378@pytest.mark.parametrize("session_id", ["", "$ne", '{"$ne": null}', "会話-123"])CODE
HIGHtests/extensions/sandbox/test_modal.py2562 "modal-snapshot-directory-ephemeral.tar -T - 2>/dev/null && test -f "CODE
HIGHtests/extensions/sandbox/test_modal.py2798 "cd -- /workspace && (tar cf - -- tmp.txt 2>/dev/null || true)",CODE
HIGHtests/extensions/sandbox/test_modal.py2829 ["sh", "-lc", "cd -- /workspace && (tar cf - -- tmp.txt 2>/dev/null || true)"],CODE
HIGHtests/extensions/sandbox/test_modal.py2881 "cd -- /workspace && (tar cf - -- tmp.txt 2>/dev/null || true)",CODE
HIGHtests/extensions/sandbox/test_modal.py2909 ["sh", "-lc", "cd -- /workspace && (tar cf - -- tmp.txt 2>/dev/null || true)"],CODE
HIGHtests/extensions/sandbox/test_e2b.py132 "sh -lc test -c /dev/fuse && grep -qw fuse /proc/filesystems && "CODE
HIGHtests/extensions/sandbox/test_e2b.py133 "(command -v fusermount3 >/dev/null 2>&1 || command -v fusermount >/dev/null 2>&1)"CODE
HIGHtests/extensions/sandbox/test_e2b.py161 "sh -lc command -v rclone >/dev/null 2>&1 || test -x /usr/local/bin/rclone",CODE
HIGHtests/extensions/sandbox/test_e2b.py178 "sh -lc command -v rclone >/dev/null 2>&1 || test -x /usr/local/bin/rclone"CODE
HIGHtests/extensions/sandbox/test_runloop_mounts.py155 "sh -lc command -v rclone >/dev/null 2>&1 || test -x /usr/local/bin/rclone",CODE
HIGHtests/extensions/sandbox/test_runloop_mounts.py172 "sh -lc command -v rclone >/dev/null 2>&1 || test -x /usr/local/bin/rclone"CODE
HIGHtests/extensions/sandbox/test_runloop_mounts.py198 "sh -lc command -v fusermount3 >/dev/null 2>&1 || command -v fusermount >/dev/null 2>&1",CODE
HIGHtests/extensions/sandbox/test_runloop_mounts.py208 "sh -lc command -v fusermount3 >/dev/null 2>&1 || command -v fusermount >/dev/null 2>&1",CODE
HIGHtests/extensions/sandbox/test_runloop.py2442 await session.exec("pwd && echo hello", shell=True)CODE
HIGHtests/extensions/sandbox/test_runloop.py2658 await session.exec("pwd && echo hello", shell=True)CODE
HIGHtests/realtime/test_session.py2611 complex_args = '{"nested": {"data": [1, 2, 3]}, "bool": true, "null": null}'CODE
HIGHtests/sandbox/test_session_sinks.py449 slow_result = await session.exec("sleep 1 && echo slow span")CODE
HIGHtests/sandbox/test_runtime.py5107 result = await session.exec("echo hi > note.txt && cat note.txt")CODE
HIGH⚡tests/sandbox/test_session_utils.py218 await session.exec("echo hello && echo goodbye", shell=True)CODE
HIGH⚡tests/sandbox/test_session_utils.py220 assert session.last_command == ("sh", "-lc", "echo hello && echo goodbye")CODE
HIGH⚡tests/sandbox/test_posix_tool_paths.py33 assert command == "cd /workspace/src/project || exit\npwd"CODE
HIGHtests/sandbox/test_posix_tool_paths.py61 assert command == f"cd {workspace.as_posix()}/src/project || exit\npwd"CODE
HIGHtests/sandbox/test_mounts.py1267 ["sh", "-lc", "command -v rclone >/dev/null 2>&1 || test -x /usr/local/bin/rclone"],CODE
HIGH⚡tests/sandbox/test_docker.py3958 'pid="$(cat "$1" 2>/dev/null || true)"; 'CODE
HIGH⚡tests/sandbox/test_docker.py3959 'if [ -n "$pid" ]; then kill -KILL "$pid" >/dev/null 2>&1 || true; fi; 'CODE
HIGH⚡tests/sandbox/test_docker.py4001 "cmd": ["sh", "-lc", "pkill -f -- 'sleep 10' >/dev/null 2>&1 || true"],CODE
HIGH⚡tests/sandbox/test_docker.py4006 "cmd": ["sh", "-lc", "pkill -f -- 'sleep 20' >/dev/null 2>&1 || true"],CODE
HIGHtests/sandbox/test_docker.py3943 'mkdir -p "$1" && printf "%s" "$$" > "$2" && shift 2 && exec "$@"',CODE
HIGH⚡tests/sandbox/capabilities/test_shell_capability.py359 assert session.calls[0].args == ("cd /workspace/src/project || exit\npwd",)CODE
HIGH⚡tests/sandbox/capabilities/test_shell_capability.py367 "stdout: cd /workspace/src/project || exit\npwd\n"CODE
HIGH⚡tests/sandbox/capabilities/test_shell_capability.py368 "stderr: cd /workspace/src/project || exit\npwd"CODE
HIGH⚡tests/sandbox/capabilities/test_shell_capability.py460 assert session.calls[0].args == ("cd /mnt/shared-data || exit\npwd",)CODE
HIGH⚡tests/sandbox/capabilities/test_shell_capability.py468 "stdout: cd /mnt/shared-data || exit\npwd\n"CODE
HIGH⚡tests/sandbox/capabilities/test_shell_capability.py469 "stderr: cd /mnt/shared-data || exit\npwd"CODE
HIGH⚡tests/sandbox/capabilities/test_shell_capability.py608 assert session.calls[0].args == ("cd /workspace/tasks/a || exit\npwd",)CODE
HIGH⚡tests/sandbox/capabilities/test_shell_capability.py609 assert session.calls[1].args == ("cd /workspace/tasks/a || exit\npwd",)CODE
HIGHtests/sandbox/capabilities/test_shell_capability.py294 assert session.calls[0].args == ("cd /workspace/tasks/a || exit\npwd",)CODE
HIGHtests/sandbox/capabilities/test_shell_capability.py388 assert session.calls[0].args == ("cd /workspace/tasks/a || exit\npwd",)CODE
HIGHtests/sandbox/capabilities/test_shell_capability.py403 assert session.calls[0].args == ("cd /workspace/tasks/a/src/project || exit\npwd",)CODE
HIGHtests/sandbox/capabilities/test_shell_capability.py420 assert session.calls[0].args == ("cd /workspace/tasks/a/src/project || exit\npwd",)CODE
HIGHtests/sandbox/capabilities/test_shell_capability.py506 assert session.calls[0].args == ("cd /workspace/tasks/a || exit\npwd",)CODE
HIGHexamples/realtime/app/test_frontend.py47 send(message) { window.sentMessages.push(JSON.parse(message)); }CODE
HIGHexamples/sandbox/shared_session_workdirs.py95SHELL_COMMAND = "cp reference.png page.png && cat brief.md"CODE
HIGHexamples/sandbox/healthcare_support/support_agents.py120 "Use `exec_command` with `pwd`, `ls`, `cat`, and the documented `rg || grep` search "STRING
HIGHexamples/sandbox/extensions/blaxel_runner.py307 f"cat {mount_path}/{marker}.txt && ls {mount_path}"CODE
HIGH…ples/sandbox/tutorials/dataroom_metric_extract/main.py61 Optional field: `segment` (segment/geography if explicitly stated, else null).STRING
HIGHsrc/agents/extensions/sandbox/_rclone.py8_RCLONE_CHECK = "command -v rclone >/dev/null 2>&1 || test -x /usr/local/bin/rclone"CODE
HIGHsrc/agents/extensions/sandbox/runloop/mounts.py53 "command -v fusermount3 >/dev/null 2>&1 || command -v fusermount >/dev/null 2>&1",CODE
HIGHsrc/agents/extensions/sandbox/runloop/mounts.py81 "command -v fusermount3 >/dev/null 2>&1 || command -v fusermount >/dev/null 2>&1",CODE
HIGHsrc/agents/extensions/sandbox/blaxel/mounts.py247 "cd /tmp && ar x gcsfuse.deb && "CODE
HIGHsrc/agents/extensions/sandbox/blaxel/mounts.py271 detect = await _exec(session, "which apk >/dev/null 2>&1 && echo apk || echo apt")CODE
HIGHsrc/agents/extensions/sandbox/blaxel/mounts.py271 detect = await _exec(session, "which apk >/dev/null 2>&1 && echo apk || echo apt")CODE
HIGH⚡src/agents/extensions/sandbox/daytona/mounts.py42 f"command -v {cmd} >/dev/null 2>&1 || test -x /usr/local/bin/{cmd}",CODE
HIGHsrc/agents/extensions/sandbox/daytona/mounts.py62 f"apt-get update -qq && DEBIAN_FRONTEND=noninteractive apt-get install -y -qq {package}"CODE
12 more matches not shown…
Modern AI Meta-Vocabulary137 hits · 372 pts
SeverityFileLineSnippetContext
MEDIUMREADME.md121. [**Agents**](https://openai.github.io/openai-agents-python/agents): LLMs configured with instructions, tools, guardraCODE
MEDIUMREADME.md181. [**Guardrails**](https://openai.github.io/openai-agents-python/guardrails/): Configurable safety checks for input andCODE
MEDIUMtests/test_guardrails.py510 # Trip only after the tool ran. If parallel guardrails gated the turn, thisCOMMENT
MEDIUMtests/test_guardrails.py869 # Trip only after the tool ran. If parallel guardrails gated the turn, thisCOMMENT
MEDIUM⚡tests/test_items_helpers.py208 # Create a non-message run item of a different type, e.g., a reasoning trace.COMMENT
MEDIUMtests/test_run_impl_resume_paths.py3278 # The output, its guardrails, and its terminal hooks all completed exactly once.COMMENT
MEDIUMtests/realtime/test_session_guardrails.py932 # Neither should trigger guardrails yetCOMMENT
MEDIUMtests/realtime/test_session_guardrails.py1075 # Use a minimal agent (guardrails from run_config)COMMENT
MEDIUMtests/deferred_session_writes/test_pending_write.py197 # The zero-count branch of the final save: with guardrails the rebuilt items carryCOMMENT
MEDIUMtests/deferred_session_writes/test_recovery.py99 # With output guardrails the final sweep rebuilds the response and the held batchCOMMENT
MEDIUMtests/deferred_session_writes/test_resume.py192 # A resume may legitimately run without the guardrails the park had; theCOMMENT
MEDIUMtests/deferred_session_writes/test_resume.py550 # With output guardrails the final sweep rebuilds the whole current response, heldCOMMENT
MEDIUMtests/deferred_session_writes/test_resume.py601 # once it has ended: the guardrails and the final save run after the terminal stepCOMMENT
MEDIUMtests/deferred_session_writes/test_max_turns.py42 # is chosen. Validation, the final-output hooks and the output guardrails all runCOMMENT
MEDIUM⚡docs/llms.txt8- [Overview](https://openai.github.io/openai-agents-python/): Learn the core primitives—agents, handoffs, guardrails, seCODE
MEDIUM⚡docs/llms.txt10- [Example Gallery](https://openai.github.io/openai-agents-python/examples/): Task-oriented examples that demonstrate agCODE
MEDIUM⚡docs/llms.txt13- [Agents](https://openai.github.io/openai-agents-python/agents/): Configure agent instructions, tools, guardrails, memoCODE
MEDIUMdocs/llms.txt25- [Guardrails](https://openai.github.io/openai-agents-python/guardrails/): Define validators that run alongside the agenCODE
MEDIUMdocs/guardrails.md20## Input guardrailsCOMMENT
MEDIUMdocs/guardrails.md40## Output guardrailsCOMMENT
MEDIUMdocs/guardrails.md71## Tool guardrailsCOMMENT
MEDIUMdocs/guardrails.md78- Tool guardrails use the `FunctionTool` execution pipeline. You can attach them directly to a custom tool created with CODE
MEDIUMdocs/mcp.md465## Tool guardrailsCOMMENT
MEDIUMdocs/mcp.md467Local MCP server classes accept `tool_input_guardrails` and `tool_output_guardrails`. The SDK attaches these server-wideCODE
MEDIUMdocs/context.md40Adapt the shared application policy to these callbacks instead of maintaining separate capability lists. The callbacks cCODE
MEDIUMdocs/quickstart.md183## Run the agent orchestrationCOMMENT
MEDIUMdocs/llms-full.txt10- [Example Gallery](https://openai.github.io/openai-agents-python/examples/): Realistic Python samples that demonstrate CODE
MEDIUMdocs/llms-full.txt29- [Guardrails](https://openai.github.io/openai-agents-python/guardrails/): Create synchronous or asynchronous checks, shCODE
MEDIUMdocs/llms-full.txt61- [guardrail APIs](https://openai.github.io/openai-agents-python/ref/guardrail/): Build custom guardrails, interpret valCODE
MEDIUMdocs/release.md28- When an agent-level output guardrail blocks final output produced directly by a terminal function tool, the SDK retaCODE
MEDIUMdocs/release.md61- Runtime reliability fixes align streamed and non-streamed [output-guardrail session persistence](guardrails.md#outpuCODE
MEDIUMdocs/results.md222One redaction rule applies when an agent-level output guardrail blocks final output produced directly by a terminal funcCODE
MEDIUMdocs/index.md3The [OpenAI Agents SDK](https://github.com/openai/openai-agents-python) enables you to build agentic AI apps in a lightwCODE
MEDIUMdocs/tools.md913For locally configured function tools, the runner also reevaluates `is_enabled` before invocation. However, `is_enabled`CODE
MEDIUMdocs/multi_agent.md1# Agent orchestrationCOMMENT
MEDIUMdocs/multi_agent.md57- [Tools](tools.md#agents-as-tools) for `Agent.as_tool()` and manager-style orchestration.CODE
MEDIUMdocs/ja/guardrails.md24## 入力ガードレール {#input-guardrails}COMMENT
MEDIUMdocs/ja/guardrails.md44## 出力ガードレール {#output-guardrails}COMMENT
MEDIUMdocs/ja/guardrails.md75## ツールガードレール {#tool-guardrails}COMMENT
MEDIUMdocs/ja/guardrails.md82- ツールガードレールは、 `FunctionTool` 実行パイプラインを使用します。 `tool` または [`function_tool`][agents.tool.function_tool] で作成したカスタムツールに直接設定できCODE
MEDIUMdocs/ja/mcp.md458## ツールガードレール {#tool-guardrails}COMMENT
MEDIUMdocs/ja/mcp.md460ローカル MCP サーバークラスは、`tool_input_guardrails` と `tool_output_guardrails` を受け付けます。SDK は、フィルタリング後に残ったすべての MCP ツールに、これらのサーバー全体のCODE
MEDIUMdocs/ja/context.md44個別の機能リストを管理するのではなく、共有アプリケーションポリシーをこれらのコールバックに合わせて適用してください。これらのコールバックは、現在の実行に対して SDK が公開する機能を制御しますが、モデルが生成した引数やリソース選択を認可すCODE
MEDIUMdocs/ja/quickstart.md185## エージェントオーケストレーションの実行 {#run-the-agent-orchestration}COMMENT
MEDIUMdocs/ja/running_agents.md146##### ガードレール、ハンドオフ、モデル入力の整形 {#guardrails-handoffs-and-model-input-shaping}COMMENT
MEDIUMdocs/ja/release.md32- エージェントレベルの出力ガードレールが、終端関数ツールによって直接生成された最終出力をブロックした場合、検証済みフィールドによって安全に再構築できる場合に限り、SDK は再実行可能な呼び出し/出力ペアを保持します。元の `functCODE
MEDIUMdocs/ja/release.md65- 実行時の信頼性修正により、ストリーミングと非ストリーミングの[出力ガードレールのセッション永続化](guardrails.md#output-guardrails)が統一され、コピーおよび名前空間化の際に `FunctionToolCODE
MEDIUMdocs/ja/results.md228エージェントレベルの出力ガードレールが、終端関数ツールによって直接生成された最終出力をブロックする場合は、1 つの編集規則が適用されます。ブロックされた現在のレスポンスでは、`output_guardrail_results` が拒否されたCODE
MEDIUMdocs/ja/agents.md182## マルチエージェントシステムの設計パターン {#multi-agent-system-design-patterns}COMMENT
MEDIUMdocs/ja/agents.md305## ガードレール {#guardrails}COMMENT
MEDIUMdocs/ja/tools.md856ローカルで設定された関数ツールの場合、Runner は呼び出し前にも `is_enabled` を再評価します。ただし、`is_enabled` は可視性とディスパッチを制御するものであり、ツール引数やアクセス対象のリソースに依存する認可のCODE
MEDIUMdocs/ja/multi_agent.md14## LLM によるオーケストレーション {#orchestrating-via-llm}COMMENT
MEDIUMdocs/ja/multi_agent.md47## コードによるオーケストレーション {#orchestrating-via-code}COMMENT
MEDIUMdocs/ja/models/index.md20| OpenAIがホストするサブエージェントを使用する | 実験的なホスト型マルチエージェントモデルを使用する | [ホスト型マルチエージェント](#hosted-multi-agent-experimental) |CODE
MEDIUMdocs/ja/models/index.md242### ホスト型マルチエージェント(実験的) {#hosted-multi-agent-experimental}COMMENT
MEDIUMdocs/ja/models/index.md294#### SDK オーケストレーションとの関係 {#relationship-to-sdk-orchestration}COMMENT
MEDIUMdocs/ja/realtime/guide.md266## ツール、承認、ハンドオフ、ガードレール {#tools-approvals-handoffs-and-guardrails}COMMENT
MEDIUMdocs/ja/realtime/guide.md329### ガードレール {#guardrails}COMMENT
MEDIUMdocs/models/index.md16| Use OpenAI-hosted subagents | Use the experimental hosted multi-agent model | [Hosted multi-agent](#hosted-multi-agentCODE
MEDIUMdocs/models/index.md238### Hosted multi-agent (experimental)COMMENT
77 more matches not shown…
Deep Nesting422 hits · 328 pts
SeverityFileLineSnippetContext
LOWintegration_tests/conftest.py160CODE
LOWintegration_tests/_contract_validation.py277CODE
LOWintegration_tests/_contract_state.py17CODE
LOWintegration_tests/_contract_state.py218CODE
LOWintegration_tests/_contract_state.py24CODE
LOWintegration_tests/_contract_support.py208CODE
LOWintegration_tests/packaging/mcp_legacy_server.py12CODE
LOW…gration_tests/security/test_local_sandbox_isolation.py115CODE
LOWintegration_tests/containers/test_dapr_redis.py95CODE
LOWintegration_tests/containers/test_dapr_redis.py125CODE
LOWtests/test_function_tool_approval_arguments.py187CODE
LOWtests/test_function_tool_approval_arguments.py675CODE
LOWtests/test_tracing.py306CODE
LOWtests/test_error_logging_redaction.py1861CODE
LOWtests/test_error_logging_redaction.py1897CODE
LOWtests/test_error_logging_redaction.py2286CODE
LOWtests/test_agent_llm_hooks.py104CODE
LOWtests/test_hitl_session_scenario.py321CODE
LOWtests/test_hitl_session_scenario.py342CODE
LOWtests/test_run_hooks.py125CODE
LOWtests/test_code_change_verification_runner.py170CODE
LOWtests/test_human_in_the_loop_server_example.py109CODE
LOWtests/test_agent_runner_streamed.py2713CODE
LOWtests/test_agent_runner_streamed.py2918CODE
LOWtests/test_release_automation.py249CODE
LOWtests/test_release_automation.py360CODE
LOWtests/test_release_automation.py603CODE
LOWtests/test_repository_workflow_interfaces.py24CODE
LOWtests/test_max_turns.py929CODE
LOWtests/test_provider_span_errors.py259CODE
LOWtests/test_provider_span_errors.py282CODE
LOWtests/test_provider_span_errors.py304CODE
LOWtests/test_provider_span_errors.py324CODE
LOWtests/test_function_tool_decorator.py723CODE
LOWtests/test_trace_processor.py297CODE
LOWtests/test_scripted_model.py1818CODE
LOWtests/test_run_impl_resume_paths.py531CODE
LOWtests/test_run_impl_resume_paths.py1567CODE
LOWtests/memory/test_session.py62CODE
LOWtests/memory/test_session.py298CODE
LOWtests/mcp/test_server_errors.py64CODE
LOWtests/mcp/test_server_errors.py133CODE
LOWtests/mcp/test_mcp_v2_http.py186CODE
LOWtests/mcp/servers/legacy.py12CODE
LOW…xtensions/experimental/hosted_multi_agent/test_live.py37CODE
LOWtests/extensions/memory/test_encrypt_session.py981CODE
LOWtests/extensions/memory/test_dapr_session.py1265CODE
LOWtests/extensions/memory/test_advanced_sqlite_session.py688CODE
LOWtests/extensions/memory/test_advanced_sqlite_session.py1526CODE
LOWtests/extensions/memory/test_advanced_sqlite_session.py3778CODE
LOWtests/extensions/memory/test_advanced_sqlite_session.py3811CODE
LOWtests/extensions/memory/test_advanced_sqlite_session.py3862CODE
LOWtests/extensions/memory/test_advanced_sqlite_session.py3988CODE
LOWtests/extensions/memory/test_advanced_sqlite_session.py4047CODE
LOWtests/extensions/memory/test_advanced_sqlite_session.py4124CODE
LOWtests/extensions/memory/test_advanced_sqlite_session.py4502CODE
LOWtests/extensions/memory/test_redis_session.py3218CODE
LOWtests/extensions/sandbox/test_modal.py3338CODE
LOWtests/extensions/sandbox/test_e2b.py311CODE
LOWtests/extensions/sandbox/test_vercel.py341CODE
362 more matches not shown…
Modern Structural Boilerplate157 hits · 167 pts
SeverityFileLineSnippetContext
LOWtests/test_tracing_errors.py710 def set_error(self, error: Any) -> None:CODE
LOWtests/test_tracing_errors.py726 def set_error(self, error: Any) -> None:CODE
LOWtests/test_agent_runner_sync.py14 def set_event_loop(self, loop: asyncio.AbstractEventLoop | None) -> None: ...CODE
LOW⚡tests/test_trace_processor.py527 def set_processors(self, processors: list[TracingProcessor]) -> None:CODE
LOW⚡tests/test_trace_processor.py536 def set_disabled(self, disabled: bool) -> None:CODE
LOWtests/test_model_error_logging_redaction.py14 def set_error(self, _error: Any) -> None:CODE
LOW⚡tests/test_scripted_model.py1362 def set_error(self, _error: SpanError) -> None:CODE
LOW⚡tests/test_scripted_model.py1377 def set_error(self, error: SpanError) -> None:CODE
LOWtests/test_scripted_model.py1405 def set_error(self, error: SpanError) -> None:CODE
LOWtests/extensions/memory/test_encrypt_session.py65 def _set_time(value: int) -> None:CODE
LOWtests/extensions/sandbox/test_modal.py62def _set_aio_attr(obj: object, name: str, fn: Callable[..., object]) -> None:CODE
LOWtests/sandbox/test_runtime.py168 def _set_concurrency_limits(self, limits: SandboxConcurrencyLimits) -> None:CODE
LOWtests/sandbox/test_runtime.py172 def _set_archive_limits(self, limits: SandboxArchiveLimits | None) -> None:CODE
LOWexamples/basic/trace_redaction.py16logger = logging.getLogger(__name__)CODE
LOWexamples/realtime/app/server.py46logger = logging.getLogger(__name__)CODE
LOW⚡examples/realtime/cli/demo.py385 def _update_playback_rms(self, samples: np.ndarray[Any, np.dtype[Any]]) -> None:CODE
LOW…andbox/extensions/temporal/temporal_session_manager.py395 async def update_snapshot_id(self, request: RenameRequest) -> None:CODE
LOW⚡…es/sandbox/extensions/temporal/temporal_sandbox_tui.py328 def _set_activity(self, text: str | Text = "") -> None:CODE
LOW…es/sandbox/extensions/temporal/temporal_sandbox_tui.py722 def _set_session_title(self, title: str) -> None:CODE
LOW⚡…es/sandbox/extensions/temporal/temporal_sandbox_tui.py324 def _set_liveness(self, text: str | Text) -> None:STRING
LOWexamples/live/app/server.py25logger = logging.getLogger(__name__)CODE
LOWsrc/agents/run.py186__all__ = [CODE
LOWsrc/agents/run.py210def set_default_agent_runner(runner: AgentRunner | None) -> None:CODE
LOW⚡src/agents/run_state.py2271 def set_trace(self, trace: Trace | None) -> None:CODE
LOW⚡src/agents/run_state.py2280 def set_tool_use_tracker_snapshot(self, snapshot: Mapping[str, Sequence[str]] | None) -> None:CODE
LOW⚡src/agents/run_state.py2293 def set_reasoning_item_id_policy(self, policy: Literal["preserve", "omit"] | None) -> None:CODE
LOWsrc/agents/run_error_handlers.py58__all__ = [CODE
LOWsrc/agents/responses_websocket_session.py142__all__ = ["ResponsesWebSocketSession", "responses_websocket_session"]CODE
LOW⚡src/agents/__init__.py308def set_default_openai_api(api: Literal["chat_completions", "responses"]) -> None:CODE
LOW⚡src/agents/__init__.py315def set_default_openai_responses_transport(transport: Literal["http", "websocket"]) -> None:CODE
LOWsrc/agents/__init__.py280def set_default_openai_key(key: str, use_for_tracing: bool = True) -> None:CODE
LOWsrc/agents/__init__.py295def set_default_openai_client(client: AsyncOpenAI, use_for_tracing: bool = True) -> None:CODE
LOWsrc/agents/__init__.py335def set_default_openai_harness(harness_id: str | None) -> None:CODE
LOWsrc/agents/__init__.py368__all__ = [CODE
LOWsrc/agents/apply_diff.py411__all__ = ["apply_diff"]CODE
LOW⚡src/agents/_config.py13def set_default_openai_key(key: str, use_for_tracing: bool) -> None:CODE
LOW⚡src/agents/_config.py20def set_default_openai_client(client: AsyncOpenAI, use_for_tracing: bool) -> None:CODE
LOW⚡src/agents/_config.py27def set_default_openai_api(api: Literal["chat_completions", "responses"]) -> None:CODE
LOW⚡src/agents/_config.py34def set_default_openai_responses_transport(transport: Literal["http", "websocket"]) -> None:CODE
LOW⚡src/agents/_config.py48def set_default_openai_harness(harness_id: str | None) -> None:CODE
LOWsrc/agents/run_config.py637__all__ = [CODE
LOW⚡src/agents/agent_tool_state.py57def set_agent_tool_state_scope(context: Any, scope_id: str | None) -> None:CODE
LOWsrc/agents/decorators.py12__all__ = [CODE
LOWsrc/agents/tracing/provider.py230 def set_processors(self, processors: list[TracingProcessor]) -> None:CODE
LOWsrc/agents/tracing/provider.py242 def set_disabled(self, disabled: bool) -> None:CODE
LOWsrc/agents/tracing/provider.py332 def set_disabled(self, disabled: bool) -> None:CODE
LOW⚡src/agents/tracing/__init__.py101def set_trace_processors(processors: list[TracingProcessor]) -> None:CODE
LOW⚡src/agents/tracing/__init__.py108def set_tracing_disabled(disabled: bool) -> None:CODE
LOW⚡src/agents/tracing/__init__.py115def set_tracing_export_api_key(api_key: str) -> None:CODE
LOWsrc/agents/tracing/__init__.py45__all__ = [CODE
LOWsrc/agents/tracing/spans.py167 def set_error(self, error: SpanError) -> None:CODE
LOWsrc/agents/tracing/spans.py266 def set_error(self, error: SpanError) -> None:CODE
LOWsrc/agents/tracing/spans.py373 def set_error(self, error: SpanError) -> None:CODE
LOWsrc/agents/tracing/setup.py27def set_trace_provider(provider: TraceProvider) -> None:CODE
LOWsrc/agents/memory/__init__.py20__all__ = [CODE
LOWsrc/agents/mcp/__init__.py44__all__ = [CODE
LOWsrc/agents/models/reasoning_content_replay.py61__all__ = [CODE
LOWsrc/agents/models/__init__.py9__all__ = [CODE
LOWsrc/agents/models/_openai_websocket.py52def _set_header(headers: dict[str, str], key: object, value: object) -> None:CODE
LOW⚡src/agents/models/_openai_shared.py18def set_default_openai_key(key: str) -> None:CODE
97 more matches not shown…
Magic Placeholder Names12 hits · 60 pts
SeverityFileLineSnippetContext
HIGHdocs/tracing.md192 api_key="your-api-key",CODE
HIGHdocs/ja/tracing.md195 api_key="your-api-key",CODE
HIGHdocs/ja/realtime/quickstart.md134export OPENAI_API_KEY="your-api-key-here"CODE
HIGHdocs/ja/realtime/quickstart.md140session = await runner.run(model_config={"api_key": "your-api-key"})CODE
HIGHdocs/realtime/quickstart.md130export OPENAI_API_KEY="your-api-key-here"CODE
HIGHdocs/realtime/quickstart.md136session = await runner.run(model_config={"api_key": "your-api-key"})CODE
HIGHdocs/zh/tracing.md195 api_key="your-api-key",CODE
HIGHdocs/zh/realtime/quickstart.md134export OPENAI_API_KEY="your-api-key-here"CODE
HIGHdocs/zh/realtime/quickstart.md140session = await runner.run(model_config={"api_key": "your-api-key"})CODE
HIGHdocs/ko/tracing.md195 api_key="your-api-key",CODE
HIGHdocs/ko/realtime/quickstart.md134export OPENAI_API_KEY="your-api-key-here"CODE
HIGHdocs/ko/realtime/quickstart.md140session = await runner.run(model_config={"api_key": "your-api-key"})CODE
Dead Code20 hits · 40 pts
SeverityFileLineSnippetContext
MEDIUMtests/test_cancel_streaming.py284CODE
MEDIUMtests/test_cancel_streaming.py308CODE
MEDIUMtests/test_run_step_execution.py2811CODE
MEDIUMtests/models/test_model_retry.py3447CODE
MEDIUMtests/models/test_model_retry.py1755CODE
MEDIUMtests/models/test_model_retry.py2491CODE
MEDIUMtests/models/test_model_retry.py2621CODE
MEDIUMtests/models/test_model_retry.py2665CODE
MEDIUMtests/models/test_model_retry.py2987CODE
MEDIUMtests/models/test_model_retry.py3031CODE
MEDIUMtests/realtime/test_testing.py327CODE
MEDIUMtests/voice/test_pipeline.py1823CODE
MEDIUMtests/voice/test_pipeline.py669CODE
MEDIUMtests/voice/test_pipeline.py740CODE
MEDIUMtests/voice/test_pipeline.py1255CODE
MEDIUMtests/voice/test_pipeline.py1309CODE
MEDIUMtests/voice/test_pipeline.py1382CODE
MEDIUMtests/voice/test_pipeline.py1420CODE
MEDIUMtests/voice/test_pipeline.py1522CODE
MEDIUMsrc/agents/voice/workflow.py41CODE
AI Structural Patterns52 hits · 38 pts
SeverityFileLineSnippetContext
LOWtests/test_agent_runner_streamed.py4312CODE
LOWtests/test_run_state.py165CODE
LOWtests/test_run_step_execution.py3153CODE
LOWtests/mcp/helpers.py72CODE
LOWtests/extensions/sandbox/test_e2b.py311CODE
LOWtests/extensions/sandbox/test_e2b.py1123CODE
LOWtests/extensions/sandbox/test_e2b.py1190CODE
LOWtests/extensions/sandbox/test_e2b.py1242CODE
LOWtests/extensions/sandbox/test_e2b.py1460CODE
LOWtests/sandbox/capabilities/test_apply_patch_tool.py785CODE
LOW…ndbox/extensions/daytona/usaspending_text2sql/agent.py203CODE
LOWsrc/agents/model_settings.py225CODE
LOWsrc/agents/run.py275CODE
LOWsrc/agents/run.py380CODE
LOWsrc/agents/run.py483CODE
LOWsrc/agents/responses_websocket_session.py90CODE
LOWsrc/agents/tool_context.py67CODE
LOWsrc/agents/retry.py62CODE
LOWsrc/agents/agent.py606CODE
LOWsrc/agents/agent.py424CODE
LOWsrc/agents/run_config.py276CODE
LOWsrc/agents/run_config.py526CODE
LOWsrc/agents/tool.py725CODE
LOWsrc/agents/tool.py2604CODE
LOWsrc/agents/tool.py2632CODE
LOWsrc/agents/tool.py2658CODE
LOWsrc/agents/tracing/create.py188CODE
LOWsrc/agents/tracing/create.py353CODE
LOWsrc/agents/tracing/create.py397CODE
LOWsrc/agents/mcp/server.py897CODE
LOWsrc/agents/mcp/server.py1968CODE
LOWsrc/agents/mcp/server.py2118CODE
LOWsrc/agents/mcp/server.py2296CODE
LOWsrc/agents/models/multi_provider.py76CODE
LOWsrc/agents/models/openai_provider.py46CODE
LOWsrc/agents/extensions/experimental/codex/codex_tool.py237CODE
LOWsrc/agents/extensions/sandbox/vercel/_provider.py97CODE
LOWsrc/agents/extensions/sandbox/vercel/sandbox.py424CODE
LOWsrc/agents/extensions/sandbox/runloop/sandbox.py491CODE
LOWsrc/agents/extensions/sandbox/blaxel/mounts.py231CODE
LOWsrc/agents/extensions/sandbox/blaxel/sandbox.py1229CODE
LOWsrc/agents/extensions/sandbox/daytona/sandbox.py331CODE
LOWsrc/agents/extensions/sandbox/modal/sandbox.py303CODE
LOWsrc/agents/extensions/sandbox/e2b/sandbox.py446CODE
LOWsrc/agents/extensions/sandbox/e2b/sandbox.py213CODE
LOWsrc/agents/extensions/sandbox/e2b/sandbox.py274CODE
LOWsrc/agents/extensions/sandbox/e2b/sandbox.py628CODE
LOWsrc/agents/run_internal/session_persistence.py919CODE
LOWsrc/agents/run_internal/run_loop.py2308CODE
LOWsrc/agents/run_internal/run_loop.py2665CODE
LOWsrc/agents/voice/pipeline_config.py77CODE
LOWsrc/agents/sandbox/sandbox_agent.py67CODE
Docstring Block Structure7 hits · 35 pts
SeverityFileLineSnippetContext
HIGHsrc/agents/run_state.py1892Serializes the run state to a JSON-compatible dictionary. This method is used to serialize the run state to a dSTRING
HIGHsrc/agents/run_state.py2313Deserializes a run state from a JSON string. This method is used to deserialize a run state from a string that STRING
HIGHsrc/agents/run_state.py2401Deserializes a run state from a JSON dictionary. This method is used to deserialize a run state from a dict thaSTRING
HIGHsrc/agents/extensions/memory/advanced_sqlite_session.py1066Create a new branch starting from a specific user message turn. Args: turn_number: The branch turn STRING
HIGHsrc/agents/extensions/memory/advanced_sqlite_session.py1123Create branch from the first user turn matching the search term. Args: search_term: Text to search STRING
HIGHsrc/agents/extensions/memory/advanced_sqlite_session.py1469Copy messages before the branch point to the new branch. Args: new_branch_id: The ID of the new braSTRING
HIGHsrc/agents/extensions/memory/mongodb_session.py180Create a session from a MongoDB URI string. Args: session_id: Conversation ID. uri: MonSTRING
Hallucination Indicators2 hits · 20 pts
SeverityFileLineSnippetContext
CRITICALsrc/agents/extensions/sandbox/runloop/sandbox.py962 async with self._sdk.api.devboxes.with_streaming_response.download_file(CODE
CRITICALsrc/agents/voice/models/openai_tts.py42 response = self._client.audio.speech.with_streaming_response.create(CODE
Redundant / Tautological Comments10 hits · 15 pts
SeverityFileLineSnippetContext
LOWtests/voice/test_input.py207 # Add audio to the queueCOMMENT
LOWexamples/memory/memory_session_hitl_example.py41 # Check if any city name is in the provided location stringCOMMENT
LOWexamples/memory/openai_session_hitl_example.py41 # Check if any city name is in the provided location stringCOMMENT
LOWexamples/realtime/cli/demo.py298 # Check if there's enough data to readCOMMENT
LOWexamples/agent_patterns/agents_as_tools_structured.py41 # Set include_input_schema to true to include the full JSON Schema:COMMENT
LOWexamples/agent_patterns/streaming_guardrails.py68 # Check if it's time to run the guardrail checkCOMMENT
LOWsrc/agents/models/chatcmpl_converter.py140 # Check if message is agents.extensions.models.litellm_model.InternalChatCompletionMessage.COMMENT
LOWsrc/agents/extensions/memory/advanced_sqlite_session.py1215 # Check if trying to delete current branchCOMMENT
LOWsrc/agents/extensions/models/litellm_model.py708 # Check if this is an assistant message with tool callsCOMMENT
LOWsrc/agents/realtime/session.py322 # Check if there's a stored exception to raiseCOMMENT
Overly Generic Function Names13 hits · 13 pts
SeverityFileLineSnippetContext
LOWintegration_tests/openai/test_approval_resume.py37 def perform_action(action: str) -> str:CODE
LOW⚡tests/test_apply_diff.py187 " def helper():",CODE
LOWtests/test_apply_diff.py136 " def helper():",CODE
LOWtests/test_apply_diff.py163 " def helper():",CODE
LOWtests/test_trace_processor.py303 def handle_request(request: httpx2.Request) -> httpx2.Response:CODE
LOWtests/test_agent_as_tool_callback_validation.py37 def perform_action() -> str:CODE
LOWtests/test_released_api_contract.py1711 def helper(value: str = "default") -> None:CODE
LOWtests/mcp/test_mcp_v2_http.py72 def handle_request(request):CODE
LOWtests/mcp/test_mcp_v2_http.py109 def handle_request(request):CODE
LOWtests/realtime/test_realtime_model_settings.py167 def helper() -> str:CODE
LOW⚡tests/sandbox/test_apply_patch.py96 b" def helper():\n"CODE
LOW⚡tests/sandbox/test_apply_patch.py109 b"class Target\n def helper():\n pass\n\n def desired():\n return 1\n"CODE
LOWtests/sandbox/test_apply_patch.py75 b" def helper():\n"CODE
Fake / Example Data16 hits · 12 pts
SeverityFileLineSnippetContext
LOWtests/test_responses_tracing.py54 self.id = "dummy-id"CODE
LOWtests/test_responses_tracing.py110 "response_id": "dummy-id",CODE
LOWtests/test_responses_tracing.py177 "response_id": "dummy-id",CODE
LOWtests/test_responses_tracing.py316 response=model_test_helpers.get_response_obj([], "dummy-id-123"),CODE
LOWtests/test_responses_tracing.py345 "response_id": "dummy-id-123",CODE
LOWtests/test_responses_tracing.py389 self.response = model_test_helpers.get_response_obj([], "dummy-id-terminal")CODE
LOWtests/test_responses_tracing.py464 response=model_test_helpers.get_response_obj([], "dummy-id-123"),CODE
LOWtests/test_responses_tracing.py499 "response_id": "dummy-id-123",CODE
LOWtests/test_responses_tracing.py669 response=model_test_helpers.get_response_obj([], "dummy-id-123"),CODE
LOWtests/test_run_state.py4569 state = make_state(agent, context=context, original_input="placeholder", max_turns=5)CODE
LOWtests/models/test_model_payload_iterators.py87 id="dummy-id",CODE
LOWtests/extensions/sandbox/test_blaxel.py165 def __init__(self, value: str = "fake-token-abc123") -> None:CODE
LOWexamples/basic/tool_guardrails.py31 "name": "John Doe",CODE
LOWexamples/basic/tool_guardrails.py34 "phone": "555-1234",CODE
LOWexamples/basic/tool_guardrails.py45 "phone": "555-1234",CODE
LOWexamples/basic/tool_guardrails.py97 if "555-1234" in output_str:CODE
Over-Commented Block13 hits · 12 pts
SeverityFileLineSnippetContext
LOWdocs/scripts/translate_docs.py261## DO NOT TRANSLATE ##COMMENT
LOWexamples/__init__.py1# Make the examples directory into a package to avoid top-level module name collisions.COMMENT
LOWexamples/basic/lifecycle_example.py181### 11: LLM ended. Usage: 3 requests, 472 input tokens, 45 output tokens, 517 total tokensCOMMENT
LOWexamples/basic/stream_items.py61 # They don't have the guts!COMMENT
LOWexamples/sandbox/memory.py81 "access, report that validation was blocked and finish instead of retrying repeatedly. "COMMENT
LOWexamples/sandbox/memory.py101 # considered during consolidation. Older conversation-specific guidance may be removed fromCOMMENT
LOW.github/dependabot.yml1version: 2COMMENT
LOWsrc/agents/mcp/manager.py181 )COMMENT
LOWsrc/agents/extensions/memory/dapr_session.py401 # guarded by the etag that backed the value that was read.COMMENT
LOWsrc/agents/extensions/sandbox/modal/sandbox.py441 """COMMENT
LOWsrc/agents/run_internal/model_retry.py441COMMENT
LOWsrc/agents/run_internal/session_persistence.py1421 including independently restored RunState copies. Session has no distributed compare-and-swapCOMMENT
LOWsrc/agents/sandbox/sandboxes/docker.py141 spool.write(chunk)COMMENT
AI Slop Vocabulary6 hits · 10 pts
SeverityFileLineSnippetContext
MEDIUMtests/test_code_change_verification_runner.py341 # Keep the orphan alive even when the harness releases its normal exit gate.STRING
LOWtests/test_run_state.py10327 # This should not raise an error, just return empty toolsCOMMENT
MEDIUMtests/mcp/test_tool_filtering.py239 # Role-based filter for comprehensive testingCOMMENT
LOWexamples/customer_service/main.py156 # Here, we'll just use a random UUID for the conversation IDCOMMENT
MEDIUMexamples/mcp/prompt_server/server.py20 return f"""You are a senior {language} code review specialist. Your role is to provide comprehensive code analysis wCODE
LOWsrc/agents/result.py976 # Soft cancel - just set the flagCOMMENT
Verbosity Indicators6 hits · 9 pts
SeverityFileLineSnippetContext
LOWtests/models/test_anthropic_thinking_blocks.py246 # Step 1: Convert message to output itemsCOMMENT
LOWtests/models/test_anthropic_thinking_blocks.py279 # Step 2: Convert output items back to messagesCOMMENT
LOWtests/models/test_anthropic_thinking_blocks.py419 # Step 1: Convert message to output itemsCOMMENT
LOWtests/models/test_anthropic_thinking_blocks.py455 # Step 2: Convert output items back to messages with preserve_thinking_blocks=TrueCOMMENT
LOWtests/models/test_gemini_thought_signatures.py38 # Step 1: Convert to itemsCOMMENT
LOWtests/models/test_gemini_thought_signatures.py53 # Step 2: Convert back to messagesCOMMENT
Structural Annotation Overuse6 hits · 9 pts
SeverityFileLineSnippetContext
LOWtests/models/test_anthropic_thinking_blocks.py246 # Step 1: Convert message to output itemsCOMMENT
LOWtests/models/test_anthropic_thinking_blocks.py279 # Step 2: Convert output items back to messagesCOMMENT
LOWtests/models/test_anthropic_thinking_blocks.py419 # Step 1: Convert message to output itemsCOMMENT
LOWtests/models/test_anthropic_thinking_blocks.py455 # Step 2: Convert output items back to messages with preserve_thinking_blocks=TrueCOMMENT
LOWtests/models/test_gemini_thought_signatures.py38 # Step 1: Convert to itemsCOMMENT
LOWtests/models/test_gemini_thought_signatures.py53 # Step 2: Convert back to messagesCOMMENT
Slop Phrases4 hits · 8 pts
SeverityFileLineSnippetContext
MEDIUMexamples/basic/tool_guardrails.py169❌ Guardrail rejected function tool call: I'm unable to send the email as mentioning ACME Corp. is restricted.STRING
MEDIUMexamples/basic/tool_guardrails.py176❌ Guardrail rejected function tool output: I'm unable to retrieve the contact info for user456 because it contains restrSTRING
MEDIUMexamples/handoffs/message_filter_streaming.py44 # or, you can use the HandoffInputData.clone(kwargs) methodCOMMENT
MEDIUMexamples/handoffs/message_filter.py44 # or, you can use the HandoffInputData.clone(kwargs) methodCOMMENT