PromptHub
Back to Blog
Developer Tools Open Source

delibae/claude-prism: Offline Scientific Writing with Claude, LaTeX & Python

B

Bright Coding

Author

11 min read 53 views
delibae/claude-prism: Offline Scientific Writing with Claude, LaTeX & Python

delibae/claude-prism: Offline Scientific Writing with Claude, LaTeX & Python↗ Bright Coding Blog

Scientific writing workflows have become increasingly cloud-dependent. Researchers and technical writers routinely upload manuscripts, datasets, and proprietary analyses to remote servers just to compile a PDF or run a Python script. For teams handling sensitive pre-publication data, intellectual property, or working in environments with restricted internet access, this dependency creates friction. Even beyond security concerns, cloud-based LaTeX editors introduce latency, require persistent connectivity, and lock users into subscription ecosystems that may not align with academic or institutional budgets.

delibae/claude-prism addresses these constraints directly. It is an offline-first scientific writing workspace that combines Claude AI assistance, embedded LaTeX compilation, and Python environment management into a single native desktop application. Your files stay on disk. Compilation happens locally. AI features operate through Anthropic's API only when explicitly invoked—not as a condition of basic document editing. With 1,675 GitHub stars, 154 forks, and an MIT License, it represents a genuinely open alternative to proprietary cloud-based scientific writing tools.


What is delibae/claude-prism?

delibae/claude-prism is a native desktop application built with Tauri 2 and Rust, providing a local-first environment for scientific writing and technical document preparation. It is maintained by delibae and emerged from the open-source Open Prism project by assistant-ui. The tool positions itself as a direct alternative to OpenAI Prism, with the critical distinction that all file storage and document compilation occur locally rather than on remote servers.

The technical architecture reflects deliberate choices for performance and autonomy. Tectonic, a modern TeX engine written in Rust, is embedded directly into the application—eliminating the need for a separate TeX Live installation. Python integration leverages uv, the high-performance Python package manager from Astral, for one-click virtual environment creation. The AI layer connects to Claude Opus, Sonnet, or Haiku via Anthropic's API, with configurable reasoning effort levels and persistent chat sessions.

The project shows active development with its last commit dated July 4, 2026. It supports macOS (Apple Silicon and Intel), Windows, and Linux (AppImage). The TypeScript codebase and MIT licensing make it accessible for inspection, modification, and redistribution—unlike the proprietary alternatives it competes with.

The relevance of this tool is tied to a broader shift in technical computing: developers and researchers are increasingly seeking sovereign workflows where core tooling does not depend on persistent cloud connectivity or vendor-specific subscriptions. delibae/claude-prism sits at the intersection of this movement, offering AI-augmented productivity without surrendering local control over documents and environments.


Key Features

Embedded LaTeX Compilation via Tectonic

The application ships with Tectonic built-in. Packages download once on first use and cache locally; subsequent compilations work fully offline. No TeX Live installation, no tlmgr management, no multi-gigabyte distribution files. This is particularly valuable for users on institutional machines where software installation rights are restricted, or for working in field locations with unreliable connectivity.

Integrated Python Environment (uv)

ClaudePrism embeds uv directly. Users install uv with one click, create project-level virtual environments with another, and Claude Code automatically detects and uses the .venv when executing Python. This enables plot generation, data analysis, and script execution within the same workspace used for writing—without context-switching to external terminals or Jupyter notebooks.

100+ Scientific Skills

Domain-specific prompt libraries and tool configurations are installable from K-Dense Scientific Skills. These extend Claude's capabilities in specialized fields: bioinformatics (Scanpy, BioPython, PyDESeq2), cheminformatics (RDKit, DeepChem, DiffDock), machine learning (PyTorch Lightning, Transformers, SHAP), clinical research (ClinicalTrials.gov, ClinVar, DrugBank), and multi-omics/systems biology (scvi-tools, COBRApy). Skills install globally (~/.claude/skills/) or per-project, with automatic loading when relevant.

Git-Based Version History

Every save creates a snapshot in a local Git repository at .claudeprism/history.git/. Users label checkpoints, browse visual diffs between any two states, and restore previous versions. When Claude proposes edits, changes appear in a dedicated panel with per-chunk accept/reject controls (⌘Y / ⌘N) or bulk apply/undo.

Capture & Ask (⌘X)

A distinctive interaction pattern: press ⌘X to enter capture mode, drag-select any region of the rendered PDF, and the captured image pins to the chat composer for immediate Claude interrogation. This targets equations, figures, tables, or reviewer comments without manual screenshot workflows.

