Skip to content

CubeStar1/paper-pilot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

109 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PaperPilot

PaperPilot is an AI-powered LaTeX workspace. It combines a professional LaTeX editing environment with autonomous research and writing agents, functioning as a specialized IDE for writing papers, resumes, and more.

PaperPilot Interface

Project Structure

The project is divided into three main components:

  • frontend/: A Next.js web application providing the user interface, project management, and AI chat integration.
  • backend/: A Python/FastAPI service used during development for LaTeX compilation using Docker.
  • production-backend/: An optimized version of the backend designed for cloud deployment (e.g., Azure Container Apps) where LaTeX is installed directly.

Features

Autonomous Research Agent

The research agent is integrated with Semantic Scholar and arXiv via MCP. It can:

  • Search for academic papers, authors, and citations.
  • Download and analyze full-text arXiv preprints.
  • Maintain a structured research-notes.md file to organize literature reviews.
  • Generate formatted BibTeX and APA citations automatically.

Writing and Editing Agent

The writing agent has direct access to the project workspace and can perform active document manipulation:

  • Content Implementation: Drafting sections based on research notes or user prompts.
  • Document Restructuring: Proactively splitting large files into modular chapters and sections.
  • Style Maintenance: Ensuring consistent LaTeX formatting and package usage.

Real-time LaTeX Editor

The editor is built on Monaco and provides syntax highlighting and autocomplete for LaTeX commands, and real time content sync. It supports complex multi-file projects with a dedicated file explorer and persistent file management.

Live PDF Preview

A side-by-side previewer provides immediate visual feedback. It supports both native browser rendering and a custom PDF viewer to ensure compatibility and performance across different document sizes.

LaTeX Templates

A collection of pre-configured templates for journals, conferences, and resumes. These allow for rapid project initialization with standard document classes and pre-defined structures.

Project Management

Comprehensive file handling capabilities for complex LaTeX projects:

  • Import: Support for single file uploads, bulk file imports, and full folder uploads to quickly port existing projects.
  • Export: Options to export the final compiled PDF or download the entire project source as a structured ZIP file.
  • Organization: Integrated file explorer for managing assets, nested directories, and multiple source files.

Log Analysis and Error Correction

PaperPilot monitors LaTeX compilation logs in real time. If a compilation fails, the AI agent analyzes the log output to diagnose issues such as missing packages or syntax errors and can apply fixes to the source code automatically.

Project Context Awareness

The AI maintains an updated map of the project structure, including active files and cross-references. This context allows the agents to make informed edits that respect the existing document hierarchy.

Tech Stack

  • Frontend: Next.js 15 (App Router), Tailwind CSS 4, Framer Motion, Supabase.
  • Backend: FastAPI, Docker (dev), TeX Live (prod).
  • AI Integration: Vercel AI SDK (Gemini, OpenAI, Cerebras, Groq, xAI).

Getting Started

Refer to the individual directory READMEs for specific setup and development instructions:


About

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors