Repository Analysis

anthropics/claude-cookbooks

A collection of notebooks/recipes showcasing some fun and effective ways of using Claude.

16.3 Moderate AI signal View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of anthropics/claude-cookbooks, a Jupyter Notebook project with 48,781 GitHub stars. SynthScan v2.0 examined 51,937 lines of code across 358 source files, recording 526 pattern matches distributed across 20 syntactic categories. The overall adjusted score of 16.3 places this repository in the Moderate AI signal band.

The scanner applied 160+ deterministic lexical heuristics, multi-line block detectors, abstract syntax tree depth profilers, and a cross-file Jaccard similarity matrix to construct a statistically normalised synthetic code estimate. All matches are individually weighted by severity coefficient and contextual multiplier before summation, and the resulting headline score is temporally discounted to account for the repository's development history relative to the commercial emergence of large language model coding tooling (November 2022 onward).

16.3
Adjusted Score
16.3
Raw Score
100%
Time Factor
2026-07-13
Last Push
48.8K
Stars
Jupyter Notebook
Language
51.9K
Lines of Code
358
Files
526
Pattern Hits
2026-07-14
Scan Date
0.06
HC Hit Rate

What These Metrics Mean

Adjusted Score
Primary synthetic code indicator. Raw score normalised per 1,000 lines of code and multiplied by the temporal discount factor. This is the definitive comparative metric — use it to rank repositories by AI authorship density.
Raw Score
The unmodified sum of all severity-weighted, context-multiplied pattern match scores before temporal discounting. Reflects the absolute signal strength independent of when the repository was last active.
Time Factor
The temporal discount multiplier (0–100%) applied to the raw score. Repositories last updated before ChatGPT's launch (Nov 2022) receive a 5% factor. Full signal is only assigned to repositories active in the post-adoption era (Jan 2024+).
Pattern Hits
Total count of individual pattern matches across all files and categories. A high hit count with a low score may indicate a very large codebase with isolated AI snippets; a low count with a high score indicates dense, concentrated AI signatures.
HC Hit Rate
High+Critical pattern hits per file, averaged across the repository. This orthogonal signal catches repositories where a few files are densely packed with high-severity AI tells — a strong indicator even when the normalised score appears moderate due to codebase size.
Lines of Code / Files
Total lines and files analysed. The scanner examines 94 file extensions. These denominators are used to normalise the score, enabling fair comparison between repositories of vastly different sizes.

Score History

This chart maps the temporal evolution of the adjusted synthetic code score across successive scan runs. An upward trajectory indicates ongoing incorporation of AI-generated code or expanding LLM-assisted scaffolding; a stable or declining trajectory may reflect active human refactoring, code removal, or the adoption of stricter authorship policies. The dashed secondary line (right axis) independently tracks total raw pattern hit count, which can diverge from the normalised score when codebase size changes significantly between scans.

Severity Breakdown

Classifies detected patterns by their diagnostic confidence and structural impact. CRITICAL patterns (coefficient 10) represent definitive synthetic signatures — hallucinated imports, explicit LLM attribution metadata — virtually never produced by human authors. HIGH (5) indicates strong structural tells such as cross-file repetition or cross-linguistic idioms. MEDIUM (2) covers recognisable conversational padding and AI-specific vocabulary. LOW (1) captures subtle indicators like tautological comments and generic boilerplate that require density to carry independent signal.

CRITICAL 0HIGH 22MEDIUM 163LOW 341

Directory Score Breakdown

This horizontal bar chart decomposes the repository's raw synthetic code score by top-level directory, allowing you to pinpoint precisely which modules or components carry the highest AI authorship density. Directories with disproportionately high scores relative to their size warrant targeted manual review: concentrated AI signatures often trace back to mass-generated configuration layers, auto-ported test suites, LLM-scaffolded boilerplate classes, or entire subsystems authored under heavy copilot assistance. Use this view to prioritise your human code-review effort.

Pattern Findings

