Expand description
Inline --settings JSON for gw-spawned Claude sessions.
Claude Code’s --settings <json> flag merges its content into the user’s
existing settings layers (user/project/local). Array-valued keys such as
hooks are concatenated and deduplicated across scopes, so injecting a
single PreToolUse(Bash) hook here adds the gw guard without disturbing
anything the user already has configured.
Functions§
- guard_
settings_ json - Build the
--settingsJSON payload that registersgw guardas a PreToolUse(Bash) hook.