Udemy
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
Claude Code in Production: Hooks, Memory, Jobs, Approvals
New

Claude Code in Production: Hooks, Memory, Jobs, Approvals

Run Claude Code as a working system: CLAUDE md files, hooks, file memory, subagents, resumable jobs, approval gates
Created byAmagi Labs
Last updated 10/2026
English

What you'll learn

  • Split the CLAUDE md file into user and project files, and set settings.json permissions and deny rules
  • Write SessionStart, PreCompact and guard hooks, including a guard that denies writes to folders you list
  • Keep file-based memory with one fact per file, a small index, and a hygiene check before each commit
  • Route work to subagents and cheaper models, and run a cold review of your own changes
  • Run detached jobs that keep a progress file, resume in a fresh session and end with a completion marker
  • Put an Approve/Deny card in front of anything that leaves your machine, and refuse a payload that changed after approval

Course content

8 sections • 19 lectures • 1h 48m total length
  • Welcome4:07

Requirements

  • Claude Code installed, and some time spent using it
  • Python 3.9 or newer; pytest for the tests (pip install pytest)
  • Comfort copying files, editing JSON and Markdown, and running terminal commands
  • Optional: a Telegram bot you create yourself, for the approval buttons
  • Tested on Windows 11 (Python 3.14) and Linux (Python 3.12); macOS not tested

Description

This course contains the use of artificial intelligence.

Claude Code is easy to start with. Running it every day on real work raises a different set of problems: sessions that forget what you told them yesterday, a long job that dies halfway through, a tool call that writes into a folder it should never touch, a post that goes out before anyone read it. This course covers the setup we use to handle those, one piece at a time, with the code for each piece in a starter repo you can download.

Each lecture is narrated slides plus terminal walkthroughs recorded from real runs of the starter repo in a demo project. When a technical term comes up for the first time, a card on screen explains it in plain English.

What you get

  • 18 video lectures in 7 modules plus a welcome, 109 minutes in total (lectures run 4 to 7 minutes)

  • The starter repo (zip, attached to the first lecture): plain Python 3.9+ with no third-party packages, and 42 pytest cases

  • A 30-page PDF of field notes that follows the course: a one-page glossary up front and the checklist from the last lecture at the end

The modules

  1. Setup that survives. Splitting the CLAUDE md file into user and project files; settings.json permissions, deny rules and environment.

  2. Hooks. How hooks run; a SessionStart loader that puts your notes in context; a PreCompact dump that saves the transcript tail with secrets masked; a guard hook that denies writes into folders you list, and the prefix bug it had.

  3. Memory. One fact per file with a small index; consolidation and a hygiene check you can run before each commit.

  4. Subagents. A roster, routing work to cheaper models where that is enough, and a cold review run live.

  5. Detached jobs. Why long sessions die; a runner with a progress file, fresh-session resume and completion markers; ways to start jobs while you're away.

  6. Human in the loop. Approve/Deny cards (optionally as Telegram buttons) and a check in the publishing code that refuses any payload that changed after approval.

  7. Failures. The failure stories behind each guard, then a production checklist in the order to set it up.

What it doesn't do

  • It doesn't teach Claude Code from zero. Installation and first prompts aren't covered.

  • It's set up for one person. Team rollouts, writing MCP servers and cloud runners are out of scope; jobs run on your own machine.

  • The starter repo sends nothing anywhere unless you set up the optional Telegram cards.

  • The guard hook and the approval check are code you run and maintain. The path guard is a seatbelt. If you're protecting something that would hurt to lose, pair it with operating-system permissions and a proper security review.

  • Secret masking in the transcript dumps catches common key and token shapes. It's best effort.

How it was made

Written with AI help (Claude) and reviewed by AmagiLabs before release. Narrated by Ricardo, using an AI voice model of his own voice. AmagiLabs isn't affiliated with Anthropic. Claude and Claude Code are Anthropic's names, used here only to say what the course works with.

Who this course is for:

  • Developers who already use Claude Code and want it to keep working on real tasks while they're away
  • Solo operators who want long jobs that pick up where they stopped after a crash, and a yes/no step before anything leaves their machine
  • Newer users who have installed Claude Code and run a few sessions: every technical term is explained on screen, and the field notes open with a glossary. Installation and first prompts aren't covered