# GoLatex

> Local LaTeX workspace integration for automated compilation, BibTeX management, and PDF page inspection.

GoLatex is a free AI agent skill on Agensi by José Tomás Espinosa, in Agents & Orchestration. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: Free
- Creator: [José Tomás Espinosa](https://www.agensi.io/creators/jos-tom-s-espinosa)
- Category: [Agents & Orchestration](https://www.agensi.io/skills/agents-orchestration)
- Uses: 2
- Version: 1.0
- Last updated: 2026-10-13
- Security: scan passed (2026-10-13); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/golatex
- Tags: ai-agents, latex, mcp, macos, documentation

## About this skill

Writing and debugging LaTeX is notoriously slow due to broken compilation cycles and diagnostic noise. This skill integrates with a local GoLatex workspace to automate the edit-compile-preview loop directly from your agent. It handles file operations, BibTeX management, and visual PDF verification through a dedicated MCP server.

### What it does
- **Project synchronization** reads project metadata, main file settings, and directory structures from the local workspace.
- **Precision editing** modifies source files using targeted string replacement to preserve document structure and macros.
- **Automated compilation** triggers `latexmk` builds and parses logs into actionable errors and warnings.
- **Visual inspection** renders specific PDF pages as images for layout, table, and figure verification.
- **Bibliography management** adds, lists, and validates BibTeX entries to ensure citation integrity.

### How it works
1. **Initialize** by calling `project_info` to sync with the active GoLatex project root and main file.
2. **Modify** source files or add BibTeX entries based on technical requirements or prose updates.
3. **Compile** the document and review parsed diagnostics to resolve syntax errors or missing packages.
4. **Inspect** the output using `render_page` to confirm that pagination and visual elements match the intended design.

### Frameworks & tools
Requires a macOS environment with Python 3.11+, TeX Live (providing `latexmk` and `synctex`), and the GoLatex local server. Communication happens via MCP over Streamable HTTP.

### Why this beats prompting it yourself
Generic agents cannot see your local PDF output or know if a compilation actually succeeded. This skill provides a closed-loop system where the agent verifies its own code against the TeX engine and visual results, preventing "hallucinated" successful builds.

### Use cases
- Debugging complex LaTeX compilation errors and environment conflicts.
- Automating the addition of verified BibTeX citations to large research papers.
- Adjusting multi-column layouts and tables by inspecting real-time PDF renders.
- Refactoring document structure across multiple included TeX files.

### Known limitations
Requires macOS and a local TeX Live installation. Only works with the single project currently open in the GoLatex browser UI. Cannot automatically install system-level TeX dependencies.

## Requires

- Python
- their MCP

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the GoLatex skill from Agensi" and describe your task.
3. Your agent loads the skill from Agensi when it needs it. Nothing is downloaded.

## Frequently asked questions

### How does this skill improve the standard LaTeX workflow compared to just copy-pasting code?

This skill bridges the gap between your AI agent and your local TeX engine, allowing the agent to perform 'edit-compile-verify' loops, fix real-time build errors, and visually inspect PDF pages to ensure layouts are correct.

### Which AI agents and operating systems are supported by golatex?

The skill requires macOS, Python 3.11+, TeX Live with latexmk and synctex, and GoLatex installed and running locally. Use an MCP client that supports Streamable HTTP and can reach the local GoLatex server. Visual PDF review also requires MCP image support. A cloud-hosted agent cannot reach your localhost automatically.

### Can the AI agent actually 'see' the PDF output to verify formatting?

Yes, when the connected MCP client supports images. The GoLatex server provides the render_page tool, which converts a compiled PDF page into an image for the agent to inspect. This skill explains how to use that tool; the server must be installed and connected separately.

### What is the initial setup process for connecting my local workspace to the agent?

Download GoLatex from https://github.com/Josetoespinosa/GoLatex, install its Python dependencies, and start the local server. Open your LaTeX project in the GoLatex browser UI. Configure your agent's MCP client to connect to http://localhost:8123/mcp using Streamable HTTP, then call project_info to verify the selected project root and main file. The SKILL.md includes the setup commands.

### Does the skill automatically install missing TeX Live packages or dependencies?

While the skill automates the compilation and debugging process, it relies on your existing system-level TeX Live installation and cannot independently install missing global packages or binaries.

### How does the skill handle file edits without breaking my existing document structure?

golatex uses targeted string replacement for precision editing, which preserves your existing document structure, macros, and comments better than complete file rewrites.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
