Description
tirith is an open-source terminal security tool, written in Rust, that intercepts and analyses shell commands and pasted text in real time. It is aimed at developers and AI coding agents. It detects homograph attacks, pipe-to-shell patterns, ANSI and terminal injection, credential leaks, data exfiltration, malicious packages and risky commands, such as deleting a production namespace with kubectl, along with malicious AI skills and configurations. The site says it has more than 200 detection rules across 29 categories, and that it runs entirely offline, with all detection logic compiled into the binary and no telemetry. Clean commands are processed in under 0.1 milliseconds, and full analysis completes in under 2 milliseconds, according to the site. Shell hooks work with Bash, Zsh, Fish and PowerShell on macOS, Linux and Windows.…
Highlights
- Catches homograph URLs and pipe-to-shell
- Works with Bash, Zsh, Fish and PowerShell
- MCP server for AI coding agents
- Runs offline with no telemetry
Ratings & Reviews
No ratings yet
Be the first to rate Tirith.
People also visit
Tirith FAQ
What is tirith?
An open-source terminal security tool written in Rust that checks commands and pasted text before they run.
Does it need internet access?
No. The site says it runs entirely offline with zero network calls and no telemetry.
How fast is it?
Clean commands take under 0.1 milliseconds on the fast gate, and full analysis under 2 milliseconds, according to the site.
Which shells work?
Bash, Zsh, Fish and PowerShell on macOS, Linux and Windows.
How does it work with AI agents?
Through an MCP server with seven tools that agents such as Claude Code, Cursor, Codex and VS Code Copilot can call before running commands.
What are the best Tirith alternatives?
Popular alternatives to Tirith include CC Safety Net, OpenHunterAI and AiSOC. See all Tirith alternatives





