Answers
How do I make Factory Droid ask before risky commands?
One command puts a fail-closed Immiscible hook in front of Factory Droid, so a force push, a deploy or a secret leaving the machine is refused or waits for a person, by the same rules as every other coding agent.
Run npx immiscible guard --agents droid. It puts one fail-closed hook in front of Factory Droid: a PreToolUse hook for Execute, Edit, MultiEdit, Create, ApplyPatch, FetchUrl and MCP tools, in ~/.factory/hooks.json, or in the system settings.json with allowManagedHooksOnly. With no account the hook decides on your machine and sends nothing; --connect sends the questions to your workspace, so approvals reach Slack, Teams, email or your phone. guard and these hooks are in the next CLI release, 0.3.0, not yet on npm; until then, run it from a checkout of the repository.
#What does it stop?
The same rules as for Claude Code and the other agents: a force push to main or a release branch, rm -rf of the root or home directory and a secrets file sent off the machine are refused; publishing a package, terraform apply, kubectl against production and the network after a secret was read are asked about. Droid can ask the person at the keyboard, so a call that needs a person is asked there, with the reasons and the approval link.
#What if Immiscible cannot be reached?
The call is refused, with the reason. A missing hook file, a missing node or a crash refuses it too: the hook fails closed, so an outage never lets a call through unchecked.
#Anything specific to Factory Droid?
When ~/.factory/settings.json already holds hooks and there is no hooks.json, the entry goes into settings.json, because a new hooks.json would hide them. The details, and every file each agent reads, are in hooks for other coding agents.
#What does it not do?
- It governs the calls the hook sees: shell commands, file writes and MCP tools. Model inference Factory Droid runs on its vendor’s own servers does not pass through it.
- It does not read or change your code.
immiscible scan(from 0.3.0) does not read Factory Droid’s own history; once guarded, it counts the calls the hook let through, from the guard’s own log.