The scanner identified 526 distinct pattern matches across 20 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a statistically significant AI authorship indicator. 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 diagnostic confidence level (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — comment-context matches receive a ×1.5 weight because LLMs systematically over-annotate. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier as dense clusters constitute far stronger evidence of synthetic authorship than isolated hits.

Decorative Section Separators87 hits · 230 pts
SeverityFileLineSnippetContext
MEDIUMtool_use/context_engineering/research_corpus.py848 # ─────────────────────────────────────────────────────────────────────STRING
MEDIUMtool_use/context_engineering/research_corpus.py925 # ─────────────────────────────────────────────────────────────────────STRING
MEDIUMtool_use/context_engineering/research_corpus.py1001 # ─────────────────────────────────────────────────────────────────────STRING
MEDIUMtool_use/context_engineering/research_corpus.py1074 # ─────────────────────────────────────────────────────────────────────STRING
MEDIUMtool_use/context_engineering/research_corpus.py1145 # ─────────────────────────────────────────────────────────────────────STRING
MEDIUMtool_use/context_engineering/research_corpus.py1217 # ─────────────────────────────────────────────────────────────────────STRING
MEDIUMtool_use/context_engineering/research_corpus.py1287 # ─────────────────────────────────────────────────────────────────────STRING
MEDIUMtool_use/context_engineering/research_corpus.py1353 # ─────────────────────────────────────────────────────────────────────STRING
MEDIUMevals/agentic_search/utils/agentic_search.py12# ---------------------------------------------------------------------------COMMENT
MEDIUMevals/agentic_search/utils/agentic_search.py18# ---------------------------------------------------------------------------COMMENT
MEDIUMevals/agentic_search/utils/agentic_search.py55# ---------------------------------------------------------------------------COMMENT
MEDIUMevals/agentic_search/utils/agentic_search.py57# ---------------------------------------------------------------------------COMMENT
MEDIUMevals/agentic_search/utils/agentic_search.py113# ---------------------------------------------------------------------------COMMENT
MEDIUMevals/agentic_search/utils/agentic_search.py115# ---------------------------------------------------------------------------COMMENT
MEDIUMevals/agentic_search/utils/agentic_search.py166# ---------------------------------------------------------------------------COMMENT
MEDIUMevals/agentic_search/utils/agentic_search.py168# ---------------------------------------------------------------------------COMMENT
MEDIUMevals/agentic_search/utils/agentic_search.py219# ---------------------------------------------------------------------------COMMENT
MEDIUMevals/agentic_search/utils/agentic_search.py221# ---------------------------------------------------------------------------COMMENT
MEDIUMclaude_agent_sdk/utils/html_renderer.py54# ─────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUMclaude_agent_sdk/utils/html_renderer.py56# ─────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUMclaude_agent_sdk/utils/html_renderer.py136# ─────────────────────────────────────────────────────────────────────────────STRING
MEDIUMclaude_agent_sdk/utils/html_renderer.py138# ─────────────────────────────────────────────────────────────────────────────STRING
MEDIUMclaude_agent_sdk/utils/html_renderer.py169# ─────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUMclaude_agent_sdk/utils/html_renderer.py171# ─────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUMclaude_agent_sdk/utils/html_renderer.py310# ─────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUMclaude_agent_sdk/utils/html_renderer.py312# ─────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUMclaude_agent_sdk/utils/html_renderer.py387# ─────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUMclaude_agent_sdk/utils/html_renderer.py389# ─────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUM…ude_agent_sdk/site_reliability_agent/sre_mcp_server.py1569# ============================================================================COMMENT
MEDIUM…ude_agent_sdk/site_reliability_agent/sre_mcp_server.py1571# ============================================================================COMMENT
MEDIUM…ude_agent_sdk/site_reliability_agent/sre_mcp_server.py1858# ============================================================================COMMENT
MEDIUM…ude_agent_sdk/site_reliability_agent/sre_mcp_server.py1860# ============================================================================COMMENT
MEDIUMclaude_agent_sdk/site_reliability_agent/infra_setup.py23# =============================================================================COMMENT
MEDIUMclaude_agent_sdk/site_reliability_agent/infra_setup.py25# =============================================================================COMMENT
MEDIUMclaude_agent_sdk/site_reliability_agent/infra_setup.py139# =============================================================================STRING
MEDIUMclaude_agent_sdk/site_reliability_agent/infra_setup.py141# =============================================================================STRING
MEDIUMclaude_agent_sdk/site_reliability_agent/infra_setup.py665# =============================================================================STRING
MEDIUMclaude_agent_sdk/site_reliability_agent/infra_setup.py667# =============================================================================STRING
MEDIUMclaude_agent_sdk/site_reliability_agent/infra_setup.py187# =============================================================================STRING
MEDIUMclaude_agent_sdk/site_reliability_agent/infra_setup.py189# =============================================================================STRING
MEDIUMclaude_agent_sdk/site_reliability_agent/infra_setup.py210# =============================================================================STRING
MEDIUMclaude_agent_sdk/site_reliability_agent/infra_setup.py212# =============================================================================STRING
MEDIUMclaude_agent_sdk/site_reliability_agent/infra_setup.py283# =============================================================================STRING
MEDIUMclaude_agent_sdk/site_reliability_agent/infra_setup.py285# =============================================================================STRING
MEDIUMclaude_agent_sdk/site_reliability_agent/infra_setup.py702# =============================================================================STRING
MEDIUMclaude_agent_sdk/site_reliability_agent/infra_setup.py704# =============================================================================STRING
MEDIUMclaude_agent_sdk/site_reliability_agent/infra_setup.py838# =============================================================================STRING
MEDIUMclaude_agent_sdk/site_reliability_agent/infra_setup.py840# =============================================================================STRING
MEDIUMclaude_agent_sdk/site_reliability_agent/infra_setup.py1013# =============================================================================STRING
MEDIUMclaude_agent_sdk/site_reliability_agent/infra_setup.py1015# =============================================================================STRING
MEDIUM…t_sdk/site_reliability_agent/examples/sre_bot_slack.py112# ============================================================================COMMENT
MEDIUM…t_sdk/site_reliability_agent/examples/sre_bot_slack.py114# ============================================================================COMMENT
MEDIUMclaude_agent_sdk/hosting/kubernetes/kind-quickstart.sh2# =============================================================================COMMENT
MEDIUMclaude_agent_sdk/hosting/kubernetes/kind-quickstart.sh4# =============================================================================COMMENT
MEDIUMclaude_agent_sdk/hosting/kubernetes/kind-quickstart.sh10# =============================================================================COMMENT
MEDIUMclaude_agent_sdk/hosting/kubernetes/kind-quickstart.sh40# 1. Cluster ────────────────────────────────────────────────────────────────COMMENT
MEDIUMclaude_agent_sdk/hosting/kubernetes/kind-quickstart.sh67# 2. Images ─────────────────────────────────────────────────────────────────COMMENT
MEDIUMclaude_agent_sdk/hosting/kubernetes/kind-quickstart.sh83# 3. Certificates ───────────────────────────────────────────────────────────COMMENT
MEDIUMclaude_agent_sdk/hosting/kubernetes/kind-quickstart.sh87# 4. Namespace, secrets, config ─────────────────────────────────────────────COMMENT
MEDIUMclaude_agent_sdk/hosting/kubernetes/kind-quickstart.sh118# 5. Manifests ──────────────────────────────────────────────────────────────COMMENT
27 more matches not shown…
Excessive Try-Catch Wrapping104 hits · 114 pts
SeverityFileLineSnippetContext
LOWtool_use/memory_tool.py116 except Exception as e:CODE
LOWtool_use/memory_tool.py144 except Exception as e:CODE
LOWtool_use/memory_tool.py168 except Exception as e:CODE
LOWtool_use/memory_tool.py199 except Exception as e:CODE
LOWtool_use/memory_tool.py237 except Exception as e:CODE
LOWtool_use/memory_tool.py272 except Exception as e:CODE
LOWtool_use/memory_tool.py309 except Exception as e:CODE
LOWtool_use/memory_tool.py341 except Exception as e:CODE
LOWtool_use/memory_tool.py361 except Exception as e:CODE
LOWtool_use/memory_demo/sample_code/api_client_v1.py31 except Exception as e:CODE
LOWtool_use/memory_demo/sample_code/data_processor_v1.py38 except Exception as e:CODE
LOWcapabilities/classification/evaluation/transform.py4 except Exception as e:CODE
MEDIUMcapabilities/classification/evaluation/transform.py5 print(f"Error in get_transform: {e}")CODE
MEDIUMcapabilities/classification/evaluation/transform.py1def get_transform(output, context):CODE
LOW…ies/summarization/evaluation/custom_evals/bleu_eval.py45 except Exception as e:CODE
MEDIUM…ies/summarization/evaluation/custom_evals/bleu_eval.py46 print(f"Error calculating BLEU score: {e}. Defaulting to 0.")CODE
LOW…_augmented_generation/evaluation/provider_retrieval.py110 except Exception as e:STRING
MEDIUM…_augmented_generation/evaluation/provider_retrieval.py111 print(f"An error occurred during reranking: {str(e)}")STRING
LOW…eval_augmented_generation/evaluation/eval_retrieval.py63 except Exception as e:CODE
LOW…s/retrieval_augmented_generation/evaluation/prompts.py152 except Exception as e:STRING
MEDIUM…s/retrieval_augmented_generation/evaluation/prompts.py153 print(f"An error occurred during reranking: {str(e)}")STRING
LOW…val_augmented_generation/evaluation/eval_end_to_end.py69 except Exception as e:STRING
LOW…es/text_to_sql/evaluation/tests/test_employee_count.py11 except Exception as e:CODE
LOW…es/text_to_sql/evaluation/tests/test_average_salary.py11 except Exception as e:CODE
LOW…ext_to_sql/evaluation/tests/test_hierarchical_query.py18 except Exception as e:CODE
LOW…t_to_sql/evaluation/tests/test_above_average_salary.py11 except Exception as e:CODE
LOW…/text_to_sql/evaluation/tests/test_employee_details.py11 except Exception as e:CODE
LOW…text_to_sql/evaluation/tests/test_budget_allocation.py20 except Exception as e:CODE
MEDIUM…gs/contextual-rag-lambda-function/inference_adapter.py43 print(f"An error occurred: {e}")CODE
MEDIUM…mbeddings/contextual-rag-lambda-function/s3_adapter.py40 print(f"Error occurred: {e}")CODE
MEDIUM…mbeddings/contextual-rag-lambda-function/s3_adapter.py59 print(f"Error reading file from S3: {str(e)}")CODE
LOWtests/notebook_tests/utils.py353 except Exception as e:CODE
LOW.claude/skills/cookbook-audit/validate_notebook.py176 except Exception as e:CODE
MEDIUM.claude/skills/cookbook-audit/validate_notebook.py479 print(f"Error: {e}")CODE
MEDIUM.claude/skills/cookbook-audit/validate_notebook.py482 print(f"Error: {notebook_path} is not a valid JSON file")CODE
LOW.claude/skills/cookbook-audit/validate_notebook.py484 except Exception as e:CODE
LOW…gents/self_hosted_sandboxes/daytona/daytona_webhook.py171 except Exception as e:CODE
LOW…s/self_hosted_sandboxes/modal/modal_sandbox_webhook.py234 except Exception as e:CODE
LOW…d_party/ElevenLabs/stream_voice_assistant_websocket.py140 except Exception: # noqa: S110CODE
LOWclaude_agent_sdk/utils/agent_visualizer.py59 except Exception:CODE
MEDIUM…ude_agent_sdk/site_reliability_agent/sre_mcp_server.py2717 print(f"Error: {e}", file=sys.stderr)CODE
LOW…ude_agent_sdk/site_reliability_agent/sre_mcp_server.py1851 except Exception as e:CODE
LOW…ude_agent_sdk/site_reliability_agent/sre_mcp_server.py707 except Exception as e:CODE
LOW…ude_agent_sdk/site_reliability_agent/sre_mcp_server.py765 except Exception as e:CODE
LOW…ude_agent_sdk/site_reliability_agent/sre_mcp_server.py811 except Exception as e:CODE
LOW…ude_agent_sdk/site_reliability_agent/sre_mcp_server.py846 except Exception as e:CODE
LOW…ude_agent_sdk/site_reliability_agent/sre_mcp_server.py875 except Exception as e:CODE
LOW…ude_agent_sdk/site_reliability_agent/sre_mcp_server.py900 except Exception as e:CODE
LOW…ude_agent_sdk/site_reliability_agent/sre_mcp_server.py1654 except Exception as e:CODE
LOW…ude_agent_sdk/site_reliability_agent/sre_mcp_server.py1727 except Exception as e:CODE
LOW…ude_agent_sdk/site_reliability_agent/sre_mcp_server.py1781 except Exception as e:CODE
LOW…ude_agent_sdk/site_reliability_agent/sre_mcp_server.py2045 except Exception as e:CODE
LOW…ude_agent_sdk/site_reliability_agent/sre_mcp_server.py2136 except Exception as e:CODE
LOW…ude_agent_sdk/site_reliability_agent/sre_mcp_server.py2202 except Exception as e:CODE
LOW…ude_agent_sdk/site_reliability_agent/sre_mcp_server.py2245 except Exception as e:CODE
LOW…ude_agent_sdk/site_reliability_agent/sre_mcp_server.py2314 except Exception as e:CODE
LOW…ude_agent_sdk/site_reliability_agent/sre_mcp_server.py2418 except Exception as e:CODE
LOW…ude_agent_sdk/site_reliability_agent/sre_mcp_server.py2501 except Exception as e:CODE
LOW…ude_agent_sdk/site_reliability_agent/sre_mcp_server.py2715 except Exception as e:CODE
LOWclaude_agent_sdk/site_reliability_agent/infra_setup.py438 except Exception as e:CODE
44 more matches not shown…
Modern AI Meta-Vocabulary38 hits · 85 pts
SeverityFileLineSnippetContext
MEDIUMCLAUDE.md94capabilities/ # Core Claude capabilities (RAG, classification, etc.)CODE
MEDIUMcapabilities/classification/evaluation/README.md23 - You can read more about prompt functions [here](https://www.promptfoo.dev/docs/configuration/parameters#promptCODE
MEDIUM…ted_generation/evaluation/docs_evaluation_dataset.json25 "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.json114 "https://docs.claude.com/en/docs/build-with-claude/tool-use#chain-of-thought"CODE
MEDIUM…ted_generation/evaluation/docs_evaluation_dataset.json255 "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.json345 "https://docs.claude.com/en/docs/test-and-evaluate/strengthen-guardrails/reduce-prompt-leak#strategies-to-reduce-pCODE
MEDIUM…ted_generation/evaluation/docs_evaluation_dataset.json346 "https://docs.claude.com/en/docs/test-and-evaluate/strengthen-guardrails/reduce-prompt-leak#before-you-try-to-reduCODE
MEDIUM…ted_generation/evaluation/docs_evaluation_dataset.json354 "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.json434 "https://docs.claude.com/en/docs/test-and-evaluate/strengthen-guardrails/increase-consistency#chain-prompts-for-coCODE
MEDIUM…ted_generation/evaluation/docs_evaluation_dataset.json531 "https://docs.claude.com/en/docs/test-and-evaluate/strengthen-guardrails/increase-consistency#chain-prompts-for-coCODE
MEDIUM…ted_generation/evaluation/docs_evaluation_dataset.json656 "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.json683 "https://docs.claude.com/en/docs/resources/glossary#rag-retrieval-augmented-generation"CODE
MEDIUM…ted_generation/evaluation/docs_evaluation_dataset.json727 "https://docs.claude.com/en/docs/build-with-claude/tool-use#chain-of-thought",CODE
MEDIUM…ted_generation/evaluation/docs_evaluation_dataset.json818 "https://docs.claude.com/en/docs/test-and-evaluate/strengthen-guardrails/reduce-latency#2-optimize-prompt-and-outpCODE
MEDIUM…es/retrieval_augmented_generation/evaluation/README.md33 - You can read more about prompt functions [here](https://www.promptfoo.dev/docs/configuration/parameters#promptCODE
MEDIUM…etrieval_augmented_generation/data/anthropic_docs.json215 "text": "Voyage Python package\n\n\nThe voyageai package can be installed using the following command:\nPythonpip inCODE
MEDIUM…etrieval_augmented_generation/data/anthropic_docs.json215 "text": "Voyage Python package\n\n\nThe voyageai package can be installed using the following command:\nPythonpip inCODE
MEDIUM…etrieval_augmented_generation/data/anthropic_docs.json725 "text": "Prompting Claude for Ticket Routing\n\n\nTicket routing is a classification task. For more information abouCODE
MEDIUM…etrieval_augmented_generation/data/anthropic_docs.json828 "chunk_link": "https://docs.claude.com/en/docs/test-and-evaluate/strengthen-guardrails/reduce-hallucinations#basic-hCODE
MEDIUM…etrieval_augmented_generation/data/anthropic_docs.json828 "chunk_link": "https://docs.claude.com/en/docs/test-and-evaluate/strengthen-guardrails/reduce-hallucinations#basic-hCODE
MEDIUM…etrieval_augmented_generation/data/anthropic_docs.json833 "chunk_link": "https://docs.claude.com/en/docs/test-and-evaluate/strengthen-guardrails/reduce-hallucinations#advanceCODE
MEDIUM…etrieval_augmented_generation/data/anthropic_docs.json838 "chunk_link": "https://docs.claude.com/en/docs/test-and-evaluate/strengthen-guardrails/reduce-latency#how-to-measureCODE
MEDIUM…etrieval_augmented_generation/data/anthropic_docs.json843 "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.json848 "chunk_link": "https://docs.claude.com/en/docs/test-and-evaluate/strengthen-guardrails/reduce-latency#1-choose-the-rCODE
MEDIUM…etrieval_augmented_generation/data/anthropic_docs.json853 "chunk_link": "https://docs.claude.com/en/docs/test-and-evaluate/strengthen-guardrails/reduce-latency#2-optimize-proCODE
MEDIUM…etrieval_augmented_generation/data/anthropic_docs.json858 "chunk_link": "https://docs.claude.com/en/docs/test-and-evaluate/strengthen-guardrails/reduce-latency#3-leverage-strCODE
MEDIUM…etrieval_augmented_generation/data/anthropic_docs.json1123 "chunk_link": "https://docs.claude.com/en/docs/test-and-evaluate/strengthen-guardrails/increase-consistency#specify-CODE
MEDIUM…etrieval_augmented_generation/data/anthropic_docs.json1128 "chunk_link": "https://docs.claude.com/en/docs/test-and-evaluate/strengthen-guardrails/increase-consistency#prefill-CODE
MEDIUM…etrieval_augmented_generation/data/anthropic_docs.json1133 "chunk_link": "https://docs.claude.com/en/docs/test-and-evaluate/strengthen-guardrails/increase-consistency#constraiCODE
MEDIUM…etrieval_augmented_generation/data/anthropic_docs.json1138 "chunk_link": "https://docs.claude.com/en/docs/test-and-evaluate/strengthen-guardrails/increase-consistency#use-retrCODE
MEDIUM…etrieval_augmented_generation/data/anthropic_docs.json1143 "chunk_link": "https://docs.claude.com/en/docs/test-and-evaluate/strengthen-guardrails/increase-consistency#chain-prCODE
MEDIUM…etrieval_augmented_generation/data/anthropic_docs.json1148 "chunk_link": "https://docs.claude.com/en/docs/test-and-evaluate/strengthen-guardrails/mitigate-jailbreaks#advanced-CODE
MEDIUM…etrieval_augmented_generation/data/anthropic_docs.json1153 "chunk_link": "https://docs.claude.com/en/docs/test-and-evaluate/strengthen-guardrails/reduce-prompt-leak#before-youCODE
MEDIUM…etrieval_augmented_generation/data/anthropic_docs.json1158 "chunk_link": "https://docs.claude.com/en/docs/test-and-evaluate/strengthen-guardrails/reduce-prompt-leak#strategiesCODE
MEDIUM…etrieval_augmented_generation/data/anthropic_docs.json398 "chunk_link": "https://docs.claude.com/en/docs/build-with-claude/tool-use#chain-of-thought",CODE
MEDIUM…etrieval_augmented_generation/data/anthropic_docs.json478 "chunk_link": "https://docs.claude.com/en/docs/resources/glossary#rag-retrieval-augmented-generation",CODE
MEDIUMtests/__init__.py1# Notebook testing scaffold for Anthropic CookbookCOMMENT
MEDIUMmanaged_agents/roadtrip_planner/skill.md43Open <http://localhost:3000>. The page creates one session per browser on load (cookie `roadtrip_planner_session_id`), sCODE
Hyper-Verbose Identifiers74 hits · 75 pts
SeverityFileLineSnippetContext
LOWtool_use/tests/test_memory_tool.py29 def test_path_validation_requires_memories_prefix(self):CODE
LOWtool_use/tests/test_memory_tool.py35 def test_path_validation_prevents_traversal_dotdot(self):CODE
LOWtool_use/tests/test_memory_tool.py41 def test_path_validation_prevents_traversal_encoded(self):CODE
LOWtool_use/tests/test_memory_tool.py47 def test_path_validation_allows_valid_paths(self):CODE
LOWtool_use/tests/test_memory_tool.py54 def test_view_empty_directory(self):CODE
LOWtool_use/tests/test_memory_tool.py60 def test_view_directory_with_files(self):CODE
LOWtool_use/tests/test_memory_tool.py71 def test_view_file_with_line_numbers(self):CODE
LOWtool_use/tests/test_memory_tool.py82 def test_view_file_with_range(self):CODE
LOWtool_use/tests/test_memory_tool.py94 def test_view_nonexistent_path(self):CODE
LOWtool_use/tests/test_memory_tool.py114 def test_create_file_in_subdirectory(self):CODE
LOWtool_use/tests/test_memory_tool.py126 def test_create_requires_file_extension(self):CODE
LOWtool_use/tests/test_memory_tool.py132 def test_create_overwrites_existing_file(self):CODE
LOWtool_use/tests/test_memory_tool.py164 def test_str_replace_string_not_found(self):CODE
LOWtool_use/tests/test_memory_tool.py177 def test_str_replace_multiple_occurrences(self):CODE
LOWtool_use/tests/test_memory_tool.py194 def test_str_replace_file_not_found(self):CODE
LOWtool_use/tests/test_memory_tool.py292 def test_delete_cannot_delete_root(self):CODE
LOWtool_use/tests/test_memory_tool.py298 def test_delete_nonexistent_path(self):CODE
LOWtool_use/tests/test_memory_tool.py320 def test_rename_to_subdirectory(self):CODE
LOWtool_use/tests/test_memory_tool.py334 def test_rename_source_not_found(self):CODE
LOWtool_use/tests/test_memory_tool.py344 def test_rename_destination_exists(self):CODE
LOWtool_use/tests/test_memory_tool.py365 def test_missing_required_parameters(self):CODE
LOWtool_use/utils/visualize.py229def render_code_execution_result(content: ParsedContent, tree: Tree) -> None:CODE
LOWtool_use/memory_demo/demo_helpers.py183def print_context_management_info(response: Any) -> tuple[bool, int]:CODE
LOWtool_use/memory_demo/sample_code/cache_manager.py73class DataProcessor:CODE
LOWtool_use/memory_demo/sample_code/data_processor_v1.py13class DataProcessor:CODE
LOWcapabilities/classification/evaluation/prompts.py124def rag_chain_of_thought_classify(context: dict):STRING
LOW…etrieval_augmented_generation/data/anthropic_docs.json165 "text": "Example evals\n\n\nTask fidelity (sentiment analysis) - exact match evaluation What it measures : Exact matCODE
LOWcapabilities/text_to_sql/evaluation/prompts.py46def generate_prompt_with_examples(context):STRING
LOW…gs/contextual-rag-lambda-function/inference_adapter.py15 def invoke_model_with_response_stream(self, prompt, max_tokens=1000):CODE
LOWtests/notebook_tests/conftest.py49def pytest_runtest_makereport(item: pytest.Item, call: pytest.CallInfo) -> None:CODE
LOWtests/notebook_tests/test_notebooks.py93 def test_cells_executed_in_order(self, notebook_cells: list[CellInfo]) -> None:CODE
LOWtests/notebook_tests/test_notebooks.py100 def test_execution_counts_start_from_one(self, notebook_cells: list[CellInfo]) -> None:CODE
LOWtests/notebook_tests/test_notebooks.py137 def test_no_hardcoded_api_keys(self, notebook_cells: list[CellInfo]) -> None:CODE
LOWtests/notebook_tests/test_notebooks.py147 def test_api_key_from_environment(self, notebook_cells: list[CellInfo]) -> None:CODE
LOWtests/notebook_tests/test_notebooks.py195 def test_dependencies_documented(self, notebook_cells: list[CellInfo]) -> None:CODE
LOWtests/notebook_tests/test_notebooks.py217 def test_notebook_executes_successfully(CODE
LOWtests/notebook_tests/test_notebooks.py280 def test_no_deprecated_models(self, notebook_cells: list[CellInfo]) -> None:CODE
LOWtests/notebook_tests/utils.py79def validate_cell_execution_order(cells: list[CellInfo]) -> list[str]:CODE
LOWtests/notebook_tests/utils.py115def validate_all_cells_executed(cells: list[CellInfo]) -> list[str]:CODE
LOWtests/notebook_tests/utils.py130def validate_no_error_outputs(cells: list[CellInfo]) -> list[str]:CODE
LOWtests/notebook_tests/utils.py171def validate_no_hardcoded_secrets(cells: list[CellInfo]) -> list[str]:CODE
LOWtests/notebook_tests/utils.py193def validate_uses_env_for_api_key(cells: list[CellInfo]) -> list[str]:CODE
LOWtests/notebook_tests/utils.py253def validate_notebook_structure(path: Path) -> NotebookValidationResult:CODE
LOW.claude/skills/cookbook-audit/validate_notebook.py180 def _check_hardcoded_secrets_fallback(self):CODE
LOW.claude/skills/cookbook-audit/validate_notebook.py327 def check_deprecated_patterns(self):CODE
LOW…ged_agents/example_data/orchestrate/tests/test_urls.py16def test_slugify_special_chars():CODE
LOW…d_party/ElevenLabs/stream_voice_assistant_websocket.py271def stream_claude_and_synthesize_ws(messages, audio_queue):CODE
LOWclaude_agent_sdk/utils/html_renderer.py473def _extract_model_from_messages(messages: list[Any]) -> str | None:STRING
LOWclaude_agent_sdk/utils/html_renderer.py499def visualize_conversation_html(messages: list[Any]) -> None:CODE
LOWclaude_agent_sdk/utils/agent_visualizer.py77def extract_model_from_messages(messages: list[Any]) -> str | None:CODE
LOWclaude_agent_sdk/utils/agent_visualizer.py301def _format_subagent_completion_line(subagent_name: str | None) -> str:CODE
LOW…ude_agent_sdk/site_reliability_agent/sre_mcp_server.py1574async def pagerduty_create_incident(CODE
LOW…ude_agent_sdk/site_reliability_agent/sre_mcp_server.py1863def get_confluence_auth_header() -> str:CODE
LOW…ude_agent_sdk/site_reliability_agent/sre_mcp_server.py1870def generate_postmortem_content(CODE
LOW…ude_agent_sdk/site_reliability_agent/sre_mcp_server.py1661async def pagerduty_update_incident(CODE
LOW…ude_agent_sdk/site_reliability_agent/sre_mcp_server.py2143async def confluence_list_postmortems(CODE
LOW…ude_agent_sdk/site_reliability_agent/sre_mcp_server.py1958async def confluence_create_postmortem(STRING
LOWclaude_agent_sdk/site_reliability_agent/infra_setup.py415def update_connection_metrics():CODE
LOW…t_sdk/site_reliability_agent/examples/sre_bot_slack.py387def convert_markdown_to_slack(text: str) -> str:STRING
LOW…sdk/chief_of_staff_agent/scripts/financial_forecast.py65def calculate_profitability_date(forecast: list[dict[str, Any]]) -> int:CODE
14 more matches not shown…
Magic Placeholder Names12 hits · 60 pts
SeverityFileLineSnippetContext
HIGHcapabilities/classification/evaluation/README.md42`export ANTHROPIC_API_KEY=YOUR_API_KEY`CODE
HIGHcapabilities/classification/evaluation/README.md43`export VOYAGE_API_KEY=YOUR_API_KEY`CODE
HIGHcapabilities/summarization/evaluation/README.md28To 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.md50`export ANTHROPIC_API_KEY=YOUR_API_KEY`CODE
HIGH…es/retrieval_augmented_generation/evaluation/README.md51`export VOYAGE_API_KEY=YOUR_API_KEY`CODE
HIGH…etrieval_augmented_generation/data/anthropic_docs.json35 "text": "Authentication\n\n\nAll requests to the Claude API must include an x-api-key header with your API key. If yCODE
HIGH…etrieval_augmented_generation/data/anthropic_docs.json58 "chunk_link": "https://docs.claude.com/en/docs/quickstart#set-your-api-key",CODE
HIGH…etrieval_augmented_generation/data/anthropic_docs.json60 "text": "Set your API key\n\n\nEvery API call requires a valid API key. The SDKs are designed to pull the API key frCODE
HIGHcapabilities/text_to_sql/evaluation/README.md23To get started, set your ANTHROPIC_API_KEY environment variable, or other required keys for the providers you selected. CODE
HIGHskills/README.md142 api_key="your-api-key",CODE
HIGHskills/README.md171client = Anthropic(api_key="your-api-key")CODE
HIGHskills/CLAUDE.md230ANTHROPIC_API_KEY=your-api-key-hereCODE
Deep Nesting63 hits · 60 pts
SeverityFileLineSnippetContext
LOWtool_use/memory_tool.py76CODE
LOWtool_use/memory_tool.py119CODE
LOWtool_use/utils/customer_service_tools.py114CODE
LOWtool_use/utils/visualize.py196CODE
LOWtool_use/utils/visualize.py265CODE
LOWtool_use/memory_demo/demo_helpers.py31CODE
LOWtool_use/memory_demo/demo_helpers.py183CODE
LOWtool_use/memory_demo/code_review_demo.py98CODE
LOWevals/agentic_search/utils/agentic_search.py224CODE
LOW…ext_to_sql/evaluation/tests/test_hierarchical_query.py4CODE
LOW…text_to_sql/evaluation/tests/test_budget_allocation.py4CODE
LOW…gs/contextual-rag-lambda-function/inference_adapter.py15CODE
LOWtests/notebook_tests/test_notebooks.py195CODE
LOWtests/notebook_tests/utils.py130CODE
LOWtests/notebook_tests/utils.py193CODE
LOWtests/notebook_tests/utils.py225CODE
LOW.claude/skills/cookbook-audit/validate_notebook.py87CODE
LOW.claude/skills/cookbook-audit/validate_notebook.py327CODE
LOWmanaged_agents/utilities.py47CODE
LOWmanaged_agents/sentry/cma.py42CODE
LOWclaude_agent_sdk/utils/html_renderer.py225CODE
LOWclaude_agent_sdk/utils/html_renderer.py473CODE
LOWclaude_agent_sdk/utils/html_renderer.py499CODE
LOWclaude_agent_sdk/utils/agent_visualizer.py77CODE
LOWclaude_agent_sdk/utils/agent_visualizer.py119CODE
LOWclaude_agent_sdk/utils/agent_visualizer.py229CODE
LOWclaude_agent_sdk/utils/agent_visualizer.py278CODE
LOWclaude_agent_sdk/utils/agent_visualizer.py317CODE
LOW…ude_agent_sdk/site_reliability_agent/sre_mcp_server.py629CODE
LOW…ude_agent_sdk/site_reliability_agent/sre_mcp_server.py719CODE
LOW…ude_agent_sdk/site_reliability_agent/sre_mcp_server.py772CODE
LOW…ude_agent_sdk/site_reliability_agent/sre_mcp_server.py1045CODE
LOW…ude_agent_sdk/site_reliability_agent/sre_mcp_server.py1458CODE
LOW…ude_agent_sdk/site_reliability_agent/sre_mcp_server.py2547CODE
LOW…ude_agent_sdk/site_reliability_agent/sre_mcp_server.py2658CODE
LOW…t_sdk/site_reliability_agent/examples/sre_bot_slack.py117CODE
LOW…t_sdk/site_reliability_agent/examples/sre_bot_slack.py401CODE
LOW…t_sdk/site_reliability_agent/examples/sre_bot_slack.py525CODE
LOWclaude_agent_sdk/hosting/kubernetes/gateway/k8s.py412CODE
LOWclaude_agent_sdk/hosting/kubernetes/gateway/main.py313CODE
LOWclaude_agent_sdk/research_agent/agent.py41CODE
LOWclaude_agent_sdk/chief_of_staff_agent/agent.py18CODE
LOW…gent_sdk/chief_of_staff_agent/scripts/talent_scorer.py69CODE
LOW…gent_sdk/chief_of_staff_agent/scripts/talent_scorer.py111CODE
LOW…nt_sdk/chief_of_staff_agent/scripts/decision_matrix.py36CODE
LOW…nt_sdk/chief_of_staff_agent/scripts/decision_matrix.py158CODE
LOWscripts/validate_all_notebooks.py774CODE
LOWscripts/validate_all_notebooks.py67CODE
LOWscripts/validate_all_notebooks.py239CODE
LOWscripts/validate_all_notebooks.py342CODE
LOWscripts/validate_all_notebooks.py463CODE
LOWscripts/validate_all_notebooks.py545CODE
LOWscripts/validate_all_notebooks.py654CODE
LOWscripts/validate_all_notebooks.py705CODE
LOWscripts/test_notebooks.py112CODE
LOWscripts/validate_notebooks.py14CODE
LOW.github/scripts/verify_registry.py63CODE
LOWskills/skill_utils.py291CODE
LOWskills/file_utils.py18CODE
LOW…s/custom_skills/creating-financial-models/dcf_model.py356CODE
3 more matches not shown…
Structural Annotation Overuse32 hits · 48 pts
SeverityFileLineSnippetContext
LOW…_augmented_generation/evaluation/provider_retrieval.py125 # Step 1: Get initial results from the summary dbSTRING
LOW…_augmented_generation/evaluation/provider_retrieval.py128 # Step 2: Re-rank resultsSTRING
LOW…_augmented_generation/evaluation/provider_retrieval.py131 # Step 3: Generate new context string from re-ranked resultsSTRING
LOW…s/retrieval_augmented_generation/evaluation/prompts.py159 # Step 1: Get initial resultsSTRING
LOW…s/retrieval_augmented_generation/evaluation/prompts.py162 # Step 2: Re-rank resultsSTRING
LOW…s/retrieval_augmented_generation/evaluation/prompts.py165 # Step 3: Generate new context string from re-ranked resultsSTRING
LOW.claude/commands/review-pr-ci.md14### Step 1: Gather PR contextCOMMENT
LOW.claude/commands/review-pr-ci.md22### Step 2: Review the code changesCOMMENT
LOW.claude/commands/review-pr-ci.md33### Step 3: Determine review outcomeCOMMENT
LOW.claude/commands/review-pr-ci.md40### Step 4: Post the reviewCOMMENT
LOW.claude/commands/review-pr.md14### Step 1: Checkout the PRCOMMENT
LOW.claude/commands/review-pr.md21### Step 2: Gather PR contextCOMMENT
LOW.claude/commands/review-pr.md29### Step 3: Review the code changesCOMMENT
LOW.claude/commands/review-pr.md40### Step 4: Present the reviewCOMMENT
LOW.claude/commands/review-pr.md76### Step 5: Ask about posting the reviewCOMMENT
LOW.claude/commands/review-pr.md82### Step 6: Post the review (if approved)COMMENT
LOW.claude/commands/review-issue.md14### Step 1: Gather issue contextCOMMENT
LOW.claude/commands/review-issue.md21### Step 2: Classify the issueCOMMENT
LOW.claude/commands/review-issue.md32### Step 3: Check for related contextCOMMENT
LOW.claude/commands/review-issue.md39### Step 4: Draft a responseCOMMENT
LOW.claude/commands/review-issue.md82### Step 5: Suggest labelsCOMMENT
LOW.claude/commands/review-issue.md93### Step 6: Present the reviewCOMMENT
LOW.claude/commands/review-issue.md104### Step 7: Get user approvalCOMMENT
LOW.claude/commands/review-issue.md111### Step 8: Take action (if approved)COMMENT
LOWthird_party/ElevenLabs/README.md17### Step 1: Set Up Your EnvironmentCOMMENT
LOWthird_party/ElevenLabs/README.md61### Step 2: Work Through the NotebookCOMMENT
LOWthird_party/ElevenLabs/README.md74### Step 3: Try the Production ScriptCOMMENT
LOWclaude_agent_sdk/utils/agent_visualizer.py107# WARNING: This global state is NOT thread-safe. If using this module in concurrentCOMMENT
LOWskills/README.md173# Step 1: Use a skill to create a fileCOMMENT
LOWskills/README.md189# Step 2: Extract file_id from the responseCOMMENT
LOWskills/README.md198# Step 3: Download the file using Files APICOMMENT
LOWskills/README.md202 # Step 4: Save to diskCOMMENT
Redundant / Tautological Comments33 hits · 45 pts
SeverityFileLineSnippetContext
LOWtool_use/memory_tool.py195 # Write the fileCOMMENT
LOWtool_use/memory_tool.py219 # Check if old_str existsCOMMENT
LOWtool_use/utils/team_expense_api.py513 # Check if user has custom budgetCOMMENT
LOWcapabilities/classification/evaluation/vectordb.py20 # Check if the vector database is already loadedCOMMENT
LOWcapabilities/classification/evaluation/vectordb.py24 # Check if vector_db.pkl existsCOMMENT
LOW…etrieval_augmented_generation/data/anthropic_docs.json745 "text": "Evaluation Methodology\n\n\nTo assess your classifier\u2019s performance, we\u2019ll call our classifier fuCODE
LOW…mbeddings/contextual-rag-lambda-function/s3_adapter.py31 # Check if the upload was successfulCOMMENT
LOW…ings/contextual-rag-lambda-function/lambda_function.py50 # Read file from S3STRING
LOWtests/notebook_tests/test_notebooks.py149 # Check if notebook uses AnthropicCOMMENT
LOWtests/notebook_tests/test_notebooks.py200 # Check if there's a requirements mention in markdownCOMMENT
LOWtests/notebook_tests/utils.py218 # Check if it's using default client (which reads from env automatically)COMMENT
LOW.claude/skills/cookbook-audit/validate_notebook.py311 # Check if there are any model references at allCOMMENT
LOW…d_party/ElevenLabs/stream_voice_assistant_websocket.py300 # Check if generation is completeCOMMENT
LOWclaude_agent_sdk/utils/html_renderer.py151 # Check if any item looks like a message (has content attribute and message-like class)STRING
LOWclaude_agent_sdk/utils/agent_visualizer.py26 # Display results (auto-detects Jupyter vs terminal)STRING
LOWclaude_agent_sdk/utils/agent_visualizer.py140 # Check if content exists and has elementsCOMMENT
LOWclaude_agent_sdk/utils/agent_visualizer.py160 # Check if we're inside a subagent contextCOMMENT
LOWclaude_agent_sdk/utils/agent_visualizer.py180 # Check if this is a Task tool result (subagent completed)COMMENT
LOWclaude_agent_sdk/utils/agent_visualizer.py251 # Check if it has text content (not just tool use)COMMENT
LOW…t_sdk/site_reliability_agent/examples/sre_bot_slack.py621 # Check if this is a DMCOMMENT
LOW…t_sdk/site_reliability_agent/examples/sre_bot_slack.py624 # Check if this is a follow-up in an active threadCOMMENT
LOWclaude_agent_sdk/observability_agent/agent.py142 # Display the result using the shared visualization utilityCOMMENT
LOWclaude_agent_sdk/research_agent/agent.py56 # Check if content exists and has itemsCOMMENT
LOWclaude_agent_sdk/research_agent/agent.py128 # Display the result using the shared visualization utilityCOMMENT
LOW…ef_of_staff_agent/.claude/hooks/script-usage-logger.py25 # Check if it's executing a Python script from scripts/ directoryCOMMENT
LOWscripts/validate_all_notebooks.py479 # Check if needs revalidationCOMMENT
LOWscripts/validate_all_notebooks.py507 # Display resultCOMMENT
LOW.github/workflows/notebook-quality.yml48 # Check if validation found issuesCOMMENT
LOWskills/file_utils.py129 # Check if file existsCOMMENT
LOW…tom_skills/applying-brand-guidelines/validate_brand.py88 # Check if any approved font is in the found font stringCOMMENT
LOW…tom_skills/applying-brand-guidelines/validate_brand.py296 # Print resultsSTRING
LOWskills/.claude/hooks/session-start.sh10# Check if we're in a virtual environmentCOMMENT
LOWskills/.claude/hooks/session-start.sh17# Check if Anthropic SDK is installed and get versionCOMMENT
Cross-Language Confusion7 hits · 21 pts
SeverityFileLineSnippetContext
HIGHclaude_agent_sdk/site_reliability_agent/infra_setup.py92 sh -c "pip install aiohttp && python traffic_generator.py"CODE
HIGHclaude_agent_sdk/site_reliability_agent/infra_setup.py677RUN apt-get update && apt-get install -y curl && rm -rf /var/lib/apt/lists/*STRING
HIGHclaude_agent_sdk/site_reliability_agent/infra_setup.py1043" 2>/dev/null)STRING
HIGHclaude_agent_sdk/site_reliability_agent/infra_setup.py1046 if [ "$NEW_VALUE" -lt 5 ] 2>/dev/null || [ "$NEW_VALUE" -gt 100 ] 2>/dev/null; thenSTRING
HIGHclaude_agent_sdk/site_reliability_agent/infra_setup.py1063" 2>/dev/null)STRING
HIGHclaude_agent_sdk/site_reliability_agent/infra_setup.py1071 [ "$POOL_SIZE" -gt 100 ] 2>/dev/null; }; thenSTRING
HIGHclaude_agent_sdk/hosting/modal/modal_app.py11Prereqs: ``pip install modal && modal setup`` and a Modal secret namedSTRING
Unused Imports18 hits · 18 pts
SeverityFileLineSnippetContext
LOWtool_use/utils/__init__.py9CODE
LOWtool_use/utils/__init__.py9CODE
LOWtool_use/memory_demo/__init__.py3CODE
LOWtool_use/memory_demo/__init__.py3CODE
LOWtool_use/memory_demo/__init__.py3CODE
LOWtool_use/memory_demo/__init__.py3CODE
LOWtests/conftest.py3CODE
LOWtests/notebook_tests/conftest.py3CODE
LOWtests/notebook_tests/test_notebooks.py14CODE
LOWtests/notebook_tests/utils.py3CODE
LOW…gents/self_hosted_sandboxes/daytona/daytona_webhook.py18CODE
LOW…s/self_hosted_sandboxes/modal/modal_sandbox_webhook.py34CODE
LOWclaude_agent_sdk/utils/agent_visualizer.py33CODE
LOWclaude_agent_sdk/hosting/server.py27CODE
LOWclaude_agent_sdk/hosting/run_once.py8CODE
LOWclaude_agent_sdk/hosting/modal/teardown.py8CODE
LOWclaude_agent_sdk/hosting/modal/modal_app.py21CODE
LOWscripts/test_notebooks.py25CODE
Docstring Block Structure3 hits · 15 pts
SeverityFileLineSnippetContext
HIGHtool_use/memory_tool.py38 Validate and resolve memory paths to prevent directory traversal attacks. Args: path: The STRING
HIGHtool_use/utils/team_expense_api.py218Returns all expense line items for a given employee in a specific quarter. Each expense includes comprehensive metaSTRING
HIGH…tom_skills/applying-brand-guidelines/validate_brand.py211 Load brand guidelines from JSON file Args: filepath: Path to JSON file containing brand guidelines STRING
AI Slop Vocabulary9 hits · 15 pts
SeverityFileLineSnippetContext
MEDIUM…etrieval_augmented_generation/data/anthropic_docs.json820 "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.json858 "chunk_link": "https://docs.claude.com/en/docs/test-and-evaluate/strengthen-guardrails/reduce-latency#3-leverage-strCODE
MEDIUM…etrieval_augmented_generation/data/anthropic_docs.json858 "chunk_link": "https://docs.claude.com/en/docs/test-and-evaluate/strengthen-guardrails/reduce-latency#3-leverage-strCODE
MEDIUM…etrieval_augmented_generation/data/anthropic_docs.json165 "text": "Example evals\n\n\nTask fidelity (sentiment analysis) - exact match evaluation What it measures : Exact matCODE
MEDIUM…etrieval_augmented_generation/data/anthropic_docs.json340 "text": "About the prompt examples\n\n\nThese prompt examples use the Anthropic Python SDK, and fetch images from WiCODE
MEDIUM…etrieval_augmented_generation/data/anthropic_docs.json990 "text": "Examples\n\n\nExample: Analyzing a legal contract (without chaining) Note that Claude misses the instructioCODE
MEDIUM…etrieval_augmented_generation/data/anthropic_docs.json990 "text": "Examples\n\n\nExample: Analyzing a legal contract (without chaining) Note that Claude misses the instructioCODE
MEDIUM…ude_agent_sdk/site_reliability_agent/sre_mcp_server.py773 """Get a comprehensive health summary across all services."""STRING
MEDIUM…lls/analyzing-financial-statements/calculate_ratios.py83 """Calculate leverage/solvency ratios."""STRING
Self-Referential Comments5 hits · 14 pts
SeverityFileLineSnippetContext
MEDIUMtool_use/utils/visualize.py289 # Create main tree with token usage in the titleCOMMENT
MEDIUM…etrieval_augmented_generation/data/anthropic_docs.json725 "text": "Prompting Claude for Ticket Routing\n\n\nTicket routing is a classification task. For more information abouCODE
MEDIUM…etrieval_augmented_generation/data/anthropic_docs.json745 "text": "Evaluation Methodology\n\n\nTo assess your classifier\u2019s performance, we\u2019ll call our classifier fuCODE
MEDIUM…mbeddings/contextual-rag-lambda-function/s3_adapter.py9 # Create an S3 clientCOMMENT
MEDIUMclaude_agent_sdk/site_reliability_agent/infra_setup.py149# This file is read by the api-server containerCOMMENT
Slop Phrases6 hits · 12 pts
SeverityFileLineSnippetContext
MEDIUM…bilities/summarization/evaluation/promptfooconfig.yaml25 - "As an AI language model"CODE
MEDIUM…etrieval_augmented_generation/data/anthropic_docs.json215 "text": "Voyage Python package\n\n\nThe voyageai package can be installed using the following command:\nPythonpip inCODE
MEDIUM…etrieval_augmented_generation/data/anthropic_docs.json725 "text": "Prompting Claude for Ticket Routing\n\n\nTicket routing is a classification task. For more information abouCODE
MEDIUM…etrieval_augmented_generation/data/anthropic_docs.json1140 "text": "Use retrieval for contextual consistency\n\n\nFor tasks requiring consistent context (e.g., chatbots, knowlCODE
MEDIUM…etrieval_augmented_generation/data/anthropic_docs.json240 "text": "FAQ\n\n\nHow do I calculate the distance between two embedding vectors? Cosine similarity is a popular choiCODE
MEDIUM…etrieval_augmented_generation/data/anthropic_docs.json795 "text": "Example 1: Controlling output formatting and skipping the preamble\n\n\nPower user tip : Prefilling { forceCODE
Over-Commented Block11 hits · 10 pts
SeverityFileLineSnippetContext
LOWmanaged_agents/self_hosted_sandboxes/docker/start.sh1#!/usr/bin/env bashCOMMENT
LOW…d_agents/self_hosted_sandboxes/cf-worker/wrangler.toml21COMMENT
LOWclaude_agent_sdk/site_reliability_agent/infra_setup.py21 os.makedirs(d, exist_ok=True)COMMENT
LOWclaude_agent_sdk/site_reliability_agent/infra_setup.py281""")COMMENT
LOWclaude_agent_sdk/hosting/kubernetes/generate-certs.sh1#!/bin/bashCOMMENT
LOWclaude_agent_sdk/hosting/kubernetes/generate-certs.sh21# tools like Claude Code that run on Node.js) to accept TLS certificatesCOMMENT
LOW…t_sdk/hosting/kubernetes/manifests/network-policy.yaml1# NetworkPolicy: Kubernetes firewall rules that restrict network traffic to andCOMMENT
LOW…t_sdk/hosting/kubernetes/manifests/network-policy.yaml21# internet, other services, or other namespaces.COMMENT
LOW…de_agent_sdk/hosting/kubernetes/manifests/gateway.yaml1# Gateway: The central API server that manages agent pod lifecycles.COMMENT
LOWclaude_agent_sdk/hosting/kubernetes/gateway/k8s.py161 # documentation — K8s doesn't enforce it — but it helps tools andCOMMENT
LOWclaude_agent_sdk/hosting/kubernetes/gateway/main.py41COMMENT
Modern Structural Boilerplate8 hits · 8 pts
SeverityFileLineSnippetContext
LOWtool_use/utils/__init__.py11__all__ = ["visualize", "show_response"]CODE
LOWtool_use/memory_demo/__init__.py10__all__ = [CODE
LOWclaude_agent_sdk/utils/agent_visualizer.py35__all__ = [CODE
LOWclaude_agent_sdk/site_reliability_agent/infra_setup.py333logger = logging.getLogger(__name__)STRING
LOWclaude_agent_sdk/site_reliability_agent/infra_setup.py877logger = logging.getLogger(__name__)STRING
LOWclaude_agent_sdk/hosting/kubernetes/gateway/proxy.py17logger = logging.getLogger(__name__)CODE
LOWclaude_agent_sdk/hosting/kubernetes/gateway/k8s.py25logger = logging.getLogger(__name__)CODE
LOWclaude_agent_sdk/hosting/kubernetes/gateway/main.py36logger = logging.getLogger(__name__)CODE
Example Usage Blocks4 hits · 6 pts
SeverityFileLineSnippetContext
LOW…s/custom_skills/creating-financial-models/dcf_model.py492# Example usageCOMMENT
LOW…ills/creating-financial-models/sensitivity_analysis.py335# Example usageCOMMENT
LOW…lls/analyzing-financial-statements/calculate_ratios.py309# Example usageCOMMENT
LOW…custom_skills/applying-brand-guidelines/apply_brand.py418# Example usageCOMMENT
AI Structural Patterns5 hits · 5 pts
SeverityFileLineSnippetContext
LOWtool_use/memory_demo/sample_code/cache_manager.py70CODE
LOW…_augmented_generation/evaluation/provider_retrieval.py23CODE
LOW…_augmented_generation/evaluation/provider_retrieval.py42CODE
LOW…_augmented_generation/evaluation/provider_retrieval.py144CODE
LOWskills/skill_utils.py257CODE
Verbosity Indicators6 hits · 4 pts
SeverityFileLineSnippetContext
LOW…_augmented_generation/evaluation/provider_retrieval.py125 # Step 1: Get initial results from the summary dbSTRING
LOW…_augmented_generation/evaluation/provider_retrieval.py128 # Step 2: Re-rank resultsSTRING
LOW…_augmented_generation/evaluation/provider_retrieval.py131 # Step 3: Generate new context string from re-ranked resultsSTRING
LOW…s/retrieval_augmented_generation/evaluation/prompts.py159 # Step 1: Get initial resultsSTRING
LOW…s/retrieval_augmented_generation/evaluation/prompts.py162 # Step 2: Re-rank resultsSTRING
LOW…s/retrieval_augmented_generation/evaluation/prompts.py165 # Step 3: Generate new context string from re-ranked resultsSTRING
Overly Generic Function Names1 hit · 0 pts
SeverityFileLineSnippetContext
LOW…ude_agent_sdk/site_reliability_agent/sre_mcp_server.py2658async def handle_request(request: dict[str, Any]) -> None:CODE