2. Command-line & interactive commands
This page describes LatticeMind’s command-line entry points and the command
palette of latticemind quick. A research conversation and the one-shot
pipeline have different commands; for a task-first introduction to a
conversation’s commands see Interactive commands.
2.1. Console commands
The wheel installs these commands on your PATH:
Command |
Purpose |
|---|---|
|
Start a research conversation in the current folder (the default runtime). Running it again in the same folder reopens the conversation. |
|
Ask which model to use and where RESCU is, and save the answers to
|
|
Print which providers and solvers are ready, and the settings file in use. |
|
Start the one-shot pipeline. |
|
Open the web console in your browser. |
2.2. Starting a conversation
latticemind accepts a few options for the conversation it starts:
Option |
Meaning |
|---|---|
|
Start with approve-for-me on ( |
|
Send this conversation’s calculations to a saved remote profile. The same
as |
LATTICEMIND_RUNTIME=quick makes latticemind start the one-shot pipeline
instead. The retired terminal dashboard is not available; latticemind-web is
the graphical interface.
For scripts, latticemind research drives a conversation one message at a
time (see Drive a research conversation from a script). latticemind research chat --help lists
its options. For example, local VASP through an existing WSL installation:
latticemind research chat --local-solver vasp --solver-executable /usr/local/bin/vasp_std --vasp-wsl-distribution Ubuntu-24.04 --solver-threads 1 --solver-timeout 300 --allow-project-changes
Replace the distribution and executable with your installed values, and set
VASP_PP_PATH or LATTICEMIND_VASP_PP_PATH to your licensed POTCAR
library. Local RESCU and NanoDCAL use the same --local-solver and
--solver-executable options without the WSL option; a remote host uses
--remote-profile NAME --remote-solver rescu|nanodcal|vasp instead. Choosing
an executable does not approve a launch: each one still asks.
2.3. Shell discovery and one-shot commands
The latticemind command also provides non-interactive commands for shell
users and general agents. Add --json or --format json anywhere in a
command to receive the versioned JSON response documented in
Using LatticeMind from Codex, Claude, and shell agents. latticemind run is the one-shot interface and
works on latticemind quick projects.
Command |
Purpose |
|---|---|
|
Print the installed LatticeMind version without a license/provider check. |
|
Return solvers, shell commands, slash commands, exit codes, and execution safeguards. |
|
Return the full interactive command catalog or one category/search match. |
|
Print one concise answer after inferring LatticeMind, RESCU, NanoDCAL, or all corpora from the question. |
|
List packaged LatticeMind manual source paths. |
|
Read one exact packaged LatticeMind manual |
|
Return the versioned protocol manifest. |
|
Run read-only local and remote-configuration checks. |
|
Read a |
|
Answer from existing project files and matching LatticeMind manual sections without writing to the project. |
|
Run one one-shot planning and validation turn; the solver does not run by default. |
|
Run one turn with explicit permission for the validated solver launch. |
|
Release the approved calculations and return immediately. See Releasing a long calculation (latticemind quick). |
|
Work in the current folder instead of creating a project subdirectory. Home, root, system, and software folders still get a subdirectory. |
|
Bind a new project to one solver. Left unset, a new project uses RESCU and an existing project keeps the solver it was created with. |
|
Execute on the named profile from |
|
Continue an existing project, or create a new one even when the current directory could be attached. A continuation inherits the device, material, and settings of the request the project was founded on. |
See Using LatticeMind from Codex, Claude, and shell agents for the recommended Codex/Claude command sequence, JSON fields, exit codes, project continuation, and license/provider setup.
Solver documentation searches return excerpts only; --source reads only
this manual, not an exact RESCU or NanoDCAL page. docs uses --corpus
auto by default. Use --corpus <name> to override the inferred corpus,
--json for a compact machine-readable response, and --verbose for full
fields on the returned excerpts. --limit N changes the maximum number of
returned excerpts.
2.4. Releasing a long calculation (latticemind quick)
In a research conversation a long run needs nothing special: close the terminal
and the solver keeps running, and latticemind in the same folder picks the
results up. The one-shot interface has an explicit option instead. Adding
--detach releases the approved calculations to run independently — as a
Slurm job, an SSH job, or a local background process — and returns immediately:
latticemind run "scf + bs + dos for Si: mp-149" \
--execute --approve-execution --detach
You can then close the terminal, log out, or shut down the client machine if the work is running remotely. Pick the project up later with:
latticemind run --project <project-dir> "continue"
LatticeMind reattaches to the released work, collects whatever finished while it
was away, and carries on from there. Inside latticemind quick, /status
reports what is running and what has completed, and /stale reports steps
whose inputs changed and therefore need recomputing. If a launch says it is
waiting for released work you know has finished, /lease status shows what is
recorded and /lease clear lets the next run proceed.
This is the recommended way to run anything long in the one-shot interface — geometry relaxations, phonon dispersions, or large supercells — and the only practical way to use a batch scheduler, where the job may not start until long after you submit it.
2.5. latticemind-web options
Flag |
Meaning |
|---|---|
|
Bind host. Default: |
|
Bind port. Default: |
|
Do not attempt to open a local browser (use on servers/cloud). |
|
Force opening a local browser. |
Example:
latticemind-web --port 7865 --no-open
2.6. Remote utility subcommands
Before opening the interactive app, you can manage remote SSH sessions directly
from the shell. These are handled by latticemind at startup:
latticemind remote setup <profile> # install SSH session-reuse settings
latticemind remote warm <profile> # open one approved SSH session (2FA once)
latticemind remote status <profile> # check recorded remote job status
latticemind remote close <profile> # close the saved SSH session early
See Remote & HPC execution for the full remote/HPC workflow.
2.7. The latticemind quick command palette
In a research conversation, /help prints the short list of the
conversation’s own commands (see Interactive commands), and /commands opens
this larger palette. The palette was written for latticemind quick. Most of
its commands also answer in a conversation, and where a command means something
different there, it says so. The tables below describe the pipeline meaning,
with the conversation’s meaning noted where it differs.
Help
Command |
Description |
Example |
|---|---|---|
|
Show the command palette. In |
|
|
Explain a command or topic. |
|
|
Explain the current pause, blocker, or suggested action (alias |
|
|
Show context-aware next actions. |
|
|
Show short example prompts. |
|
Project
Command |
Description |
Example |
|---|---|---|
|
Start a fresh project (quick). In a conversation: a fresh conversation in this folder. |
|
|
List recent indexed projects. |
|
|
Resume a project by id, prefix, or path. |
|
|
Fork a project before experimenting. |
|
|
Adopt the current folder as the active project. |
|
|
Quick only. Create a project subdirectory for new work (on, the default) or work in the current folder (off). A conversation always works in the folder it was started in. |
|
|
Adopt an existing folder without copying it. |
|
|
Attach documents/files to the active or next project. |
|
|
Inspect the current folder before choosing new/resume/attach. |
|
|
Set a readable display title (alias |
|
|
Show active project, mode, backend, settings (alias |
|
|
Show workflow and calculation status. |
|
Files
Command |
Description |
Example |
|---|---|---|
|
Show key project folders and artifacts. |
|
|
List known solver input files. |
|
|
List known results, plots, logs, and reports. |
|
Workflow & validation
Command |
Description |
Example |
|---|---|---|
|
List failed calculation instances and suggested reruns. |
|
|
List stale calculation instances. |
|
|
Continue a failed/stale workflow target. |
|
|
Force a target to rerun. |
|
|
Quick only. Enable or skip validation. A conversation always checks its inputs. |
|
|
Show launch probability and gate findings. |
|
|
Show workflow-contract summary. |
|
|
Show validation/readiness warnings. |
|
Execution
Command |
Description |
Example |
|---|---|---|
|
Quick only. Enable or disable solver execution. A conversation asks before each launch instead. |
|
|
Let routine, low-risk work go ahead; anything else still asks. In a conversation, see Interactive commands for exactly what goes ahead. |
|
|
Set the RESCU executable or launch command. |
|
|
Choose local, SSH, or Slurm execution (quick). In a conversation, use
|
|
|
Preview what would run before launch (alias |
|
|
Estimate resource risk and staged-run recommendations. |
|
|
Enable or disable RESCU’s built-in plotter ( |
|
|
Quick only. Show whether released work still blocks the next launch
(alias |
|
|
Quick only. Let the next run launch after released work you know has
finished. Refuses while that work is still running unless given
|
|
Remote / HPC
Command |
Description |
Example |
|---|---|---|
|
Create or update a remote profile with guided prompts (in a
conversation: |
|
|
List remote profiles. |
|
|
Select a remote profile. |
|
|
Install SSH session-reuse settings. |
|
|
Open a reusable SSH session for 2FA. |
|
|
Run SSH/transfer/scheduler preflight. |
|
|
Explain remote readiness and next checks. |
|
|
Check recorded remote job status. |
|
|
Fetch recorded remote job outputs. |
|
|
Tail latest remote execution logs. |
|
|
Show remote work directory and local bundle paths. |
|
|
Cancel the recorded remote job. |
|
Post-processing
Command |
Description |
Example |
|---|---|---|
|
Run or preview post-processing scripts. |
|
|
List generated plots. |
|
|
Show the analysis summary. |
|
Runtime, cloud & session
Command |
Description |
Example |
|---|---|---|
|
Show the active AI model provider and models, or switch to another
(alias |
|
|
Quick: show the active model, pin an exact model id, or clear the pin. In a conversation: choose from every provider’s models (see Interactive commands). |
|
|
Read-only environment diagnostics (CLI, web, RESCU, remote). |
|
|
Inspect or persist runtime/deployment context. |
|
|
Choose the final report language (alias |
|
|
Show the qBraid Web UI and proxy quickstart. |
|
|
Show cloud/headless web settings. |
|
|
Launch the web console. |
|
|
Exit LatticeMind. |
|
2.8. Reports
In a conversation, /report writes an evidence report for the latest answer —
HTML and Markdown — under results/ and prints where. The same report can be
written from the shell:
latticemind research report --session SESSION_ID
latticemind research report --session SESSION_ID --kind answer
latticemind research report --session SESSION_ID --markdown custom.md --title "Custom research summary"
--kind evidence is the default. --kind answer includes the selected
answer’s text. --turn TURN_ID selects an older answer. Custom Markdown may
quote recorded values with the conversation’s {{fact:...}} references, which
are checked against the recorded results; the methods, results, limitations and
sources are always appended, and prose you write yourself is not independently
checked. Open the HTML locally, or use the browser’s Print / Save as PDF. Local
figures under the project are embedded; scripts, remote images and network
fonts are not loaded. An existing report is never overwritten.
Automatic reports in latticemind quick. The one-shot pipeline writes a
report after each run by default. --report-format off skips it but keeps
chat and calculation results; previous reports are not deleted. Choices can be
saved per project:
latticemind report configure --project my_project --automatic off
latticemind report configure --project my_project --automatic on --title "Silicon study" --font sans --density compact
latticemind report configure --project my_project --brief "For a collaborator: findings first, concise methods, explicit limitations."
--automatic default restores the default, and --accent '#125678' changes
the decorative accent colour. A brief guides future model-written pipeline
reports and does not hide integrity findings. To render your own
project-relative Markdown without a model or solver call:
latticemind report create --project my_project --markdown collaborator.md --title "Collaborator summary"
2.9. Environment variables
For runtime environment variables, see Settings & configuration reference for the complete list.