HackyJS CoursesMerge Gates: Hardening a GitHub Org for AI-Written Code

// module 07 · AI agents on developer machines

Managed settings: what an org can enforce on Claude Code

Every Claude Code setting a developer controls, an agent can be talked into changing, and the developer can change back. Managed settings sit above all of them. This lesson covers how a policy reaches a machine (a system file, MDM, or the claude.ai console), how Claude Code picks between sources, which keys only a managed source can set, and which ordinary keys become locks once you put them there. In a throwaway container we show that project settings, `--settings`, `--allowedTools` and the bypass flag can't undo a managed deny, and that a local admin can.

  • Lesson 23 of 34

Learning Objectives

  • Place a managed settings file at the right path on Linux, macOS and Windows, and name the MDM and registry alternatives
  • Explain the source order inside the managed tier and what `first-wins` means for a machine with two sources
  • Tell a managed-only key from an any-scope key that only becomes enforcement when it is in managed settings
  • Show that user, project and command-line settings can't override a managed deny rule
  • Detect a managed file that was edited or removed on a developer machine

This lesson is for enrolled learners

Log in, then enroll to read the full lesson, run its lab and take the quiz.