Repository Analysis

anthropics/claude-quickstarts

A collection of projects designed to help developers quickly get started with building deployable applications using the Claude API

10.1 Low AI signal View on GitHub
10.1
Adjusted Score
10.1
Raw Score
100%
Time Factor
2026-05-28
Last Push
16,838
Stars
Python
Language
44,783
Lines of Code
227
Files
354
Pattern Hits
2026-05-31
Scan Date

Score History

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

Severity Breakdown

CRITICAL 0HIGH 10MEDIUM 14LOW 330

Pattern Findings

354 matches across 11 categories. Click a row to expand file-level details.

Hyper-Verbose Identifiers187 hits · 214 pts
SeverityFileLineSnippet
LOWautonomous-coding/test_security.py115def test_validate_init_script():
LOWautonomous-coding/security.py279def get_command_for_validation(cmd: str, segments: list[str]) -> str:
LOWagents/test_message_params.py178 def test_invalid_metadata_field(self) -> None:
LOWfinancial-data-analyst/components/ui/chart.tsx325function getPayloadConfigFromPayload(
LOWcomputer-use-demo/computer_use_demo/streamlit.py456def maybe_add_interruption_blocks():
LOWcomputer-use-demo/computer_use_demo/loop.py215def _maybe_filter_to_n_most_recent_images(
LOWcomputer-use-demo/computer_use_demo/loop.py349def _maybe_prepend_system_tool_result(result: ToolResult, result_text: str):
LOWcomputer-use-demo/computer_use_demo/tools/computer.py220 def validate_and_get_coordinates(self, coordinate: tuple[int, int] | None = None):
LOWcomputer-use-demo/tests/streamlit_test.py44def test_thinking_modes_follow_selected_model(
LOWcomputer-use-demo/tests/loop_test.py71async def _run_loop_and_get_request_kwargs(**loop_kwargs):
LOWcomputer-use-demo/tests/loop_test.py101async def test_loop_thinking_off_sends_no_thinking_params():
LOWcomputer-use-demo/tests/loop_test.py106async def test_loop_adaptive_thinking_sends_effort():
LOWcomputer-use-demo/tests/loop_test.py116async def test_loop_extended_thinking_sends_budget():
LOWcomputer-use-demo/tests/tools/computer_test.py20async def test_computer_tool_mouse_move(computer_tool):
LOWcomputer-use-demo/tests/tools/computer_test.py48async def test_computer_tool_screenshot(computer_tool):
LOWcomputer-use-demo/tests/tools/computer_test.py59async def test_computer_tool_scaling(computer_tool):
LOWcomputer-use-demo/tests/tools/computer_test.py82async def test_computer_tool_scaling_with_different_aspect_ratio(computer_tool):
LOWcomputer-use-demo/tests/tools/computer_test.py99async def test_computer_tool_no_scaling_for_unsupported_resolution(computer_tool):
LOWcomputer-use-demo/tests/tools/computer_test.py115async def test_computer_tool_scaling_out_of_bounds(computer_tool):
LOWcomputer-use-demo/tests/tools/computer_test.py126async def test_computer_tool_invalid_action(computer_tool):
LOWcomputer-use-demo/tests/tools/computer_test.py132async def test_computer_tool_missing_coordinate(computer_tool):
LOWcomputer-use-demo/tests/tools/computer_test.py138async def test_computer_tool_missing_text(computer_tool):
LOWcomputer-use-demo/tests/tools/bash_test.py22async def test_bash_tool_run_command(bash_tool):
LOWcomputer-use-demo/tests/tools/bash_test.py29async def test_bash_tool_no_command(bash_tool):
LOWcomputer-use-demo/tests/tools/bash_test.py35async def test_bash_tool_session_creation(bash_tool):
LOWcomputer-use-demo/tests/tools/bash_test.py42async def test_bash_tool_session_reuse(bash_tool):
LOWcomputer-use-demo/tests/tools/bash_test.py51async def test_bash_tool_session_error(bash_tool):
LOWcomputer-use-demo/tests/tools/bash_test.py57async def test_bash_tool_non_zero_exit(bash_tool):
LOWcomputer-use-best-practices/tests/test_zoom.py5def test_zoom_in_computer_schema() -> None:
LOWcomputer-use-best-practices/tests/test_zoom.py12def test_zoom_in_browser_schema() -> None:
LOWcomputer-use-best-practices/tests/test_zoom.py18def test_computer_zoom_validation() -> None:
LOWcomputer-use-best-practices/tests/test_result.py4def test_errored_result_replaces_image_with_placeholder():
LOWcomputer-use-best-practices/tests/test_result.py13def test_ok_result_emits_image():
LOWcomputer-use-best-practices/tests/test_build_tools.py19def test_default_includes_both_sets(monkeypatch: pytest.MonkeyPatch) -> None:
LOWcomputer-use-best-practices/tests/test_build_tools.py26def test_disable_computer_only(monkeypatch: pytest.MonkeyPatch) -> None:
LOWcomputer-use-best-practices/tests/test_build_tools.py36def test_disable_browser_only(monkeypatch: pytest.MonkeyPatch) -> None:
LOWcomputer-use-best-practices/tests/test_build_tools.py44def test_both_disabled_raises(monkeypatch: pytest.MonkeyPatch) -> None:
LOWcomputer-use-best-practices/tests/test_computer.py42def test_type_text_uses_unicode_not_keycodes(captured):
LOWcomputer-use-best-practices/tests/test_computer.py52def test_type_text_sends_real_keys_for_control_chars(captured):
LOWcomputer-use-best-practices/tests/test_computer.py58def test_type_text_handles_non_ascii(captured):
LOWcomputer-use-best-practices/tests/test_computer.py64def test_hosted_param_reports_resized_dimensions(monkeypatch):
LOWcomputer-use-best-practices/tests/test_computer.py79def test_hold_key_releases_on_interrupt(monkeypatch):
LOWcomputer-use-best-practices/tests/test_editor.py15def test_create_and_view_roundtrip(tool: EditorTool) -> None:
LOWcomputer-use-best-practices/tests/test_editor.py58def test_path_escape_rejected(tool: EditorTool) -> None:
LOWcomputer-use-best-practices/tests/test_editor.py74def test_view_image_returns_image_block(tool: EditorTool, tmp_path: Path) -> None:
LOWcomputer-use-best-practices/tests/test_editor.py93def test_view_pdf_returns_document_block(tool: EditorTool, tmp_path: Path) -> None:
LOWcomputer-use-best-practices/tests/test_editor.py111def test_shell_shares_scratch_dir() -> None:
LOWcomputer-use-best-practices/tests/test_preflight.py9def test_check_and_warn_non_required_never_exits():
LOWcomputer-use-best-practices/tests/test_image.py21def test_small_image_unchanged():
LOWcomputer-use-best-practices/tests/test_image.py25def test_long_edge_only_is_insufficient():
LOWcomputer-use-best-practices/tests/test_image.py52def test_screenshot_too_small():
LOWcomputer-use-best-practices/tests/test_compaction.py25def test_truncate_drops_before_compaction() -> None:
LOWcomputer-use-best-practices/tests/test_compaction.py33def test_truncate_noop_without_compaction() -> None:
LOWcomputer-use-best-practices/tests/test_compaction.py42def test_truncate_picks_most_recent() -> None:
LOWcomputer-use-best-practices/tests/test_compaction.py53def test_cache_control_lands_on_compaction_when_last_cacheable() -> None:
LOWcomputer-use-best-practices/tests/test_compaction.py62def test_cache_control_ladders_last_n() -> None:
LOWcomputer-use-best-practices/tests/test_compaction.py75def test_cache_control_on_mixed_compaction_and_tool_result() -> None:
LOWcomputer-use-best-practices/tests/test_compaction.py83def test_compaction_beta_header() -> None:
LOWcomputer-use-best-practices/tests/test_compaction.py87def test_supported_models_excludes_haiku() -> None:
LOWcomputer-use-best-practices/tests/test_advisor.py23def test_advisor_tool_param_shape() -> None:
127 more matches not shown…
Excessive Try-Catch Wrapping55 hits · 61 pts
SeverityFileLineSnippet
MEDIUMautonomous-coding/autonomous_agent_demo.py81 print("Error: ANTHROPIC_API_KEY environment variable not set")
LOWautonomous-coding/autonomous_agent_demo.py110 except Exception as e:
LOWautonomous-coding/agent.py92 except Exception as e:
MEDIUMautonomous-coding/agent.py93 print(f"Error during agent session: {e}")
LOWagents/test_message_params.py50 except Exception as e:
LOWagents/test_message_params.py196 except Exception as e:
MEDIUMagents/test_message_params.py260 print("Error: Please set ANTHROPIC_API_KEY environment variable")
LOWagents/tools/calculator_mcp.py50 except Exception as e:
LOWagents/tools/file_tools.py101 except Exception as e:
LOWagents/tools/file_tools.py134 except Exception as e:
LOWagents/tools/file_tools.py229 except Exception as e:
LOWagents/tools/file_tools.py276 except Exception as e:
LOWagents/tools/mcp_tool.py35 except Exception as e:
LOWagents/utils/history_util.py39 except Exception:
LOWagents/utils/tool_util.py20 except Exception as e:
LOWagents/utils/connections.py43 except Exception as e:
MEDIUMagents/utils/connections.py44 print(f"Error during cleanup: {e}")
LOWagents/utils/connections.py144 except Exception as e:
MEDIUMagents/utils/connections.py145 print(f"Error setting up MCP server {config}: {e}")
LOWcomputer-use-demo/computer_use_demo/streamlit.py518 except Exception as e:
LOWcomputer-use-demo/computer_use_demo/streamlit.py531 except Exception as e:
LOWcomputer-use-demo/computer_use_demo/tools/edit.py251 except Exception as e:
LOWcomputer-use-demo/computer_use_demo/tools/edit.py258 except Exception as e:
LOWcomputer-use-best-practices/computer_use/loop.py107 except Exception as e:
LOWcomputer-use-best-practices/computer_use/preflight.py57 except Exception:
LOWcomputer-use-best-practices/computer_use/preflight.py101 except Exception:
LOWcomputer-use-best-practices/computer_use/tools/batch.py75 except Exception as e:
LOW…puter-use-best-practices/computer_use/tools/browser.py154 except Exception as e:
LOWcomputer-use-best-practices/computer_use/tools/base.py109 except Exception as e:
LOWbrowser-use-demo/browser_use_demo/message_handler.py119 except Exception as e:
LOWbrowser-use-demo/browser_use_demo/streamlit.py137 except Exception as e:
MEDIUMbrowser-use-demo/browser_use_demo/streamlit.py138 print(f"Error adding image to ZIP: {e}")
LOWbrowser-use-demo/browser_use_demo/streamlit.py520 except Exception as e:
LOWbrowser-use-demo/browser_use_demo/loop.py141 except Exception as e:
LOWbrowser-use-demo/browser_use_demo/tools/browser.py394 except Exception as e:
LOWbrowser-use-demo/browser_use_demo/tools/browser.py413 except Exception as e:
LOWbrowser-use-demo/browser_use_demo/tools/browser.py555 except Exception as e:
LOWbrowser-use-demo/browser_use_demo/tools/browser.py566 except Exception as e:
LOWbrowser-use-demo/browser_use_demo/tools/browser.py613 except Exception as e:
LOWbrowser-use-demo/browser_use_demo/tools/browser.py663 except Exception as e:
LOWbrowser-use-demo/browser_use_demo/tools/browser.py690 except Exception as e:
LOWbrowser-use-demo/browser_use_demo/tools/browser.py715 except Exception as e:
LOWbrowser-use-demo/browser_use_demo/tools/browser.py731 except Exception as e:
LOWbrowser-use-demo/browser_use_demo/tools/browser.py747 except Exception as e:
LOWbrowser-use-demo/browser_use_demo/tools/browser.py811 except Exception as e:
LOWbrowser-use-demo/browser_use_demo/tools/browser.py854 except Exception as e:
LOWbrowser-use-demo/browser_use_demo/tools/browser.py900 except Exception as e:
LOWbrowser-use-demo/browser_use_demo/tools/browser.py1025 except Exception:
LOWbrowser-use-demo/browser_use_demo/tools/browser.py1044 except Exception as e:
LOWbrowser-use-demo/browser_use_demo/tools/browser.py1065 except Exception as e:
LOWbrowser-use-demo/browser_use_demo/tools/browser.py1076 except Exception as e:
LOWbrowser-use-demo/browser_use_demo/tools/browser.py1102 except Exception as e:
LOWbrowser-use-demo/browser_use_demo/tools/browser.py371 except Exception as e:
MEDIUMbrowser-use-demo/tests/test_streamlit_helpers.py279def run_setup():
LOWbrowser-use-demo/tests/test_streamlit_helpers.py283 except Exception as e:
Redundant / Tautological Comments21 hits · 35 pts
SeverityFileLineSnippet
LOWautonomous-coding/agent.py78 # Check if command was blocked by security hook
LOWautonomous-coding/agent.py124 # Check if this is a fresh start or continuation
LOWcomputer-use-demo/computer_use_demo/tools/edit.py91 # Check if its an absolute path
LOWcomputer-use-demo/computer_use_demo/tools/edit.py97 # Check if path exists
LOWcomputer-use-demo/computer_use_demo/tools/edit.py106 # Check if the path points to a directory
LOWcomputer-use-demo/computer_use_demo/tools/edit.py162 # Read the file content
LOWcomputer-use-demo/computer_use_demo/tools/edit.py167 # Check if old_str is unique in the file
LOWcomputer-use-demo/image/xvfb_startup.sh30# Check if Xvfb is already running
LOWbrowser-use-demo/browser_use_demo/message_renderer.py141 # Check if this is a text extraction result with special markers
LOWbrowser-use-demo/browser_use_demo/tools/browser.py389 # Read the file and encode to base64
LOWbrowser-use-demo/browser_use_demo/tools/browser.py366 # Read the file and encode to base64
LOW…-use-demo/browser_use_demo/tools/coordinate_scaling.py135 # Check if coordinates appear to be in Claude's resolution
LOWbrowser-use-demo/tests/test_streamlit_helpers.py64 # Set provider to valid enum value so lambda can access it
LOWbrowser-use-demo/tests/test_streamlit_helpers.py275 # Set provider to valid enum value so lambda can access it
LOWbrowser-use-demo/tests/test_streamlit_helpers.py23 # Set provider to valid enum value so lambda can access it
LOWbrowser-use-demo/tests/test_streamlit_helpers.py48 # Set provider to valid enum value so lambda can access it
LOWbrowser-use-demo/tests/test_streamlit_helpers.py95 # Set provider to valid enum value so lambda can access it
LOWbrowser-use-demo/tests/test_integration.py240 # Set provider to valid enum value so lambda can access it
LOWbrowser-use-demo/tests/test_integration.py279 # Set provider to valid enum value so lambda can access it
LOWbrowser-use-demo/tests/test_message_renderer.py297 # Set markdown to raise an exception
LOWbrowser-use-demo/image/xvfb_startup.sh30# Check if Xvfb is already running
Deep Nesting34 hits · 32 pts
SeverityFileLineSnippet
LOWautonomous-coding/security.py297
LOWautonomous-coding/agent.py23
LOWagents/agent.py96
LOWagents/tools/calculator_mcp.py13
LOWagents/tools/file_tools.py74
LOWagents/tools/file_tools.py232
LOWagents/tools/file_tools.py89
LOWagents/tools/mcp_tool.py21
LOWcomputer-use-demo/computer_use_demo/streamlit.py244
LOWcomputer-use-demo/computer_use_demo/streamlit.py599
LOWcomputer-use-demo/computer_use_demo/loop.py81
LOWcomputer-use-demo/computer_use_demo/loop.py215
LOWcomputer-use-demo/computer_use_demo/loop.py264
LOWcomputer-use-demo/computer_use_demo/loop.py287
LOWcomputer-use-demo/computer_use_demo/tools/edit.py44
LOWcomputer-use-demo/computer_use_demo/tools/computer.py128
LOWcomputer-use-best-practices/tests/test_formatters.py26
LOWcomputer-use-best-practices/computer_use/formatters.py23
LOWcomputer-use-best-practices/computer_use/loop.py241
LOWcomputer-use-best-practices/computer_use/loop.py331
LOWbrowser-use-demo/browser_use_demo/message_renderer.py134
LOWbrowser-use-demo/browser_use_demo/streamlit.py113
LOWbrowser-use-demo/browser_use_demo/streamlit.py238
LOWbrowser-use-demo/browser_use_demo/streamlit.py336
LOWbrowser-use-demo/browser_use_demo/streamlit.py531
LOWbrowser-use-demo/browser_use_demo/streamlit.py213
LOWbrowser-use-demo/browser_use_demo/streamlit.py254
LOWbrowser-use-demo/browser_use_demo/loop.py66
LOWbrowser-use-demo/browser_use_demo/loop.py176
LOWbrowser-use-demo/browser_use_demo/tools/browser.py457
LOWbrowser-use-demo/browser_use_demo/tools/browser.py616
LOWbrowser-use-demo/browser_use_demo/tools/browser.py903
LOWbrowser-use-demo/browser_use_demo/tools/browser.py1105
LOWbrowser-use-demo/tests/conftest.py17
Unused Imports24 hits · 24 pts
SeverityFileLineSnippet
LOWagents/__init__.py3
LOWagents/__init__.py3
LOWagents/__init__.py4
LOWagents/tools/__init__.py3
LOWagents/tools/__init__.py4
LOWagents/tools/__init__.py5
LOWagents/tools/__init__.py5
LOWagents/tools/__init__.py6
LOWagents/tools/__init__.py7
LOWagents/tools/mcp_tool.py5
LOWagents/utils/__init__.py3
LOWagents/utils/__init__.py4
LOW…uter-use-best-practices/computer_use/tools/__init__.py1
LOW…uter-use-best-practices/computer_use/tools/__init__.py1
LOW…uter-use-best-practices/computer_use/tools/__init__.py2
LOWbrowser-use-demo/validate_env.py6
LOWbrowser-use-demo/browser_use_demo/streamlit.py10
LOWbrowser-use-demo/browser_use_demo/loop.py5
LOWbrowser-use-demo/browser_use_demo/tools/__init__.py1
LOWbrowser-use-demo/browser_use_demo/tools/__init__.py1
LOWbrowser-use-demo/browser_use_demo/tools/__init__.py1
LOWbrowser-use-demo/browser_use_demo/tools/__init__.py2
LOWbrowser-use-demo/browser_use_demo/tools/__init__.py3
LOWbrowser-use-demo/browser_use_demo/tools/collection.py1
Cross-Language Confusion4 hits · 20 pts
SeverityFileLineSnippet
HIGHautonomous-coding/test_security.py52 ("npm install && npm run build", ["npm", "npm"]),
HIGHautonomous-coding/test_security.py56 ("git status || git init", ["git", "git"]),
HIGHautonomous-coding/test_security.py253 "npm install && npm run build",
HIGHautonomous-coding/agent.py202 print(" npm install && npm run dev")
Magic Placeholder Names4 hits · 20 pts
SeverityFileLineSnippet
HIGHautonomous-coding/autonomous_agent_demo.py84 print(" export ANTHROPIC_API_KEY='your-api-key-here'")
HIGHautonomous-coding/README.md25export ANTHROPIC_API_KEY='your-api-key-here'
HIGHcomputer-use-demo/README.md44export ANTHROPIC_API_KEY=%your_api_key%
HIGHcomputer-use-demo/README.md174export ANTHROPIC_API_KEY=%your_api_key%
Self-Referential Comments5 hits · 16 pts
SeverityFileLineSnippet
MEDIUMcomputer-use-demo/computer_use_demo/tools/edit.py193 # Create a snippet of the edited section
MEDIUMbrowser-use-demo/browser_use_demo/streamlit.py123 # Create an in-memory ZIP file
MEDIUMbrowser-use-demo/browser_use_demo/tools/browser.py845 # Create a summary for UI display
MEDIUMbrowser-use-demo/browser_use_demo/tools/browser.py889 # Create a summary for UI display
MEDIUMbrowser-use-demo/tests/test_message_renderer.py282 # Create a mock that doesn't have expected attributes
Over-Commented Block16 hits · 16 pts
SeverityFileLineSnippet
LOWcomputer-use-best-practices/config.example.toml1# Override any constants.Config field. Point CU_CONFIG at this file (in your
LOWcomputer-use-best-practices/config.example.toml21# api_retry_max_attempts = 5
LOWcomputer-use-best-practices/requirements.txt1# This file was autogenerated by uv via the following command:
LOWcomputer-use-best-practices/requirements.txt21 # via streamlit
LOWcomputer-use-best-practices/requirements.txt41gitdb==4.0.12 ; sys_platform == 'darwin'
LOWcomputer-use-best-practices/requirements.txt61 # via
LOWcomputer-use-best-practices/requirements.txt81packaging==26.0 ; sys_platform == 'darwin'
LOWcomputer-use-best-practices/requirements.txt101 # via
LOWcomputer-use-best-practices/requirements.txt141 # jsonschema
LOWcomputer-use-best-practices/requirements.txt161tenacity==9.1.4 ; sys_platform == 'darwin'
LOWcomputer-use-best-practices/requirements.txt181 # via
LOWcomputer-use-best-practices/constants.py61# Hosted (Anthropic-defined) computer-use tool. Newer dated revisions exist;
LOWcomputer-use-best-practices/constants.py81 # remain explicit.
LOWcomputer-use-best-practices/constants.py101 # pre-resize so the server's early-return fires and the model sees the
LOWcomputer-use-best-practices/constants.py141 # Expose an editor tool (view/create/str_replace/insert) confined to the
LOWbrowser-use-demo/browser_use_demo/tools/browser.py221 # The browser should persist across conversation turns
Docstring Block Structure2 hits · 10 pts
SeverityFileLineSnippet
HIGH…-use-demo/browser_use_demo/tools/coordinate_scaling.py37 Get the documented size for the given viewport's aspect ratio. Args: viewport_width: Actua
HIGH…-use-demo/browser_use_demo/tools/coordinate_scaling.py77 Calculate scale factors for converting Claude coordinates to viewport coordinates. Args: v
AI Slop Vocabulary2 hits · 4 pts
SeverityFileLineSnippet
MEDIUMautonomous-coding/client.py64 # Create comprehensive security settings
MEDIUMbrowser-use-demo/tests/test_message_renderer.py1"""Tests for MessageRenderer class with comprehensive edge case coverage."""