faf_setup
Installs a SessionStart hook for fresh .faf context each Claude Code session. Previews settings before writing; preserves existing hooks. Use confirm:true to write, remove:true to uninstall.
Instructions
Install the native SessionStart hook — every Claude Code session in this project starts with fresh .faf context. Shows the exact settings JSON first (preview); writes only with confirm: true. Non-destructive: existing settings and hooks are preserved. remove: true uninstalls exactly the faf hook.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | Project path. Defaults to the current project context. | |
| confirm | No | Actually write the hook into .claude/settings.json. Without it, faf_setup only previews. | |
| remove | No | Remove the faf SessionStart hook (and only it) from .claude/settings.json. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | Yes | What faf_setup did | |
| settingsPath | Yes | The settings file involved | |
| hookCommand | No | The command the SessionStart hook runs | |
| settings | No | The full settings object as written (or as it would be written in preview) | |
| message | Yes | Human-readable summary |