Agents¶
Serve the model operations to an assistant.
naga mcp¶
usage: naga mcp [-h] [--root ROOT] [--allow-network] [--allow-private-network]
[--allow-host HOST] [--connections FILE]
[--tools {all,compact,build,run,study,twin}] [--room]
[--tool-picker {gte,haiku}] [--tool-picker-backup PATH]
[--twin DIR]
Run the MCP server over stdio. File access is confined to --root, and network
access is off unless you allow it here.
options:
-h, --help show this help message and exit
--root ROOT workspace root: the only directory models may be read
from or written to (default: the current directory)
--allow-network permit sql / json_url data sources (refused by
default: opening a model must not make outbound
connections on its own)
--allow-private-network
also permit private/intranet addresses (refused even
with --allow-network)
--allow-host HOST restrict network sources to this hostname; may repeat
--connections FILE the connections a live source (rest, mqtt, opcua) may
name: a JSON file of yours, never the model's; without
it every live source is refused
--tools {all,compact,build,run,study,twin}
all: every tool (default); compact: only what
building, running and saving a model needs
(get_model_format, write_model, run_model, ...);
build, run, study, twin: the tools of that situation.
A client then pays for fewer tool descriptions
--room also serve the live control room of the studies on
127.0.0.1 (a random port and token); every study
answer then carries its address
--tool-picker {gte,haiku}
re-rank find_tool's answers (off by default). gte: a
small local model, needs nagasim[picker], and the
first use downloads the weights from Hugging Face.
haiku: hosted Claude Haiku, needs nagasim[assistant]
and ANTHROPIC_API_KEY; each find_tool query and the
tool catalogue go to Anthropic. find_tool then says to
try its first three in order
--tool-picker-backup PATH
with --tool-picker haiku: a local sentence-
transformers CrossEncoder folder (or Hugging Face id)
that ranks every tool when Haiku cannot answer (no
network, timeout, API error, or no key at startup)
--twin DIR the result directory of a twin you started (naga twin
run --out DIR): three read-only tools then answer from
it. No tool can start a twin or choose this directory
naga assist¶
usage: naga assist [-h] [--provider {anthropic,openai}] [--base-url BASE_URL]
[--model-id MODEL_ID]
[--reasoning {none,low,medium,high,omit}]
[--max-tool-rounds MAX_TOOL_ROUNDS]
model prompt
Run one assistant turn against a model file, with a local model or your own
API key.
positional arguments:
model path to the model .json file, or a bundled model's
name (naga examples)
prompt what to ask the assistant to do
options:
-h, --help show this help message and exit
--provider {anthropic,openai}
anthropic, or openai for any OpenAI-compatible server
(Ollama, LM Studio); default: anthropic when a key is
set (ANTHROPIC_API_KEY, or stored for your Windows
user) and no --base-url is given, else a local Ollama
--base-url BASE_URL default http://localhost:11434/v1
--model-id MODEL_ID the provider's model name (for Ollama, one from
`ollama list`)
--reasoning {none,low,medium,high,omit}
--max-tool-rounds MAX_TOOL_ROUNDS
naga skill¶
usage: naga skill [-h] [--copy DIR] [--force]
Show where the simulation-study guide is, or copy it so an assistant that
reads Agent Skills (a skills folder) can use it.
options:
-h, --help show this help message and exit
--copy DIR copy the folder to DIR/simulation-study (writes only there)
--force replace DIR/simulation-study if it exists
naga study¶
usage: naga study [-h] {rerun,numbers,deck,package,confirm} ...
Checks on a study folder, its slides as a PDF, and its hand-over package.
positional arguments:
{rerun,numbers,deck,package,confirm}
rerun re-run every version and compare the stored KPIs; with
--steps, then run the reproduce.json steps and compare
their outputs
numbers check every tagged number of the write-ups against its
source file
deck the slides as a PDF, printed by this machine's Chrome
or Edge
package write the hand-over package: the client page, the
modeller's control room, the workbook, the model and
its metadata
confirm record your own check that the model matches reality,
on the last version (only you can: no assistant tool
records it)
options:
-h, --help show this help message and exit
naga room¶
usage: naga room [-h] [--root ROOT] [--no-browser] folder
The live control room of a study in your browser, on this machine only
(127.0.0.1).
positional arguments:
folder the study folder (it holds study.json)
options:
-h, --help show this help message and exit
--root ROOT workspace root the study tools are confined to (default: the
folder's parent)
--no-browser print the address, do not open a browser