A collection of notebooks/recipes showcasing some fun and effective ways of using Claude.
434 matches across 17 categories. Click a row to expand file-level details.
| Severity | File | Line | Snippet |
|---|---|---|---|
| MEDIUM | tool_use/context_engineering/research_corpus.py | 848 | # ───────────────────────────────────────────────────────────────────── |
| MEDIUM | tool_use/context_engineering/research_corpus.py | 925 | # ───────────────────────────────────────────────────────────────────── |
| MEDIUM | tool_use/context_engineering/research_corpus.py | 1001 | # ───────────────────────────────────────────────────────────────────── |
| MEDIUM | tool_use/context_engineering/research_corpus.py | 1074 | # ───────────────────────────────────────────────────────────────────── |
| MEDIUM | tool_use/context_engineering/research_corpus.py | 1145 | # ───────────────────────────────────────────────────────────────────── |
| MEDIUM | tool_use/context_engineering/research_corpus.py | 1217 | # ───────────────────────────────────────────────────────────────────── |
| MEDIUM | tool_use/context_engineering/research_corpus.py | 1287 | # ───────────────────────────────────────────────────────────────────── |
| MEDIUM | tool_use/context_engineering/research_corpus.py | 1353 | # ───────────────────────────────────────────────────────────────────── |
| MEDIUM | claude_agent_sdk/utils/html_renderer.py | 54 | # ───────────────────────────────────────────────────────────────────────────── |
| MEDIUM | claude_agent_sdk/utils/html_renderer.py | 56 | # ───────────────────────────────────────────────────────────────────────────── |
| MEDIUM | claude_agent_sdk/utils/html_renderer.py | 136 | # ───────────────────────────────────────────────────────────────────────────── |
| MEDIUM | claude_agent_sdk/utils/html_renderer.py | 138 | # ───────────────────────────────────────────────────────────────────────────── |
| MEDIUM | claude_agent_sdk/utils/html_renderer.py | 169 | # ───────────────────────────────────────────────────────────────────────────── |
| MEDIUM | claude_agent_sdk/utils/html_renderer.py | 171 | # ───────────────────────────────────────────────────────────────────────────── |
| MEDIUM | claude_agent_sdk/utils/html_renderer.py | 310 | # ───────────────────────────────────────────────────────────────────────────── |
| MEDIUM | claude_agent_sdk/utils/html_renderer.py | 312 | # ───────────────────────────────────────────────────────────────────────────── |
| MEDIUM | claude_agent_sdk/utils/html_renderer.py | 387 | # ───────────────────────────────────────────────────────────────────────────── |
| MEDIUM | claude_agent_sdk/utils/html_renderer.py | 389 | # ───────────────────────────────────────────────────────────────────────────── |
| MEDIUM | …ude_agent_sdk/site_reliability_agent/sre_mcp_server.py | 1569 | # ============================================================================ |
| MEDIUM | …ude_agent_sdk/site_reliability_agent/sre_mcp_server.py | 1571 | # ============================================================================ |
| MEDIUM | …ude_agent_sdk/site_reliability_agent/sre_mcp_server.py | 1858 | # ============================================================================ |
| MEDIUM | …ude_agent_sdk/site_reliability_agent/sre_mcp_server.py | 1860 | # ============================================================================ |
| MEDIUM | claude_agent_sdk/site_reliability_agent/infra_setup.py | 23 | # ============================================================================= |
| MEDIUM | claude_agent_sdk/site_reliability_agent/infra_setup.py | 25 | # ============================================================================= |
| MEDIUM | claude_agent_sdk/site_reliability_agent/infra_setup.py | 139 | # ============================================================================= |
| MEDIUM | claude_agent_sdk/site_reliability_agent/infra_setup.py | 141 | # ============================================================================= |
| MEDIUM | claude_agent_sdk/site_reliability_agent/infra_setup.py | 665 | # ============================================================================= |
| MEDIUM | claude_agent_sdk/site_reliability_agent/infra_setup.py | 667 | # ============================================================================= |
| MEDIUM | claude_agent_sdk/site_reliability_agent/infra_setup.py | 187 | # ============================================================================= |
| MEDIUM | claude_agent_sdk/site_reliability_agent/infra_setup.py | 189 | # ============================================================================= |
| MEDIUM | claude_agent_sdk/site_reliability_agent/infra_setup.py | 210 | # ============================================================================= |
| MEDIUM | claude_agent_sdk/site_reliability_agent/infra_setup.py | 212 | # ============================================================================= |
| MEDIUM | claude_agent_sdk/site_reliability_agent/infra_setup.py | 283 | # ============================================================================= |
| MEDIUM | claude_agent_sdk/site_reliability_agent/infra_setup.py | 285 | # ============================================================================= |
| MEDIUM | claude_agent_sdk/site_reliability_agent/infra_setup.py | 702 | # ============================================================================= |
| MEDIUM | claude_agent_sdk/site_reliability_agent/infra_setup.py | 704 | # ============================================================================= |
| MEDIUM | claude_agent_sdk/site_reliability_agent/infra_setup.py | 838 | # ============================================================================= |
| MEDIUM | claude_agent_sdk/site_reliability_agent/infra_setup.py | 840 | # ============================================================================= |
| MEDIUM | claude_agent_sdk/site_reliability_agent/infra_setup.py | 1013 | # ============================================================================= |
| MEDIUM | claude_agent_sdk/site_reliability_agent/infra_setup.py | 1015 | # ============================================================================= |
| MEDIUM | …t_sdk/site_reliability_agent/examples/sre_bot_slack.py | 112 | # ============================================================================ |
| MEDIUM | …t_sdk/site_reliability_agent/examples/sre_bot_slack.py | 114 | # ============================================================================ |
| MEDIUM | claude_agent_sdk/hosting/kubernetes/kind-quickstart.sh | 2 | # ============================================================================= |
| MEDIUM | claude_agent_sdk/hosting/kubernetes/kind-quickstart.sh | 4 | # ============================================================================= |
| MEDIUM | claude_agent_sdk/hosting/kubernetes/kind-quickstart.sh | 10 | # ============================================================================= |
| MEDIUM | claude_agent_sdk/hosting/kubernetes/kind-quickstart.sh | 40 | # 1. Cluster ──────────────────────────────────────────────────────────────── |
| MEDIUM | claude_agent_sdk/hosting/kubernetes/kind-quickstart.sh | 67 | # 2. Images ───────────────────────────────────────────────────────────────── |
| MEDIUM | claude_agent_sdk/hosting/kubernetes/kind-quickstart.sh | 83 | # 3. Certificates ─────────────────────────────────────────────────────────── |
| MEDIUM | claude_agent_sdk/hosting/kubernetes/kind-quickstart.sh | 87 | # 4. Namespace, secrets, config ───────────────────────────────────────────── |
| MEDIUM | claude_agent_sdk/hosting/kubernetes/kind-quickstart.sh | 118 | # 5. Manifests ────────────────────────────────────────────────────────────── |
| MEDIUM | claude_agent_sdk/hosting/kubernetes/kind-quickstart.sh | 132 | # 6. Wait ─────────────────────────────────────────────────────────────────── |
| MEDIUM | claude_agent_sdk/hosting/kubernetes/kind-quickstart.sh | 138 | # 7. Done ─────────────────────────────────────────────────────────────────── |
| MEDIUM | claude_agent_sdk/hosting/kubernetes/generate-certs.sh | 2 | # ============================================================================= |
| MEDIUM | claude_agent_sdk/hosting/kubernetes/generate-certs.sh | 4 | # ============================================================================= |
| MEDIUM | claude_agent_sdk/hosting/kubernetes/generate-certs.sh | 31 | # ============================================================================= |
| MEDIUM | claude_agent_sdk/hosting/kubernetes/gateway/k8s.py | 27 | # --------------------------------------------------------------------------- |
| MEDIUM | claude_agent_sdk/hosting/kubernetes/gateway/k8s.py | 29 | # --------------------------------------------------------------------------- |
| MEDIUM | claude_agent_sdk/hosting/kubernetes/gateway/k8s.py | 64 | # --------------------------------------------------------------------------- |
| MEDIUM | claude_agent_sdk/hosting/kubernetes/gateway/k8s.py | 66 | # --------------------------------------------------------------------------- |
| MEDIUM | claude_agent_sdk/hosting/kubernetes/gateway/k8s.py | 233 | # --------------------------------------------------------------------------- |
| 17 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | tool_use/memory_tool.py | 116 | except Exception as e: |
| LOW | tool_use/memory_tool.py | 144 | except Exception as e: |
| LOW | tool_use/memory_tool.py | 168 | except Exception as e: |
| LOW | tool_use/memory_tool.py | 199 | except Exception as e: |
| LOW | tool_use/memory_tool.py | 237 | except Exception as e: |
| LOW | tool_use/memory_tool.py | 272 | except Exception as e: |
| LOW | tool_use/memory_tool.py | 309 | except Exception as e: |
| LOW | tool_use/memory_tool.py | 341 | except Exception as e: |
| LOW | tool_use/memory_tool.py | 361 | except Exception as e: |
| LOW | tool_use/memory_demo/sample_code/api_client_v1.py | 31 | except Exception as e: |
| LOW | tool_use/memory_demo/sample_code/data_processor_v1.py | 38 | except Exception as e: |
| LOW | capabilities/classification/evaluation/transform.py | 4 | except Exception as e: |
| MEDIUM | capabilities/classification/evaluation/transform.py | 5 | print(f"Error in get_transform: {e}") |
| MEDIUM | capabilities/classification/evaluation/transform.py | 1 | def get_transform(output, context): |
| LOW | …ies/summarization/evaluation/custom_evals/bleu_eval.py | 45 | except Exception as e: |
| MEDIUM | …ies/summarization/evaluation/custom_evals/bleu_eval.py | 46 | print(f"Error calculating BLEU score: {e}. Defaulting to 0.") |
| LOW | …_augmented_generation/evaluation/provider_retrieval.py | 110 | except Exception as e: |
| MEDIUM | …_augmented_generation/evaluation/provider_retrieval.py | 111 | print(f"An error occurred during reranking: {str(e)}") |
| LOW | …eval_augmented_generation/evaluation/eval_retrieval.py | 63 | except Exception as e: |
| LOW | …s/retrieval_augmented_generation/evaluation/prompts.py | 152 | except Exception as e: |
| MEDIUM | …s/retrieval_augmented_generation/evaluation/prompts.py | 153 | print(f"An error occurred during reranking: {str(e)}") |
| LOW | …val_augmented_generation/evaluation/eval_end_to_end.py | 69 | except Exception as e: |
| LOW | …es/text_to_sql/evaluation/tests/test_employee_count.py | 11 | except Exception as e: |
| LOW | …es/text_to_sql/evaluation/tests/test_average_salary.py | 11 | except Exception as e: |
| LOW | …ext_to_sql/evaluation/tests/test_hierarchical_query.py | 18 | except Exception as e: |
| LOW | …t_to_sql/evaluation/tests/test_above_average_salary.py | 11 | except Exception as e: |
| LOW | …/text_to_sql/evaluation/tests/test_employee_details.py | 11 | except Exception as e: |
| LOW | …text_to_sql/evaluation/tests/test_budget_allocation.py | 20 | except Exception as e: |
| MEDIUM | …gs/contextual-rag-lambda-function/inference_adapter.py | 43 | print(f"An error occurred: {e}") |
| MEDIUM | …mbeddings/contextual-rag-lambda-function/s3_adapter.py | 40 | print(f"Error occurred: {e}") |
| MEDIUM | …mbeddings/contextual-rag-lambda-function/s3_adapter.py | 59 | print(f"Error reading file from S3: {str(e)}") |
| LOW | tests/notebook_tests/utils.py | 353 | except Exception as e: |
| LOW | .claude/skills/cookbook-audit/validate_notebook.py | 176 | except Exception as e: |
| MEDIUM | .claude/skills/cookbook-audit/validate_notebook.py | 472 | print(f"Error: {e}") |
| MEDIUM | .claude/skills/cookbook-audit/validate_notebook.py | 475 | print(f"Error: {notebook_path} is not a valid JSON file") |
| LOW | .claude/skills/cookbook-audit/validate_notebook.py | 477 | except Exception as e: |
| LOW | …gents/self_hosted_sandboxes/daytona/daytona_webhook.py | 171 | except Exception as e: |
| LOW | …s/self_hosted_sandboxes/modal/modal_sandbox_webhook.py | 234 | except Exception as e: |
| LOW | …d_party/ElevenLabs/stream_voice_assistant_websocket.py | 140 | except Exception: # noqa: S110 |
| LOW | claude_agent_sdk/utils/agent_visualizer.py | 59 | except Exception: |
| MEDIUM | …ude_agent_sdk/site_reliability_agent/sre_mcp_server.py | 2717 | print(f"Error: {e}", file=sys.stderr) |
| LOW | …ude_agent_sdk/site_reliability_agent/sre_mcp_server.py | 1851 | except Exception as e: |
| LOW | …ude_agent_sdk/site_reliability_agent/sre_mcp_server.py | 707 | except Exception as e: |
| LOW | …ude_agent_sdk/site_reliability_agent/sre_mcp_server.py | 765 | except Exception as e: |
| LOW | …ude_agent_sdk/site_reliability_agent/sre_mcp_server.py | 811 | except Exception as e: |
| LOW | …ude_agent_sdk/site_reliability_agent/sre_mcp_server.py | 846 | except Exception as e: |
| LOW | …ude_agent_sdk/site_reliability_agent/sre_mcp_server.py | 875 | except Exception as e: |
| LOW | …ude_agent_sdk/site_reliability_agent/sre_mcp_server.py | 900 | except Exception as e: |
| LOW | …ude_agent_sdk/site_reliability_agent/sre_mcp_server.py | 1654 | except Exception as e: |
| LOW | …ude_agent_sdk/site_reliability_agent/sre_mcp_server.py | 1727 | except Exception as e: |
| LOW | …ude_agent_sdk/site_reliability_agent/sre_mcp_server.py | 1781 | except Exception as e: |
| LOW | …ude_agent_sdk/site_reliability_agent/sre_mcp_server.py | 2045 | except Exception as e: |
| LOW | …ude_agent_sdk/site_reliability_agent/sre_mcp_server.py | 2136 | except Exception as e: |
| LOW | …ude_agent_sdk/site_reliability_agent/sre_mcp_server.py | 2202 | except Exception as e: |
| LOW | …ude_agent_sdk/site_reliability_agent/sre_mcp_server.py | 2245 | except Exception as e: |
| LOW | …ude_agent_sdk/site_reliability_agent/sre_mcp_server.py | 2314 | except Exception as e: |
| LOW | …ude_agent_sdk/site_reliability_agent/sre_mcp_server.py | 2418 | except Exception as e: |
| LOW | …ude_agent_sdk/site_reliability_agent/sre_mcp_server.py | 2501 | except Exception as e: |
| LOW | …ude_agent_sdk/site_reliability_agent/sre_mcp_server.py | 2715 | except Exception as e: |
| LOW | claude_agent_sdk/site_reliability_agent/infra_setup.py | 438 | except Exception as e: |
| 44 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | tool_use/tests/test_memory_tool.py | 29 | def test_path_validation_requires_memories_prefix(self): |
| LOW | tool_use/tests/test_memory_tool.py | 35 | def test_path_validation_prevents_traversal_dotdot(self): |
| LOW | tool_use/tests/test_memory_tool.py | 41 | def test_path_validation_prevents_traversal_encoded(self): |
| LOW | tool_use/tests/test_memory_tool.py | 47 | def test_path_validation_allows_valid_paths(self): |
| LOW | tool_use/tests/test_memory_tool.py | 54 | def test_view_empty_directory(self): |
| LOW | tool_use/tests/test_memory_tool.py | 60 | def test_view_directory_with_files(self): |
| LOW | tool_use/tests/test_memory_tool.py | 71 | def test_view_file_with_line_numbers(self): |
| LOW | tool_use/tests/test_memory_tool.py | 82 | def test_view_file_with_range(self): |
| LOW | tool_use/tests/test_memory_tool.py | 94 | def test_view_nonexistent_path(self): |
| LOW | tool_use/tests/test_memory_tool.py | 114 | def test_create_file_in_subdirectory(self): |
| LOW | tool_use/tests/test_memory_tool.py | 126 | def test_create_requires_file_extension(self): |
| LOW | tool_use/tests/test_memory_tool.py | 132 | def test_create_overwrites_existing_file(self): |
| LOW | tool_use/tests/test_memory_tool.py | 164 | def test_str_replace_string_not_found(self): |
| LOW | tool_use/tests/test_memory_tool.py | 177 | def test_str_replace_multiple_occurrences(self): |
| LOW | tool_use/tests/test_memory_tool.py | 194 | def test_str_replace_file_not_found(self): |
| LOW | tool_use/tests/test_memory_tool.py | 292 | def test_delete_cannot_delete_root(self): |
| LOW | tool_use/tests/test_memory_tool.py | 298 | def test_delete_nonexistent_path(self): |
| LOW | tool_use/tests/test_memory_tool.py | 320 | def test_rename_to_subdirectory(self): |
| LOW | tool_use/tests/test_memory_tool.py | 334 | def test_rename_source_not_found(self): |
| LOW | tool_use/tests/test_memory_tool.py | 344 | def test_rename_destination_exists(self): |
| LOW | tool_use/tests/test_memory_tool.py | 365 | def test_missing_required_parameters(self): |
| LOW | tool_use/utils/visualize.py | 229 | def render_code_execution_result(content: ParsedContent, tree: Tree) -> None: |
| LOW | tool_use/memory_demo/demo_helpers.py | 183 | def print_context_management_info(response: Any) -> tuple[bool, int]: |
| LOW | tool_use/memory_demo/sample_code/cache_manager.py | 73 | class DataProcessor: |
| LOW | tool_use/memory_demo/sample_code/data_processor_v1.py | 13 | class DataProcessor: |
| LOW | capabilities/classification/evaluation/prompts.py | 124 | def rag_chain_of_thought_classify(context: dict): |
| LOW | …etrieval_augmented_generation/data/anthropic_docs.json | 165 | "text": "Example evals\n\n\nTask fidelity (sentiment analysis) - exact match evaluation What it measures : Exact mat |
| LOW | capabilities/text_to_sql/evaluation/prompts.py | 46 | def generate_prompt_with_examples(context): |
| LOW | …gs/contextual-rag-lambda-function/inference_adapter.py | 15 | def invoke_model_with_response_stream(self, prompt, max_tokens=1000): |
| LOW | tests/notebook_tests/conftest.py | 49 | def pytest_runtest_makereport(item: pytest.Item, call: pytest.CallInfo) -> None: |
| LOW | tests/notebook_tests/test_notebooks.py | 93 | def test_cells_executed_in_order(self, notebook_cells: list[CellInfo]) -> None: |
| LOW | tests/notebook_tests/test_notebooks.py | 100 | def test_execution_counts_start_from_one(self, notebook_cells: list[CellInfo]) -> None: |
| LOW | tests/notebook_tests/test_notebooks.py | 137 | def test_no_hardcoded_api_keys(self, notebook_cells: list[CellInfo]) -> None: |
| LOW | tests/notebook_tests/test_notebooks.py | 147 | def test_api_key_from_environment(self, notebook_cells: list[CellInfo]) -> None: |
| LOW | tests/notebook_tests/test_notebooks.py | 195 | def test_dependencies_documented(self, notebook_cells: list[CellInfo]) -> None: |
| LOW | tests/notebook_tests/test_notebooks.py | 217 | def test_notebook_executes_successfully( |
| LOW | tests/notebook_tests/test_notebooks.py | 280 | def test_no_deprecated_models(self, notebook_cells: list[CellInfo]) -> None: |
| LOW | tests/notebook_tests/utils.py | 79 | def validate_cell_execution_order(cells: list[CellInfo]) -> list[str]: |
| LOW | tests/notebook_tests/utils.py | 115 | def validate_all_cells_executed(cells: list[CellInfo]) -> list[str]: |
| LOW | tests/notebook_tests/utils.py | 130 | def validate_no_error_outputs(cells: list[CellInfo]) -> list[str]: |
| LOW | tests/notebook_tests/utils.py | 171 | def validate_no_hardcoded_secrets(cells: list[CellInfo]) -> list[str]: |
| LOW | tests/notebook_tests/utils.py | 193 | def validate_uses_env_for_api_key(cells: list[CellInfo]) -> list[str]: |
| LOW | tests/notebook_tests/utils.py | 253 | def validate_notebook_structure(path: Path) -> NotebookValidationResult: |
| LOW | .claude/skills/cookbook-audit/validate_notebook.py | 180 | def _check_hardcoded_secrets_fallback(self): |
| LOW | .claude/skills/cookbook-audit/validate_notebook.py | 327 | def check_deprecated_patterns(self): |
| LOW | …ged_agents/example_data/orchestrate/tests/test_urls.py | 16 | def test_slugify_special_chars(): |
| LOW | …d_party/ElevenLabs/stream_voice_assistant_websocket.py | 271 | def stream_claude_and_synthesize_ws(messages, audio_queue): |
| LOW | claude_agent_sdk/utils/html_renderer.py | 473 | def _extract_model_from_messages(messages: list[Any]) -> str | None: |
| LOW | claude_agent_sdk/utils/html_renderer.py | 499 | def visualize_conversation_html(messages: list[Any]) -> None: |
| LOW | claude_agent_sdk/utils/agent_visualizer.py | 77 | def extract_model_from_messages(messages: list[Any]) -> str | None: |
| LOW | claude_agent_sdk/utils/agent_visualizer.py | 301 | def _format_subagent_completion_line(subagent_name: str | None) -> str: |
| LOW | …ude_agent_sdk/site_reliability_agent/sre_mcp_server.py | 1574 | async def pagerduty_create_incident( |
| LOW | …ude_agent_sdk/site_reliability_agent/sre_mcp_server.py | 1863 | def get_confluence_auth_header() -> str: |
| LOW | …ude_agent_sdk/site_reliability_agent/sre_mcp_server.py | 1870 | def generate_postmortem_content( |
| LOW | …ude_agent_sdk/site_reliability_agent/sre_mcp_server.py | 1661 | async def pagerduty_update_incident( |
| LOW | …ude_agent_sdk/site_reliability_agent/sre_mcp_server.py | 2143 | async def confluence_list_postmortems( |
| LOW | …ude_agent_sdk/site_reliability_agent/sre_mcp_server.py | 1958 | async def confluence_create_postmortem( |
| LOW | claude_agent_sdk/site_reliability_agent/infra_setup.py | 415 | def update_connection_metrics(): |
| LOW | …t_sdk/site_reliability_agent/examples/sre_bot_slack.py | 387 | def convert_markdown_to_slack(text: str) -> str: |
| LOW | …sdk/chief_of_staff_agent/scripts/financial_forecast.py | 65 | def calculate_profitability_date(forecast: list[dict[str, Any]]) -> int: |
| 14 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| HIGH | capabilities/classification/evaluation/README.md | 42 | `export ANTHROPIC_API_KEY=YOUR_API_KEY` |
| HIGH | capabilities/classification/evaluation/README.md | 43 | `export VOYAGE_API_KEY=YOUR_API_KEY` |
| HIGH | capabilities/summarization/evaluation/README.md | 28 | To get started, set your ANTHROPIC_API_KEY environment variable, or other required keys for the providers you selected. |
| HIGH | …es/retrieval_augmented_generation/evaluation/README.md | 50 | `export ANTHROPIC_API_KEY=YOUR_API_KEY` |
| HIGH | …es/retrieval_augmented_generation/evaluation/README.md | 51 | `export VOYAGE_API_KEY=YOUR_API_KEY` |
| HIGH | …etrieval_augmented_generation/data/anthropic_docs.json | 35 | "text": "Authentication\n\n\nAll requests to the Claude API must include an x-api-key header with your API key. If y |
| HIGH | …etrieval_augmented_generation/data/anthropic_docs.json | 58 | "chunk_link": "https://docs.claude.com/en/docs/quickstart#set-your-api-key", |
| HIGH | …etrieval_augmented_generation/data/anthropic_docs.json | 60 | "text": "Set your API key\n\n\nEvery API call requires a valid API key. The SDKs are designed to pull the API key fr |
| HIGH | capabilities/text_to_sql/evaluation/README.md | 23 | To get started, set your ANTHROPIC_API_KEY environment variable, or other required keys for the providers you selected. |
| HIGH | skills/README.md | 142 | api_key="your-api-key", |
| HIGH | skills/README.md | 171 | client = Anthropic(api_key="your-api-key") |
| HIGH | skills/CLAUDE.md | 230 | ANTHROPIC_API_KEY=your-api-key-here |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | tool_use/memory_tool.py | 76 | |
| LOW | tool_use/memory_tool.py | 119 | |
| LOW | tool_use/utils/customer_service_tools.py | 114 | |
| LOW | tool_use/utils/visualize.py | 196 | |
| LOW | tool_use/utils/visualize.py | 265 | |
| LOW | tool_use/memory_demo/demo_helpers.py | 31 | |
| LOW | tool_use/memory_demo/demo_helpers.py | 183 | |
| LOW | tool_use/memory_demo/code_review_demo.py | 98 | |
| LOW | …ext_to_sql/evaluation/tests/test_hierarchical_query.py | 4 | |
| LOW | …text_to_sql/evaluation/tests/test_budget_allocation.py | 4 | |
| LOW | …gs/contextual-rag-lambda-function/inference_adapter.py | 15 | |
| LOW | tests/notebook_tests/test_notebooks.py | 195 | |
| LOW | tests/notebook_tests/utils.py | 130 | |
| LOW | tests/notebook_tests/utils.py | 193 | |
| LOW | tests/notebook_tests/utils.py | 225 | |
| LOW | .claude/skills/cookbook-audit/validate_notebook.py | 87 | |
| LOW | .claude/skills/cookbook-audit/validate_notebook.py | 327 | |
| LOW | managed_agents/utilities.py | 47 | |
| LOW | claude_agent_sdk/utils/html_renderer.py | 225 | |
| LOW | claude_agent_sdk/utils/html_renderer.py | 473 | |
| LOW | claude_agent_sdk/utils/html_renderer.py | 499 | |
| LOW | claude_agent_sdk/utils/agent_visualizer.py | 77 | |
| LOW | claude_agent_sdk/utils/agent_visualizer.py | 119 | |
| LOW | claude_agent_sdk/utils/agent_visualizer.py | 229 | |
| LOW | claude_agent_sdk/utils/agent_visualizer.py | 278 | |
| LOW | claude_agent_sdk/utils/agent_visualizer.py | 317 | |
| LOW | …ude_agent_sdk/site_reliability_agent/sre_mcp_server.py | 629 | |
| LOW | …ude_agent_sdk/site_reliability_agent/sre_mcp_server.py | 719 | |
| LOW | …ude_agent_sdk/site_reliability_agent/sre_mcp_server.py | 772 | |
| LOW | …ude_agent_sdk/site_reliability_agent/sre_mcp_server.py | 1045 | |
| LOW | …ude_agent_sdk/site_reliability_agent/sre_mcp_server.py | 1458 | |
| LOW | …ude_agent_sdk/site_reliability_agent/sre_mcp_server.py | 2547 | |
| LOW | …ude_agent_sdk/site_reliability_agent/sre_mcp_server.py | 2658 | |
| LOW | …t_sdk/site_reliability_agent/examples/sre_bot_slack.py | 117 | |
| LOW | …t_sdk/site_reliability_agent/examples/sre_bot_slack.py | 401 | |
| LOW | …t_sdk/site_reliability_agent/examples/sre_bot_slack.py | 525 | |
| LOW | claude_agent_sdk/hosting/kubernetes/gateway/k8s.py | 412 | |
| LOW | claude_agent_sdk/hosting/kubernetes/gateway/main.py | 313 | |
| LOW | claude_agent_sdk/research_agent/agent.py | 41 | |
| LOW | claude_agent_sdk/chief_of_staff_agent/agent.py | 18 | |
| LOW | …gent_sdk/chief_of_staff_agent/scripts/talent_scorer.py | 69 | |
| LOW | …gent_sdk/chief_of_staff_agent/scripts/talent_scorer.py | 111 | |
| LOW | …nt_sdk/chief_of_staff_agent/scripts/decision_matrix.py | 36 | |
| LOW | …nt_sdk/chief_of_staff_agent/scripts/decision_matrix.py | 158 | |
| LOW | scripts/validate_all_notebooks.py | 774 | |
| LOW | scripts/validate_all_notebooks.py | 67 | |
| LOW | scripts/validate_all_notebooks.py | 239 | |
| LOW | scripts/validate_all_notebooks.py | 342 | |
| LOW | scripts/validate_all_notebooks.py | 463 | |
| LOW | scripts/validate_all_notebooks.py | 545 | |
| LOW | scripts/validate_all_notebooks.py | 654 | |
| LOW | scripts/validate_all_notebooks.py | 705 | |
| LOW | scripts/test_notebooks.py | 112 | |
| LOW | scripts/validate_notebooks.py | 14 | |
| LOW | .github/scripts/verify_registry.py | 63 | |
| LOW | skills/skill_utils.py | 291 | |
| LOW | skills/file_utils.py | 18 | |
| LOW | …s/custom_skills/creating-financial-models/dcf_model.py | 356 | |
| LOW | …lls/analyzing-financial-statements/interpret_ratios.py | 70 | |
| LOW | …lls/analyzing-financial-statements/calculate_ratios.py | 229 | |
| 1 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | tool_use/memory_tool.py | 195 | # Write the file |
| LOW | tool_use/memory_tool.py | 219 | # Check if old_str exists |
| LOW | tool_use/utils/team_expense_api.py | 513 | # Check if user has custom budget |
| LOW | capabilities/classification/evaluation/vectordb.py | 20 | # Check if the vector database is already loaded |
| LOW | capabilities/classification/evaluation/vectordb.py | 24 | # Check if vector_db.pkl exists |
| LOW | …etrieval_augmented_generation/data/anthropic_docs.json | 745 | "text": "Evaluation Methodology\n\n\nTo assess your classifier\u2019s performance, we\u2019ll call our classifier fu |
| LOW | …mbeddings/contextual-rag-lambda-function/s3_adapter.py | 31 | # Check if the upload was successful |
| LOW | …ings/contextual-rag-lambda-function/lambda_function.py | 50 | # Read file from S3 |
| LOW | tests/notebook_tests/test_notebooks.py | 149 | # Check if notebook uses Anthropic |
| LOW | tests/notebook_tests/test_notebooks.py | 200 | # Check if there's a requirements mention in markdown |
| LOW | tests/notebook_tests/utils.py | 218 | # Check if it's using default client (which reads from env automatically) |
| LOW | .claude/skills/cookbook-audit/validate_notebook.py | 311 | # Check if there are any model references at all |
| LOW | …d_party/ElevenLabs/stream_voice_assistant_websocket.py | 300 | # Check if generation is complete |
| LOW | claude_agent_sdk/utils/html_renderer.py | 151 | # Check if any item looks like a message (has content attribute and message-like class) |
| LOW | claude_agent_sdk/utils/agent_visualizer.py | 26 | # Display results (auto-detects Jupyter vs terminal) |
| LOW | claude_agent_sdk/utils/agent_visualizer.py | 140 | # Check if content exists and has elements |
| LOW | claude_agent_sdk/utils/agent_visualizer.py | 160 | # Check if we're inside a subagent context |
| LOW | claude_agent_sdk/utils/agent_visualizer.py | 180 | # Check if this is a Task tool result (subagent completed) |
| LOW | claude_agent_sdk/utils/agent_visualizer.py | 251 | # Check if it has text content (not just tool use) |
| LOW | …t_sdk/site_reliability_agent/examples/sre_bot_slack.py | 621 | # Check if this is a DM |
| LOW | …t_sdk/site_reliability_agent/examples/sre_bot_slack.py | 624 | # Check if this is a follow-up in an active thread |
| LOW | claude_agent_sdk/observability_agent/agent.py | 142 | # Display the result using the shared visualization utility |
| LOW | claude_agent_sdk/research_agent/agent.py | 56 | # Check if content exists and has items |
| LOW | claude_agent_sdk/research_agent/agent.py | 128 | # Display the result using the shared visualization utility |
| LOW | …ef_of_staff_agent/.claude/hooks/script-usage-logger.py | 25 | # Check if it's executing a Python script from scripts/ directory |
| LOW | scripts/validate_all_notebooks.py | 479 | # Check if needs revalidation |
| LOW | scripts/validate_all_notebooks.py | 507 | # Display result |
| LOW | .github/workflows/notebook-quality.yml | 48 | # Check if validation found issues |
| LOW | skills/file_utils.py | 129 | # Check if file exists |
| LOW | …tom_skills/applying-brand-guidelines/validate_brand.py | 88 | # Check if any approved font is in the found font string |
| LOW | …tom_skills/applying-brand-guidelines/validate_brand.py | 296 | # Print results |
| LOW | skills/.claude/hooks/session-start.sh | 10 | # Check if we're in a virtual environment |
| LOW | skills/.claude/hooks/session-start.sh | 17 | # Check if Anthropic SDK is installed and get version |
| Severity | File | Line | Snippet |
|---|---|---|---|
| HIGH | claude_agent_sdk/site_reliability_agent/infra_setup.py | 92 | sh -c "pip install aiohttp && python traffic_generator.py" |
| HIGH | claude_agent_sdk/site_reliability_agent/infra_setup.py | 677 | RUN apt-get update && apt-get install -y curl && rm -rf /var/lib/apt/lists/* |
| HIGH | claude_agent_sdk/site_reliability_agent/infra_setup.py | 1043 | " 2>/dev/null) |
| HIGH | claude_agent_sdk/site_reliability_agent/infra_setup.py | 1046 | if [ "$NEW_VALUE" -lt 5 ] 2>/dev/null || [ "$NEW_VALUE" -gt 100 ] 2>/dev/null; then |
| HIGH | claude_agent_sdk/site_reliability_agent/infra_setup.py | 1063 | " 2>/dev/null) |
| HIGH | claude_agent_sdk/site_reliability_agent/infra_setup.py | 1071 | [ "$POOL_SIZE" -gt 100 ] 2>/dev/null; }; then |
| HIGH | claude_agent_sdk/hosting/modal/modal_app.py | 11 | Prereqs: ``pip install modal && modal setup`` and a Modal secret named |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | tool_use/utils/__init__.py | 9 | |
| LOW | tool_use/utils/__init__.py | 9 | |
| LOW | tool_use/memory_demo/__init__.py | 3 | |
| LOW | tool_use/memory_demo/__init__.py | 3 | |
| LOW | tool_use/memory_demo/__init__.py | 3 | |
| LOW | tool_use/memory_demo/__init__.py | 3 | |
| LOW | tests/conftest.py | 3 | |
| LOW | tests/notebook_tests/conftest.py | 3 | |
| LOW | tests/notebook_tests/test_notebooks.py | 14 | |
| LOW | tests/notebook_tests/utils.py | 3 | |
| LOW | …gents/self_hosted_sandboxes/daytona/daytona_webhook.py | 18 | |
| LOW | …s/self_hosted_sandboxes/modal/modal_sandbox_webhook.py | 34 | |
| LOW | claude_agent_sdk/utils/agent_visualizer.py | 33 | |
| LOW | claude_agent_sdk/hosting/server.py | 27 | |
| LOW | claude_agent_sdk/hosting/run_once.py | 8 | |
| LOW | claude_agent_sdk/hosting/modal/teardown.py | 8 | |
| LOW | claude_agent_sdk/hosting/modal/modal_app.py | 21 | |
| LOW | scripts/test_notebooks.py | 25 |
| Severity | File | Line | Snippet |
|---|---|---|---|
| MEDIUM | …etrieval_augmented_generation/data/anthropic_docs.json | 165 | "text": "Example evals\n\n\nTask fidelity (sentiment analysis) - exact match evaluation What it measures : Exact mat |
| MEDIUM | …etrieval_augmented_generation/data/anthropic_docs.json | 340 | "text": "About the prompt examples\n\n\nThese prompt examples use the Anthropic Python SDK, and fetch images from Wi |
| MEDIUM | …etrieval_augmented_generation/data/anthropic_docs.json | 820 | "text": "Vision\n\n\nClaude can read both text and images in requests. Currently, we support the base64 source type |
| MEDIUM | …etrieval_augmented_generation/data/anthropic_docs.json | 858 | "chunk_link": "https://docs.claude.com/en/docs/test-and-evaluate/strengthen-guardrails/reduce-latency#3-leverage-str |
| MEDIUM | …etrieval_augmented_generation/data/anthropic_docs.json | 858 | "chunk_link": "https://docs.claude.com/en/docs/test-and-evaluate/strengthen-guardrails/reduce-latency#3-leverage-str |
| MEDIUM | …etrieval_augmented_generation/data/anthropic_docs.json | 990 | "text": "Examples\n\n\nExample: Analyzing a legal contract (without chaining) Note that Claude misses the instructio |
| MEDIUM | …etrieval_augmented_generation/data/anthropic_docs.json | 990 | "text": "Examples\n\n\nExample: Analyzing a legal contract (without chaining) Note that Claude misses the instructio |
| MEDIUM | …ude_agent_sdk/site_reliability_agent/sre_mcp_server.py | 773 | """Get a comprehensive health summary across all services.""" |
| MEDIUM | …lls/analyzing-financial-statements/calculate_ratios.py | 83 | """Calculate leverage/solvency ratios.""" |
| Severity | File | Line | Snippet |
|---|---|---|---|
| HIGH | tool_use/memory_tool.py | 38 | Validate and resolve memory paths to prevent directory traversal attacks. Args: path: The |
| HIGH | tool_use/utils/team_expense_api.py | 218 | Returns all expense line items for a given employee in a specific quarter. Each expense includes comprehensive meta |
| HIGH | …tom_skills/applying-brand-guidelines/validate_brand.py | 211 | Load brand guidelines from JSON file Args: filepath: Path to JSON file containing brand guidelines |
| Severity | File | Line | Snippet |
|---|---|---|---|
| HIGH | …s/retrieval_augmented_generation/evaluation/prompts.py | 0 | you have been tasked with helping us to answer the following query: <query> {input_query} </query> you have access to th |
| HIGH | …s/retrieval_augmented_generation/evaluation/prompts.py | 0 | you have been tasked with helping us to answer the following query: <query> {input_query} </query> you have access to th |
| HIGH | …s/retrieval_augmented_generation/evaluation/prompts.py | 0 | you have been tasked with helping us to answer the following query: <query> {input_query} </query> you have access to th |
| Severity | File | Line | Snippet |
|---|---|---|---|
| MEDIUM | tool_use/utils/visualize.py | 289 | # Create main tree with token usage in the title |
| MEDIUM | …etrieval_augmented_generation/data/anthropic_docs.json | 725 | "text": "Prompting Claude for Ticket Routing\n\n\nTicket routing is a classification task. For more information abou |
| MEDIUM | …etrieval_augmented_generation/data/anthropic_docs.json | 745 | "text": "Evaluation Methodology\n\n\nTo assess your classifier\u2019s performance, we\u2019ll call our classifier fu |
| MEDIUM | …mbeddings/contextual-rag-lambda-function/s3_adapter.py | 9 | # Create an S3 client |
| MEDIUM | claude_agent_sdk/site_reliability_agent/infra_setup.py | 149 | # This file is read by the api-server container |
| Severity | File | Line | Snippet |
|---|---|---|---|
| MEDIUM | …bilities/summarization/evaluation/promptfooconfig.yaml | 25 | - "As an AI language model" |
| MEDIUM | …etrieval_augmented_generation/data/anthropic_docs.json | 215 | "text": "Voyage Python package\n\n\nThe voyageai package can be installed using the following command:\nPythonpip in |
| MEDIUM | …etrieval_augmented_generation/data/anthropic_docs.json | 240 | "text": "FAQ\n\n\nHow do I calculate the distance between two embedding vectors? Cosine similarity is a popular choi |
| MEDIUM | …etrieval_augmented_generation/data/anthropic_docs.json | 725 | "text": "Prompting Claude for Ticket Routing\n\n\nTicket routing is a classification task. For more information abou |
| MEDIUM | …etrieval_augmented_generation/data/anthropic_docs.json | 795 | "text": "Example 1: Controlling output formatting and skipping the preamble\n\n\nPower user tip : Prefilling { force |
| MEDIUM | …etrieval_augmented_generation/data/anthropic_docs.json | 1140 | "text": "Use retrieval for contextual consistency\n\n\nFor tasks requiring consistent context (e.g., chatbots, knowl |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | managed_agents/self_hosted_sandboxes/docker/start.sh | 1 | #!/usr/bin/env bash |
| LOW | …d_agents/self_hosted_sandboxes/cf-worker/wrangler.toml | 21 | |
| LOW | claude_agent_sdk/site_reliability_agent/infra_setup.py | 21 | os.makedirs(d, exist_ok=True) |
| LOW | claude_agent_sdk/site_reliability_agent/infra_setup.py | 281 | """) |
| LOW | claude_agent_sdk/hosting/kubernetes/generate-certs.sh | 1 | #!/bin/bash |
| LOW | claude_agent_sdk/hosting/kubernetes/generate-certs.sh | 21 | # tools like Claude Code that run on Node.js) to accept TLS certificates |
| LOW | …t_sdk/hosting/kubernetes/manifests/network-policy.yaml | 1 | # NetworkPolicy: Kubernetes firewall rules that restrict network traffic to and |
| LOW | …t_sdk/hosting/kubernetes/manifests/network-policy.yaml | 21 | # internet, other services, or other namespaces. |
| LOW | …de_agent_sdk/hosting/kubernetes/manifests/gateway.yaml | 1 | # Gateway: The central API server that manages agent pod lifecycles. |
| LOW | claude_agent_sdk/hosting/kubernetes/gateway/k8s.py | 161 | # documentation — K8s doesn't enforce it — but it helps tools and |
| LOW | claude_agent_sdk/hosting/kubernetes/gateway/main.py | 41 |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | …s/custom_skills/creating-financial-models/dcf_model.py | 492 | # Example usage |
| LOW | …ills/creating-financial-models/sensitivity_analysis.py | 335 | # Example usage |
| LOW | …lls/analyzing-financial-statements/calculate_ratios.py | 309 | # Example usage |
| LOW | …custom_skills/applying-brand-guidelines/apply_brand.py | 418 | # Example usage |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | …_augmented_generation/evaluation/provider_retrieval.py | 125 | # Step 1: Get initial results from the summary db |
| LOW | …_augmented_generation/evaluation/provider_retrieval.py | 128 | # Step 2: Re-rank results |
| LOW | …_augmented_generation/evaluation/provider_retrieval.py | 131 | # Step 3: Generate new context string from re-ranked results |
| LOW | …s/retrieval_augmented_generation/evaluation/prompts.py | 159 | # Step 1: Get initial results |
| LOW | …s/retrieval_augmented_generation/evaluation/prompts.py | 162 | # Step 2: Re-rank results |
| LOW | …s/retrieval_augmented_generation/evaluation/prompts.py | 165 | # Step 3: Generate new context string from re-ranked results |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | …ude_agent_sdk/site_reliability_agent/sre_mcp_server.py | 2658 | async def handle_request(request: dict[str, Any]) -> None: |