You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Automations for Factory Droid: Claude-compatible hooks, with a recursion guard for droid exec #249
Config:~/.factory/hooks.json (user), .factory/hooks.json at the git root (project), or hooks in settings.json / settings.local.json, a --settings file, or org-managed settings. A hooks.json replaces settings.json hooks for the same event in the same directory.
Events:PreToolUse, PostToolUse, UserPromptSubmit, Notification, Stop, SubagentStop, PreCompact, SessionStart, SessionEnd. The format is close to Claude Code's.
Control:
Exit 2 blocks where the event can block.
PostToolUse / Stop feed stderr back to Droid.
Stop with decision: "block" + reason keeps Droid going. The input has stop_hook_active.
The PostToolUse edit matcher is e.g. Create|Edit|ApplyPatch.
Timeout: default 60 s.
Hooks run under droid exec. Folder trust does not disable project hooks there.
Recipe mapping
The same as Claude Code (#243). Reuse that host adapter where the payloads match, and only override what differs.
Recursion is guaranteed without the guard: secfoo's droid adapter runs droid exec … for nested reviews (src/secfoo/agents/droid.py), and Factory documents that hooks run there.
Activity