By Vero SecurityBuilt and funded by Vero Security, the AI Security Engineering platform.Read the charter

Logging loaded instruction files with InstructionsLoaded

The InstructionsLoaded hook fires each time a CLAUDE.md or .claude/rules file enters context, at session start and again on lazy loads. It cannot block, so use it for observability. Log the file path and load reason, then alert when a session loads a file that is not in your approved set.

Read in this order

  1. OfficialHooks reference, InstructionsLoaded (Claude Code docs)Event timing, load_reason matchers, and the AGENTS.md case where it does not fire.
  2. OfficialHow Claude remembers your project (Claude Code docs)Which instruction files load, in what order, and how imports work.

Save your progress

We email you a sign-in link. No password.

By signing in you agree to the terms. The privacy policy explains how we use your details.

Join the AI security engineering community

Free. Roadmap updates, chapters near you, and first word when credentials open.

We’ll email you community updates. Unsubscribe anytime. By sending this you agree to the terms. The privacy policy explains how we use your details.