A collection of projects designed to help developers quickly get started with building deployable applications using the Claude API
354 matches across 11 categories. Click a row to expand file-level details.
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | autonomous-coding/test_security.py | 115 | def test_validate_init_script(): |
| LOW | autonomous-coding/security.py | 279 | def get_command_for_validation(cmd: str, segments: list[str]) -> str: |
| LOW | agents/test_message_params.py | 178 | def test_invalid_metadata_field(self) -> None: |
| LOW | financial-data-analyst/components/ui/chart.tsx | 325 | function getPayloadConfigFromPayload( |
| LOW | computer-use-demo/computer_use_demo/streamlit.py | 456 | def maybe_add_interruption_blocks(): |
| LOW | computer-use-demo/computer_use_demo/loop.py | 215 | def _maybe_filter_to_n_most_recent_images( |
| LOW | computer-use-demo/computer_use_demo/loop.py | 349 | def _maybe_prepend_system_tool_result(result: ToolResult, result_text: str): |
| LOW | computer-use-demo/computer_use_demo/tools/computer.py | 220 | def validate_and_get_coordinates(self, coordinate: tuple[int, int] | None = None): |
| LOW | computer-use-demo/tests/streamlit_test.py | 44 | def test_thinking_modes_follow_selected_model( |
| LOW | computer-use-demo/tests/loop_test.py | 71 | async def _run_loop_and_get_request_kwargs(**loop_kwargs): |
| LOW | computer-use-demo/tests/loop_test.py | 101 | async def test_loop_thinking_off_sends_no_thinking_params(): |
| LOW | computer-use-demo/tests/loop_test.py | 106 | async def test_loop_adaptive_thinking_sends_effort(): |
| LOW | computer-use-demo/tests/loop_test.py | 116 | async def test_loop_extended_thinking_sends_budget(): |
| LOW | computer-use-demo/tests/tools/computer_test.py | 20 | async def test_computer_tool_mouse_move(computer_tool): |
| LOW | computer-use-demo/tests/tools/computer_test.py | 48 | async def test_computer_tool_screenshot(computer_tool): |
| LOW | computer-use-demo/tests/tools/computer_test.py | 59 | async def test_computer_tool_scaling(computer_tool): |
| LOW | computer-use-demo/tests/tools/computer_test.py | 82 | async def test_computer_tool_scaling_with_different_aspect_ratio(computer_tool): |
| LOW | computer-use-demo/tests/tools/computer_test.py | 99 | async def test_computer_tool_no_scaling_for_unsupported_resolution(computer_tool): |
| LOW | computer-use-demo/tests/tools/computer_test.py | 115 | async def test_computer_tool_scaling_out_of_bounds(computer_tool): |
| LOW | computer-use-demo/tests/tools/computer_test.py | 126 | async def test_computer_tool_invalid_action(computer_tool): |
| LOW | computer-use-demo/tests/tools/computer_test.py | 132 | async def test_computer_tool_missing_coordinate(computer_tool): |
| LOW | computer-use-demo/tests/tools/computer_test.py | 138 | async def test_computer_tool_missing_text(computer_tool): |
| LOW | computer-use-demo/tests/tools/bash_test.py | 22 | async def test_bash_tool_run_command(bash_tool): |
| LOW | computer-use-demo/tests/tools/bash_test.py | 29 | async def test_bash_tool_no_command(bash_tool): |
| LOW | computer-use-demo/tests/tools/bash_test.py | 35 | async def test_bash_tool_session_creation(bash_tool): |
| LOW | computer-use-demo/tests/tools/bash_test.py | 42 | async def test_bash_tool_session_reuse(bash_tool): |
| LOW | computer-use-demo/tests/tools/bash_test.py | 51 | async def test_bash_tool_session_error(bash_tool): |
| LOW | computer-use-demo/tests/tools/bash_test.py | 57 | async def test_bash_tool_non_zero_exit(bash_tool): |
| LOW | computer-use-best-practices/tests/test_zoom.py | 5 | def test_zoom_in_computer_schema() -> None: |
| LOW | computer-use-best-practices/tests/test_zoom.py | 12 | def test_zoom_in_browser_schema() -> None: |
| LOW | computer-use-best-practices/tests/test_zoom.py | 18 | def test_computer_zoom_validation() -> None: |
| LOW | computer-use-best-practices/tests/test_result.py | 4 | def test_errored_result_replaces_image_with_placeholder(): |
| LOW | computer-use-best-practices/tests/test_result.py | 13 | def test_ok_result_emits_image(): |
| LOW | computer-use-best-practices/tests/test_build_tools.py | 19 | def test_default_includes_both_sets(monkeypatch: pytest.MonkeyPatch) -> None: |
| LOW | computer-use-best-practices/tests/test_build_tools.py | 26 | def test_disable_computer_only(monkeypatch: pytest.MonkeyPatch) -> None: |
| LOW | computer-use-best-practices/tests/test_build_tools.py | 36 | def test_disable_browser_only(monkeypatch: pytest.MonkeyPatch) -> None: |
| LOW | computer-use-best-practices/tests/test_build_tools.py | 44 | def test_both_disabled_raises(monkeypatch: pytest.MonkeyPatch) -> None: |
| LOW | computer-use-best-practices/tests/test_computer.py | 42 | def test_type_text_uses_unicode_not_keycodes(captured): |
| LOW | computer-use-best-practices/tests/test_computer.py | 52 | def test_type_text_sends_real_keys_for_control_chars(captured): |
| LOW | computer-use-best-practices/tests/test_computer.py | 58 | def test_type_text_handles_non_ascii(captured): |
| LOW | computer-use-best-practices/tests/test_computer.py | 64 | def test_hosted_param_reports_resized_dimensions(monkeypatch): |
| LOW | computer-use-best-practices/tests/test_computer.py | 79 | def test_hold_key_releases_on_interrupt(monkeypatch): |
| LOW | computer-use-best-practices/tests/test_editor.py | 15 | def test_create_and_view_roundtrip(tool: EditorTool) -> None: |
| LOW | computer-use-best-practices/tests/test_editor.py | 58 | def test_path_escape_rejected(tool: EditorTool) -> None: |
| LOW | computer-use-best-practices/tests/test_editor.py | 74 | def test_view_image_returns_image_block(tool: EditorTool, tmp_path: Path) -> None: |
| LOW | computer-use-best-practices/tests/test_editor.py | 93 | def test_view_pdf_returns_document_block(tool: EditorTool, tmp_path: Path) -> None: |
| LOW | computer-use-best-practices/tests/test_editor.py | 111 | def test_shell_shares_scratch_dir() -> None: |
| LOW | computer-use-best-practices/tests/test_preflight.py | 9 | def test_check_and_warn_non_required_never_exits(): |
| LOW | computer-use-best-practices/tests/test_image.py | 21 | def test_small_image_unchanged(): |
| LOW | computer-use-best-practices/tests/test_image.py | 25 | def test_long_edge_only_is_insufficient(): |
| LOW | computer-use-best-practices/tests/test_image.py | 52 | def test_screenshot_too_small(): |
| LOW | computer-use-best-practices/tests/test_compaction.py | 25 | def test_truncate_drops_before_compaction() -> None: |
| LOW | computer-use-best-practices/tests/test_compaction.py | 33 | def test_truncate_noop_without_compaction() -> None: |
| LOW | computer-use-best-practices/tests/test_compaction.py | 42 | def test_truncate_picks_most_recent() -> None: |
| LOW | computer-use-best-practices/tests/test_compaction.py | 53 | def test_cache_control_lands_on_compaction_when_last_cacheable() -> None: |
| LOW | computer-use-best-practices/tests/test_compaction.py | 62 | def test_cache_control_ladders_last_n() -> None: |
| LOW | computer-use-best-practices/tests/test_compaction.py | 75 | def test_cache_control_on_mixed_compaction_and_tool_result() -> None: |
| LOW | computer-use-best-practices/tests/test_compaction.py | 83 | def test_compaction_beta_header() -> None: |
| LOW | computer-use-best-practices/tests/test_compaction.py | 87 | def test_supported_models_excludes_haiku() -> None: |
| LOW | computer-use-best-practices/tests/test_advisor.py | 23 | def test_advisor_tool_param_shape() -> None: |
| 127 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| MEDIUM | autonomous-coding/autonomous_agent_demo.py | 81 | print("Error: ANTHROPIC_API_KEY environment variable not set") |
| LOW | autonomous-coding/autonomous_agent_demo.py | 110 | except Exception as e: |
| LOW | autonomous-coding/agent.py | 92 | except Exception as e: |
| MEDIUM | autonomous-coding/agent.py | 93 | print(f"Error during agent session: {e}") |
| LOW | agents/test_message_params.py | 50 | except Exception as e: |
| LOW | agents/test_message_params.py | 196 | except Exception as e: |
| MEDIUM | agents/test_message_params.py | 260 | print("Error: Please set ANTHROPIC_API_KEY environment variable") |
| LOW | agents/tools/calculator_mcp.py | 50 | except Exception as e: |
| LOW | agents/tools/file_tools.py | 101 | except Exception as e: |
| LOW | agents/tools/file_tools.py | 134 | except Exception as e: |
| LOW | agents/tools/file_tools.py | 229 | except Exception as e: |
| LOW | agents/tools/file_tools.py | 276 | except Exception as e: |
| LOW | agents/tools/mcp_tool.py | 35 | except Exception as e: |
| LOW | agents/utils/history_util.py | 39 | except Exception: |
| LOW | agents/utils/tool_util.py | 20 | except Exception as e: |
| LOW | agents/utils/connections.py | 43 | except Exception as e: |
| MEDIUM | agents/utils/connections.py | 44 | print(f"Error during cleanup: {e}") |
| LOW | agents/utils/connections.py | 144 | except Exception as e: |
| MEDIUM | agents/utils/connections.py | 145 | print(f"Error setting up MCP server {config}: {e}") |
| LOW | computer-use-demo/computer_use_demo/streamlit.py | 518 | except Exception as e: |
| LOW | computer-use-demo/computer_use_demo/streamlit.py | 531 | except Exception as e: |
| LOW | computer-use-demo/computer_use_demo/tools/edit.py | 251 | except Exception as e: |
| LOW | computer-use-demo/computer_use_demo/tools/edit.py | 258 | except Exception as e: |
| LOW | computer-use-best-practices/computer_use/loop.py | 107 | except Exception as e: |
| LOW | computer-use-best-practices/computer_use/preflight.py | 57 | except Exception: |
| LOW | computer-use-best-practices/computer_use/preflight.py | 101 | except Exception: |
| LOW | computer-use-best-practices/computer_use/tools/batch.py | 75 | except Exception as e: |
| LOW | …puter-use-best-practices/computer_use/tools/browser.py | 154 | except Exception as e: |
| LOW | computer-use-best-practices/computer_use/tools/base.py | 109 | except Exception as e: |
| LOW | browser-use-demo/browser_use_demo/message_handler.py | 119 | except Exception as e: |
| LOW | browser-use-demo/browser_use_demo/streamlit.py | 137 | except Exception as e: |
| MEDIUM | browser-use-demo/browser_use_demo/streamlit.py | 138 | print(f"Error adding image to ZIP: {e}") |
| LOW | browser-use-demo/browser_use_demo/streamlit.py | 520 | except Exception as e: |
| LOW | browser-use-demo/browser_use_demo/loop.py | 141 | except Exception as e: |
| LOW | browser-use-demo/browser_use_demo/tools/browser.py | 394 | except Exception as e: |
| LOW | browser-use-demo/browser_use_demo/tools/browser.py | 413 | except Exception as e: |
| LOW | browser-use-demo/browser_use_demo/tools/browser.py | 555 | except Exception as e: |
| LOW | browser-use-demo/browser_use_demo/tools/browser.py | 566 | except Exception as e: |
| LOW | browser-use-demo/browser_use_demo/tools/browser.py | 613 | except Exception as e: |
| LOW | browser-use-demo/browser_use_demo/tools/browser.py | 663 | except Exception as e: |
| LOW | browser-use-demo/browser_use_demo/tools/browser.py | 690 | except Exception as e: |
| LOW | browser-use-demo/browser_use_demo/tools/browser.py | 715 | except Exception as e: |
| LOW | browser-use-demo/browser_use_demo/tools/browser.py | 731 | except Exception as e: |
| LOW | browser-use-demo/browser_use_demo/tools/browser.py | 747 | except Exception as e: |
| LOW | browser-use-demo/browser_use_demo/tools/browser.py | 811 | except Exception as e: |
| LOW | browser-use-demo/browser_use_demo/tools/browser.py | 854 | except Exception as e: |
| LOW | browser-use-demo/browser_use_demo/tools/browser.py | 900 | except Exception as e: |
| LOW | browser-use-demo/browser_use_demo/tools/browser.py | 1025 | except Exception: |
| LOW | browser-use-demo/browser_use_demo/tools/browser.py | 1044 | except Exception as e: |
| LOW | browser-use-demo/browser_use_demo/tools/browser.py | 1065 | except Exception as e: |
| LOW | browser-use-demo/browser_use_demo/tools/browser.py | 1076 | except Exception as e: |
| LOW | browser-use-demo/browser_use_demo/tools/browser.py | 1102 | except Exception as e: |
| LOW | browser-use-demo/browser_use_demo/tools/browser.py | 371 | except Exception as e: |
| MEDIUM | browser-use-demo/tests/test_streamlit_helpers.py | 279 | def run_setup(): |
| LOW | browser-use-demo/tests/test_streamlit_helpers.py | 283 | except Exception as e: |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | autonomous-coding/agent.py | 78 | # Check if command was blocked by security hook |
| LOW | autonomous-coding/agent.py | 124 | # Check if this is a fresh start or continuation |
| LOW | computer-use-demo/computer_use_demo/tools/edit.py | 91 | # Check if its an absolute path |
| LOW | computer-use-demo/computer_use_demo/tools/edit.py | 97 | # Check if path exists |
| LOW | computer-use-demo/computer_use_demo/tools/edit.py | 106 | # Check if the path points to a directory |
| LOW | computer-use-demo/computer_use_demo/tools/edit.py | 162 | # Read the file content |
| LOW | computer-use-demo/computer_use_demo/tools/edit.py | 167 | # Check if old_str is unique in the file |
| LOW | computer-use-demo/image/xvfb_startup.sh | 30 | # Check if Xvfb is already running |
| LOW | browser-use-demo/browser_use_demo/message_renderer.py | 141 | # Check if this is a text extraction result with special markers |
| LOW | browser-use-demo/browser_use_demo/tools/browser.py | 389 | # Read the file and encode to base64 |
| LOW | browser-use-demo/browser_use_demo/tools/browser.py | 366 | # Read the file and encode to base64 |
| LOW | …-use-demo/browser_use_demo/tools/coordinate_scaling.py | 135 | # Check if coordinates appear to be in Claude's resolution |
| LOW | browser-use-demo/tests/test_streamlit_helpers.py | 64 | # Set provider to valid enum value so lambda can access it |
| LOW | browser-use-demo/tests/test_streamlit_helpers.py | 275 | # Set provider to valid enum value so lambda can access it |
| LOW | browser-use-demo/tests/test_streamlit_helpers.py | 23 | # Set provider to valid enum value so lambda can access it |
| LOW | browser-use-demo/tests/test_streamlit_helpers.py | 48 | # Set provider to valid enum value so lambda can access it |
| LOW | browser-use-demo/tests/test_streamlit_helpers.py | 95 | # Set provider to valid enum value so lambda can access it |
| LOW | browser-use-demo/tests/test_integration.py | 240 | # Set provider to valid enum value so lambda can access it |
| LOW | browser-use-demo/tests/test_integration.py | 279 | # Set provider to valid enum value so lambda can access it |
| LOW | browser-use-demo/tests/test_message_renderer.py | 297 | # Set markdown to raise an exception |
| LOW | browser-use-demo/image/xvfb_startup.sh | 30 | # Check if Xvfb is already running |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | autonomous-coding/security.py | 297 | |
| LOW | autonomous-coding/agent.py | 23 | |
| LOW | agents/agent.py | 96 | |
| LOW | agents/tools/calculator_mcp.py | 13 | |
| LOW | agents/tools/file_tools.py | 74 | |
| LOW | agents/tools/file_tools.py | 232 | |
| LOW | agents/tools/file_tools.py | 89 | |
| LOW | agents/tools/mcp_tool.py | 21 | |
| LOW | computer-use-demo/computer_use_demo/streamlit.py | 244 | |
| LOW | computer-use-demo/computer_use_demo/streamlit.py | 599 | |
| LOW | computer-use-demo/computer_use_demo/loop.py | 81 | |
| LOW | computer-use-demo/computer_use_demo/loop.py | 215 | |
| LOW | computer-use-demo/computer_use_demo/loop.py | 264 | |
| LOW | computer-use-demo/computer_use_demo/loop.py | 287 | |
| LOW | computer-use-demo/computer_use_demo/tools/edit.py | 44 | |
| LOW | computer-use-demo/computer_use_demo/tools/computer.py | 128 | |
| LOW | computer-use-best-practices/tests/test_formatters.py | 26 | |
| LOW | computer-use-best-practices/computer_use/formatters.py | 23 | |
| LOW | computer-use-best-practices/computer_use/loop.py | 241 | |
| LOW | computer-use-best-practices/computer_use/loop.py | 331 | |
| LOW | browser-use-demo/browser_use_demo/message_renderer.py | 134 | |
| LOW | browser-use-demo/browser_use_demo/streamlit.py | 113 | |
| LOW | browser-use-demo/browser_use_demo/streamlit.py | 238 | |
| LOW | browser-use-demo/browser_use_demo/streamlit.py | 336 | |
| LOW | browser-use-demo/browser_use_demo/streamlit.py | 531 | |
| LOW | browser-use-demo/browser_use_demo/streamlit.py | 213 | |
| LOW | browser-use-demo/browser_use_demo/streamlit.py | 254 | |
| LOW | browser-use-demo/browser_use_demo/loop.py | 66 | |
| LOW | browser-use-demo/browser_use_demo/loop.py | 176 | |
| LOW | browser-use-demo/browser_use_demo/tools/browser.py | 457 | |
| LOW | browser-use-demo/browser_use_demo/tools/browser.py | 616 | |
| LOW | browser-use-demo/browser_use_demo/tools/browser.py | 903 | |
| LOW | browser-use-demo/browser_use_demo/tools/browser.py | 1105 | |
| LOW | browser-use-demo/tests/conftest.py | 17 |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | agents/__init__.py | 3 | |
| LOW | agents/__init__.py | 3 | |
| LOW | agents/__init__.py | 4 | |
| LOW | agents/tools/__init__.py | 3 | |
| LOW | agents/tools/__init__.py | 4 | |
| LOW | agents/tools/__init__.py | 5 | |
| LOW | agents/tools/__init__.py | 5 | |
| LOW | agents/tools/__init__.py | 6 | |
| LOW | agents/tools/__init__.py | 7 | |
| LOW | agents/tools/mcp_tool.py | 5 | |
| LOW | agents/utils/__init__.py | 3 | |
| LOW | agents/utils/__init__.py | 4 | |
| LOW | …uter-use-best-practices/computer_use/tools/__init__.py | 1 | |
| LOW | …uter-use-best-practices/computer_use/tools/__init__.py | 1 | |
| LOW | …uter-use-best-practices/computer_use/tools/__init__.py | 2 | |
| LOW | browser-use-demo/validate_env.py | 6 | |
| LOW | browser-use-demo/browser_use_demo/streamlit.py | 10 | |
| LOW | browser-use-demo/browser_use_demo/loop.py | 5 | |
| LOW | browser-use-demo/browser_use_demo/tools/__init__.py | 1 | |
| LOW | browser-use-demo/browser_use_demo/tools/__init__.py | 1 | |
| LOW | browser-use-demo/browser_use_demo/tools/__init__.py | 1 | |
| LOW | browser-use-demo/browser_use_demo/tools/__init__.py | 2 | |
| LOW | browser-use-demo/browser_use_demo/tools/__init__.py | 3 | |
| LOW | browser-use-demo/browser_use_demo/tools/collection.py | 1 |
| Severity | File | Line | Snippet |
|---|---|---|---|
| HIGH | autonomous-coding/test_security.py | 52 | ("npm install && npm run build", ["npm", "npm"]), |
| HIGH | autonomous-coding/test_security.py | 56 | ("git status || git init", ["git", "git"]), |
| HIGH | autonomous-coding/test_security.py | 253 | "npm install && npm run build", |
| HIGH | autonomous-coding/agent.py | 202 | print(" npm install && npm run dev") |
| Severity | File | Line | Snippet |
|---|---|---|---|
| HIGH | autonomous-coding/autonomous_agent_demo.py | 84 | print(" export ANTHROPIC_API_KEY='your-api-key-here'") |
| HIGH | autonomous-coding/README.md | 25 | export ANTHROPIC_API_KEY='your-api-key-here' |
| HIGH | computer-use-demo/README.md | 44 | export ANTHROPIC_API_KEY=%your_api_key% |
| HIGH | computer-use-demo/README.md | 174 | export ANTHROPIC_API_KEY=%your_api_key% |
| Severity | File | Line | Snippet |
|---|---|---|---|
| MEDIUM | computer-use-demo/computer_use_demo/tools/edit.py | 193 | # Create a snippet of the edited section |
| MEDIUM | browser-use-demo/browser_use_demo/streamlit.py | 123 | # Create an in-memory ZIP file |
| MEDIUM | browser-use-demo/browser_use_demo/tools/browser.py | 845 | # Create a summary for UI display |
| MEDIUM | browser-use-demo/browser_use_demo/tools/browser.py | 889 | # Create a summary for UI display |
| MEDIUM | browser-use-demo/tests/test_message_renderer.py | 282 | # Create a mock that doesn't have expected attributes |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | computer-use-best-practices/config.example.toml | 1 | # Override any constants.Config field. Point CU_CONFIG at this file (in your |
| LOW | computer-use-best-practices/config.example.toml | 21 | # api_retry_max_attempts = 5 |
| LOW | computer-use-best-practices/requirements.txt | 1 | # This file was autogenerated by uv via the following command: |
| LOW | computer-use-best-practices/requirements.txt | 21 | # via streamlit |
| LOW | computer-use-best-practices/requirements.txt | 41 | gitdb==4.0.12 ; sys_platform == 'darwin' |
| LOW | computer-use-best-practices/requirements.txt | 61 | # via |
| LOW | computer-use-best-practices/requirements.txt | 81 | packaging==26.0 ; sys_platform == 'darwin' |
| LOW | computer-use-best-practices/requirements.txt | 101 | # via |
| LOW | computer-use-best-practices/requirements.txt | 141 | # jsonschema |
| LOW | computer-use-best-practices/requirements.txt | 161 | tenacity==9.1.4 ; sys_platform == 'darwin' |
| LOW | computer-use-best-practices/requirements.txt | 181 | # via |
| LOW | computer-use-best-practices/constants.py | 61 | # Hosted (Anthropic-defined) computer-use tool. Newer dated revisions exist; |
| LOW | computer-use-best-practices/constants.py | 81 | # remain explicit. |
| LOW | computer-use-best-practices/constants.py | 101 | # pre-resize so the server's early-return fires and the model sees the |
| LOW | computer-use-best-practices/constants.py | 141 | # Expose an editor tool (view/create/str_replace/insert) confined to the |
| LOW | browser-use-demo/browser_use_demo/tools/browser.py | 221 | # The browser should persist across conversation turns |
| Severity | File | Line | Snippet |
|---|---|---|---|
| HIGH | …-use-demo/browser_use_demo/tools/coordinate_scaling.py | 37 | Get the documented size for the given viewport's aspect ratio. Args: viewport_width: Actua |
| HIGH | …-use-demo/browser_use_demo/tools/coordinate_scaling.py | 77 | Calculate scale factors for converting Claude coordinates to viewport coordinates. Args: v |
| Severity | File | Line | Snippet |
|---|---|---|---|
| MEDIUM | autonomous-coding/client.py | 64 | # Create comprehensive security settings |
| MEDIUM | browser-use-demo/tests/test_message_renderer.py | 1 | """Tests for MessageRenderer class with comprehensive edge case coverage.""" |