cli-integrations
Operate SMARTS through the scl Click CLI, build and run scenarios safely, diagnose configuration and optional integrations, and manage SUMO/TraCI, dataset, benchmark, zoo, and Envision boundaries.
- License 许可
- MIT
- 最近更新
- 2026-09-03
- Stars
- ★ 351
- Forks
- 27
01 前言 Front Matter
- name
- cli-integrations
- license
- MIT
- metadata
- { "disco-role": "operating" }
- description
- Operate SMARTS through the scl Click CLI, build and run scenarios safely, diagnose configuration and optional integrations, and manage SUMO/TraCI, dataset, benchmark, zoo, and Envision boundaries.
- disable-model-invocation
- true
02 资源文件 7
- 参考文档references/cli-reference.md5.7 KB
- 参考文档references/configuration-and-diagnostics.md6.6 KB
- 参考文档references/optional-integrations.md4.6 KB
- 参考文档references/sumo-traci.md4.4 KB
- 参考文档references/troubleshooting.md6.3 KB
- 脚本scripts/check_optional_integrations.py3.5 KB
- 脚本scripts/check_scl_help.py3.5 KB
03 SKILL.md 正文
SMARTS CLI and integrations
Use this route when the task is about the installed scl command, scenario
artifact lifecycle, integration prerequisites, diagnostics, benchmarks, zoo
workers, or external map/traffic/data systems. Start with read-only help and
package probes; do not install packages or start services as a diagnostic side
effect.
Operating contract
- Run commands from the user's project directory and pass paths that exist from that directory. Click validates most path arguments before SMARTS runs.
- Treat scenario
build,build-all,clean, Waymoexport, zoobuild/install, diagnostics, benchmarks, and server commands as potentially mutating or long-running. Inspect help and use a disposable copy/output first. - Use references/cli-reference.md for the verified command tree and exact options.
- Use references/configuration-and-diagnostics.md for install extras, configuration precedence, diagnostic behavior, and safe benchmark/container practice.
- Use references/optional-integrations.md to distinguish importable SMARTS core from external data, packages, and system services.
- For SUMO and TraCI port ownership, local versus central mode, and recovery, read references/sumo-traci.md.
- Apply the cross-surface recovery table in references/troubleshooting.md.
Verified command entry point
The package exposes scl as its console entry point. The verified top-level
commands are benchmark, diagnostic, envision, run, scenario, waymo,
and zoo. Confirm the installed version rather than assuming this tree is
current:
scl --help
scl scenario --help
scl run --help
The safe bundled checker repeats those bounded help calls without a shell: check_scl_help.py. Optional dependency and executable availability can be reported with check_optional_integrations.py.
Choose the smallest workflow
- Scenario preparation: use
scl scenario build <scenario>orbuild-all <scenarios>. Use--seedfor repeatable generation. Add--cleanonly when intentionally replacing generated artifacts. Detailed scenario DSL, map specifications, missions, traffic, and source-vs-build layout belong to the scenario-studio route. - Experiment execution: use
scl run <script> [SCRIPT_ARGS...]. Add--envision --envision_port PORTonly when a local Envision server is wanted. The child script receives the remaining arguments; it must arrange its own environment/scenario semantics. See the run safety notes in the CLI reference. - Replay/visualization:
scl scenario replaysends*.jsonlrecords to an Envision websocket endpoint. Envision data formatting, replay records, sensors, and rendering belong to the sensors-visualization route. - Health/performance:
scl diagnostic run <scenarios...>is a bounded diagnostic workflow only when its diagnostic scenarios and optional dependencies are present. It is not a substitute for a benchmark or a short import check. - Benchmarks/zoo: list before running. Treat
--auto-install, custom benchmark listings, zoo installation, policy builds, manager startup, and remote workers as explicit trust and mutation boundaries. RL policy implementation and AgentSpec/locator details belong to the rl-agent-zoo route. - Dataset/map integrations: use the Waymo subcommands only with a Scenario-proto TFRecord and a deliberate export directory. Argoverse, OpenDRIVE, ROS, and SUMO-backed maps are optional integration paths, not proof that the base CLI is broken when absent.
Configuration and ports
SMARTS configuration resolves SMARTS_<SECTION>_<OPTION> environment
variables before an engine INI file and then built-in defaults. The default
SUMO central host/port are localhost:8619; the default TraCI serve mode is
local. Envision CLI defaults to port 8081, zoo manager to 7432, and
Visdom (if enabled by another workflow) to 8097. Check for listeners before
starting a service and choose an unused per-run port; do not kill an unrelated
process merely to free a port.
A core CPU installation is sufficient for CLI help, non-rendered scenario operations, and normal package imports. The prepared inspection environment verified SMARTS 2.0.1, Click help, core imports, Envision/Panda3D imports, and OpenDRIVE imports. It did not include external SUMO, ROS, Waymo, Argoverse, Ray/RLlib, Torch, or TensorFlow stacks or downloaded datasets. Missing these must be reported as optional/unverified, not silently worked around.
Boundaries and escalation
- Route scenario authoring and generated-layout errors to scenario-studio; this route only explains how to invoke its CLI boundary and protect generated files.
- Route Envision protocol/data/replay API and sensor configuration to sensors-visualization.
- Route policy code, locators, social agents, RLlib/Ray, and training to rl-agent-zoo.
- Do not auto-install, launch a long-lived SUMO/TraCI/Envision/ROS/zoo service, run a benchmark, or execute a stress/memory/long-determinism suite while merely diagnosing an installation. Report the missing prerequisite and the smallest user-controlled next step instead.
04 同仓库更多 Skills
passnet-triton-opt
Make a single PassNet Triton kernel fast AND numerically faithful: performance model (when a replacement can win at all), block/grid/warp tuning, autotune policy, launch overhead, and per-op numeric recipes to pass the dtype baseline tolerances. Use when a pass matches and is correct but speedup below expected, or when correctness fails by small numeric margins.
passnet-solve
END-TO-END playbook for solving one PassNet sample: analyze the computation graphs, decide the optimization strategy (what to fuse, what to replace, what to leave alone), drive the iteration loop, and maximize the sample score. This is the ENTRY skill — invoke it first for any PassNet optimization task; it tells you when to use passnet-pattern-fusion, passnet-triton-opt and passnet-feedback.
passnet-skill
PassNet GPU kernel optimization via compiler passes. Design and implement Triton-based optimization passes, create pass files under ./pass_dir/, self-evaluate with pass_evaluator, and iterate to maximize GPU speedup.
passnet-pattern-fusion
Author PassNet pass files: write patterns that actually MATCH the FX graph, pick fusion regions (which ops to absorb into one Triton kernel), and structure multi-pass submissions with the mandatory shared-dispatch architecture. Use when creating or fixing pattern()/replacement_args()/replacement_func() files, when a pass "failed to match", or when deciding how to fuse multiple kernels/ops.
passnet-orchestrate
Round/batch planning and decision support for PassNet graph optimization. Use for multi-sample triage, worker allocation, eval-budget policy, and post-eval keep/revert decisions. For solving one concrete sample end to end, use passnet-solve as the entry skill; consult this skill only when you need broader planning or a specific decision gate.
passnet-feedback
Fast, deterministic feedback for PassNet work: pre-flight pattern/match verification WITHOUT burning a GPU evaluation, per-node bottleneck analysis of a sample's graphs, and eval-log parsing into per-variant status + estimated score + failure classification. Use BEFORE every GPU evaluation (check_pattern), at the START of a sample (analyze_graph), and AFTER every evaluation (parse_eval_log).