@texra-ai/cli 0.38.1 → 0.38.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +105 -179
- package/dist/bin/texra.js +1520 -939
- package/dist/resources/agents/polish.yaml +1 -1
- package/dist/resources/docs/agent-creation/workflow_schema.md +2 -1
- package/package.json +4 -1
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# TeXRA
|
|
1
|
+
# TeXRA
|
|
2
2
|
|
|
3
3
|
[](https://marketplace.visualstudio.com/items?itemName=texra-ai.texra)
|
|
4
4
|
[](https://marketplace.visualstudio.com/items?itemName=texra-ai.texra)
|
|
@@ -9,209 +9,135 @@
|
|
|
9
9
|
[](https://www.npmjs.com/package/@texra-ai/cli)
|
|
10
10
|
[](https://www.npmjs.com/package/@texra-ai/cli)
|
|
11
11
|
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
>
|
|
18
|
-
> The relay runs on sponsor credits. If TeXRA helps your research, please
|
|
19
|
-
> consider supporting it via
|
|
20
|
-
> [GitHub Sponsors](https://github.com/sponsors/texra-ai) or
|
|
21
|
-
> [Buy Me a Coffee](https://buymeacoffee.com/texra.ai) to keep the program
|
|
22
|
-
> open for everyone.
|
|
23
|
-
|
|
24
|
-
**TeXRA is a multi-agent research assistant for theorists (Physics, Math, CS, Engineering, etc.)— in VS Code and the
|
|
25
|
-
terminal.** Instead of chatting with a single model, you direct an
|
|
26
|
-
**Orchestrator** that delegates to a team of specialists—researchers,
|
|
27
|
-
numericists, reviewers, formalizers, LaTeX fixers, presenters—each with their
|
|
28
|
-
own tools, prompts, and model. The result is a coordinated lab that drafts,
|
|
29
|
-
reviews, computes, and formalizes rigorous scientific work alongside its LaTeX,
|
|
30
|
-
code, figures, and PRs.
|
|
31
|
-
|
|
32
|
-
TeXRA runs as a **VS Code extension** and as a **terminal CLI**
|
|
33
|
-
(`@texra-ai/cli`) that share the same agents and sign-in — see
|
|
34
|
-
[Use TeXRA from the terminal](#use-texra-from-the-terminal) below.
|
|
35
|
-
|
|
36
|
-
See [texra.ai](https://texra.ai) or the
|
|
37
|
-
[full documentation](https://texra.ai/guide/) for tutorials, agent recipes, and
|
|
38
|
-
a web-based launch page.
|
|
39
|
-
|
|
40
|
-
## Why TeXRA
|
|
41
|
-
|
|
42
|
-
- **Orchestrator-first** – the **Orchestrator** decomposes your task,
|
|
43
|
-
delegates to specialists in parallel, captures their outputs as diffs, and
|
|
44
|
-
presents proposals you approve before they touch your files. Follow-ups
|
|
45
|
-
during delegation are queued, sub-agent runs can be inspected, waited on,
|
|
46
|
-
resumed, or terminated, and the orchestrator builds long-term memory across
|
|
47
|
-
sessions.
|
|
48
|
-
- **Curated team presets** – switch to **Physicist**, **Mathematician**,
|
|
49
|
-
**Computer Scientist (ML)**, or **Lean Project** in one click from the
|
|
50
|
-
Multi-Agent settings tab. Each preset is a preconfigured roster of workflow
|
|
51
|
-
and tool-use agents tuned for that discipline; you can also save your own.
|
|
52
|
-
- **A full cast of specialists** – locally bundled tool-use agents include
|
|
53
|
-
`research`, `numerics`, `review`, `presenter`, `latexFixer`, `latexDiff`,
|
|
54
|
-
`creator`, `lean`, `chat`, and the **Setup Wizard** (`setup`); workflow
|
|
55
|
-
agents include `correct`, `polish`, `merge`, `ocr`, `transcribe_audio`,
|
|
56
|
-
`paper2slide`, and `paper2poster`. Signing in unlocks remote specialists—
|
|
57
|
-
`orchestrator`, `search`, `simplifier`, `criticize`, `devise`, `apply`,
|
|
58
|
-
`generic`, `progressCheck`, and the Lean `leanOrchestrator` /
|
|
59
|
-
`leanBlueprint` / `leanSearch` / `leanSimplifier` line.
|
|
60
|
-
- **Tools that touch your project** – tool-use agents read and edit
|
|
61
|
-
workspace files, run shell commands, drive LaTeX builds, work with Git and
|
|
62
|
-
GitHub PR subscriptions, and can delegate reasoning turns to the Codex
|
|
63
|
-
CLI—each tool call gated by per-stream approval (with an optional YOLO
|
|
64
|
-
bypass).
|
|
65
|
-
- **Live, persistent runs** – the **progress board** streams reasoning, tool
|
|
66
|
-
calls, sub-agent file diffs, and per-run token usage and cost for active
|
|
67
|
-
and recently completed runs in your workspace. Saved task state can be
|
|
68
|
-
reopened later via **Show Agent Execution History**, tool-use agents can
|
|
69
|
-
be resumed via **Resume Tool-Use Agent**, and **Pack Output into History
|
|
70
|
-
Folder** archives a finished run's outputs into the workspace's `History/`
|
|
71
|
-
directory.
|
|
72
|
-
- **Odyssey mode (experimental)** – let a tool-use agent run a long task to
|
|
73
|
-
completion on its own. A configurable budget auto-pauses the run for your
|
|
74
|
-
approval before going further, and a dedicated panel shows progress so
|
|
75
|
-
you can step in at any time. Off by default; enable it with the
|
|
76
|
-
`texra.experimental.odyssey.enabled` VS Code setting.
|
|
77
|
-
- **Model flexibility with guardrails** – mix and match per agent: OpenAI
|
|
78
|
-
(incl. GPT-5.5 and GPT Pro), Anthropic (incl. Claude Opus 4.7), Google
|
|
79
|
-
Gemini, DeepSeek, xAI Grok, Moonshot Kimi, Alibaba Qwen (DashScope),
|
|
80
|
-
Zhipu GLM, MiniMax, OpenRouter, and custom endpoints—with context
|
|
81
|
-
management, retry/backoff, parallel-tool-call limits, and cost monitoring
|
|
82
|
-
all configurable.
|
|
83
|
-
|
|
84
|
-
## Built-in Agent Teams
|
|
85
|
-
|
|
86
|
-
| Team | What the team does |
|
|
87
|
-
| --------------------------- | ------------------------------------------------------------------------------------------------------ |
|
|
88
|
-
| **Physicist** | Analytical derivations, numerical experiments, literature search, slide drafting, and critical review. |
|
|
89
|
-
| **Mathematician** | Proofs, Lean 4 formalization, research, and LaTeX correction. |
|
|
90
|
-
| **Computer Scientist (ML)** | Algorithm design, experiments and ablations, literature search, critical review, and reproducibility. |
|
|
91
|
-
| **Lean Project** | Lean 4 projects—theorem search, tactic simplification, and blueprint-driven formalization. |
|
|
92
|
-
|
|
93
|
-
Switch teams from the Multi-Agent tab in Settings, or build your own roster of
|
|
94
|
-
workflow and tool-use agents. Teams that include remote specialists (e.g. the
|
|
95
|
-
Orchestrator, `search`, `simplifier`) require sign-in or your own API keys
|
|
96
|
-
configured for the providers those agents use.
|
|
97
|
-
|
|
98
|
-
## Quick Start
|
|
99
|
-
|
|
100
|
-
1. Install the extension from the [VS Code Marketplace](https://marketplace.visualstudio.com/items?itemName=texra-ai.texra)
|
|
101
|
-
or [Open VSX](https://open-vsx.org/extension/texra-ai/texra).
|
|
102
|
-
2. Launch the **Setup Wizard**. Pick whichever is easiest:
|
|
103
|
-
- Click the **🚀 TeXRA: Get Started** pill in the status bar (shown
|
|
104
|
-
automatically until you sign in or add an API key).
|
|
105
|
-
- Click **Run the setup assistant agent** in the Getting Started banner
|
|
106
|
-
at the top of the TeXRA sidebar.
|
|
107
|
-
- Open VS Code's **Welcome / Walkthroughs** page and pick **TeXRA:
|
|
108
|
-
Getting Started** — Step 1 is a one-click button.
|
|
109
|
-
- Or, from the command palette, run
|
|
110
|
-
**`TeXRA: Run Setup Assistant Agent (Setup Wizard)`**.
|
|
111
|
-
|
|
112
|
-
The Setup Wizard diagnoses your environment, installs missing LaTeX
|
|
113
|
-
tooling, helps you sign in or add an API key, and verifies you're ready
|
|
114
|
-
to run agents—asking before every command and explaining what it's
|
|
115
|
-
doing. It can hand off interactive `sudo` prompts and installers to your
|
|
116
|
-
VS Code terminal.
|
|
117
|
-
|
|
118
|
-
3. Pick an agent **team** in Settings → Multi-Agent (Physicist,
|
|
119
|
-
Mathematician, CS/ML, or Lean Project), or stay with the default lineup.
|
|
120
|
-
4. Open the TeXRA sidebar, select the **Orchestrator** (or any agent),
|
|
121
|
-
describe your task, and approve the proposals it routes to specialists.
|
|
122
|
-
Watch progress, file diffs, and live reasoning on the **progress board**,
|
|
123
|
-
and follow up at any time—messages are queued for whichever sub-agent
|
|
124
|
-
needs them.
|
|
125
|
-
|
|
126
|
-
New here? Use the **Create Sample Project** button in the Getting Started
|
|
127
|
-
banner (also available as `TeXRA: Create Sample Project` from the command
|
|
128
|
-
palette) to spin up a fully configured workspace.
|
|
129
|
-
|
|
130
|
-
## Use TeXRA from the terminal
|
|
131
|
-
|
|
132
|
-
TeXRA also ships as a standalone CLI for running the same agents on your `.tex`
|
|
133
|
-
projects without an editor — useful for scripts, CI, and remote machines.
|
|
12
|
+
A LaTeX research assistant for VS Code and the terminal. Multi-agent
|
|
13
|
+
workflows for writing, reviewing, formalizing, and rendering academic
|
|
14
|
+
work — with every change returned as a diff you approve.
|
|
15
|
+
|
|
16
|
+
## Install
|
|
134
17
|
|
|
135
18
|
```sh
|
|
136
|
-
|
|
137
|
-
|
|
19
|
+
# VS Code (or Cursor, Windsurf, Antigravity)
|
|
20
|
+
code --install-extension texra-ai.texra
|
|
21
|
+
|
|
22
|
+
# Terminal — requires Node.js 22+
|
|
23
|
+
npm install -g @texra-ai/cli
|
|
138
24
|
```
|
|
139
25
|
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
`<PROVIDER>_API_KEY` convention as [Configuring Models](#configuring-models)
|
|
143
|
-
below):
|
|
26
|
+
Sign in with GitHub or Google for hosted access (no key management
|
|
27
|
+
required), or set `<PROVIDER>_API_KEY` to use your own credentials.
|
|
144
28
|
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
29
|
+
### Researcher Access Program
|
|
30
|
+
|
|
31
|
+
Academic researchers can sign in for complimentary hosted access to
|
|
32
|
+
a curated set of budget-friendly models — enough to run the
|
|
33
|
+
Orchestrator and the full roster of hosted specialists on real work,
|
|
34
|
+
without managing provider keys or paying per-token rates. Sign in
|
|
35
|
+
through the Profile view in VS Code, or `texra login` in the
|
|
36
|
+
terminal.
|
|
37
|
+
|
|
38
|
+
The program is sustained by the community. If TeXRA helps your
|
|
39
|
+
research, consider supporting it via
|
|
40
|
+
[GitHub Sponsors](https://github.com/sponsors/texra-ai) or
|
|
41
|
+
[Buy Me a Coffee](https://buymeacoffee.com/texra.ai) to keep it open
|
|
42
|
+
for everyone.
|
|
149
43
|
|
|
150
|
-
Run
|
|
44
|
+
## Run
|
|
45
|
+
|
|
46
|
+
In VS Code: open a `.tex` file, click the TeXRA icon, pick
|
|
47
|
+
**Orchestrator** or another agent, type a task. The Setup Wizard runs
|
|
48
|
+
on first launch and checks your environment.
|
|
49
|
+
|
|
50
|
+
In the terminal:
|
|
151
51
|
|
|
152
52
|
```sh
|
|
153
|
-
texra
|
|
154
|
-
texra
|
|
53
|
+
texra chat # interactive tool-use session
|
|
54
|
+
texra run polish --input paper.tex # one-shot workflow
|
|
55
|
+
texra multi-agent run physicist # named team
|
|
155
56
|
```
|
|
156
57
|
|
|
157
|
-
|
|
158
|
-
inspect or resume stored runs. See the
|
|
159
|
-
[documentation](https://texra.ai/guide/) for the full command reference.
|
|
58
|
+
Run history and agent settings are shared between both surfaces.
|
|
160
59
|
|
|
161
|
-
##
|
|
60
|
+
## Teams
|
|
61
|
+
|
|
62
|
+
Four built-in presets cover the most common research disciplines:
|
|
63
|
+
|
|
64
|
+
| Team | Built for |
|
|
65
|
+
| --------------------------- | -------------------------------------------------------------------------------- |
|
|
66
|
+
| **Physicist** | Analytical derivations, numerical experiments, literature search, slide drafting |
|
|
67
|
+
| **Mathematician** | Proofs, Lean 4 formalization, research, LaTeX correction |
|
|
68
|
+
| **Computer Scientist (ML)** | Algorithm design, experiments and ablations, literature, reproducibility |
|
|
69
|
+
| **Lean Project** | Mathlib search, tactic simplification, blueprint-driven formalization |
|
|
162
70
|
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
- **LaTeX distribution** (TeX Live, MiKTeX, or MacTeX) for compilation and
|
|
166
|
-
related tooling
|
|
167
|
-
- **Perl** (required by `latexindent` and `latexdiff`)
|
|
168
|
-
- **Optional**: GraphicsMagick/ImageMagick and Ghostscript for PDF and image
|
|
169
|
-
processing; `git` for repository-aware features; `gh` and a Codex CLI for
|
|
170
|
-
GitHub PR and Codex integrations; Lean 4 + `lake` for the Lean Project team
|
|
71
|
+
Pick a team in **Settings → Multi-Agent**, or with `texra multi-agent
|
|
72
|
+
run <preset>`. Or define your own roster in YAML.
|
|
171
73
|
|
|
172
|
-
|
|
74
|
+
## Agents
|
|
173
75
|
|
|
174
|
-
|
|
76
|
+
**Workflow agents** write to disk and produce reviewable diffs:
|
|
77
|
+
`polish`, `correct`, `merge`, `ocr`, `transcribe_audio`, `paper2slide`,
|
|
78
|
+
`paper2poster`.
|
|
175
79
|
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
80
|
+
**Tool-use agents** work conversationally with file, shell, and search
|
|
81
|
+
access: `research`, `numerics`, `review`, `presenter`, `latexFixer`,
|
|
82
|
+
`latexDiff`, `creator`, `lean`, `chat`, `setup`.
|
|
83
|
+
|
|
84
|
+
**Hosted specialists** (signed-in users): `orchestrator`, `search`,
|
|
85
|
+
`simplifier`, `criticize`, `devise`, `apply`, `generic`,
|
|
86
|
+
`progressCheck`, and the Lean line — `leanOrchestrator`,
|
|
87
|
+
`leanBlueprint`, `leanSearch`, `leanSimplifier`.
|
|
88
|
+
|
|
89
|
+
Every tool call is gated by per-stream approval. Optional YOLO mode
|
|
90
|
+
skips approval for autonomous runs.
|
|
91
|
+
|
|
92
|
+
## Models
|
|
93
|
+
|
|
94
|
+
Bring your own keys for OpenAI, Anthropic, Google Gemini, DeepSeek,
|
|
95
|
+
xAI Grok, Moonshot Kimi, Alibaba Qwen, Zhipu GLM, MiniMax, OpenRouter,
|
|
96
|
+
or any OpenAI-compatible endpoint. Each agent in a team can run a
|
|
97
|
+
different model — pair a flagship reasoner for orchestration with
|
|
98
|
+
cheaper, faster models for routine sub-tasks.
|
|
99
|
+
|
|
100
|
+
In the extension, run **`TeXRA: Set API Key`** (stored in VS Code's
|
|
101
|
+
encrypted SecretStorage) or add a workspace `.env`:
|
|
180
102
|
|
|
181
103
|
```env
|
|
182
|
-
OPENAI_API_KEY
|
|
183
|
-
ANTHROPIC_API_KEY
|
|
184
|
-
GOOGLE_API_KEY
|
|
185
|
-
DEEPSEEK_API_KEY=your_deepseek_key_here
|
|
186
|
-
XAI_API_KEY=your_xai_key_here
|
|
187
|
-
OPENROUTER_API_KEY=your_openrouter_key_here
|
|
104
|
+
OPENAI_API_KEY=…
|
|
105
|
+
ANTHROPIC_API_KEY=…
|
|
106
|
+
GOOGLE_API_KEY=…
|
|
188
107
|
```
|
|
189
108
|
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
109
|
+
In the CLI, export the same variables in your shell and run with
|
|
110
|
+
`--api-mode personal`.
|
|
111
|
+
|
|
112
|
+
## Requirements
|
|
113
|
+
|
|
114
|
+
- **VS Code 1.105+** (also runs in Cursor, Windsurf, Antigravity), or
|
|
115
|
+
**Node.js 22+** for the CLI
|
|
116
|
+
- **LaTeX distribution** (TeX Live, MiKTeX, or MacTeX)
|
|
117
|
+
- **Perl** (for `latexindent` and `latexdiff`)
|
|
118
|
+
- Optional: ImageMagick + Ghostscript (for PDF/image processing),
|
|
119
|
+
`git`, `gh`, Codex CLI, Lean 4 + `lake`
|
|
120
|
+
|
|
121
|
+
The Setup Wizard checks for and helps install most of the above.
|
|
122
|
+
|
|
123
|
+
## Documentation
|
|
197
124
|
|
|
198
|
-
|
|
125
|
+
- [Installation](https://texra.ai/guide/installation)
|
|
126
|
+
- [Quick Start](https://texra.ai/guide/quick-start)
|
|
127
|
+
- [Built-in Agents](https://texra.ai/guide/built-in-agents)
|
|
128
|
+
- [Polish a draft](https://texra.ai/guide/workflows/polish-a-draft) — workflow example
|
|
129
|
+
- [Models](https://texra.ai/guide/models)
|
|
130
|
+
- [Custom Agents](https://texra.ai/guide/custom-agents)
|
|
199
131
|
|
|
200
|
-
|
|
201
|
-
or the unified Settings view (Memory, History, Models, Agents, Multi-Agent,
|
|
202
|
-
Tools, Git, LaTeX tabs). The Multi-Agent tab covers team presets, parallel
|
|
203
|
-
tool-call limits, compaction thresholds, retry/backoff, and the orchestrator
|
|
204
|
-
kill toggle. Power users can define new workflow or tool-use agents in YAML
|
|
205
|
-
or register new model handlers.
|
|
132
|
+
Full docs at [texra.ai/guide](https://texra.ai/guide/).
|
|
206
133
|
|
|
207
|
-
## Support
|
|
134
|
+
## Support
|
|
208
135
|
|
|
209
|
-
|
|
210
|
-
[
|
|
211
|
-
[contact@texra.ai](mailto:contact@texra.ai).
|
|
136
|
+
Issues and feature requests: [GitHub](https://github.com/texra-ai/texra-issues/issues).
|
|
137
|
+
Contact: [contact@texra.ai](mailto:contact@texra.ai).
|
|
212
138
|
|
|
213
139
|
## License
|
|
214
140
|
|
|
215
141
|
© TeXRA Team 2025–2026. All rights reserved.
|
|
216
142
|
|
|
217
|
-
[Terms of Service](https://texra.ai/terms) · [Provider
|
|
143
|
+
[Terms of Service](https://texra.ai/terms) · [Provider list](https://texra.ai/providers)
|