Skip to content

Open-source multi-agent AI for theorists

Derive, verify,
and write in one workspace.

Describe a task to the assistant: it searches academic databases, runs Wolfram computations, verifies proofs in Lean 4, delegates large jobs to helper agents and programs, and returns every edit as a diff for your approval. Open source under Apache 2.0 as a desktop app, for VS Code and compatible editors, and in the terminal.

v1.0.0-preview.5 · Apple Silicon & Intel · Signed & notarized (242 MB) Linux (.AppImage)Linux (.deb)macOS (.zip)All downloads
or install the CLI to run from a terminal
$ npm install -g @texra-ai/cli
spectral-gap — texra-paper

2  Preliminaries

Definition 1.An Erdös-RényiErdős–Rényi random graph G(n, p) is a graph on n vertices where each posible edgepossible edge {u, v} is included with probability pindependent, independently of all other edges.

Let A be the adjacency matrix of a graph G be a graph on n vertices. Its adjacency matrix A = A(G) is an n × n matrix where Auv = 1 if {u, v} is an edge in G. The eigenvalues of, and Auv = 0 otherwise. Since Aare denotedis symmetric, its eigenvalues are real and are denoted by λ₁ ≥ λ₂ ≥ ⋯ ≥ λₙ.

3  Spectral Gap in Random Regular Graphs

For a d-regular graph G (where every vertex has degree d), it is well-known that the largest eigenvalue of its adjacency matrix is λ₁ = d. The spectral gap, defined as d − λ₂, governs the expansion properties of the graph.

Theorem 2 (Alon–Boppana).For a d-regular graph on n vertices, λ₂ is largeλ₂ ≥ 2√(d−1) − o(1) as n → ∞. A d-regular graph meeting this bound with equality is called a good expanderRamanujan graph.

Proof. It follows from counting walks.Count closed walks of length 2k rooted at a fixed vertex. The number of such walks in the d-regular tree is the Catalan-weighted moment Ck (d−1)k, and comparing with tr(A2k) = Σi λi2kas n → ∞ forces λ₂ ≥ 2√(d−1) − o(1).∎

Verifiable output

Derivations are checked in Wolfram, proofs compile in Lean 4, and citations resolve to database records. File edits are presented as line-by-line diffs for review before being applied.

Multi-agent delegation

A single assistant breaks complex tasks into subtasks and delegates them to helper agents and programs for literature search, computation, review, and formalization, each scoped to the tools it needs.

Direct provider connections

Use your own API keys or existing ChatGPT, Grok, Kimi Code, or GLM subscriptions. Requests are sent directly from your machine to the model provider.

Architecture across the research workflow

Describe the task and the assistant decomposes it into subtasks, runs helper agents and programs in parallel, and presents edits for review before modifying files.

Explore
search
arXiv, Zotero
Derive
derive · experiment
Wolfram, bash
Verify
review · prove
Wolfram checks, Lean proofs
Write
edit · annotate · apply
LaTeX, figures, diffs
Present
slides · poster
Beamer, poster
Document tasks
Read project→Plan→Draft
Reflect→Output
.tex in → improved .tex + latexdiff
Assistant
Decomposes tasks, launches helper agents and programs, and coordinates results
Chat
Your question→Tool calls→Reason
Answer
Conversational · persistent across sessions
leanarxivbashwebzoteroreadwritegrep25+ built-in tools

How researchers use TeXRA

Derive

Steady-state entanglement in a driven spin chain

The assistant (or the derive program) builds the Lindblad superoperator, solves for the steady state in Wolfram, computes the concurrence analytically, and cross-checks with exact diagonalization in Julia at N=8.

Write

Finalizing a 40-page paper on spectral graph theory

The edit program unifies notation (\lambda_2 vs \mu for the same eigenvalue across sections), fixes label conflicts, and outputs a diff you review line by line.

Verify

Formalizing subadditivity of entropy in Lean 4

The assistant (or the prove program) searches Loogle for relevant Mathlib lemmas, inspects the proof state, adds missing hypotheses, and produces a proof that compiles without errors.

Get started

Download the Desktop App for macOS or Linux, install the VS Code extension from the Marketplace, or install the CLI (npm install -g @texra-ai/cli). Add an API key or connect a provider subscription to run your first task.

terminal
$npm install -g @texra-ai/cli
$texra auth chatgpt login
$texra run edit --input paper.tex
executions/9f3a6c81d24e/r1/paper.tex

Common questions

What models does it support?

OpenAI, Anthropic Claude, Google Gemini, DeepSeek, xAI Grok, Moonshot Kimi, Qwen, GLM, MiniMax, Meta Muse, and any OpenAI-compatible endpoint. Use your own API key or an existing provider subscription (ChatGPT, Grok, Kimi Code, and the GLM Coding Plan). Each helper agent or program launched by the assistant can use a different model.

Does it work with Overleaf?

Yes, via Git sync. See the Overleaf guide.

Does it work with Lean 4?

Yes: Loogle search, proof state inspection, diagnostics, build and cache management. TeXRA spawns its own Lean server in every host (VS Code, desktop, and CLI), so you only need elan (lake on PATH) and a Lake project.

Can I use it without VS Code?

Yes. Download the standalone Desktop App (signed macOS .dmg and Linux installers), or use the @texra-ai/cli terminal client for interactive sessions, scripts, CI, and remote machines (CLI guide).

Is my data private?

Yes. Model calls go directly from your machine to the provider, whether you use an API key or a provider subscription; requests do not pass through TeXRA servers. TeXRA collects optional anonymous usage metadata (built-in program name, model, and token counts), excluding prompts and document content. See Usage logging for details and opt-out instructions.

Is TeXRA open source?

Yes. The VS Code extension, desktop app, CLI, and agent runtime are published under the Apache 2.0 license, and you run them with your own model keys or subscriptions. See the open source guide.

Can I customize TeXRA for my project?

Yes. Add project conventions in AGENTS.md, define custom skills, and install plugins that provide additional skills and programs. See Customizing TeXRA.

Where do I get help?

Email contact@texra.ai or open an issue on GitHub.