A collection of notebooks/recipes showcasing some fun and effective ways of using Claude.
This report summarizes scanner evidence for anthropics/claude-cookbooks, a Jupyter Notebook project with 53,337 GitHub stars. SynthScan examined 47,885 lines of code across 309 source files, recording 575 pattern matches distributed across 21 syntactic categories. The legacy adjusted pattern signal is 19.4 (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.
Use each vector to guide manual verification of the underlying findings.
Can maintainers explain intent, assumptions, and trade-offs? 294 finding(s).
Are imports declared and package/API names verified? 70 finding(s).
Are wrappers, guards, and repeated structures necessary? 292 finding(s).
Which changes need focused human review? 575 finding(s).
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.
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.
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.
The scanner identified 575 distinct pattern matches across 21 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.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | tool_use/context_engineering/research_corpus.py | 848 | # ───────────────────────────────────────────────────────────────────── | STRING |
| MEDIUM | tool_use/context_engineering/research_corpus.py | 925 | # ───────────────────────────────────────────────────────────────────── | STRING |
| MEDIUM | tool_use/context_engineering/research_corpus.py | 1001 | # ───────────────────────────────────────────────────────────────────── | STRING |
| MEDIUM | tool_use/context_engineering/research_corpus.py | 1074 | # ───────────────────────────────────────────────────────────────────── | STRING |
| MEDIUM | tool_use/context_engineering/research_corpus.py | 1145 | # ───────────────────────────────────────────────────────────────────── | STRING |
| MEDIUM | tool_use/context_engineering/research_corpus.py | 1217 | # ───────────────────────────────────────────────────────────────────── | STRING |
| MEDIUM | tool_use/context_engineering/research_corpus.py | 1287 | # ───────────────────────────────────────────────────────────────────── | STRING |
| MEDIUM | tool_use/context_engineering/research_corpus.py | 1353 | # ───────────────────────────────────────────────────────────────────── | STRING |
| MEDIUM | evals/agentic_search/utils/agentic_search.py | 12 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | evals/agentic_search/utils/agentic_search.py | 18 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | evals/agentic_search/utils/agentic_search.py | 55 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | evals/agentic_search/utils/agentic_search.py | 57 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | evals/agentic_search/utils/agentic_search.py | 113 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | evals/agentic_search/utils/agentic_search.py | 115 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | evals/agentic_search/utils/agentic_search.py | 166 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | evals/agentic_search/utils/agentic_search.py | 168 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | evals/agentic_search/utils/agentic_search.py | 219 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | evals/agentic_search/utils/agentic_search.py | 221 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | capabilities/content_moderation/engine.py | 209 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | capabilities/content_moderation/engine.py | 214 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | capabilities/content_moderation/pipeline.py | 40 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | capabilities/content_moderation/pipeline.py | 42 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | capabilities/content_moderation/pipeline.py | 257 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | capabilities/content_moderation/pipeline.py | 259 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | claude_agent_sdk/utils/html_renderer.py | 54 | # ───────────────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | claude_agent_sdk/utils/html_renderer.py | 56 | # ───────────────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | claude_agent_sdk/utils/html_renderer.py | 136 | # ───────────────────────────────────────────────────────────────────────────── | STRING |
| MEDIUM | claude_agent_sdk/utils/html_renderer.py | 138 | # ───────────────────────────────────────────────────────────────────────────── | STRING |
| MEDIUM | claude_agent_sdk/utils/html_renderer.py | 169 | # ───────────────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | claude_agent_sdk/utils/html_renderer.py | 171 | # ───────────────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | claude_agent_sdk/utils/html_renderer.py | 310 | # ───────────────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | claude_agent_sdk/utils/html_renderer.py | 312 | # ───────────────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | claude_agent_sdk/utils/html_renderer.py | 387 | # ───────────────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | claude_agent_sdk/utils/html_renderer.py | 389 | # ───────────────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM⚡ | …ude_agent_sdk/site_reliability_agent/sre_mcp_server.py | 1569 | # ============================================================================ | COMMENT |
| MEDIUM⚡ | …ude_agent_sdk/site_reliability_agent/sre_mcp_server.py | 1571 | # ============================================================================ | COMMENT |
| MEDIUM⚡ | …ude_agent_sdk/site_reliability_agent/sre_mcp_server.py | 1858 | # ============================================================================ | COMMENT |
| MEDIUM⚡ | …ude_agent_sdk/site_reliability_agent/sre_mcp_server.py | 1860 | # ============================================================================ | COMMENT |
| MEDIUM | claude_agent_sdk/site_reliability_agent/infra_setup.py | 23 | # ============================================================================= | COMMENT |
| MEDIUM | claude_agent_sdk/site_reliability_agent/infra_setup.py | 25 | # ============================================================================= | COMMENT |
| MEDIUM⚡ | claude_agent_sdk/site_reliability_agent/infra_setup.py | 139 | # ============================================================================= | STRING |
| MEDIUM⚡ | claude_agent_sdk/site_reliability_agent/infra_setup.py | 141 | # ============================================================================= | STRING |
| MEDIUM⚡ | claude_agent_sdk/site_reliability_agent/infra_setup.py | 665 | # ============================================================================= | STRING |
| MEDIUM⚡ | claude_agent_sdk/site_reliability_agent/infra_setup.py | 667 | # ============================================================================= | STRING |
| MEDIUM | claude_agent_sdk/site_reliability_agent/infra_setup.py | 187 | # ============================================================================= | STRING |
| MEDIUM | claude_agent_sdk/site_reliability_agent/infra_setup.py | 189 | # ============================================================================= | STRING |
| MEDIUM | claude_agent_sdk/site_reliability_agent/infra_setup.py | 210 | # ============================================================================= | STRING |
| MEDIUM | claude_agent_sdk/site_reliability_agent/infra_setup.py | 212 | # ============================================================================= | STRING |
| MEDIUM | claude_agent_sdk/site_reliability_agent/infra_setup.py | 283 | # ============================================================================= | STRING |
| MEDIUM | claude_agent_sdk/site_reliability_agent/infra_setup.py | 285 | # ============================================================================= | STRING |
| MEDIUM | claude_agent_sdk/site_reliability_agent/infra_setup.py | 702 | # ============================================================================= | STRING |
| MEDIUM | claude_agent_sdk/site_reliability_agent/infra_setup.py | 704 | # ============================================================================= | STRING |
| MEDIUM | claude_agent_sdk/site_reliability_agent/infra_setup.py | 838 | # ============================================================================= | STRING |
| MEDIUM | claude_agent_sdk/site_reliability_agent/infra_setup.py | 840 | # ============================================================================= | STRING |
| MEDIUM | claude_agent_sdk/site_reliability_agent/infra_setup.py | 1013 | # ============================================================================= | STRING |
| MEDIUM | claude_agent_sdk/site_reliability_agent/infra_setup.py | 1015 | # ============================================================================= | STRING |
| MEDIUM | …t_sdk/site_reliability_agent/examples/sre_bot_slack.py | 112 | # ============================================================================ | COMMENT |
| MEDIUM | …t_sdk/site_reliability_agent/examples/sre_bot_slack.py | 114 | # ============================================================================ | COMMENT |
| MEDIUM⚡ | claude_agent_sdk/hosting/kubernetes/kind-quickstart.sh | 2 | # ============================================================================= | COMMENT |
| MEDIUM⚡ | claude_agent_sdk/hosting/kubernetes/kind-quickstart.sh | 4 | # ============================================================================= | COMMENT |
| 33 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tool_use/memory_tool.py | 116 | except Exception as e: | CODE |
| LOW | tool_use/memory_tool.py | 144 | except Exception as e: | CODE |
| LOW | tool_use/memory_tool.py | 168 | except Exception as e: | CODE |
| LOW | tool_use/memory_tool.py | 199 | except Exception as e: | CODE |
| LOW | tool_use/memory_tool.py | 237 | except Exception as e: | CODE |
| LOW | tool_use/memory_tool.py | 272 | except Exception as e: | CODE |
| LOW | tool_use/memory_tool.py | 309 | except Exception as e: | CODE |
| LOW | tool_use/memory_tool.py | 341 | except Exception as e: | CODE |
| LOW | tool_use/memory_tool.py | 361 | except Exception as e: | CODE |
| LOW | tool_use/memory_demo/sample_code/api_client_v1.py | 31 | except Exception as e: | CODE |
| LOW | tool_use/memory_demo/sample_code/data_processor_v1.py | 38 | except Exception as e: | CODE |
| LOW | capabilities/classification/evaluation/transform.py | 4 | except Exception as e: | CODE |
| MEDIUM | capabilities/classification/evaluation/transform.py | 5 | print(f"Error in get_transform: {e}") | CODE |
| MEDIUM | capabilities/classification/evaluation/transform.py | 1 | def get_transform(output, context): | CODE |
| LOW | …ies/summarization/evaluation/custom_evals/bleu_eval.py | 45 | except Exception as e: | CODE |
| MEDIUM | …ies/summarization/evaluation/custom_evals/bleu_eval.py | 46 | print(f"Error calculating BLEU score: {e}. Defaulting to 0.") | CODE |
| LOW | …_augmented_generation/evaluation/provider_retrieval.py | 110 | except Exception as e: | STRING |
| MEDIUM | …_augmented_generation/evaluation/provider_retrieval.py | 111 | print(f"An error occurred during reranking: {str(e)}") | STRING |
| LOW | …eval_augmented_generation/evaluation/eval_retrieval.py | 63 | except Exception as e: | CODE |
| LOW⚡ | …s/retrieval_augmented_generation/evaluation/prompts.py | 152 | except Exception as e: | STRING |
| MEDIUM⚡ | …s/retrieval_augmented_generation/evaluation/prompts.py | 153 | print(f"An error occurred during reranking: {str(e)}") | STRING |
| LOW | …val_augmented_generation/evaluation/eval_end_to_end.py | 69 | except Exception as e: | STRING |
| LOW | …es/text_to_sql/evaluation/tests/test_employee_count.py | 11 | except Exception as e: | CODE |
| LOW | …es/text_to_sql/evaluation/tests/test_average_salary.py | 11 | except Exception as e: | CODE |
| LOW | …ext_to_sql/evaluation/tests/test_hierarchical_query.py | 18 | except Exception as e: | CODE |
| LOW | …t_to_sql/evaluation/tests/test_above_average_salary.py | 11 | except Exception as e: | CODE |
| LOW | …/text_to_sql/evaluation/tests/test_employee_details.py | 11 | except Exception as e: | CODE |
| LOW | …text_to_sql/evaluation/tests/test_budget_allocation.py | 20 | except Exception as e: | CODE |
| MEDIUM | …gs/contextual-rag-lambda-function/inference_adapter.py | 43 | print(f"An error occurred: {e}") | CODE |
| MEDIUM | …mbeddings/contextual-rag-lambda-function/s3_adapter.py | 40 | print(f"Error occurred: {e}") | CODE |
| MEDIUM | …mbeddings/contextual-rag-lambda-function/s3_adapter.py | 59 | print(f"Error reading file from S3: {str(e)}") | CODE |
| LOW | tests/notebook_tests/utils.py | 353 | except Exception as e: | CODE |
| LOW | .claude/skills/cookbook-audit/validate_notebook.py | 176 | except Exception as e: | CODE |
| MEDIUM⚡ | .claude/skills/cookbook-audit/validate_notebook.py | 479 | print(f"Error: {e}") | CODE |
| MEDIUM⚡ | .claude/skills/cookbook-audit/validate_notebook.py | 482 | print(f"Error: {notebook_path} is not a valid JSON file") | CODE |
| LOW⚡ | .claude/skills/cookbook-audit/validate_notebook.py | 484 | except Exception as e: | CODE |
| LOW | managed_agents/mongodb_on_cma/tools.py | 237 | except Exception as exc: | CODE |
| LOW | …d_party/ElevenLabs/stream_voice_assistant_websocket.py | 140 | except Exception: # noqa: S110 | CODE |
| LOW | claude_agent_sdk/utils/agent_visualizer.py | 59 | except Exception: | CODE |
| MEDIUM | …ude_agent_sdk/site_reliability_agent/sre_mcp_server.py | 2717 | print(f"Error: {e}", file=sys.stderr) | CODE |
| LOW⚡ | …ude_agent_sdk/site_reliability_agent/sre_mcp_server.py | 1851 | except Exception as e: | CODE |
| LOW | …ude_agent_sdk/site_reliability_agent/sre_mcp_server.py | 707 | except Exception as e: | CODE |
| LOW | …ude_agent_sdk/site_reliability_agent/sre_mcp_server.py | 765 | except Exception as e: | CODE |
| LOW | …ude_agent_sdk/site_reliability_agent/sre_mcp_server.py | 811 | except Exception as e: | CODE |
| LOW | …ude_agent_sdk/site_reliability_agent/sre_mcp_server.py | 846 | except Exception as e: | CODE |
| LOW | …ude_agent_sdk/site_reliability_agent/sre_mcp_server.py | 875 | except Exception as e: | CODE |
| LOW | …ude_agent_sdk/site_reliability_agent/sre_mcp_server.py | 900 | except Exception as e: | CODE |
| LOW | …ude_agent_sdk/site_reliability_agent/sre_mcp_server.py | 1654 | except Exception as e: | CODE |
| LOW | …ude_agent_sdk/site_reliability_agent/sre_mcp_server.py | 1727 | except Exception as e: | CODE |
| LOW | …ude_agent_sdk/site_reliability_agent/sre_mcp_server.py | 1781 | except Exception as e: | CODE |
| LOW | …ude_agent_sdk/site_reliability_agent/sre_mcp_server.py | 2045 | except Exception as e: | CODE |
| LOW | …ude_agent_sdk/site_reliability_agent/sre_mcp_server.py | 2136 | except Exception as e: | CODE |
| LOW | …ude_agent_sdk/site_reliability_agent/sre_mcp_server.py | 2202 | except Exception as e: | CODE |
| LOW | …ude_agent_sdk/site_reliability_agent/sre_mcp_server.py | 2245 | except Exception as e: | CODE |
| LOW | …ude_agent_sdk/site_reliability_agent/sre_mcp_server.py | 2314 | except Exception as e: | CODE |
| LOW | …ude_agent_sdk/site_reliability_agent/sre_mcp_server.py | 2418 | except Exception as e: | CODE |
| LOW | …ude_agent_sdk/site_reliability_agent/sre_mcp_server.py | 2501 | except Exception as e: | CODE |
| LOW | …ude_agent_sdk/site_reliability_agent/sre_mcp_server.py | 2715 | except Exception as e: | CODE |
| LOW | claude_agent_sdk/site_reliability_agent/infra_setup.py | 438 | except Exception as e: | CODE |
| LOW | claude_agent_sdk/site_reliability_agent/infra_setup.py | 480 | except Exception as e: | CODE |
| 43 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | CLAUDE.md | 94 | capabilities/ # Core Claude capabilities (RAG, classification, etc.) | CODE |
| MEDIUM | capabilities/classification/evaluation/README.md | 23 | - You can read more about prompt functions [here](https://www.promptfoo.dev/docs/configuration/parameters#prompt | CODE |
| MEDIUM | …ted_generation/evaluation/docs_evaluation_dataset.json | 25 | "https://docs.claude.com/en/docs/test-and-evaluate/strengthen-guardrails/reduce-latency#1-choose-the-right-model" | CODE |
| MEDIUM | …ted_generation/evaluation/docs_evaluation_dataset.json | 114 | "https://docs.claude.com/en/docs/build-with-claude/tool-use#chain-of-thought" | CODE |
| MEDIUM | …ted_generation/evaluation/docs_evaluation_dataset.json | 255 | "https://docs.claude.com/en/docs/test-and-evaluate/strengthen-guardrails/reduce-latency#how-to-measure-latency", | CODE |
| MEDIUM⚡ | …ted_generation/evaluation/docs_evaluation_dataset.json | 345 | "https://docs.claude.com/en/docs/test-and-evaluate/strengthen-guardrails/reduce-prompt-leak#strategies-to-reduce-p | CODE |
| MEDIUM⚡ | …ted_generation/evaluation/docs_evaluation_dataset.json | 346 | "https://docs.claude.com/en/docs/test-and-evaluate/strengthen-guardrails/reduce-prompt-leak#before-you-try-to-redu | CODE |
| MEDIUM⚡ | …ted_generation/evaluation/docs_evaluation_dataset.json | 354 | "https://docs.claude.com/en/docs/test-and-evaluate/strengthen-guardrails/reduce-latency#1-choose-the-right-model", | CODE |
| MEDIUM | …ted_generation/evaluation/docs_evaluation_dataset.json | 434 | "https://docs.claude.com/en/docs/test-and-evaluate/strengthen-guardrails/increase-consistency#chain-prompts-for-co | CODE |
| MEDIUM | …ted_generation/evaluation/docs_evaluation_dataset.json | 531 | "https://docs.claude.com/en/docs/test-and-evaluate/strengthen-guardrails/increase-consistency#chain-prompts-for-co | CODE |
| MEDIUM | …ted_generation/evaluation/docs_evaluation_dataset.json | 656 | "https://docs.claude.com/en/docs/test-and-evaluate/strengthen-guardrails/reduce-latency#1-choose-the-right-model" | CODE |
| MEDIUM | …ted_generation/evaluation/docs_evaluation_dataset.json | 683 | "https://docs.claude.com/en/docs/resources/glossary#rag-retrieval-augmented-generation" | CODE |
| MEDIUM | …ted_generation/evaluation/docs_evaluation_dataset.json | 727 | "https://docs.claude.com/en/docs/build-with-claude/tool-use#chain-of-thought", | CODE |
| MEDIUM | …ted_generation/evaluation/docs_evaluation_dataset.json | 818 | "https://docs.claude.com/en/docs/test-and-evaluate/strengthen-guardrails/reduce-latency#2-optimize-prompt-and-outp | CODE |
| MEDIUM | …es/retrieval_augmented_generation/evaluation/README.md | 33 | - You can read more about prompt functions [here](https://www.promptfoo.dev/docs/configuration/parameters#prompt | CODE |
| 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 | CODE |
| 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 | CODE |
| 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 | CODE |
| MEDIUM⚡ | …etrieval_augmented_generation/data/anthropic_docs.json | 828 | "chunk_link": "https://docs.claude.com/en/docs/test-and-evaluate/strengthen-guardrails/reduce-hallucinations#basic-h | CODE |
| MEDIUM⚡ | …etrieval_augmented_generation/data/anthropic_docs.json | 828 | "chunk_link": "https://docs.claude.com/en/docs/test-and-evaluate/strengthen-guardrails/reduce-hallucinations#basic-h | CODE |
| MEDIUM⚡ | …etrieval_augmented_generation/data/anthropic_docs.json | 833 | "chunk_link": "https://docs.claude.com/en/docs/test-and-evaluate/strengthen-guardrails/reduce-hallucinations#advance | CODE |
| MEDIUM⚡ | …etrieval_augmented_generation/data/anthropic_docs.json | 838 | "chunk_link": "https://docs.claude.com/en/docs/test-and-evaluate/strengthen-guardrails/reduce-latency#how-to-measure | CODE |
| MEDIUM⚡ | …etrieval_augmented_generation/data/anthropic_docs.json | 843 | "chunk_link": "https://docs.claude.com/en/docs/test-and-evaluate/strengthen-guardrails/reduce-latency#how-to-reduce- | CODE |
| MEDIUM⚡ | …etrieval_augmented_generation/data/anthropic_docs.json | 848 | "chunk_link": "https://docs.claude.com/en/docs/test-and-evaluate/strengthen-guardrails/reduce-latency#1-choose-the-r | CODE |
| MEDIUM⚡ | …etrieval_augmented_generation/data/anthropic_docs.json | 853 | "chunk_link": "https://docs.claude.com/en/docs/test-and-evaluate/strengthen-guardrails/reduce-latency#2-optimize-pro | CODE |
| 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 | CODE |
| MEDIUM⚡ | …etrieval_augmented_generation/data/anthropic_docs.json | 1123 | "chunk_link": "https://docs.claude.com/en/docs/test-and-evaluate/strengthen-guardrails/increase-consistency#specify- | CODE |
| MEDIUM⚡ | …etrieval_augmented_generation/data/anthropic_docs.json | 1128 | "chunk_link": "https://docs.claude.com/en/docs/test-and-evaluate/strengthen-guardrails/increase-consistency#prefill- | CODE |
| MEDIUM⚡ | …etrieval_augmented_generation/data/anthropic_docs.json | 1133 | "chunk_link": "https://docs.claude.com/en/docs/test-and-evaluate/strengthen-guardrails/increase-consistency#constrai | CODE |
| MEDIUM⚡ | …etrieval_augmented_generation/data/anthropic_docs.json | 1138 | "chunk_link": "https://docs.claude.com/en/docs/test-and-evaluate/strengthen-guardrails/increase-consistency#use-retr | CODE |
| MEDIUM⚡ | …etrieval_augmented_generation/data/anthropic_docs.json | 1143 | "chunk_link": "https://docs.claude.com/en/docs/test-and-evaluate/strengthen-guardrails/increase-consistency#chain-pr | CODE |
| MEDIUM⚡ | …etrieval_augmented_generation/data/anthropic_docs.json | 1148 | "chunk_link": "https://docs.claude.com/en/docs/test-and-evaluate/strengthen-guardrails/mitigate-jailbreaks#advanced- | CODE |
| MEDIUM⚡ | …etrieval_augmented_generation/data/anthropic_docs.json | 1153 | "chunk_link": "https://docs.claude.com/en/docs/test-and-evaluate/strengthen-guardrails/reduce-prompt-leak#before-you | CODE |
| MEDIUM⚡ | …etrieval_augmented_generation/data/anthropic_docs.json | 1158 | "chunk_link": "https://docs.claude.com/en/docs/test-and-evaluate/strengthen-guardrails/reduce-prompt-leak#strategies | CODE |
| MEDIUM | …etrieval_augmented_generation/data/anthropic_docs.json | 398 | "chunk_link": "https://docs.claude.com/en/docs/build-with-claude/tool-use#chain-of-thought", | CODE |
| MEDIUM | …etrieval_augmented_generation/data/anthropic_docs.json | 478 | "chunk_link": "https://docs.claude.com/en/docs/resources/glossary#rag-retrieval-augmented-generation", | CODE |
| MEDIUM | tests/__init__.py | 1 | # Notebook testing scaffold for Anthropic Cookbook | COMMENT |
| MEDIUM | managed_agents/mongodb_on_cma/ap2_mandates.py | 9 | See the AP2 protocol: https://github.com/google-agentic-commerce/AP2 | STRING |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW⚡ | tool_use/tests/test_memory_tool.py | 29 | def test_path_validation_requires_memories_prefix(self): | CODE |
| LOW⚡ | tool_use/tests/test_memory_tool.py | 35 | def test_path_validation_prevents_traversal_dotdot(self): | CODE |
| LOW⚡ | tool_use/tests/test_memory_tool.py | 41 | def test_path_validation_prevents_traversal_encoded(self): | CODE |
| LOW⚡ | tool_use/tests/test_memory_tool.py | 47 | def test_path_validation_allows_valid_paths(self): | CODE |
| LOW⚡ | tool_use/tests/test_memory_tool.py | 54 | def test_view_empty_directory(self): | CODE |
| LOW⚡ | tool_use/tests/test_memory_tool.py | 60 | def test_view_directory_with_files(self): | CODE |
| LOW | tool_use/tests/test_memory_tool.py | 71 | def test_view_file_with_line_numbers(self): | CODE |
| LOW | tool_use/tests/test_memory_tool.py | 82 | def test_view_file_with_range(self): | CODE |
| LOW | tool_use/tests/test_memory_tool.py | 94 | def test_view_nonexistent_path(self): | CODE |
| LOW | tool_use/tests/test_memory_tool.py | 114 | def test_create_file_in_subdirectory(self): | CODE |
| LOW | tool_use/tests/test_memory_tool.py | 126 | def test_create_requires_file_extension(self): | CODE |
| LOW | tool_use/tests/test_memory_tool.py | 132 | def test_create_overwrites_existing_file(self): | CODE |
| LOW | tool_use/tests/test_memory_tool.py | 164 | def test_str_replace_string_not_found(self): | CODE |
| LOW | tool_use/tests/test_memory_tool.py | 177 | def test_str_replace_multiple_occurrences(self): | CODE |
| LOW | tool_use/tests/test_memory_tool.py | 194 | def test_str_replace_file_not_found(self): | CODE |
| LOW | tool_use/tests/test_memory_tool.py | 292 | def test_delete_cannot_delete_root(self): | CODE |
| LOW | tool_use/tests/test_memory_tool.py | 298 | def test_delete_nonexistent_path(self): | CODE |
| LOW | tool_use/tests/test_memory_tool.py | 320 | def test_rename_to_subdirectory(self): | CODE |
| LOW | tool_use/tests/test_memory_tool.py | 334 | def test_rename_source_not_found(self): | CODE |
| LOW | tool_use/tests/test_memory_tool.py | 344 | def test_rename_destination_exists(self): | CODE |
| LOW | tool_use/tests/test_memory_tool.py | 365 | def test_missing_required_parameters(self): | CODE |
| LOW | tool_use/utils/visualize.py | 229 | def render_code_execution_result(content: ParsedContent, tree: Tree) -> None: | CODE |
| LOW | tool_use/memory_demo/demo_helpers.py | 183 | def print_context_management_info(response: Any) -> tuple[bool, int]: | CODE |
| LOW | tool_use/memory_demo/sample_code/cache_manager.py | 73 | class DataProcessor: | CODE |
| LOW | tool_use/memory_demo/sample_code/data_processor_v1.py | 13 | class DataProcessor: | CODE |
| LOW | capabilities/classification/evaluation/prompts.py | 124 | def rag_chain_of_thought_classify(context: dict): | STRING |
| 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 | CODE |
| LOW | capabilities/text_to_sql/evaluation/prompts.py | 46 | def generate_prompt_with_examples(context): | STRING |
| LOW | …gs/contextual-rag-lambda-function/inference_adapter.py | 15 | def invoke_model_with_response_stream(self, prompt, max_tokens=1000): | CODE |
| LOW | tests/notebook_tests/conftest.py | 49 | def pytest_runtest_makereport(item: pytest.Item, call: pytest.CallInfo) -> None: | CODE |
| LOW | tests/notebook_tests/test_notebooks.py | 93 | def test_cells_executed_in_order(self, notebook_cells: list[CellInfo]) -> None: | CODE |
| LOW | tests/notebook_tests/test_notebooks.py | 100 | def test_execution_counts_start_from_one(self, notebook_cells: list[CellInfo]) -> None: | CODE |
| LOW⚡ | tests/notebook_tests/test_notebooks.py | 137 | def test_no_hardcoded_api_keys(self, notebook_cells: list[CellInfo]) -> None: | CODE |
| LOW⚡ | tests/notebook_tests/test_notebooks.py | 147 | def test_api_key_from_environment(self, notebook_cells: list[CellInfo]) -> None: | CODE |
| LOW | tests/notebook_tests/test_notebooks.py | 195 | def test_dependencies_documented(self, notebook_cells: list[CellInfo]) -> None: | CODE |
| LOW | tests/notebook_tests/test_notebooks.py | 217 | def test_notebook_executes_successfully( | CODE |
| LOW | tests/notebook_tests/test_notebooks.py | 280 | def test_no_deprecated_models(self, notebook_cells: list[CellInfo]) -> None: | CODE |
| LOW | tests/notebook_tests/test_notebooks.py | 312 | def test_agents_carry_cookbook_tag( | CODE |
| LOW | tests/notebook_tests/utils.py | 79 | def validate_cell_execution_order(cells: list[CellInfo]) -> list[str]: | CODE |
| LOW | tests/notebook_tests/utils.py | 115 | def validate_all_cells_executed(cells: list[CellInfo]) -> list[str]: | CODE |
| LOW | tests/notebook_tests/utils.py | 130 | def validate_no_error_outputs(cells: list[CellInfo]) -> list[str]: | CODE |
| LOW | tests/notebook_tests/utils.py | 171 | def validate_no_hardcoded_secrets(cells: list[CellInfo]) -> list[str]: | CODE |
| LOW | tests/notebook_tests/utils.py | 193 | def validate_uses_env_for_api_key(cells: list[CellInfo]) -> list[str]: | CODE |
| LOW | tests/notebook_tests/utils.py | 253 | def validate_notebook_structure(path: Path) -> NotebookValidationResult: | CODE |
| LOW | .claude/skills/cookbook-audit/validate_notebook.py | 180 | def _check_hardcoded_secrets_fallback(self): | CODE |
| LOW | .claude/skills/cookbook-audit/validate_notebook.py | 327 | def check_deprecated_patterns(self): | CODE |
| LOW | …ged_agents/example_data/orchestrate/tests/test_urls.py | 16 | def test_slugify_special_chars(): | CODE |
| LOW | …d_party/ElevenLabs/stream_voice_assistant_websocket.py | 271 | def stream_claude_and_synthesize_ws(messages, audio_queue): | CODE |
| LOW | claude_agent_sdk/utils/html_renderer.py | 473 | def _extract_model_from_messages(messages: list[Any]) -> str | None: | STRING |
| LOW | claude_agent_sdk/utils/html_renderer.py | 499 | def visualize_conversation_html(messages: list[Any]) -> None: | CODE |
| LOW | claude_agent_sdk/utils/agent_visualizer.py | 77 | def extract_model_from_messages(messages: list[Any]) -> str | None: | CODE |
| LOW | claude_agent_sdk/utils/agent_visualizer.py | 301 | def _format_subagent_completion_line(subagent_name: str | None) -> str: | CODE |
| LOW⚡ | …ude_agent_sdk/site_reliability_agent/sre_mcp_server.py | 1574 | async def pagerduty_create_incident( | CODE |
| LOW⚡ | …ude_agent_sdk/site_reliability_agent/sre_mcp_server.py | 1863 | def get_confluence_auth_header() -> str: | CODE |
| LOW⚡ | …ude_agent_sdk/site_reliability_agent/sre_mcp_server.py | 1870 | def generate_postmortem_content( | CODE |
| LOW | …ude_agent_sdk/site_reliability_agent/sre_mcp_server.py | 1661 | async def pagerduty_update_incident( | CODE |
| LOW | …ude_agent_sdk/site_reliability_agent/sre_mcp_server.py | 2143 | async def confluence_list_postmortems( | CODE |
| LOW | …ude_agent_sdk/site_reliability_agent/sre_mcp_server.py | 1958 | async def confluence_create_postmortem( | STRING |
| LOW | claude_agent_sdk/site_reliability_agent/infra_setup.py | 415 | def update_connection_metrics(): | CODE |
| LOW | …t_sdk/site_reliability_agent/examples/sre_bot_slack.py | 387 | def convert_markdown_to_slack(text: str) -> str: | STRING |
| 16 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tool_use/memory_tool.py | 76 | CODE | |
| LOW | tool_use/memory_tool.py | 119 | CODE | |
| LOW | tool_use/utils/customer_service_tools.py | 114 | CODE | |
| LOW | tool_use/utils/visualize.py | 196 | CODE | |
| LOW | tool_use/utils/visualize.py | 265 | CODE | |
| LOW | tool_use/memory_demo/demo_helpers.py | 31 | CODE | |
| LOW | tool_use/memory_demo/demo_helpers.py | 183 | CODE | |
| LOW | tool_use/memory_demo/code_review_demo.py | 98 | CODE | |
| LOW | evals/agentic_search/utils/agentic_search.py | 224 | CODE | |
| LOW | capabilities/content_moderation/engine.py | 134 | CODE | |
| LOW | …ext_to_sql/evaluation/tests/test_hierarchical_query.py | 4 | CODE | |
| LOW | …text_to_sql/evaluation/tests/test_budget_allocation.py | 4 | CODE | |
| LOW | …gs/contextual-rag-lambda-function/inference_adapter.py | 15 | CODE | |
| LOW | tests/notebook_tests/test_notebooks.py | 195 | CODE | |
| LOW | tests/notebook_tests/utils.py | 130 | CODE | |
| LOW | tests/notebook_tests/utils.py | 193 | CODE | |
| LOW | tests/notebook_tests/utils.py | 225 | CODE | |
| LOW | .claude/skills/cookbook-audit/validate_notebook.py | 87 | CODE | |
| LOW | .claude/skills/cookbook-audit/validate_notebook.py | 327 | CODE | |
| LOW | managed_agents/utilities.py | 47 | CODE | |
| LOW | managed_agents/mongodb_on_cma/ap2_mandates.py | 107 | CODE | |
| LOW | claude_agent_sdk/utils/html_renderer.py | 225 | CODE | |
| LOW | claude_agent_sdk/utils/html_renderer.py | 473 | CODE | |
| LOW | claude_agent_sdk/utils/html_renderer.py | 499 | CODE | |
| LOW | claude_agent_sdk/utils/agent_visualizer.py | 77 | CODE | |
| LOW | claude_agent_sdk/utils/agent_visualizer.py | 119 | CODE | |
| LOW | claude_agent_sdk/utils/agent_visualizer.py | 229 | CODE | |
| LOW | claude_agent_sdk/utils/agent_visualizer.py | 278 | CODE | |
| LOW | claude_agent_sdk/utils/agent_visualizer.py | 317 | CODE | |
| LOW | …ude_agent_sdk/site_reliability_agent/sre_mcp_server.py | 629 | CODE | |
| LOW | …ude_agent_sdk/site_reliability_agent/sre_mcp_server.py | 719 | CODE | |
| LOW | …ude_agent_sdk/site_reliability_agent/sre_mcp_server.py | 772 | CODE | |
| LOW | …ude_agent_sdk/site_reliability_agent/sre_mcp_server.py | 1045 | CODE | |
| LOW | …ude_agent_sdk/site_reliability_agent/sre_mcp_server.py | 1458 | CODE | |
| LOW | …ude_agent_sdk/site_reliability_agent/sre_mcp_server.py | 2547 | CODE | |
| LOW | …ude_agent_sdk/site_reliability_agent/sre_mcp_server.py | 2658 | CODE | |
| LOW | …t_sdk/site_reliability_agent/examples/sre_bot_slack.py | 117 | CODE | |
| LOW | …t_sdk/site_reliability_agent/examples/sre_bot_slack.py | 401 | CODE | |
| LOW | …t_sdk/site_reliability_agent/examples/sre_bot_slack.py | 525 | CODE | |
| LOW | claude_agent_sdk/hosting/kubernetes/gateway/k8s.py | 412 | CODE | |
| LOW | claude_agent_sdk/hosting/kubernetes/gateway/main.py | 313 | CODE | |
| LOW | claude_agent_sdk/research_agent/agent.py | 41 | CODE | |
| LOW | claude_agent_sdk/chief_of_staff_agent/agent.py | 18 | CODE | |
| LOW | …gent_sdk/chief_of_staff_agent/scripts/talent_scorer.py | 69 | CODE | |
| LOW | …gent_sdk/chief_of_staff_agent/scripts/talent_scorer.py | 111 | CODE | |
| LOW | …nt_sdk/chief_of_staff_agent/scripts/decision_matrix.py | 36 | CODE | |
| LOW | …nt_sdk/chief_of_staff_agent/scripts/decision_matrix.py | 158 | CODE | |
| LOW | scripts/validate_all_notebooks.py | 784 | CODE | |
| LOW | scripts/validate_all_notebooks.py | 77 | CODE | |
| LOW | scripts/validate_all_notebooks.py | 249 | CODE | |
| LOW | scripts/validate_all_notebooks.py | 354 | CODE | |
| LOW | scripts/validate_all_notebooks.py | 475 | CODE | |
| LOW | scripts/validate_all_notebooks.py | 557 | CODE | |
| LOW | scripts/validate_all_notebooks.py | 666 | CODE | |
| LOW | scripts/validate_all_notebooks.py | 717 | CODE | |
| LOW | scripts/test_notebooks.py | 112 | CODE | |
| LOW | scripts/validate_notebooks.py | 14 | CODE | |
| LOW | .github/scripts/verify_registry.py | 63 | CODE | |
| LOW | skills/skill_utils.py | 291 | CODE | |
| LOW | skills/file_utils.py | 18 | CODE | |
| 4 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | capabilities/classification/evaluation/README.md | 42 | `export ANTHROPIC_API_KEY=YOUR_API_KEY` | CODE |
| HIGH | capabilities/classification/evaluation/README.md | 43 | `export VOYAGE_API_KEY=YOUR_API_KEY` | CODE |
| 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. | CODE |
| HIGH | …es/retrieval_augmented_generation/evaluation/README.md | 50 | `export ANTHROPIC_API_KEY=YOUR_API_KEY` | CODE |
| HIGH | …es/retrieval_augmented_generation/evaluation/README.md | 51 | `export VOYAGE_API_KEY=YOUR_API_KEY` | CODE |
| 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 | CODE |
| HIGH | …etrieval_augmented_generation/data/anthropic_docs.json | 58 | "chunk_link": "https://docs.claude.com/en/docs/quickstart#set-your-api-key", | CODE |
| 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 | CODE |
| 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. | CODE |
| HIGH | skills/README.md | 142 | api_key="your-api-key", | CODE |
| HIGH | skills/README.md | 171 | client = Anthropic(api_key="your-api-key") | CODE |
| HIGH | skills/CLAUDE.md | 230 | ANTHROPIC_API_KEY=your-api-key-here | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW⚡ | …_augmented_generation/evaluation/provider_retrieval.py | 125 | # Step 1: Get initial results from the summary db | STRING |
| LOW⚡ | …_augmented_generation/evaluation/provider_retrieval.py | 128 | # Step 2: Re-rank results | STRING |
| LOW⚡ | …_augmented_generation/evaluation/provider_retrieval.py | 131 | # Step 3: Generate new context string from re-ranked results | STRING |
| LOW⚡ | …s/retrieval_augmented_generation/evaluation/prompts.py | 159 | # Step 1: Get initial results | STRING |
| LOW⚡ | …s/retrieval_augmented_generation/evaluation/prompts.py | 162 | # Step 2: Re-rank results | STRING |
| LOW⚡ | …s/retrieval_augmented_generation/evaluation/prompts.py | 165 | # Step 3: Generate new context string from re-ranked results | STRING |
| LOW | .claude/commands/review-pr-ci.md | 14 | ### Step 1: Gather PR context | COMMENT |
| LOW | .claude/commands/review-pr-ci.md | 22 | ### Step 2: Review the code changes | COMMENT |
| LOW | .claude/commands/review-pr-ci.md | 33 | ### Step 3: Determine review outcome | COMMENT |
| LOW | .claude/commands/review-pr-ci.md | 40 | ### Step 4: Post the review | COMMENT |
| LOW⚡ | .claude/commands/review-pr.md | 14 | ### Step 1: Checkout the PR | COMMENT |
| LOW⚡ | .claude/commands/review-pr.md | 21 | ### Step 2: Gather PR context | COMMENT |
| LOW⚡ | .claude/commands/review-pr.md | 29 | ### Step 3: Review the code changes | COMMENT |
| LOW | .claude/commands/review-pr.md | 40 | ### Step 4: Present the review | COMMENT |
| LOW | .claude/commands/review-pr.md | 76 | ### Step 5: Ask about posting the review | COMMENT |
| LOW | .claude/commands/review-pr.md | 82 | ### Step 6: Post the review (if approved) | COMMENT |
| LOW | .claude/commands/review-issue.md | 14 | ### Step 1: Gather issue context | COMMENT |
| LOW | .claude/commands/review-issue.md | 21 | ### Step 2: Classify the issue | COMMENT |
| LOW | .claude/commands/review-issue.md | 32 | ### Step 3: Check for related context | COMMENT |
| LOW | .claude/commands/review-issue.md | 39 | ### Step 4: Draft a response | COMMENT |
| LOW | .claude/commands/review-issue.md | 82 | ### Step 5: Suggest labels | COMMENT |
| LOW | .claude/commands/review-issue.md | 93 | ### Step 6: Present the review | COMMENT |
| LOW | .claude/commands/review-issue.md | 104 | ### Step 7: Get user approval | COMMENT |
| LOW | .claude/commands/review-issue.md | 111 | ### Step 8: Take action (if approved) | COMMENT |
| LOW | third_party/ElevenLabs/README.md | 17 | ### Step 1: Set Up Your Environment | COMMENT |
| LOW | third_party/ElevenLabs/README.md | 61 | ### Step 2: Work Through the Notebook | COMMENT |
| LOW | third_party/ElevenLabs/README.md | 74 | ### Step 3: Try the Production Script | COMMENT |
| LOW | claude_agent_sdk/utils/agent_visualizer.py | 107 | # WARNING: This global state is NOT thread-safe. If using this module in concurrent | COMMENT |
| LOW | skills/README.md | 173 | # Step 1: Use a skill to create a file | COMMENT |
| LOW⚡ | skills/README.md | 189 | # Step 2: Extract file_id from the response | COMMENT |
| LOW⚡ | skills/README.md | 198 | # Step 3: Download the file using Files API | COMMENT |
| LOW⚡ | skills/README.md | 202 | # Step 4: Save to disk | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tool_use/utils/__init__.py | 9 | CODE | |
| LOW | tool_use/utils/__init__.py | 9 | CODE | |
| LOW | tool_use/memory_demo/__init__.py | 3 | CODE | |
| LOW | tool_use/memory_demo/__init__.py | 3 | CODE | |
| LOW | tool_use/memory_demo/__init__.py | 3 | CODE | |
| LOW | tool_use/memory_demo/__init__.py | 3 | CODE | |
| LOW | capabilities/content_moderation/engine.py | 45 | CODE | |
| LOW | capabilities/content_moderation/pipeline.py | 12 | CODE | |
| LOW | tests/conftest.py | 3 | CODE | |
| LOW | tests/notebook_tests/conftest.py | 3 | CODE | |
| LOW | tests/notebook_tests/test_notebooks.py | 14 | CODE | |
| LOW | tests/notebook_tests/utils.py | 3 | CODE | |
| LOW | managed_agents/mongodb_on_cma/ap2_mandates.py | 12 | CODE | |
| LOW | managed_agents/mongodb_on_cma/config.py | 7 | CODE | |
| LOW | managed_agents/mongodb_on_cma/tools.py | 11 | CODE | |
| LOW | managed_agents/mongodb_on_cma/__init__.py | 14 | CODE | |
| LOW | managed_agents/mongodb_on_cma/__init__.py | 16 | CODE | |
| LOW | managed_agents/mongodb_on_cma/__init__.py | 16 | CODE | |
| LOW | managed_agents/mongodb_on_cma/__init__.py | 16 | CODE | |
| LOW | managed_agents/mongodb_on_cma/__init__.py | 16 | CODE | |
| LOW | managed_agents/mongodb_on_cma/__init__.py | 16 | CODE | |
| LOW | managed_agents/mongodb_on_cma/__init__.py | 16 | CODE | |
| LOW | managed_agents/mongodb_on_cma/__init__.py | 16 | CODE | |
| LOW | managed_agents/mongodb_on_cma/__init__.py | 25 | CODE | |
| LOW | managed_agents/mongodb_on_cma/__init__.py | 25 | CODE | |
| LOW | managed_agents/mongodb_on_cma/__init__.py | 25 | CODE | |
| LOW | managed_agents/mongodb_on_cma/__init__.py | 25 | CODE | |
| LOW | managed_agents/mongodb_on_cma/__init__.py | 25 | CODE | |
| LOW | managed_agents/mongodb_on_cma/__init__.py | 32 | CODE | |
| LOW | managed_agents/mongodb_on_cma/__init__.py | 33 | CODE | |
| LOW | managed_agents/mongodb_on_cma/__init__.py | 33 | CODE | |
| LOW | managed_agents/mongodb_on_cma/__init__.py | 33 | CODE | |
| LOW | managed_agents/mongodb_on_cma/__init__.py | 33 | CODE | |
| LOW | managed_agents/mongodb_on_cma/__init__.py | 33 | CODE | |
| LOW | managed_agents/mongodb_on_cma/__init__.py | 33 | CODE | |
| LOW | managed_agents/mongodb_on_cma/__init__.py | 33 | CODE | |
| LOW | managed_agents/mongodb_on_cma/__init__.py | 33 | CODE | |
| LOW | managed_agents/mongodb_on_cma/__init__.py | 33 | CODE | |
| LOW | managed_agents/mongodb_on_cma/__init__.py | 33 | CODE | |
| LOW | managed_agents/mongodb_on_cma/__init__.py | 33 | CODE | |
| LOW | managed_agents/mongodb_on_cma/__init__.py | 33 | CODE | |
| LOW | managed_agents/mongodb_on_cma/__init__.py | 33 | CODE | |
| LOW | managed_agents/mongodb_on_cma/seed.py | 9 | CODE | |
| LOW | managed_agents/mongodb_on_cma/embeddings.py | 9 | CODE | |
| LOW | claude_agent_sdk/utils/agent_visualizer.py | 33 | CODE | |
| LOW | claude_agent_sdk/hosting/server.py | 27 | CODE | |
| LOW | claude_agent_sdk/hosting/run_once.py | 8 | CODE | |
| LOW | claude_agent_sdk/hosting/modal/teardown.py | 8 | CODE | |
| LOW | claude_agent_sdk/hosting/modal/modal_app.py | 21 | CODE | |
| LOW | scripts/test_notebooks.py | 25 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tool_use/memory_tool.py | 195 | # Write the file | COMMENT |
| LOW | tool_use/memory_tool.py | 219 | # Check if old_str exists | COMMENT |
| LOW | tool_use/utils/team_expense_api.py | 513 | # Check if user has custom budget | COMMENT |
| LOW | capabilities/classification/evaluation/vectordb.py | 20 | # Check if the vector database is already loaded | COMMENT |
| LOW | capabilities/classification/evaluation/vectordb.py | 24 | # Check if vector_db.pkl exists | COMMENT |
| 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 | CODE |
| LOW | …mbeddings/contextual-rag-lambda-function/s3_adapter.py | 31 | # Check if the upload was successful | COMMENT |
| LOW | …ings/contextual-rag-lambda-function/lambda_function.py | 50 | # Read file from S3 | STRING |
| LOW⚡ | tests/notebook_tests/test_notebooks.py | 149 | # Check if notebook uses Anthropic | COMMENT |
| LOW | tests/notebook_tests/test_notebooks.py | 200 | # Check if there's a requirements mention in markdown | COMMENT |
| LOW | tests/notebook_tests/utils.py | 218 | # Check if it's using default client (which reads from env automatically) | COMMENT |
| LOW | .claude/skills/cookbook-audit/validate_notebook.py | 311 | # Check if there are any model references at all | COMMENT |
| LOW | …d_party/ElevenLabs/stream_voice_assistant_websocket.py | 300 | # Check if generation is complete | COMMENT |
| LOW | claude_agent_sdk/utils/html_renderer.py | 151 | # Check if any item looks like a message (has content attribute and message-like class) | STRING |
| LOW | claude_agent_sdk/utils/agent_visualizer.py | 26 | # Display results (auto-detects Jupyter vs terminal) | STRING |
| LOW | claude_agent_sdk/utils/agent_visualizer.py | 140 | # Check if content exists and has elements | COMMENT |
| LOW | claude_agent_sdk/utils/agent_visualizer.py | 160 | # Check if we're inside a subagent context | COMMENT |
| LOW | claude_agent_sdk/utils/agent_visualizer.py | 180 | # Check if this is a Task tool result (subagent completed) | COMMENT |
| LOW | claude_agent_sdk/utils/agent_visualizer.py | 251 | # Check if it has text content (not just tool use) | COMMENT |
| LOW | …t_sdk/site_reliability_agent/examples/sre_bot_slack.py | 621 | # Check if this is a DM | COMMENT |
| LOW | …t_sdk/site_reliability_agent/examples/sre_bot_slack.py | 624 | # Check if this is a follow-up in an active thread | COMMENT |
| LOW | claude_agent_sdk/observability_agent/agent.py | 142 | # Display the result using the shared visualization utility | COMMENT |
| LOW | claude_agent_sdk/research_agent/agent.py | 56 | # Check if content exists and has items | COMMENT |
| LOW | claude_agent_sdk/research_agent/agent.py | 128 | # Display the result using the shared visualization utility | COMMENT |
| LOW | …ef_of_staff_agent/.claude/hooks/script-usage-logger.py | 25 | # Check if it's executing a Python script from scripts/ directory | COMMENT |
| LOW | scripts/validate_all_notebooks.py | 491 | # Check if needs revalidation | COMMENT |
| LOW | scripts/validate_all_notebooks.py | 519 | # Display result | COMMENT |
| LOW | .github/workflows/notebook-quality.yml | 48 | # Check if validation found issues | COMMENT |
| LOW | skills/file_utils.py | 129 | # Check if file exists | COMMENT |
| LOW | …tom_skills/applying-brand-guidelines/validate_brand.py | 88 | # Check if any approved font is in the found font string | COMMENT |
| LOW | …tom_skills/applying-brand-guidelines/validate_brand.py | 296 | # Print results | STRING |
| LOW | skills/.claude/hooks/session-start.sh | 10 | # Check if we're in a virtual environment | COMMENT |
| LOW | skills/.claude/hooks/session-start.sh | 17 | # Check if Anthropic SDK is installed and get version | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | …d_party/ElevenLabs/stream_voice_assistant_websocket.py | 140 | except Exception: # noqa: S110 | CODE |
| HIGH | claude_agent_sdk/utils/html_renderer.py | 27 | except ImportError: | CODE |
| HIGH | claude_agent_sdk/utils/html_renderer.py | 50 | except ImportError: | CODE |
| HIGH | …ude_agent_sdk/site_reliability_agent/sre_mcp_server.py | 36 | except ImportError: | CODE |
| HIGH | claude_agent_sdk/research_agent/agent.py | 64 | except (AttributeError, IndexError): | CODE |
| HIGH | claude_agent_sdk/chief_of_staff_agent/agent.py | 29 | except (AttributeError, IndexError): | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | capabilities/content_moderation/pipeline.py | 285 | - Where a field's type allows null, use null when the value genuinely cannot be determined | CODE |
| HIGH | claude_agent_sdk/site_reliability_agent/infra_setup.py | 92 | sh -c "pip install aiohttp && python traffic_generator.py" | CODE |
| 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/* | STRING |
| HIGH | claude_agent_sdk/site_reliability_agent/infra_setup.py | 1043 | " 2>/dev/null) | STRING |
| 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 | STRING |
| HIGH | claude_agent_sdk/site_reliability_agent/infra_setup.py | 1063 | " 2>/dev/null) | STRING |
| HIGH | claude_agent_sdk/site_reliability_agent/infra_setup.py | 1071 | [ "$POOL_SIZE" -gt 100 ] 2>/dev/null; }; then | STRING |
| HIGH | claude_agent_sdk/hosting/modal/modal_app.py | 11 | Prereqs: ``pip install modal && modal setup`` and a Modal secret named | STRING |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | tool_use/memory_tool.py | 38 | Validate and resolve memory paths to prevent directory traversal attacks. Args: path: The | STRING |
| 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 | STRING |
| 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 | STRING |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| 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 | CODE |
| 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 | CODE |
| 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 | CODE |
| 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 | CODE |
| 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 | CODE |
| 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 | CODE |
| 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 | CODE |
| MEDIUM | …ude_agent_sdk/site_reliability_agent/sre_mcp_server.py | 773 | """Get a comprehensive health summary across all services.""" | STRING |
| MEDIUM | …lls/analyzing-financial-statements/calculate_ratios.py | 83 | """Calculate leverage/solvency ratios.""" | STRING |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | tool_use/utils/visualize.py | 289 | # Create main tree with token usage in the title | COMMENT |
| 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 | CODE |
| 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 | CODE |
| MEDIUM | …mbeddings/contextual-rag-lambda-function/s3_adapter.py | 9 | # Create an S3 client | COMMENT |
| MEDIUM⚡ | claude_agent_sdk/site_reliability_agent/infra_setup.py | 149 | # This file is read by the api-server container | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | …bilities/summarization/evaluation/promptfooconfig.yaml | 25 | - "As an AI language model" | CODE |
| 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 | CODE |
| 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 | CODE |
| 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 | CODE |
| 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 | CODE |
| 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 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | …d_agents/mongodb_on_cma/self_hosted_sandbox/on-work.sh | 21 | NAME="cma-${ANTHROPIC_SESSION_ID}" # session ids are docker-name-safe | COMMENT |
| LOW | …d_agents/mongodb_on_cma/self_hosted_sandbox/on-work.sh | 41 | # --rm removes the container on exit; the per-session volume persists. | COMMENT |
| LOW | …ged_agents/mongodb_on_cma/self_hosted_sandbox/start.sh | 1 | #!/usr/bin/env bash | COMMENT |
| LOW | claude_agent_sdk/site_reliability_agent/infra_setup.py | 21 | os.makedirs(d, exist_ok=True) | COMMENT |
| LOW | claude_agent_sdk/site_reliability_agent/infra_setup.py | 281 | """) | COMMENT |
| LOW | claude_agent_sdk/hosting/kubernetes/generate-certs.sh | 1 | #!/bin/bash | COMMENT |
| LOW | claude_agent_sdk/hosting/kubernetes/generate-certs.sh | 21 | # tools like Claude Code that run on Node.js) to accept TLS certificates | COMMENT |
| LOW | …t_sdk/hosting/kubernetes/manifests/network-policy.yaml | 1 | # NetworkPolicy: Kubernetes firewall rules that restrict network traffic to and | COMMENT |
| LOW | …t_sdk/hosting/kubernetes/manifests/network-policy.yaml | 21 | # internet, other services, or other namespaces. | COMMENT |
| LOW | …de_agent_sdk/hosting/kubernetes/manifests/gateway.yaml | 1 | # Gateway: The central API server that manages agent pod lifecycles. | COMMENT |
| LOW | claude_agent_sdk/hosting/kubernetes/gateway/k8s.py | 161 | # documentation — K8s doesn't enforce it — but it helps tools and | COMMENT |
| LOW | claude_agent_sdk/hosting/kubernetes/gateway/main.py | 41 | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tool_use/utils/__init__.py | 11 | __all__ = ["visualize", "show_response"] | CODE |
| LOW | tool_use/memory_demo/__init__.py | 10 | __all__ = [ | CODE |
| LOW | managed_agents/mongodb_on_cma/__init__.py | 49 | __all__ = [ | CODE |
| LOW | claude_agent_sdk/utils/agent_visualizer.py | 35 | __all__ = [ | CODE |
| LOW | claude_agent_sdk/site_reliability_agent/infra_setup.py | 333 | logger = logging.getLogger(__name__) | STRING |
| LOW | claude_agent_sdk/site_reliability_agent/infra_setup.py | 877 | logger = logging.getLogger(__name__) | STRING |
| LOW | claude_agent_sdk/hosting/kubernetes/gateway/proxy.py | 17 | logger = logging.getLogger(__name__) | CODE |
| LOW⚡ | claude_agent_sdk/hosting/kubernetes/gateway/k8s.py | 25 | logger = logging.getLogger(__name__) | CODE |
| LOW⚡ | claude_agent_sdk/hosting/kubernetes/gateway/main.py | 36 | logger = logging.getLogger(__name__) | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | …s/custom_skills/creating-financial-models/dcf_model.py | 492 | # Example usage | COMMENT |
| LOW | …ills/creating-financial-models/sensitivity_analysis.py | 335 | # Example usage | COMMENT |
| LOW | …lls/analyzing-financial-statements/calculate_ratios.py | 309 | # Example usage | COMMENT |
| LOW | …custom_skills/applying-brand-guidelines/apply_brand.py | 418 | # Example usage | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tool_use/memory_demo/sample_code/cache_manager.py | 70 | CODE | |
| LOW | …_augmented_generation/evaluation/provider_retrieval.py | 23 | CODE | |
| LOW | …_augmented_generation/evaluation/provider_retrieval.py | 42 | CODE | |
| LOW | …_augmented_generation/evaluation/provider_retrieval.py | 144 | CODE | |
| LOW | skills/skill_utils.py | 257 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW⚡ | …_augmented_generation/evaluation/provider_retrieval.py | 125 | # Step 1: Get initial results from the summary db | STRING |
| LOW⚡ | …_augmented_generation/evaluation/provider_retrieval.py | 128 | # Step 2: Re-rank results | STRING |
| LOW⚡ | …_augmented_generation/evaluation/provider_retrieval.py | 131 | # Step 3: Generate new context string from re-ranked results | STRING |
| LOW⚡ | …s/retrieval_augmented_generation/evaluation/prompts.py | 159 | # Step 1: Get initial results | STRING |
| LOW⚡ | …s/retrieval_augmented_generation/evaluation/prompts.py | 162 | # Step 2: Re-rank results | STRING |
| LOW⚡ | …s/retrieval_augmented_generation/evaluation/prompts.py | 165 | # Step 3: Generate new context string from re-ranked results | STRING |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | …ude_agent_sdk/site_reliability_agent/sre_mcp_server.py | 2658 | async def handle_request(request: dict[str, Any]) -> None: | CODE |