Skip to content
LionSRPublic

About

TeXRA — an AI theorist (math, physics, computer science). VS Code extension and terminal CLI.

Resources

Security policy

Stars

38 stars

Watchers

2 watching

Forks

Latest commit

 

History

22,673 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TeXRA

TeXRA

Derive it, check it, prove it.
Open-source AI theorist for the desktop, VS Code, and the terminal.

GitHub Stars VS Code Marketplace Installs Rating Open VSX Version npm version CLI downloads License: Apache 2.0

Desktop App · Docs · Install · Programs · Models · Work with TeXRA · Worldline SDK · Sponsor


TeXRA connects frontier models to the tools theoretical research depends on: Wolfram and Python, a live Lean 4 server with Loogle, arXiv and Zotero, LaTeX compilation with latexdiff PDFs, and parallel multi-agent scripts.

TeXRA 1.0 ships as a standalone Desktop App, a VS Code extension (also Cursor, Windsurf, and Antigravity), and a terminal CLI over one SQLite-backed Effect runtime. Apache 2.0, no TeXRA account: bring your own API keys or subscriptions, and requests go straight from your machine to the provider.

Why researchers use TeXRA

  • Tools in the loop. Check derivations in Wolfram and Python, type-check proofs against a live Lean 4 server, cite real papers from arXiv and Zotero, and inspect every LaTeX edit as a line-by-line diff or compiled latexdiff PDF.
  • One assistant, parallel scripts, autonomous goals. Describe the problem and files; there is no agent menu. For large jobs, the assistant writes sandboxed JavaScript to fan out helper agents in parallel, delegates coding to Codex or Claude Code, or runs multi-round goals checked by an independent judge.
  • Built for multi-hour problems. Tasks persist to SQLite, resume after a crash without repeating finished work, fork at any turn, and stay alive in a shared background service across Desktop, VS Code, and CLI.
  • Tailored to your project. Add rules in AGENTS.md, Markdown memory, SKILL.md skills, and Claude Code / Codex plugins (including MCP servers and custom programs).

Install

# VS Code 1.125+ (also Cursor, Windsurf, Antigravity)
code --install-extension texra-ai.texra

# Terminal CLI (Node.js 22.22.2+ or 24.15+)
npm install -g @texra-ai/cli        # or: brew install texra-ai/tap/texra

Add an API key in Settings → Models (or texra auth chatgpt login / texra auth grok login), then open a project folder or start from the terminal:

texra setup                                 # guided setup and first task
texra chat                                  # interactive chat
texra run edit --input paper.tex            # revise LaTeX with compiled diffs
texra run review --input paper.tex --print  # audit derivations and math
texra run prove --input Proofs/Basic.lean   # complete proofs with Lean diagnostics

All three apps share credentials, settings, and task history. See the Installation and Quick Start guides.

Programs

Ask the assistant in plain words or run texra run <program> --input <file> (full catalog):

Family Programs What it returns
Document edit, annotate, enhance, apply, transcribe, slides, poster Compiled LaTeX and latexdiff PDFs
Task review, search, derive, solve, experiment, code, review-code, simplify, test, fix-latex, latexdiff Research report or verified project edits
Lean 4 prove, lean-simplify, blueprint, lean-search Proofs verified with zero errors, zero sorry, no new axioms

Models

Direct routes to Anthropic, OpenAI, Google Gemini, DeepSeek, xAI Grok, Moonshot Kimi, Alibaba Qwen, Zhipu GLM, MiniMax, and Meta Muse, plus ChatGPT, Grok, Kimi Code, and GLM subscriptions and custom OpenAI Responses, Anthropic Messages, or Gemini Interactions endpoints. Mix models freely across helper agents and programs (Models guide).

Work produced with TeXRA

More at texra.ai/work-using-texra.

Build on TeXRA's runtime

TeXRA's core ships as two standalone Effect 4 libraries you can embed in your own apps, CLIs, and editors:

  • Worldline (@texra-ai/worldline): Durable, forkable agent runtime in Effect backed by SQLite, with crash-tested recovery, plain-JS multi-agent scripts in QuickJS, approvals, plugins, browser-safe UI views, and 14 runnable examples.
  • @texra-ai/llm: Pure Effect Model over OpenAI Responses, Anthropic Messages, and Google Interactions (10 providers, 140+ llm-zoo models, typed ModelError, lazy SDK loading, and wire cassettes).

Companion MIT-licensed repositories under texra-ai:

llm-zoo texra-scientific-skills texra-lean-skills zotero-cleanup-skills

Workspace packages, upgrading from 0.40, and development
  • Packages: @texra-ai/worldline · @texra-ai/llm · @texra-ai/texra · packages/extension · packages/desktop · @texra-ai/cli · packages/trace-viewer
  • Upgrading from 0.40: 1.0 starts with fresh SQLite history (0.40 JSON state and your research files are untouched), shares keys in ~/.texra/secrets/, retires TeXRA accounts / OpenRouter / Copilot / custom agent YAML files, and uses provider/id[@effort] model names. See CHANGELOG.md.
  • Development: corepack pnpm install, npm run typecheck, npm run gate, npm run test:pure. Architecture guide: AGENTS.md.

Support & License

GitHub Sponsors Buy Me a Coffee

Full Docs · GitHub Issues · SECURITY.md · contact@texra.ai

Licensed under Apache-2.0. © TeXRA Team 2024–2026. Terms · Providers

About

TeXRA — an AI theorist (math, physics, computer science). VS Code extension and terminal CLI.

Resources

Security policy

Stars

38 stars

Watchers

2 watching

Forks

Releases

Packages

Used by

Contributors

Languages