latex-engineer

An agent for creating and debugging scientific documents in LaTeX, a markup system commonly used for papers with equations, references, figures, and tables. It also handles document templates and diagrams.

In plain words
What is it for?
Use it to prepare papers, manage bibliographies, format figures and tables, create TikZ diagrams, select the right LaTeX engine, and debug builds.
Why use it?
It helps resolve compilation problems and meet the formatting requirements of different journals and conferences.

Agent for Claude Code

Part of the ai-architect-mcp-codebase plugin — 3 skills, 24 commands, 18 agents, 6 hooks, 2 MCP servers shipped together

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.

agentmods
npx agentmods add agents/cdeust/ai-architect-mcp-codebase/latex-engineer
Clone the repo
git clone --depth 1 https://github.com/cdeust/ai-architect-mcp-codebase

Made for: Claude Code.

Or install ai-architect-mcp-codebase, the plugin that ships this one along with the rest of its 3 skills, 24 commands, 18 agents, 6 hooks, 2 MCP servers.

Per session 28 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,333 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original 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 $0.00028 $0.02333
Opus 5 $0.00014 $0.01167
Sonnet 5 $0.00006 $0.00467
Haiku 4.5 $0.00003 $0.00233

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

Security

Grade A, and why

latex-engineer 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 2d 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.

.claude/agents/latex-engineer.md · 145 lines

How it starts

The opening of the file, as written. The whole thing — 145 lines — stays where its author put it; the contents beside it link to each section on GitHub.

You know the idiosyncrasies of major venue templates (NeurIPS, ICML, ICLR, CVPR, IEEE, ACM, Springer LNCS, Elsevier) and LaTeX engines (pdfLaTeX, XeLaTeX, LuaLaTeX).

You operate inside a project with a full MCP-based memory and RAG system.

Before Working

  • recall prior LaTeX issues in this project — compilation errors, package conflicts, template quirks.
  • recall venue requirements — page limits, formatting rules, submission checklist items.
  • get_rules for project-specific conventions (figure naming, BibTeX style, directory structure).

After Working

  • remember template-specific quirks: which packages conflict, which workarounds were needed, what the submission system requires.
  • remember compilation issues and their solutions — these recur across projects.
  • Do NOT remember boilerplate LaTeX — that's in the templates. Remember the edge cases.
  1. What venue/template? This determines the document class, page limits, allowed packages, and formatting rules.
  2. What LaTeX engine? pdfLaTeX (default, widest compatibility), XeLaTeX (Unicode, custom fonts), LuaLaTeX (Unicode + Lua scripting). Check the template requirements.
  3. What is the compilation chain? LaTeX → BibTeX/Biber → LaTeX → LaTeX. Or latexmk for automation.
  4. What packages are already loaded? The template may pre-load packages that conflict with yours.
  5. What is the submission format? PDF only? Source files? Supplementary materials? Camera-ready vs review?

Read the full file on GitHub · 145 lines

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. 2d ago First seen · 145 lines · 28 tokens per session scan A b68fece959e4

Subscribe to this mod's changes

latex-engineer is an agent published in the GitHub repository cdeust/ai-architect-mcp-codebase (4 stars, last pushed 3d ago), licensed MIT. It adds 28 tokens to every session and 2,333 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 agents, from other repositories

editor

Journal editor who desk-reviews manuscripts, selects two referees with deliberately different dispositions, calibrates to a target journal from .claude/references/journal-profiles.md, and synthesizes an editorial decision (FATAL / ADDRESSABLE / TASTE). Used by /review-paper --peer [journal].

pedrohcgs/claude-code-my-workflow · 64 tokens

eval-curator

Authors and maintains the brooks-lint eval suite in evals/evals.json — the benchmark scenarios covering R1–R6 (code decay) and T1–T6 (test decay), including the false-positive / tradeoff cases that must NOT be flagged. Ensures every new risk code or skill gets paired coverage and that the suite passes npm run evals.…

hyhmrright/brooks-lint · 97 tokens

by-epitope

Deep epitope analysis agent. Maps binding interfaces from PDB structures, classifies epitope type, assesses druggability, identifies cryptic sites, cross-references SAbDab, and generates hotspot arrays in BoltzGen entities YAML format.

001TMF/blatant-why · 58 tokens

mathodology-problem-analyst

Use for contest problem decomposition, scoring criteria, constraints, variables, assumptions, and deliverable mapping.

sweetcornna/mathodology · 29 tokens

harness-interpreter

Reads /tmp/basemind-harden-.log + per-repo metrics JSON, summarizes pass/fail with canary deltas, surfaces regressions. Cheap read-mostly subagent.

Goldziher/basemind · 44 tokens

task-plan-architect

Uses the smartest available Claude model to expand one broad GitHub issue into a bounded set of implementation-ready subtasks, choosing the preferred LLM/model for each subtask and linking the resulting task tree in comments.

MercurieVV/ScalaSemantic · 47 tokens