magic-latex

magic-latex is a command for Claude Code from Still-chowline394/MagicTeX-mcp. It costs 15 tokens per session (90 once invoked), scanned A, original, AGPL-3.0.

A command that opens a LaTeX workspace, compiles the paper, and shows its current preview.

In plain words
What is it for?
Use it to compile a LaTeX paper and view the generated document.
Why use it?
It combines paper compilation and previewing so you can check the result while editing.

Command for Claude Code

Written for Claude Code: a Claude Code command (commands/*.md).

Good fit Use it to compile a LaTeX paper and view the generated document.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/still-chowline394/magictex-mcp/magic-latex
Install

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.

Clone the repo
git clone --depth 1 https://github.com/Still-chowline394/MagicTeX-mcp

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for magic-latex

README.md
[![agentmods](https://agentmods.dev/badge/commands/still-chowline394/magictex-mcp/magic-latex/github.svg)](https://agentmods.dev/commands/still-chowline394/magictex-mcp/magic-latex)
Your own site
<a href="https://agentmods.dev/commands/still-chowline394/magictex-mcp/magic-latex"><img src="https://agentmods.dev/badge/commands/still-chowline394/magictex-mcp/magic-latex/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for magic-latex

Your own site · 80×15
<a href="https://agentmods.dev/commands/still-chowline394/magictex-mcp/magic-latex"><img src="https://agentmods.dev/badge/commands/still-chowline394/magictex-mcp/magic-latex.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 15 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 90 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin unknown No closer match found in the catalogue.
Token cost

What 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.

ModelPer sessionOnce invoked
Fable 5.1 $0.00015 $0.00090
Opus 5 $0.00008 $0.00045
Sonnet 5 $0.00003 $0.00018
Haiku 4.5 $0.00002 $0.00009

Measured 10d ago against content hash 2abbaf4c1b23, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

magic-latex scanned grade A with 0 findings 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 10d ago.

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.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

commands/magic-latex.md · 9 lines

The source is not reproduced here

Licensed AGPL-3.0

The repository is licensed AGPL-3.0, which this catalogue does not treat as permission to reproduce the file. Read it at the source.

Read it on GitHub

Changes

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.

  1. 10d ago First seen · 9 lines · 15 tokens per session scan A 2abbaf4c1b23

Subscribe to this mod's changes

magic-latex is a command published in the GitHub repository Still-chowline394/MagicTeX-mcp (0 stars, last pushed today), licensed AGPL-3.0. It adds 15 tokens to every session and 90 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other commands, from other repositories

verify-math

Verify a self-authored mathematical result end to end by routing claims across adversarial review, numerical falsification, symbolic or CAS checks, and Lean, then aggregating one report. Use when a theorem, proposition, conjecture, or paper-wide mathematical argument needs the appropriate combination of verification…

flonat/flonat-research · 81 tokens

experiment-design

Design empirical studies through power analysis, pre-analysis planning, QSF parsing, and survey architecture. Use when specifying sampling, measurement, treatment, or analysis before data collection. Not for causal identification alone; use $causal-design.

flonat/flonat-research · 46 tokens

latex-polish

Inspect a cleanly compiling LaTeX document for source pathologies and rendered visual defects by linting and viewing selected PDF pages. Use when compilation succeeds but title pages, floats, tables, figures, or layout still need publication-quality review. Not for basic compilation health; use $latex-health-check.

flonat/flonat-research · 60 tokens

pipeline-manifest

Build a traceability manifest linking analysis scripts to inputs, outputs, and manuscript figures or tables. Use when documenting a computational pipeline or locating the source of a reported artefact. Not for verifying that paper claims match code outputs; use the code-paper auditor.

flonat/flonat-research · 51 tokens

pre-submission-report

Run the final, comprehensive submission-readiness gate and consolidate all checks into one dated report; citation-integrity-only mode is also supported. Use when a paper and submission package are nearly final. Not for a mid-draft adversarial review; use $review-cluster.

flonat/flonat-research · 54 tokens

proof-readability

Improve the exposition and readability of a mathematical proof already verified as correct without changing its mathematics. Use when polishing a lemma, theorem, proof, or appendix after correctness checks. Not for verifying the proof; use $verify-math.

flonat/flonat-research · 46 tokens