What is latex?
latex is a Claude Code mod by zaahiral that render TeX math, TikZ diagrams and LaTeX blocks in Claude Code's desktop app, in any of 10 LaTeX fonts, with every LaTeX compile sandboxed. It is listed under Security and has 6 GitHub stars.
| Type | Claude code mod |
|---|---|
| Author | zaahiral |
| Repository | zaahiral/claude-latex |
| Popularity | 6 GitHub stars |
| Category | Security |
| Security | High risk (52/100) |
| Rank | #680 of 5,272 Claude Code mods; #95 in Security |
| License | MIT |
| Last commit | 2026-10-02 |
| Stars this week | +2 |
| Hooks | 6 events |
| Sees | every prompt |
| Draws on | AssistantMessage|UserMessage, AbovePrompt, Pane |
Is latex safe to install?
latex scores 52/100 on the MCPMods security check: High risk. Things to review: starts processes outside the sandbox; writes files or config; reads environment variables; watches every prompt or event. It passed 4 of 8 checks.
Mod footprints come from claude plugin validate, which lists every event a mod hooks and every API call it makes without running it.
| Check | Result |
|---|---|
| No network access | Pass |
| Starts processes outside the sandbox | Review |
| Writes files or config | Review |
| Reads environment variables | Review |
| Watches every prompt or event | Review |
| Doesn't drive Claude | Pass |
| Passes claude plugin validate | Pass |
| Has an open-source license | Pass |
API calls in its code
| Call | What it means |
|---|---|
$.clock.every | |
$.command.register | |
$.config.list | |
$.config.set | changes config |
$.env.get | reads env vars |
$.fs.exists | reads files |
$.fs.list | reads files |
$.fs.read | reads files |
$.fs.write | writes files |
$.process.run | runs processes |
$.state.get | |
$.state.set | |
$.store.get | keeps its own state |
$.store.set | keeps its own state |
$.ui.copy | draws interface |
$.ui.log | draws interface |
$.ui.open | draws interface |
$.ui.resolve | draws interface |
$.ui.toast | draws interface |
How do I install latex?
- Check your Claude Code version. Mods need Claude Code 2.1.287 or later and are on by default.
claude --version
- Read its footprint. This lists every event it hooks and every API call it makes, without running it.
git clone https://github.com/zaahiral/claude-latex claude plugin validate ./claude-latex/.
- Install it. Run this in your terminal, then /reload-plugins in an open session.
claude plugin marketplace add zaahiral/claude-latex && claude plugin install latex@claude-latex
Or ask Claude to set it up
Paste this into Claude Code and it installs latex for you:
Install the "latex" Claude Code mod from https://github.com/zaahiral/claude-latex. Run claude plugin validate on it first and show me what it can access before you enable it.