Troubleshooting
Start with shellfirm doctor, then find your symptom.
Start here
Most problems come down to a shell that has not loaded the current hook. Run these two commands in the shell where something went wrong:
shellfirm doctor # is this session protected? does Enter go through shellfirm?
shellfirm status # hooks in rc files, settings, context, policy, agent hooksThen follow the first line that applies:
| What you see | What to do |
|---|---|
doctor shows [XX] session | This shell started before the hook was installed. Restart it (exec bash, exec zsh, exec fish, …) or open a new terminal. |
doctor shows [XX] rc_file | The rc file does not load the hook. Run shellfirm init <shell>. |
doctor shows [XX] binary … not on PATH | The hook fails open: commands are not checked. Reinstall, or see nvm and npm. |
doctor reports an old hook version | You upgraded shellfirm but this shell still runs the old hook. Restart it; for nushell, elvish and xonsh run shellfirm init --all first. |
status shows INVALID next to the settings file | Fix the file with shellfirm config edit, or shellfirm config reset. |
| An AI agent runs risky commands unchecked | Re-run shellfirm connect <agent> and restart the agent session. |
| Everything is checked, but you get too many prompts | See Too many prompts. |
| A command you expected to be caught was not | shellfirm check -c '<command>' shows what matched and why; see Known limitations. |
In this section
Common issues
Not intercepting, legacy hooks, too many prompts, invalid settings, slow prompts, agent hooks, a locked shell.
Known limitations
What shellfirm does not catch today, and per-shell limits. Honest and specific.
FAQ
Allow once, why math, speed, what is logged, agents, policies, uninstalling.
Still stuck?
Open an issue at github.com/kaplanelad/shellfirm/issues
with the output of shellfirm doctor and shellfirm status (both are safe
to share; check them for paths you consider private). For logs, add
--log debug to the command that misbehaves. Found a bypass? Please report
it privately: see Security for how.