Additional capabilities include Zotero integration (OAuth-based bibliography management), SyncTeX-enabled live PDF preview via MuPDF, CodeMirror 6 with LaTeX/BibTeX syntax highlighting, slash commands (/review, /init), external editor launch (Cursor, VS Code, Zed, Sublime Text), and automatic dark/light theme switching.


Use Cases

Secure Pre-Publication Manuscript Development

Research groups handling embargoed findings, pharmaceutical companies drafting regulatory submissions, or government labs with data classification requirements can write and compile documents without exposing content to cloud infrastructure. The local Git history provides audit trails without external repository dependency.

Field Research and Low-Connectivity Environments

Geologists, ecologists, or anthropologists working at remote field stations can maintain full writing and analysis capability. LaTeX compilation and Python script execution require no internet once Tectonic packages are cached. AI assistance remains available intermittently when connectivity permits, without blocking core productivity.

Reproducible Computational Research

The integrated uv-managed Python environments, combined with versioned document history, support reproducible research practices. A single project directory contains source text, analysis code, dependency lock files, and complete edit history—facilitating later verification or collaboration through standard Git mechanisms.

Multi-Disciplinary Collaboration

Teams combining bioinformatics, chemistry, and clinical expertise can install relevant scientific skills per-project, ensuring Claude provides domain-appropriate assistance without cross-contaminating prompts. The template gallery (paper, thesis, presentation, poster, letter) standardizes project initialization across collaborators with varying LaTeX experience.

Teaching Technical Writing

Instructors can distribute a single application that provides complete LaTeX and Python environments without managing complex installation instructions across heterogeneous student machines. The MIT license permits institutional redistribution without licensing complications.


Installation & Setup

Pre-built binaries are available from GitHub Releases. Download the appropriate artifact for your platform:

Platform Download Link
macOS (Apple Silicon) ClaudePrism-macOS.dmg
macOS (Intel) ClaudePrism-macOS-Intel.dmg
Windows ClaudePrism-Windows-setup.exe
Linux ClaudePrism-Linux.AppImage

The installation process is straightforward:

  1. Download the release artifact for your platform from the latest release page
  2. Install following standard platform conventions (mount DMG and drag to Applications on macOS, run installer on Windows, make AppImage executable on Linux)
  3. Launch ClaudePrism—the first run initializes the embedded Tectonic LaTeX engine
  4. Install uv (one click) when prompted, or skip if you prefer manual Python environment management
  5. Create or open a project via the template gallery or project wizard

For development builds from source, see CONTRIBUTING.md in the repository. The project uses a standard Tauri 2 development workflow with Rust and TypeScript tooling.


Real Code Examples

The README does not contain extensive inline code snippets for direct reproduction. The following examples reflect documented configuration patterns and command interactions rather than executable source code. This accurately represents the current documentation state.

Project Initialization via Template

The project wizard generates structure based on selected template type. A typical paper project would include:

% Generated project structure (documented pattern)
\documentclass[preprint]{elsarticle}
\usepackage{amsmath,amssymb}
\begin{document}
\title{[Generated from project description]}
\author{[User-configured]}
\maketitle
\begin{abstract}
% Claude-generated initial content
\end{abstract}
\section{Introduction}
% ...
\end{document}

The wizard populates these fields from your project name and optional description, then Claude generates contextual opening content based on the scientific domain inferred from your input.

Python Environment Activation

ClaudePrism automatically detects and activates the local .venv when executing Python through Claude Code:

# Executed within ClaudePrism's integrated environment
# uv and venv are pre-configured; no manual activation needed
import matplotlib.pyplot as plt
import numpy as np

x = np.linspace(0, 10, 100)
y = np.sin(x)

plt.figure(figsize=(8, 4))
plt.plot(x, y)
plt.savefig('figure_1.pdf', bbox_inches='tight')
# Output appears in project directory, referenced via \includegraphics

The figure_1.pdf integrates directly into the LaTeX document without path configuration, as both compilation and execution share the project root.

Skill Installation and Usage

Skills install via the interface; the configuration loads automatically when Claude detects relevant context:

# Documented skill installation paths
~/.claude/skills/          # Global skills (all projects)
./.claude/skills/          # Project-local skills

A bioinformatics project with Scanpy installed as a skill would enable Claude to generate code patterns like:

# Claude-generated, skill-informed pattern
import scanpy as sc

