AI Slop Code RIsk Monitor

huggingface/smolagents

🤗 smolagents: a barebones library for agents that think in code.

27.8 Elevated pattern signal View on GitHub

Maintenance and Governance Review

This report summarizes scanner evidence for huggingface/smolagents, a Python project with 29,772 GitHub stars. SynthScan examined 46,181 lines of code across 176 source files, recording 805 pattern matches distributed across 20 syntactic categories. The legacy adjusted pattern signal is 27.8 (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.

27.8
Adjusted Signal
27.8
Raw Pattern Score
100%
Time Factor
2026-10-06
Last Push
29.8K
Stars
Python
Language
46.2K
Lines of Code
176
Files
805
Pattern Hits
2026-10-12
Scan Date
0.56
HC Hit Rate

Risk Review · v3

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

Cognitive Ownership Risk 55.4/100 · HIGH

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

Hallucinated Dependency & Supply Chain Risk 7.8/100 · LOW

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

Agent Over-Engineering Ratio 55.5/100 · HIGH

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

PR Review Velocity Impact 79.5/100 · CRITICAL

Which changes need focused human review? 805 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 1HIGH 97MEDIUM 83LOW 624

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

Cross-File Repetition57 hits · 285 pts
SeverityFileLineSnippetContext
HIGHtests/test_models.py0get weather in the next days at given location. secretly this tool does not care about the location, it hates the weatheSTRING
HIGHtests/test_tools.py0get weather in the next days at given location. secretly this tool does not care about the location, it hates the weatheSTRING
HIGHexamples/agent_from_any_llm.py0get weather in the next days at given location. secretly this tool does not care about the location, it hates the weatheSTRING
HIGHtests/test_tools.py0this is a tool that returns the most downloaded model of a given task on the hugging face hub. it returns the name of thSTRING
HIGHdocs/source/zh/tutorials/tools.md0this is a tool that returns the most downloaded model of a given task on the hugging face hub. it returns the name of thSTRING
HIGHdocs/source/hi/tutorials/tools.md0this is a tool that returns the most downloaded model of a given task on the hugging face hub. it returns the name of thSTRING
HIGHdocs/source/en/tutorials/tools.md0this is a tool that returns the most downloaded model of a given task on the hugging face hub. it returns the name of thSTRING
HIGHdocs/source/zh/guided_tour.md0this is a tool that returns the most downloaded model of a given task on the hugging face hub. it returns the name of thSTRING
HIGHdocs/source/hi/guided_tour.md0this is a tool that returns the most downloaded model of a given task on the hugging face hub. it returns the name of thSTRING
HIGHdocs/source/ko/guided_tour.md0this is a tool that returns the most downloaded model of a given task on the hugging face hub. it returns the name of thSTRING
HIGHdocs/source/en/guided_tour.md0this is a tool that returns the most downloaded model of a given task on the hugging face hub. it returns the name of thSTRING
HIGHdocs/source/zh/_config.py0# installation ! pip install smolagents # to install from source instead of the last release, comment the command above STRING
HIGHdocs/source/hi/_config.py0# installation ! pip install smolagents # to install from source instead of the last release, comment the command above STRING
HIGHdocs/source/ko/_config.py0# installation ! pip install smolagents # to install from source instead of the last release, comment the command above STRING
HIGHdocs/source/es/_config.py0# installation ! pip install smolagents # to install from source instead of the last release, comment the command above STRING
HIGHdocs/source/en/_config.py0# installation ! pip install smolagents # to install from source instead of the last release, comment the command above STRING
HIGHdocs/source/zh/examples/web_browser.md0searches for text on the current page via ctrl + f and jumps to the nth occurrence. args: text: the text to search for nSTRING
HIGHdocs/source/en/examples/web_browser.md0searches for text on the current page via ctrl + f and jumps to the nth occurrence. args: text: the text to search for nSTRING
HIGHsrc/smolagents/vision_web_browser.py0searches for text on the current page via ctrl + f and jumps to the nth occurrence. args: text: the text to search for nSTRING
HIGHdocs/source/zh/examples/web_browser.md0closes any visible modal or pop-up on the page. use this to dismiss pop-up windows! this does not work on cookie consentSTRING
HIGHdocs/source/ko/examples/web_browser.md0closes any visible modal or pop-up on the page. use this to dismiss pop-up windows! this does not work on cookie consentSTRING
HIGHdocs/source/en/examples/web_browser.md0closes any visible modal or pop-up on the page. use this to dismiss pop-up windows! this does not work on cookie consentSTRING
HIGHsrc/smolagents/vision_web_browser.py0closes any visible modal or pop-up on the page. use this to dismiss pop-up windows! this does not work on cookie consentSTRING
HIGHdocs/source/zh/examples/web_browser.md0you can use helium to access websites. don't bother about the helium driver, it's already managed. we've already ran "frSTRING
HIGHdocs/source/ko/examples/web_browser.md0you can use helium to access websites. don't bother about the helium driver, it's already managed. we've already ran "frSTRING
HIGHdocs/source/en/examples/web_browser.md0you can use helium to access websites. don't bother about the helium driver, it's already managed. we've already ran "frSTRING
HIGHdocs/source/zh/examples/web_browser.md0please navigate to https://en.wikipedia.org/wiki/chicago and give me a sentence containing the word "1992" that mentionsSTRING
HIGHdocs/source/ko/examples/web_browser.md0please navigate to https://en.wikipedia.org/wiki/chicago and give me a sentence containing the word "1992" that mentionsSTRING
HIGHdocs/source/en/examples/web_browser.md0please navigate to https://en.wikipedia.org/wiki/chicago and give me a sentence containing the word "1992" that mentionsSTRING
HIGHsrc/smolagents/vision_web_browser.py0please navigate to https://en.wikipedia.org/wiki/chicago and give me a sentence containing the word "1992" that mentionsSTRING
HIGHdocs/source/zh/examples/web_browser.md0i'm trying to find how hard i have to work to get a repo in github.com/trending. can you navigate to the profile for theSTRING
HIGHdocs/source/ko/examples/web_browser.md0i'm trying to find how hard i have to work to get a repo in github.com/trending. can you navigate to the profile for theSTRING
HIGHdocs/source/en/examples/web_browser.md0i'm trying to find how hard i have to work to get a repo in github.com/trending. can you navigate to the profile for theSTRING
HIGHsrc/smolagents/vision_web_browser.py0i'm trying to find how hard i have to work to get a repo in github.com/trending. can you navigate to the profile for theSTRING
HIGHdocs/source/zh/examples/multiagents.md0visits a webpage at the given url and returns its content as a markdown string. args: url: the url of the webpage to visSTRING
HIGHdocs/source/hi/examples/multiagents.md0visits a webpage at the given url and returns its content as a markdown string. args: url: the url of the webpage to visSTRING
HIGHdocs/source/en/examples/multiagents.md0visits a webpage at the given url and returns its content as a markdown string. args: url: the url of the webpage to visSTRING
HIGHdocs/source/zh/examples/text_to_sql.md0allows you to perform sql queries on the table. returns a string representation of the result. the table is named 'receiSTRING
HIGHdocs/source/hi/examples/text_to_sql.md0allows you to perform sql queries on the table. returns a string representation of the result. the table is named 'receiSTRING
HIGHdocs/source/en/examples/text_to_sql.md0allows you to perform sql queries on the table. returns a string representation of the result. the table is named 'receiSTRING
HIGHexamples/text_to_sql.py0allows you to perform sql queries on the table. returns a string representation of the result. the table is named 'receiSTRING
HIGHdocs/source/zh/examples/text_to_sql.md0allows you to perform sql queries on the table. beware that this tool's output is a string representation of the executiSTRING
HIGHdocs/source/hi/examples/text_to_sql.md0allows you to perform sql queries on the table. beware that this tool's output is a string representation of the executiSTRING
HIGHdocs/source/ko/examples/text_to_sql.md0allows you to perform sql queries on the table. beware that this tool's output is a string representation of the executiSTRING
HIGHdocs/source/en/examples/text_to_sql.md0allows you to perform sql queries on the table. beware that this tool's output is a string representation of the executiSTRING
HIGHdocs/source/zh/tutorials/building_good_agents.md0returns the weather report. args: location: the name of the place that you want the weather for. date_time: the date andSTRING
HIGHdocs/source/hi/tutorials/building_good_agents.md0returns the weather report. args: location: the name of the place that you want the weather for. date_time: the date andSTRING
HIGHdocs/source/ko/tutorials/building_good_agents.md0returns the weather report. args: location: the name of the place that you want the weather for. date_time: the date andSTRING
HIGHdocs/source/en/tutorials/building_good_agents.md0returns the weather report. args: location: the name of the place that you want the weather for. date_time: the date andSTRING
HIGHdocs/source/zh/tutorials/building_good_agents.md0returns the weather report. args: location: the name of the place that you want the weather for. should be a place name,STRING
HIGHdocs/source/hi/tutorials/building_good_agents.md0returns the weather report. args: location: the name of the place that you want the weather for. should be a place name,STRING
HIGHdocs/source/ko/tutorials/building_good_agents.md0returns the weather report. args: location: the name of the place that you want the weather for. should be a place name,STRING
HIGHdocs/source/en/tutorials/building_good_agents.md0returns the weather report. args: location: the name of the place that you want the weather for. should be a place name,STRING
HIGHdocs/source/ko/tutorials/building_good_agents.md0{{ agent.description }} args: task: long detailed description of the task. additional_args: dictionary of extra inputs tSTRING
HIGHdocs/source/en/tutorials/building_good_agents.md0{{ agent.description }} args: task: long detailed description of the task. additional_args: dictionary of extra inputs tSTRING
HIGHsrc/smolagents/prompts/code_agent.yaml0{{ agent.description }} args: task: long detailed description of the task. additional_args: dictionary of extra inputs tSTRING
HIGHsrc/smolagents/prompts/structured_code_agent.yaml0{{ agent.description }} args: task: long detailed description of the task. additional_args: dictionary of extra inputs tSTRING
Hyper-Verbose Identifiers373 hits · 281 pts
SeverityFileLineSnippetContext
LOW⚡tests/test_remote_executors.py28 def test_send_tools_empty_tools(self):CODE
LOW⚡tests/test_remote_executors.py36 def test_send_variables_with_empty_dict_is_noop(self):CODE
LOW⚡tests/test_remote_executors.py42 def test_send_variables_non_empty_generates_executable_deserializer_code(self):CODE
LOWtests/test_remote_executors.py61 def test_send_variables_allow_pickle_handles_prefixed_payload(self):CODE
LOWtests/test_remote_executors.py75 def test_deserialize_final_answer_rejects_unprefixed_payload(self):CODE
LOWtests/test_remote_executors.py80 def test_send_tools_with_default_wikipedia_search_tool(self):CODE
LOWtests/test_remote_executors.py190 def test_final_answer_patterns(self, code_action, expected_result):STRING
LOWtests/test_remote_executors.py209 def test_custom_final_answer_with_custom_inputs(self):STRING
LOWtests/test_remote_executors.py285 def test_execute_multiline_output(self):STRING
LOWtests/test_remote_executors.py292 def test_execute_image_output(self):STRING
LOWtests/test_remote_executors.py305 def test_syntax_error_handling(self):STRING
LOWtests/test_remote_executors.py344 def test_final_answer_patterns(self, code_action, expected_result):STRING
LOWtests/test_remote_executors.py363 def test_custom_final_answer_with_custom_inputs(self):STRING
LOWtests/test_remote_executors.py478 def test_blaxel_executor_instantiation_without_blaxel_sdk(self):STRING
LOWtests/test_remote_executors.py489 def test_blaxel_executor_instantiation_with_blaxel_sdk(STRING
LOWtests/test_remote_executors.py531 def test_blaxel_executor_custom_parameters(STRING
LOWtests/test_remote_executors.py578 def test_blaxel_executor_cleanup(self, mock_settings, mock_sandbox_instance, mock_create_kernel):STRING
LOW⚡tests/test_utils.py168def test_get_source_standard_class():CODE
LOW⚡tests/test_utils.py176def test_get_source_standard_function():CODE
LOW⚡tests/test_utils.py184def test_get_source_ipython_errors_empty_cells(ipython_shell):CODE
LOW⚡tests/test_utils.py192def test_get_source_ipython_errors_definition_not_found(ipython_shell):CODE
LOW⚡tests/test_utils.py200def test_get_source_ipython_errors_type_error():CODE
LOWtests/test_utils.py467def test_parse_json_blob_with_valid_json(raw_json, expected_data, expected_blob):CODE
LOWtests/test_utils.py484def test_parse_json_blob_with_invalid_json(raw_json):CODE
LOWtests/test_utils.py520def test_agent_gradio_app_template_excludes_class_keyword():CODE
LOWtests/conftest.py16def patch_multi_step_agent_with_suppressed_logging():CODE
LOWtests/conftest.py19 def init_with_suppressed_logging(self, *args, verbosity_level=LogLevel.OFF, **kwargs):CODE
LOWtests/test_function_type_hints_utils.py207def complex_docstring_types_func():CODE
LOWtests/test_function_type_hints_utils.py224def keywords_in_description_func():CODE
LOWtests/test_function_type_hints_utils.py241 def test_get_json_schema_example(self):CODE
LOWtests/test_function_type_hints_utils.py298 def test_get_json_schema_raises(self, request, fixture_name, should_fail):CODE
LOWtests/test_function_type_hints_utils.py319 def test_schema_basic_structure(self, valid_func):CODE
LOWtests/test_function_type_hints_utils.py395 def test_typed_docstring_parsing(self, typed_docstring_func):CODE
LOWtests/test_function_type_hints_utils.py414 def test_mismatched_docstring_types(self, mismatched_types_func):CODE
LOWtests/test_function_type_hints_utils.py422 def test_complex_docstring_types(self, complex_docstring_types_func):CODE
LOWtests/test_function_type_hints_utils.py442 def test_type_in_description_handling(self, request, fixture_name, expected_description):CODE
LOWtests/test_function_type_hints_utils.py450 def test_with_special_words_in_description_func(self, keywords_in_description_func):CODE
LOWtests/test_mcp_client.py29def structured_output_server_script():CODE
LOWtests/test_mcp_client.py55def test_mcp_client_with_syntax(echo_server_script: str):CODE
LOWtests/test_mcp_client.py64def test_mcp_client_with_structured_output(structured_output_server_script: str):CODE
LOWtests/test_mcp_client.py87def test_mcp_client_without_structured_output(structured_output_server_script: str):CODE
LOWtests/test_mcp_client.py105def test_mcp_client_try_finally_syntax(echo_server_script: str):CODE
LOWtests/test_import.py6def test_import_smolagents_without_extras(monkeypatch):CODE
LOWtests/test_monitoring.py66 def test_code_agent_metrics_max_steps(self):CODE
LOWtests/test_monitoring.py86 def test_code_agent_metrics_generation_error(self):CODE
LOWtests/test_monitoring.py100 def test_streaming_agent_text_output(self):CODE
LOWtests/test_monitoring.py119 def test_streaming_agent_image_output(self):CODE
LOWtests/test_monitoring.py156 def test_streaming_with_agent_error(self):CODE
LOWtests/test_monitoring.py190 def test_replay_with_chatmessage(self):CODE
LOWtests/test_monitoring.py205 def test_logger_log_task_does_not_crash_on_stray_markup_or_control_chars(self):CODE
LOWtests/test_monitoring.py228 def test_logger_log_task_accepts_non_string_payloads(self):CODE
LOWtests/test_gradio_ui.py43 def test_upload_file_default_types(self):CODE
LOWtests/test_gradio_ui.py57 def test_upload_file_default_types_disallowed(self):CODE
LOWtests/test_gradio_ui.py90 def test_upload_file_invalid_type(self):CODE
LOWtests/test_gradio_ui.py101 def test_upload_file_special_chars(self):CODE
LOWtests/test_gradio_ui.py122 def test_upload_file_custom_types(self):CODE
LOWtests/test_gradio_ui.py138 def test_stream_to_gradio_memory_step(self, mock_pull_messages):CODE
LOWtests/test_gradio_ui.py153 def test_stream_to_gradio_stream_delta(self):CODE
LOWtests/test_gradio_ui.py165 def test_stream_to_gradio_multiple_deltas(self):CODE
LOWtests/test_gradio_ui.py188 def test_stream_to_gradio_parameters(self, task, task_images, reset_memory, additional_args):CODE
313 more matches not shown…
Modern AI Meta-Vocabulary37 hits · 130 pts
SeverityFileLineSnippetContext
MEDIUM⚡README.md256## How strong are open models for agentic workflows?COMMENT
MEDIUM⚡README.md260[Find the benchmarking code here](https://github.com/huggingface/smolagents/blob/main/examples/smolagents_benchmark/run.CODE
MEDIUM⚡README.md263 <img src="https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/smolagents/benchmark_code_agCODE
MEDIUMdocs/source/zh/examples/rag.md1# Agentic RAGCOMMENT
MEDIUMdocs/source/zh/examples/multiagents.md1# 编排 multi-agent 系统 🤖🤝🤖COMMENT
MEDIUMdocs/source/zh/examples/multiagents.md103## 构建我们的 multi-agent 系统 🤖🤝🤖COMMENT
MEDIUMdocs/source/hi/guided_tour.md76 model_id="ollama_chat/llama3.2", # This model is a bit weak for agentic behaviours thoughCODE
MEDIUMdocs/source/hi/examples/rag.md1# एजेंटिक RAGCOMMENT
MEDIUMdocs/source/ko/guided_tour.md185 model_id="ollama_chat/llama3.2", # This model is a bit weak for agentic behaviours thoughCODE
MEDIUM⚡docs/source/ko/examples/rag.md1# Agentic RAG[[agentic-rag]]COMMENT
MEDIUM⚡docs/source/ko/examples/rag.md1# Agentic RAG[[agentic-rag]]COMMENT
MEDIUM⚡docs/source/ko/examples/rag.md5## RAG(검색 증강 생성) 소개[[introduction-to-retrieval-augmented-generation-rag]]COMMENT
MEDIUM⚡docs/source/ko/examples/rag.md28## Agentic RAG: 더 강력한 접근 방식[[agentic-rag-a-more-powerful-approach]]COMMENT
MEDIUM⚡docs/source/ko/examples/rag.md28## Agentic RAG: 더 강력한 접근 방식[[agentic-rag-a-more-powerful-approach]]COMMENT
MEDIUM⚡docs/source/ko/examples/rag.md32### Agentic RAG의 주요 장점[[key-benefits-of-agentic-rag]]COMMENT
MEDIUMdocs/source/ko/examples/rag.md45## Agentic RAG 시스템 구축하기[[building-an-agentic-rag-system]]COMMENT
MEDIUMdocs/source/ko/examples/rag.md45## Agentic RAG 시스템 구축하기[[building-an-agentic-rag-system]]COMMENT
MEDIUMdocs/source/ko/examples/rag.md187## Agentic RAG의 실제 적용 사례[[practical-applications-of-agentic-rag]]COMMENT
MEDIUMdocs/source/ko/tutorials/building_good_agents.md12### 최고의 에이전트 시스템은 가장 단순합니다: 워크플로우를 최대한 단순하게 만드세요[[the-best-agentic-systems-are-the-simplest:-simplify-the-workflow-as-muCOMMENT
MEDIUM⚡docs/source/es/_toctree.yml32# title: Master your knowledge base with agentic RAGCOMMENT
MEDIUM⚡docs/source/es/_toctree.yml32# title: Master your knowledge base with agentic RAGCOMMENT
MEDIUM⚡docs/source/es/_toctree.yml34# title: Orchestrate a multi-agent systemCOMMENT
MEDIUMdocs/source/en/guided_tour.md198 model_id="ollama_chat/llama3.2", # This model is a bit weak for agentic behaviours thoughCODE
MEDIUMdocs/source/en/conceptual_guides/intro_agents.md3## An introduction to agentic systems.COMMENT
MEDIUM⚡docs/source/en/examples/rag.md1# Agentic RAGCOMMENT
MEDIUM⚡docs/source/en/examples/rag.md5## Introduction to Retrieval-Augmented Generation (RAG)COMMENT
MEDIUM⚡docs/source/en/examples/rag.md9### Why Use RAG?COMMENT
MEDIUM⚡docs/source/en/examples/rag.md19### Limitations of Traditional RAGCOMMENT
MEDIUM⚡docs/source/en/examples/rag.md28## Agentic RAG: A More Powerful ApproachCOMMENT
MEDIUM⚡docs/source/en/examples/rag.md32### Key Benefits of Agentic RAGCOMMENT
MEDIUMdocs/source/en/examples/rag.md45## Building an Agentic RAG SystemCOMMENT
MEDIUMdocs/source/en/examples/rag.md187## Practical Applications of Agentic RAGCOMMENT
MEDIUMdocs/source/en/examples/multiagents.md1# Orchestrate a multi-agent system 🤖🤝🤖COMMENT
MEDIUMdocs/source/en/examples/multiagents.md100## Build our multi-agent system 🤖🤝🤖COMMENT
MEDIUMdocs/source/en/tutorials/secure_code_execution.md472### Approach 2: Running the entire agentic system in a sandboxSTRING
MEDIUMdocs/source/en/tutorials/building_good_agents.md12### The best agentic systems are the simplest: simplify the workflow as much as you canCOMMENT
MEDIUMexamples/inspect_multiagent_run.py18# Then we run the agentic part!COMMENT
Self-Referential Comments38 hits · 125 pts
SeverityFileLineSnippetContext
MEDIUMtests/test_import.py9 # Create a virtual environmentCOMMENT
MEDIUMtests/test_gradio_ui.py104 # Create a new temporary file with special charactersCOMMENT
MEDIUMtests/test_local_python_executor.py588 # Create a generator expression that filters an infinite sequenceSTRING
MEDIUMtests/test_models.py445 # Create a mock response for successful callCOMMENT
MEDIUMtests/test_models.py455 # Create a 429 rate limit errorCOMMENT
MEDIUMtests/test_models.py570 # Create a mock response that contains a stop sequence in the middleCOMMENT
MEDIUM⚡tests/test_memory.py238 # Create a mock ChatCompletion-like object (this is what was causing the error)COMMENT
MEDIUM⚡tests/test_memory.py244 # Create a ChatMessage with raw field containing the non-serializable objectCOMMENT
MEDIUM⚡tests/test_serialization.py799 # Create an object that needs pickleCOMMENT
MEDIUMtests/test_serialization.py666 # Create a simple test imageCOMMENT
MEDIUM⚡tests/test_tools.py616 # Define a test function with type hints and docstringCOMMENT
MEDIUMtests/test_tools.py102 # Define a tool class with the test type valueCOMMENT
MEDIUMtests/test_tools.py631 # Create a tool from the functionCOMMENT
MEDIUMtests/test_tools.py1038 # Create a tool with the appropriate signatureCOMMENT
MEDIUMtests/test_all_docs.py171 # Initialize the class if neededCOMMENT
MEDIUM⚡tests/test_agents.py1006 # Create a simple agent with mocked modelCOMMENT
MEDIUM⚡tests/test_agents.py1548 # Create a managed agentCOMMENT
MEDIUM⚡tests/test_agents.py1553 # Create a main agent with the managed agentCOMMENT
MEDIUMtests/test_agents.py1092 # Create a dummy agentCOMMENT
MEDIUMtests/test_agents.py1117 # Create a test agent with a list of callbacksCOMMENT
MEDIUMtests/test_agents.py1497 # Create a test agent dictionaryCOMMENT
MEDIUMtests/test_agents.py1616 # Create a valid agent firstCOMMENT
MEDIUMtests/test_agents.py2066 # Create a ToolCallingAgent instance with the test toolCOMMENT
MEDIUMtests/test_agents.py2070 # Create a memory step for process_tool_callsCOMMENT
MEDIUMtests/test_agents.py2285 # Create a test agent dictionaryCOMMENT
MEDIUMexamples/open_deep_research/scripts/cookies.py710# Create a RequestsCookieJar instanceCOMMENT
MEDIUMexamples/open_deep_research/scripts/mdconvert.py644 # Create the extraction directory if it doesn't existCOMMENT
MEDIUM⚡examples/server/main.py9# Create an MCP client to connect to the MCP serverCOMMENT
MEDIUM⚡examples/server/main.py16# Create a CodeAgent with a specific model and the tools from the MCP clientCOMMENT
MEDIUM⚡examples/server/main.py23# Define the shutdown handler to disconnect the MCP clientCOMMENT
MEDIUMexamples/plan_customization/plan_customization.py115 # Define a task that will benefit from planningCOMMENT
MEDIUMexamples/async_agent/main.py17# Create a simple agent instance (customize as needed)COMMENT
MEDIUMsrc/smolagents/vision_web_browser.py77 memory_step.observations_images = [image.copy()] # Create a copy to ensure it persists, important!STRING
MEDIUMsrc/smolagents/gradio_ui.py119 # Create the tool call messageCOMMENT
MEDIUMsrc/smolagents/local_python_executor.py307 # Create a new ThreadPoolExecutor for each call to avoid threading issuesCOMMENT
MEDIUMsrc/smolagents/local_python_executor.py1638 # Define the actual execution logicCOMMENT
MEDIUMsrc/smolagents/remote_executors.py158 # Create a new class that inherits from the original FinalAnswerToolCOMMENT
MEDIUMsrc/smolagents/remote_executors.py926 # Create the sandboxCOMMENT
Empty Error Handlers18 hits · 90 pts
SeverityFileLineSnippetContext
HIGHexamples/open_deep_research/scripts/text_web_browser.py304except NameError:CODE
HIGHexamples/open_deep_research/scripts/mdconvert.py274except Exception:CODE
HIGHexamples/open_deep_research/scripts/mdconvert.py992except FileNotFoundError:CODE
HIGHexamples/open_deep_research/scripts/mdconvert.py994except IsADirectoryError:CODE
HIGHexamples/open_deep_research/scripts/mdconvert.py996except PermissionError:CODE
HIGHexamples/open_deep_research/scripts/mdconvert.py318except Exception:CODE
HIGHexamples/open_deep_research/scripts/mdconvert.py864except Exception:CODE
HIGHexamples/open_deep_research/scripts/mdconvert.py921except Exception:CODE
HIGHexamples/open_deep_research/scripts/mdconvert.py443except Exception:CODE
HIGHsrc/smolagents/utils.py221except SyntaxError:CODE
HIGHsrc/smolagents/utils.py151except json.JSONDecodeError:CODE
HIGHsrc/smolagents/agent_types.py279except ModuleNotFoundError:CODE
HIGHsrc/smolagents/agent_types.py105except ModuleNotFoundError:CODE
HIGHsrc/smolagents/remote_executors.py49except ModuleNotFoundError:CODE
HIGHsrc/smolagents/remote_executors.py1075except Exception:CODE
HIGHsrc/smolagents/remote_executors.py212except ImportError:CODE
HIGHsrc/smolagents/remote_executors.py241except ImportError:CODE
HIGHsrc/smolagents/_function_type_hints_utils.py429except ModuleNotFoundError:CODE
Docstring Block Structure14 hits · 70 pts
SeverityFileLineSnippetContext
HIGHexamples/multiple_tools.py53 Converts a specified amount from one currency to another using the ExchangeRate-API. Args: amount: TheSTRING
HIGHexamples/multiple_tools.py149 Fetches the current time for a given location using the World Time API. Args: location: The location foSTRING
HIGHexamples/multiple_tools.py196 Fetches a summary of a Wikipedia page for a given query. Args: query: The search term to look up on WikSTRING
HIGHsrc/smolagents/models.py561Process the input messages and return the model's response. Parameters: messages (`list[dict[str, sSTRING
HIGHsrc/smolagents/models.py861A class that uses Hugging Face's Transformers library for language model interaction. This model allows you to loadSTRING
HIGHsrc/smolagents/models.py1457A class to interact with Hugging Face's Inference Providers for language model interaction. This model allows you tSTRING
HIGHsrc/smolagents/models.py1860 A model class for interacting with Amazon Bedrock Server models through the Bedrock API. This class provides aSTRING
HIGHsrc/smolagents/tools.py607 Creates a [`Tool`] from a Space given its id on the Hub. Args: space_id (`str`): STRING
HIGHsrc/smolagents/utils.py199Extract code blocs from the LLM's output. If a valid code block is passed, it returns it directly. Args: STRING
HIGHsrc/smolagents/remote_executors.py308Deserialize final answer with format detection. Accepts explicit prefix-based formats only: - "safe:" fSTRING
HIGHsrc/smolagents/serialization.py77Convert Python objects to JSON-serializable format with type markers. Args: obj: Object to convert.STRING
HIGHsrc/smolagents/serialization.py253 Serialize object to string. Args: obj: Object to serialize allow_pickle: If FaSTRING
HIGHsrc/smolagents/serialization.py296 Deserialize string with format detection. Args: data: Serialized string (with "safe:" or "STRING
HIGHsrc/smolagents/_function_type_hints_utils.py98 This function generates a JSON schema for a given function, based on its docstring and type hints. This is mostSTRING
Excessive Try-Catch Wrapping70 hits · 70 pts
SeverityFileLineSnippetContext
MEDIUMtests/test_local_python_executor.py2228def run_in_thread():CODE
LOW⚡tests/test_local_python_executor.py1415 except Exception as e:STRING
LOWtests/test_local_python_executor.py2245 except Exception as e:STRING
LOWtests/test_local_python_executor.py2788 except Exception as e:STRING
MEDIUMtests/test_serialization.py907def serialize_data(data, index):CODE
LOWtests/test_serialization.py912 except Exception as e:CODE
LOWtests/test_all_docs.py153 except Exception:CODE
LOWdocs/source/zh/examples/multiagents.md93 except Exception as e:CODE
LOWdocs/source/zh/tutorials/building_good_agents.md95 except Exception as e:CODE
LOWdocs/source/hi/examples/multiagents.md92 except Exception as e:CODE
LOWdocs/source/hi/tutorials/building_good_agents.md96 except Exception as e:CODE
LOWdocs/source/ko/examples/multiagents.md90 except Exception as e:CODE
LOWdocs/source/ko/tutorials/building_good_agents.md95 except Exception as e:CODE
LOWdocs/source/en/examples/multiagents.md90 except Exception as e:CODE
LOWdocs/source/en/tutorials/secure_code_execution.md73 except Exception as e:CODE
LOWdocs/source/en/tutorials/secure_code_execution.md402 except Exception as e:STRING
MEDIUMdocs/source/en/tutorials/secure_code_execution.md403 print(f"Error during cleanup: {e}")STRING
LOWdocs/source/en/tutorials/building_good_agents.md95 except Exception as e:CODE
LOWexamples/smolagents_benchmark/run.py166 except Exception as e:CODE
MEDIUMexamples/smolagents_benchmark/run.py167 print("Error on ", augmented_question, e)CODE
LOWexamples/open_deep_research/run_gaia.py244 except Exception as e:STRING
MEDIUMexamples/open_deep_research/run_gaia.py245 print("Error on ", augmented_question, e)STRING
LOWexamples/open_deep_research/run_gaia.py280 except Exception as e:STRING
MEDIUMexamples/open_deep_research/run_gaia.py281 print("Error when loading records: ", e)STRING
LOWexamples/open_deep_research/scripts/reformulator.py37 except Exception:CODE
MEDIUM⚡examples/open_deep_research/scripts/mdconvert.py915 print(f"Error in converting: {e}")CODE
LOW⚡examples/open_deep_research/scripts/mdconvert.py914 except Exception as e:CODE
LOW⚡examples/open_deep_research/scripts/mdconvert.py921 except Exception:CODE
LOWexamples/open_deep_research/scripts/mdconvert.py274 except Exception:CODE
LOWexamples/open_deep_research/scripts/mdconvert.py318 except Exception:CODE
LOWexamples/open_deep_research/scripts/mdconvert.py443 except Exception:CODE
LOWexamples/open_deep_research/scripts/mdconvert.py514 except Exception:CODE
LOWexamples/open_deep_research/scripts/mdconvert.py553 except Exception:CODE
LOWexamples/open_deep_research/scripts/mdconvert.py618 except Exception:CODE
LOWexamples/open_deep_research/scripts/mdconvert.py864 except Exception:CODE
LOWexamples/open_deep_research/scripts/mdconvert.py950 except Exception:CODE
LOWexamples/open_deep_research/scripts/visual_qa.py127 except Exception as e:CODE
LOWexamples/open_deep_research/scripts/visual_qa.py183 except Exception:CODE
LOWexamples/plan_customization/plan_customization.py132 except Exception as e:CODE
LOWexamples/plan_customization/plan_customization.py159 except Exception as resume_error:CODE
LOWexamples/async_agent/main.py41 except Exception as e:CODE
LOWsrc/smolagents/models.py199 except Exception:CODE
LOWsrc/smolagents/models.py404 except Exception as e:CODE
LOWsrc/smolagents/models.py974 except Exception as e:CODE
LOWsrc/smolagents/local_python_executor.py1169 except Exception as e:CODE
LOWsrc/smolagents/local_python_executor.py1254 except Exception as e:CODE
LOWsrc/smolagents/local_python_executor.py1262 except Exception as exit_exc:CODE
LOWsrc/smolagents/local_python_executor.py1655 except Exception as e:CODE
LOWsrc/smolagents/agents.py106 except Exception as e:CODE
LOWsrc/smolagents/agents.py617 except Exception as e:CODE
LOWsrc/smolagents/agents.py803 except Exception:CODE
LOWsrc/smolagents/agents.py849 except Exception as e:CODE
LOWsrc/smolagents/agents.py1324 except Exception as e:CODE
LOWsrc/smolagents/agents.py1330 except Exception as e:CODE
LOWsrc/smolagents/agents.py1479 except Exception as e:CODE
LOWsrc/smolagents/agents.py1490 except Exception as e:CODE
LOWsrc/smolagents/agents.py1699 except Exception as e:CODE
LOWsrc/smolagents/agents.py1711 except Exception as e:CODE
LOWsrc/smolagents/agents.py1734 except Exception as e:CODE
LOWsrc/smolagents/cli.py140 except Exception:CODE
10 more matches not shown…
Deep Nesting68 hits · 53 pts
SeverityFileLineSnippetContext
LOWtests/test_tools.py64CODE
LOWtests/test_tools.py65CODE
LOWtests/test_agents.py1387CODE
LOWexamples/smolagents_benchmark/run.py188CODE
LOWexamples/open_deep_research/scripts/gaia_scorer.py34CODE
LOWexamples/open_deep_research/scripts/text_web_browser.py55CODE
LOWexamples/open_deep_research/scripts/text_web_browser.py263CODE
LOWexamples/open_deep_research/scripts/run_agents.py72CODE
LOWexamples/open_deep_research/scripts/mdconvert.py237CODE
LOWexamples/open_deep_research/scripts/mdconvert.py337CODE
LOWexamples/open_deep_research/scripts/mdconvert.py420CODE
LOWexamples/open_deep_research/scripts/mdconvert.py927CODE
LOWexamples/plan_customization/plan_customization.py62CODE
LOWexamples/plan_customization/plan_customization.py100CODE
LOWsrc/smolagents/gradio_ui.py378CODE
LOWsrc/smolagents/models.py220CODE
LOWsrc/smolagents/models.py288CODE
LOWsrc/smolagents/models.py332CODE
LOWsrc/smolagents/models.py1309CODE
LOWsrc/smolagents/models.py1591CODE
LOWsrc/smolagents/models.py1707CODE
LOWsrc/smolagents/memory.py248CODE
LOWsrc/smolagents/local_python_executor.py156CODE
LOWsrc/smolagents/local_python_executor.py396CODE
LOWsrc/smolagents/local_python_executor.py540CODE
LOWsrc/smolagents/local_python_executor.py638CODE
LOWsrc/smolagents/local_python_executor.py730CODE
LOWsrc/smolagents/local_python_executor.py794CODE
LOWsrc/smolagents/local_python_executor.py825CODE
LOWsrc/smolagents/local_python_executor.py941CODE
LOWsrc/smolagents/local_python_executor.py962CODE
LOWsrc/smolagents/local_python_executor.py1026CODE
LOWsrc/smolagents/local_python_executor.py1159CODE
LOWsrc/smolagents/local_python_executor.py1236CODE
LOWsrc/smolagents/local_python_executor.py1309CODE
LOWsrc/smolagents/local_python_executor.py1380CODE
LOWsrc/smolagents/local_python_executor.py1417CODE
LOWsrc/smolagents/local_python_executor.py645CODE
LOWsrc/smolagents/tools.py1361CODE
LOWsrc/smolagents/tools.py144CODE
LOWsrc/smolagents/tool_validation.py157CODE
LOWsrc/smolagents/tool_validation.py49CODE
LOWsrc/smolagents/tool_validation.py80CODE
LOWsrc/smolagents/tool_validation.py90CODE
LOWsrc/smolagents/tool_validation.py190CODE
LOWsrc/smolagents/agents.py294CODE
LOWsrc/smolagents/agents.py416CODE
LOWsrc/smolagents/agents.py436CODE
LOWsrc/smolagents/agents.py540CODE
LOWsrc/smolagents/agents.py639CODE
LOWsrc/smolagents/agents.py1276CODE
LOWsrc/smolagents/agents.py1638CODE
LOWsrc/smolagents/cli.py188CODE
LOWsrc/smolagents/utils.py140CODE
LOWsrc/smolagents/utils.py551CODE
LOWsrc/smolagents/default_tools.py387CODE
LOWsrc/smolagents/default_tools.py408CODE
LOWsrc/smolagents/agent_types.py79CODE
LOWsrc/smolagents/agent_types.py181CODE
LOWsrc/smolagents/remote_executors.py481CODE
8 more matches not shown…
Magic Placeholder Names8 hits · 40 pts
SeverityFileLineSnippetContext
HIGHdocs/source/zh/guided_tour.md89 api_key="YOUR_API_KEY" # 如果需要可以替换为 API keyCODE
HIGHdocs/source/hi/guided_tour.md78 api_key="YOUR_API_KEY" # replace with API key if necessaryCODE
HIGHdocs/source/ko/guided_tour.md187 api_key="YOUR_API_KEY", # replace with API key if necessaryCODE
HIGHdocs/source/en/guided_tour.md200 api_key="YOUR_API_KEY", # replace with API key if necessaryCODE
HIGHexamples/agent_from_any_llm.py29 api_key="your-api-key", # replace with API key if necessaryCODE
HIGHexamples/multiple_tools.py27 api_key = "your_api_key" # Replace with your API key from https://weatherstack.com/CODE
HIGHexamples/multiple_tools.py67 api_key = "your_api_key" # Replace with your actual API key from https://www.exchangerate-api.com/CODE
HIGHexamples/multiple_tools.py98 api_key = "your_api_key" # Replace with your actual API key from https://newsapi.org/CODE
Over-Commented Block39 hits · 36 pts
SeverityFileLineSnippetContext
LOWe2b.toml1# This is a config for E2B sandbox template.COMMENT
LOWtests/test_utils.py1# coding=utf-8COMMENT
LOWtests/test_function_type_hints_utils.py1# coding=utf-8COMMENT
LOWtests/test_search.py1# coding=utf-8COMMENT
LOWtests/test_monitoring.py1# coding=utf-8COMMENT
LOWtests/test_gradio_ui.py1# coding=utf-8COMMENT
LOWtests/test_local_python_executor.py1# coding=utf-8COMMENT
LOWtests/test_default_tools.py1# coding=utf-8COMMENT
LOWtests/test_final_answer.py1# coding=utf-8COMMENT
LOWtests/test_models.py1# coding=utf-8COMMENT
LOWtests/test_serialization.py1#!/usr/bin/env pythonCOMMENT
LOWtests/test_tools.py1# coding=utf-8COMMENT
LOWtests/test_telemetry.py1# coding=utf-8COMMENT
LOWtests/test_all_docs.py1# coding=utf-8COMMENT
LOWtests/test_agents.py1# coding=utf-8COMMENT
LOWtests/test_types.py1# coding=utf-8COMMENT
LOWtests/utils/markers.py1# coding=utf-8COMMENT
LOWdocs/source/es/_toctree.yml1- title: Primeros PasosCOMMENT
LOWdocs/source/es/_toctree.yml21# - title: Conceptual guidesCOMMENT
LOWdocs/source/es/_toctree.yml41# - local: examples/async_agentCOMMENT
LOWexamples/rag_using_chromadb.py21knowledge_base = datasets.load_dataset("m-ric/huggingface_doc", split="train")COMMENT
LOWexamples/structured_output_tool.py1# How to run with uv:COMMENT
LOWexamples/multiple_tools.py221# If you want to use the ToolCallingAgent instead, uncomment the following lines as they both will workCOMMENT
LOWexamples/open_deep_research/scripts/reformulator.py81 # """.strip()}]})COMMENT
LOWsrc/smolagents/gradio_ui.py1#!/usr/bin/env pythonCOMMENT
LOWsrc/smolagents/models.py1# Copyright 2024 The HuggingFace Inc. team. All rights reserved.COMMENT
LOWsrc/smolagents/local_python_executor.py1#!/usr/bin/env pythonCOMMENT
LOWsrc/smolagents/monitoring.py1#!/usr/bin/env pythonCOMMENT
LOWsrc/smolagents/tools.py1#!/usr/bin/env pythonCOMMENT
LOWsrc/smolagents/__init__.py1#!/usr/bin/env pythonCOMMENT
LOWsrc/smolagents/agents.py1#!/usr/bin/env pythonCOMMENT
LOWsrc/smolagents/cli.py1#!/usr/bin/env pythonCOMMENT
LOWsrc/smolagents/utils.py1#!/usr/bin/env pythonCOMMENT
LOWsrc/smolagents/default_tools.py1#!/usr/bin/env pythonCOMMENT
LOWsrc/smolagents/mcp_client.py1#!/usr/bin/env pythonCOMMENT
LOWsrc/smolagents/agent_types.py1# coding=utf-8COMMENT
LOWsrc/smolagents/remote_executors.py1#!/usr/bin/env pythonCOMMENT
LOWsrc/smolagents/serialization.py1#!/usr/bin/env pythonCOMMENT
LOWsrc/smolagents/_function_type_hints_utils.py1#!/usr/bin/env pythonCOMMENT
Unused Imports25 hits · 24 pts
SeverityFileLineSnippetContext
LOWtests/test_utils.py333CODE
LOWtests/test_utils.py226CODE
LOWexamples/structured_output_tool.py19CODE
LOWsrc/smolagents/memory.py12CODE
LOWsrc/smolagents/tools.py17CODE
LOWsrc/smolagents/tools.py64CODE
LOWsrc/smolagents/__init__.py19CODE
LOWsrc/smolagents/__init__.py20CODE
LOWsrc/smolagents/__init__.py21CODE
LOWsrc/smolagents/__init__.py22CODE
LOWsrc/smolagents/__init__.py23CODE
LOWsrc/smolagents/__init__.py24CODE
LOWsrc/smolagents/__init__.py25CODE
LOWsrc/smolagents/__init__.py26CODE
LOWsrc/smolagents/__init__.py27CODE
LOWsrc/smolagents/__init__.py28CODE
LOWsrc/smolagents/__init__.py29CODE
LOWsrc/smolagents/__init__.py30CODE
LOWsrc/smolagents/__init__.py31CODE
LOWsrc/smolagents/__init__.py32CODE
LOWsrc/smolagents/agents.py45CODE
LOWsrc/smolagents/utils.py38CODE
LOWsrc/smolagents/mcp_client.py18CODE
LOWsrc/smolagents/mcp_client.py30CODE
LOWsrc/smolagents/remote_executors.py896CODE
Redundant / Tautological Comments13 hits · 19 pts
SeverityFileLineSnippetContext
LOWtests/test_import.py25 # Check if the import was successfulCOMMENT
LOWtests/test_tools.py115 # Check if we expect this to raise an exceptionCOMMENT
LOWexamples/multiple_tools.py38 if data.get("error"): # Check if there's an error in the responseCODE
LOWexamples/open_deep_research/scripts/mdconvert.py624 # Return the resultCOMMENT
LOWsrc/smolagents/local_python_executor.py611 # Check if it is a docstring: first statement in class body which is a string literal expressionCOMMENT
LOWsrc/smolagents/tools.py182 # Check if all elements are stringsCOMMENT
LOWsrc/smolagents/tool_validation.py198 # Check if the assignment is more complex than simple literalsCOMMENT
LOWsrc/smolagents/agents.py1463 # Check if the tool existsCOMMENT
LOWsrc/smolagents/cli.py265 # Check if we should run in interactive modeCOMMENT
LOWsrc/smolagents/utils.py572 # Check if we should retryCOMMENT
LOWsrc/smolagents/remote_executors.py183 # Check if all keys are strings (JSON-compatible)COMMENT
LOWsrc/smolagents/remote_executors.py389 # Check if the error is a FinalAnswerExceptionCOMMENT
LOWsrc/smolagents/remote_executors.py614 # Check if image exists, unless forced to rebuildCOMMENT
Modern Structural Boilerplate19 hits · 18 pts
SeverityFileLineSnippetContext
LOWexamples/open_deep_research/scripts/text_web_browser.py55 def set_address(self, uri_or_path: str, filter_year: int | None = None) -> None:CODE
LOWexamples/open_deep_research/scripts/text_web_browser.py92 def _set_page_content(self, content: str) -> None:CODE
LOWsrc/smolagents/gradio_ui.py464__all__ = ["stream_to_gradio", "GradioUI"]CODE
LOWsrc/smolagents/models.py36logger = logging.getLogger(__name__)CODE
LOWsrc/smolagents/models.py2082__all__ = [CODE
LOWsrc/smolagents/memory.py18__all__ = ["AgentMemory"]CODE
LOWsrc/smolagents/local_python_executor.py39logger = logging.getLogger(__name__)CODE
LOWsrc/smolagents/local_python_executor.py1768__all__ = ["evaluate_python_code", "LocalPythonExecutor"]CODE
LOWsrc/smolagents/monitoring.py33__all__ = ["AgentLogger", "LogLevel", "Monitor", "TokenUsage", "Timing"]CODE
LOWsrc/smolagents/tools.py67logger = logging.getLogger(__name__)CODE
LOWsrc/smolagents/tools.py1415__all__ = [STRING
LOWsrc/smolagents/agents.py369 def _setup_managed_agents(self, managed_agents: list | None = None) -> None:CODE
LOWsrc/smolagents/utils.py41__all__ = ["AgentError"]CODE
LOWsrc/smolagents/default_tools.py687__all__ = [CODE
LOWsrc/smolagents/mcp_client.py27__all__ = ["MCPClient"]CODE
LOWsrc/smolagents/agent_types.py29logger = logging.getLogger(__name__)CODE
LOWsrc/smolagents/agent_types.py284__all__ = ["AgentType", "AgentImage", "AgentText", "AgentAudio"]CODE
LOWsrc/smolagents/remote_executors.py42__all__ = ["BlaxelExecutor", "E2BExecutor", "ModalExecutor", "DockerExecutor"]CODE
LOWsrc/smolagents/serialization.py36__all__ = ["SerializationError", "SafeSerializer"]CODE
Structural Annotation Overuse10 hits · 15 pts
SeverityFileLineSnippetContext
LOWdocs/source/en/examples/rag.md51### Step 1: Install Required DependenciesCOMMENT
LOWdocs/source/en/examples/rag.md67### Step 2: Prepare the Knowledge BaseCOMMENT
LOWdocs/source/en/examples/rag.md102### Step 3: Create a Retriever ToolCOMMENT
LOWdocs/source/en/examples/rag.md149### Step 4: Create an Advanced Retrieval AgentCOMMENT
LOWdocs/source/en/examples/rag.md171### Step 5: Run the Agent to Answer QuestionsCOMMENT
LOWdocs/source/en/tutorials/inspect_runs.md124### Step 1: Install DependenciesCOMMENT
LOWdocs/source/en/tutorials/inspect_runs.md130### Step 2: Set Up Environment VariablesCOMMENT
LOWdocs/source/en/tutorials/inspect_runs.md162### Step 3: Initialize the `SmolagentsInstrumentor`COMMENT
LOWdocs/source/en/tutorials/inspect_runs.md173### Step 4: Run your smolagentCOMMENT
LOWdocs/source/en/tutorials/inspect_runs.md205### Step 5: View Traces in LangfuseCOMMENT
Hallucination Indicators1 hit · 10 pts
SeverityFileLineSnippetContext
CRITICALexamples/open_deep_research/scripts/mdconvert.py442 alt_text = shape._element._nvXxPr.cNvPr.attrib.get("descr", "")CODE
AI Structural Patterns6 hits · 5 pts
SeverityFileLineSnippetContext
LOWexamples/async_agent/main.py30CODE
LOWsrc/smolagents/models.py906CODE
LOWsrc/smolagents/models.py1514CODE
LOWsrc/smolagents/agents.py294CODE
LOWsrc/smolagents/agents.py1527CODE
LOWsrc/smolagents/utils.py531CODE
Slop Phrases2 hits · 4 pts
SeverityFileLineSnippetContext
MEDIUMexamples/rag_using_chromadb.py27## For your own PDFs, you can use the following code to load them into source_docsCOMMENT
LOWexamples/open_deep_research/run_gaia.py147 # WARNING: this dataset is gated: make sure you visit the repo to require access.COMMENT
Overly Generic Function Names3 hits · 4 pts
SeverityFileLineSnippetContext
LOWtests/test_function_type_hints_utils.py85 def process_data(items: list[str], config: dict[str, float], point: tuple[int, int]) -> dict:CODE
LOW⚡tests/test_serialization.py453 def my_function():CODE
LOW⚡tests/test_tools.py617 def test_function(items: list[str]) -> str:CODE
AI Slop Vocabulary2 hits · 3 pts
SeverityFileLineSnippetContext
LOWsrc/smolagents/local_python_executor.py634 # For declarations without values (x: int), just return NoneCOMMENT
LOWsrc/smolagents/local_python_executor.py1462 # Constant -> just return the valueCOMMENT
Fake / Example Data2 hits · 1 pts
SeverityFileLineSnippetContext
LOWtests/test_serialization.py742 person = Person(name="Bob", address=Address(street="123 Main St", city="NYC"))CODE
LOWtests/test_serialization.py747 assert result["address"]["street"] == "123 Main St"CODE