Skip to content
$ shellfirm

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 hooks

Then follow the first line that applies:

What you seeWhat to do
doctor shows [XX] sessionThis shell started before the hook was installed. Restart it (exec bash, exec zsh, exec fish, …) or open a new terminal.
doctor shows [XX] rc_fileThe rc file does not load the hook. Run shellfirm init <shell>.
doctor shows [XX] binary … not on PATHThe hook fails open: commands are not checked. Reinstall, or see nvm and npm.
doctor reports an old hook versionYou 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 fileFix the file with shellfirm config edit, or shellfirm config reset.
An AI agent runs risky commands uncheckedRe-run shellfirm connect <agent> and restart the agent session.
Everything is checked, but you get too many promptsSee Too many prompts.
A command you expected to be caught was notshellfirm check -c '<command>' shows what matched and why; see Known limitations.

In this section

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.