adata = sc.read_h5ad('dataset.h5ad')
sc.pp.normalize_total(adata, target_sum=1e4)
sc.pp.log1p(adata)
sc.tl.pca(adata, svd_solver='arpack')
# ... with domain-appropriate parameter suggestions

Note: These Python examples illustrate documented capability patterns rather than verbatim README code blocks. The README emphasizes feature descriptions over extensive code listings.


Advanced Usage & Best Practices

Version History Hygiene

The automatic Git snapshots in .claudeprism/history.git/ accumulate quickly. Periodically label significant milestones ("submitted draft," "reviewer response version") to create semantic anchors in the linear history. The diff browser becomes more navigable with labeled checkpoints.

Skill Curation

Installing all 100+ skills globally creates prompt context bloat. Prefer project-local installation for specialized domains, reserving global scope for universally relevant skills (data visualization, citation management). This reduces token consumption and improves Claude's relevance.

Capture & Ask Workflow

Use ⌘X capture for specific, bounded questions rather than open-ended requests. "Explain the derivation of equation 3" yields more useful responses than "review this page." The captured image provides exact spatial context that text descriptions cannot.

External Editor Integration

For complex multi-file projects or when pair programming, launch the project in Cursor or VS Code via the external editor menu. Changes sync through the filesystem; ClaudePrism detects modifications and offers to incorporate them into its version history.

Offline-First Discipline

Complete initial Tectonic package downloads and skill installations while connected. The application caches aggressively, but first-use package fetches require connectivity. Plan onboarding accordingly for air-gapped deployments.


Comparison with Alternatives

Feature OpenAI Prism delibae/claude-prism
AI Model GPT-5.2 Claude Opus / Sonnet / Haiku
Runtime Browser (cloud) Native desktop (Tauri 2 + Rust)
LaTeX Compilation Cloud Embedded Tectonic (offline)
Python Environment — Built-in uv + venv
Scientific Skills — 100+ domain skills
Version Control — Git-based history
Source Availability Proprietary Open source (MIT)
Getting Started Account setup Install and go

Trade-offs to consider: OpenAI Prism requires no local installation and offers immediate collaboration through shared URLs—advantages for distributed teams without IT support for software deployment. delibae/claude-prism prioritizes sovereignty and offline capability at the cost of self-managed installation and no native real-time collaboration. The choice depends on whether your workflow values control or convenience as the primary constraint.

For users already embedded in the [INTERNAL_LINK: VS Code LaTeX workflow], the external editor bridge provides a migration path without abandoning familiar tooling.


FAQ

Is delibae/claude-prism completely offline?

LaTeX compilation and file storage are fully offline. AI features require Anthropic API connectivity; no content uploads occur for basic editing.

What LaTeX packages are available?

Tectonic downloads packages from CTAN on first use and caches them. Most common scientific packages are available; edge cases may require verification.

Can I use my existing Python installation?

The application prefers its uv-managed environments for reproducibility, but external Python configurations are possible through manual path configuration.

Is there a subscription fee?

No. The application is MIT-licensed open source. You pay only for Anthropic API usage when invoking AI features.

How does the Git history differ from standard Git?

It is a standard Git repository with a custom interface. Advanced users can interact with .claudeprism/history.git/ directly via command-line Git.

What about Windows on ARM or older macOS versions?

Current releases target macOS Apple Silicon/Intel, Windows (x64), and Linux (x64 AppImage). Check GitHub Issues for platform expansion requests.

Can I contribute scientific skills?

Skills are curated through K-Dense Scientific Skills. See that repository for contribution guidelines.


Conclusion

delibae/claude-prism occupies a specific and valuable niche: AI-augmented scientific writing for users who refuse to surrender local control over their documents and environments. It is not a generic note-taking app or a cloud collaboration platform. It is a technically focused tool for researchers, engineers, and technical writers who need LaTeX quality, Python flexibility, and AI assistance within a sovereignty-preserving desktop application.

The 1,675 stars and active commit history suggest genuine community interest, though users should evaluate whether the Tauri-based desktop model fits their workflow against browser-based alternatives. The MIT license removes commercial risk for adoption or modification.

If your work involves sensitive pre-publication research, operates in connectivity-constrained environments, or you simply prefer tools that respect local file ownership, explore delibae/claude-prism on GitHub and download the latest release for your platform.

Comments (0)

Comments are moderated before appearing.

No comments yet. Be the first to share your thoughts!

Recommended Prompts

View All
All tools