Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx agentmods add commands/zircote/latex-lsp/setupgit clone --depth 1 https://github.com/zircote/latex-lspWhat it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.00010 | $0.00925 |
| Opus 5 | $0.00005 | $0.00463 |
| Sonnet 5 | $0.00002 | $0.00185 |
| Haiku 4.5 | $0.00001 | $0.00093 |
Grade B, and why
setup scanned grade B with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured yesterday.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Asks for rootmediumPrivilege escalation
A mod that escalates privileges can change anything on the machine, not only the project.
- **Linux**: `sudo apt install texlive-full` (Debian/Ubuntu) or `sudo dnf install texlive-scheme-full` (Fedora) How it starts
The opening of the file, as written. The whole thing — 180 lines — stays where its author put it; the contents beside it link to each section on GitHub.
LaTeX LSP Setup
This command will configure your LaTeX development environment with Texlab LSP and essential tools.
Prerequisites Check
First, verify a TeX distribution is installed:
pdflatex --version || xelatex --version || lualatex --version
If not installed, install a TeX distribution:
- macOS:
brew install --cask mactexorbrew install --cask basictex - Linux:
sudo apt install texlive-full(Debian/Ubuntu) orsudo dnf install texlive-scheme-full(Fedora) - Windows: Download and install MiKTeX or TeX Live
Installation Steps
1. Install Texlab LSP Server
Option 1: Cargo (recommended)
cargo install --locked texlab
Option 2: Package Manager
# macOS
brew install texlab
# Arch Linux
sudo pacman -S texlab
# Fedora
sudo dnf install texlab
2. Install ChkTeX (LaTeX Linter)
# macOS
brew install chktex
# Debian/Ubuntu
sudo apt install chktex
# Fedora
sudo dnf install chktex
# Arch Linux
sudo pacman -S chktex
3. Verify Installation
# Check Texlab
texlab --version
# Check ChkTeX
chktex --version
# Check LaTeX
pdflatex --version
4. Optional: Install Latexmk (Build Automation)
# Usually included with TeX Live
latexmk --version
# If not available, install TeX Live extras
sudo apt install latexmk # Debian/Ubuntu
5. Enable LSP in Claude Code
export ENABLE_LSP_TOOL=1
Configuration (Optional)
Texlab Configuration
Create texlab.toml or .texlabrc in your project root:
[build]
executable = "latexmk"
args = ["-pdf", "-interaction=nonstopmode", "-synctex=1", "%f"]
onSave = false
[chktex]
onEdit = true
onOpenAndSave = true
[formatting]
lineLength = 80
ChkTeX Configuration
Create .chktexrc in your project root to customize warnings:
# Disable specific warnings
-n1 # Command terminated with space
-n2 # Non-breaking space (~) should be used
-n8 # Wrong length of dash
# Set tabsize
TabSize = 2
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- yesterday First seen · 180 lines · 10 tokens per session scan B e30daf032bb0
setup is a command published in the GitHub repository zircote/latex-lsp (1 stars, last pushed 21d ago), licensed MIT. It adds 10 tokens to every session and 925 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it B with 1 finding (asks for root). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
Other commands, from other repositories
setup
Interactive setup for C/C++ LSP development environment.
setup
Interactive setup for Python LSP development environment.
setup
Interactive setup for YAML LSP development environment.
setup
Interactive setup for Bash LSP development environment.
setup
Interactive setup for Scala LSP development environment.
setup
Interactive setup for JSON LSP development environment.