PaperDebugger: A Plugin-Based Multi-Agent System for In-Editor Academic Writing, Review, and Editing

Junyi Hou, Andre Huikai Lin, Nuo Chen, Yiwei Gong, Bingsheng HearXiv 2025 · DOI

Introduction

Large Language Models (LLMs) have revolutionized academic brainstorming and editing, yet the current workflow remains fundamentally fragmented. Researchers typically operate in a "copy-paste loop," manually transferring text between LaTeX editors like Overleaf and external chat interfaces. This separation results in significant context loss, as external models lack awareness of document structure and bibliography, and introduces workflow friction that disrupts the writing process.

PaperDebugger addresses these challenges by integrating an open-source, multi-agent system directly into the editing environment. By leveraging a plugin-based architecture, it enables context-aware critiques, deep literature searches, and seamless document revisions without requiring the user to leave their editor.

System Architecture and Methods

PaperDebugger is designed as a five-layer, Kubernetes-native system to ensure scalability and low-latency performance.

The five-layer architecture of PaperDebugger, spanning from the presentation layer to the underlying infrastructure.
  1. Presentation Layer: A Chrome extension that injects UI components, such as floating panels and inline diffs, directly into the Overleaf interface.
  2. Backend & Infrastructure: Utilizes gRPC for bidirectional streaming of model outputs and is hosted on a Kubernetes cluster for robust resource management.
  3. Agent Layer: The core "brain" of the system, utilizing the Model Context Protocol (MCP) to coordinate specialized agents:
  4. Reviewer: Generates segment-level critiques based on academic guidelines.
  5. Enhancer: Refines and rewrites text for clarity.
  6. Researcher: Conducts multi-stage semantic searches across arXiv and other academic corpora.
  7. Scoring: Quantifies document coherence.
  8. XtraGPT: A specialized suite of models fine-tuned for academic writing styles to avoid the generic or "robotic" tone often associated with standard LLMs.

The Diff-Based Interaction Model

A key innovation of PaperDebugger is its focus on transparency and user control. Rather than providing a single-shot replacement for text, the system emphasizes an iterative, collaborative workflow. The primary "control surface" is the inline diff-style view, which allows users to inspect exactly what the AI proposes to change before applying it.

The PaperDebugger UI in Overleaf, demonstrating the workflow from text selection to reviewing agent-generated patches.

Telemetry data indicates that users engage in multi-turn refinements, treating the system as a partner. The agentic decomposition—breaking complex tasks into sub-queries dispatched to worker pods—ensures that feedback is structured and relevant to the specific section being edited.

Real-World Deployment and Results

Since its launch on the Chrome Web Store, PaperDebugger has seen significant adoption, with over 4,100 installs and 2,700 registered users. Analysis of anonymized telemetry data from May 2025 to January 2026 reveals several insights into user behavior:

  • Transparency over Automation: The most frequent user action was "Diff viewed" (4,593 instances), which significantly outnumbered "Insert patch" (2,697 instances). This suggests that users value the ability to audit AI suggestions before committing them to their manuscript.
  • High Satisfaction: The tool maintains a 4.82/5 rating, reflecting its utility in reducing the friction of academic writing.
  • Collaborative Iteration: Users created over 7,400 writing threads, indicating that the tool is used for ongoing dialogue rather than one-off corrections.

Limitations and Future Directions

While successful, the system faces challenges in domain specificity; some users noted a bias toward Computer Science writing styles. Additionally, performance can degrade with extremely long documents due to context management overhead. Current capabilities are also primarily limited to text, with restricted support for complex LaTeX elements like TikZ figures or tables.

Future development will focus on expanding the agent library via the MCP protocol and optimizing the system to handle massive document states more efficiently across diverse academic disciplines.

Summary updated

BibTeX
@misc{hou2025paperdebugger,
  author = {Junyi Hou and Andre Huikai Lin and Nuo Chen and Yiwei Gong and Bingsheng He},
  title = {{PaperDebugger: A Plugin-Based Multi-Agent System for In-Editor Academic Writing, Review, and Editing}},
  year = {2025},
  eprint = {2512.02589},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2512.02589},
}
Figure