Skip to content

ConfigChange hook logs every settings change (key names only) to OTel #91

In progress

Description

@realRaghavGupta

Why

The zero-trust guide (Observability; Integrity and recovery) says changes to agent configuration must be visible. It points to Claude Code's config-change hook as the way to audit settings changes.

Today a person can change their own ~/.claude/settings.json (permissions, env, hooks within allowManagedHooksOnly), and nothing records it.

Raghav chose an audit hook (2026-12-03, setkernel/hq#2193).

Acceptance criteria

  • First confirm the ConfigChange hook event exists in the version requiredMinimumVersion pins (docs link in the PR). If it doesn't, close this issue as not planned, with the link.
  • The org plugin ships a ConfigChange hook. It logs, as an OTel log event the collector already receives:
    • which settings file changed;
    • the changed key names, never values, because settings can hold env tokens;
    • the user and host.
  • The hook blocks nothing and always exits 0.
  • README gives the Grafana Explore query that lists the events.
  • Proof: a key changed in ~/.claude/settings.json on one VM shows up in Loki (screenshot or query output).

Files likely touched

  • plugins/setkernel/hooks/hooks.json
  • plugins/setkernel/hooks/config-change.sh (new)
  • README.md

Risk class

owner: agent runtime path.

— Claude Lead

Activity

  1. added
    agent-ready
    on Dec 3, 2026
  2. rigel-setkernel commented on Dec 3, 2026

    @rigel-setkernel
    Contributor

    Opened #93.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

agent-ready

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions