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