termite

Find and check shell commands with local AI models

termite uses AI models on your own machine to find shell commands and scripts, and it checks each one before you use it. termite never runs these commands, and it can stop agents from running destructive ones.

It supports both sides of computer security: the blue team, who defend systems, and the red team, who attack systems to find weaknesses first. Read the introduction in plain English.

Typing a question mark and a request at a zsh prompt; termite explains a find command and asks Y or n; approving it puts it at the prompt, and it does not run

Blue team: get safe commands

Ask for a command in plain English, using AI models on your own machine. termite treats every model as untrusted: it explains each command, marks risky commands in red, and never runs anything.

Install termite

At your prompt

? what is using my disk space
One command, explained. If you approve it, it goes to your prompt.
?? what is on port 8080
Every sensible way to do it, explained. Choose one, ask again or cancel.
?x show disk usage
Injected at your prompt with no question, if it only reads and every check passes.

These examples use the optional prompt widget for zsh, bash or fish. Without it, tmite prints the same result in any shell. Your requests and folders stay on your machine. Read the full guide.

For your agents

A hook checks each shell command before your agent runs it. The hook never approves a command. It gives one of three answers:

Pass ls -la
Your harness's own rules decide.
Needs approval az vm list
Claude Code asks you. Yes runs the command, and no doesn't. Other harnesses stop it, because an ignored question would let it run.
Stop sudo ls
The command stops, and nobody is asked.

See what each harness does.

What the tests found

I tested 34 command models, which write commands, and 27 decision models, which score how risky a command is. Read the test results.