Udemy
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
Claude Code Safety in Practice: Gates, Receipts & Limits
New
6 students

Claude Code Safety in Practice: Gates, Receipts & Limits

See what a local pre-action gate catches and misses — test safely, read signed receipts, report honestly.
Created byIgor Ganapolsky
Last updated 11/2026
English

What you'll learn

  • Inspect a Claude Code tool-call proposal before it executes
  • Explain what a PreToolUse hook checks and returns
  • Distinguish a blocked action from a reworded miss
  • Design harmless boundary tests with expected vs actual results
  • Read a signed, hash-chained action receipt
  • Write a readiness report separating checked from unknown

Course content

3 sections • 12 lectures • 41m total length
  • Claude proposes. ThumbGate checks.5:23

    Observe: explain the Claude Code PreToolUse boundary and read a published ThumbGate example without confusing a gate decision with universal protection. The historical strict-mode demonstration identifies version 1.40.3. A blocked matching command and a differently written command that was not caught are evidence about that demonstration, not the current release's coverage.


    Preview checkpoint: identify the proposed action, the reported gate decision and what independent final-state evidence is missing. Decide what you would check next without running a destructive action. Continue through Correct, Test and Report, using the companion worksheet to keep expected results separate from observed results.

  • Give Claude a useful correction through ThumbGate5:13

    Write feedback that names an action, explains the project reason, and gives a useful next step. Read the historical ThumbGate demonstration as separate records: the gate response, Claude's statement, and the visible final-state check. Compare the matching block with the missed variation. Generated-file and integration-test examples are hypothetical review notes, not asserted product results. Artificial narration is used.

  • Check Section 1: proposal, decision, evidence

Requirements

  • Basic familiarity with coding agents and reading command-line examples. Exercises use paper analysis and supplied strings; no destructive execution is required.

Description

This course contains the use of artificial intelligence.


Your coding agent just ran a command you never approved. This course teaches you to stand between the agent and the damage, with a working gate, not a promise.


WHAT YOU WILL DO

- Observe: watch a real PreToolUse gate block a matching destructive action, and let a reworded one through. Diagram vs evidence.

- Correct: write feedback that names the action, the project reason, and a useful alternative.

- Test: map the gate's boundary with harmless checks you design, expected result first, actual result second, limitation named.

- Report: produce a readiness report that separates proposed, approved, executed, and independently verified.


The opening lesson shows the PreToolUse connection, the decision and reason returned to Claude, and the difference between a diagram and evidence from an installed system. Use it to assess the teaching approach before continuing.


Correcting separates a gate response from Claude's statement and from an independent final-state check. Testing covers recognition versus containment and background-call limits: you choose a fictional action, write the expected result, compare it to the actual check result, and name one limitation. Do not execute the destructive action. A companion worksheet includes practice questions and worked answers.


HONEST LIMITS: the historical recording shows v1.40.3 under strict enforcement. It is not proof of the current release's coverage. Fictional examples are labeled. A separate published Python prototype is a comparison, not ThumbGate test results. Completion is not a security certification or a sandbox guarantee.


For developers who already use a coding agent. Basic command-line familiarity helps. No installation, destructive command, private account access or paid model use is required for the exercises. Artificial narration and AI-assisted visuals are used; the narration does not imitate the instructor.

Who this course is for:

  • Developers already using a coding agent who want to inspect the scope and limits of a guard without treating passing tests as a safety guarantee.
  • Developers using Claude Code or another coding agent daily
  • Tech leads responsible for agent output reaching production
  • Security-minded engineers evaluating agent guardrails honestly
  • Anyone who has watched an agent delete, overwrite, or exfiltrate