/pure-dev:pure-lsp-launch-enginefrom Pure Dev
Launches the Pure LSP bridge scoped to legend-engine with defaults, starting the backend engine server for real plan-generation. Use when you want to start/boot the Pure LSP for legend-engine with nothing unusual.
Ships in Pure Dev. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
The real entrypoint for the common case: legend-engine-scoped LSP, backend engine Server on by
default, no per-run decisions. A thin wrapper over pure-lsp-launch legend-engine; for a scope the
project registry doesn't describe, build the pure-lsp-server command by hand per
references/lsp-devloop-internals.md.
pure-lsp-launch-engine [--port N] [--socket-port N] [--java PATH]
[--backend-server-host HOST] [--backend-server-port N] [--no-backend]
[--source legend-pure] [--full-source]
[extra args passed through to pure-lsp-server, e.g. --jvm-arg=-D...]
Defaults: --port 8991, --socket-port 9100 (this shop's standing convention for LegendLspServer,
shared with pure-lsp-connect/pure-lsp-restart's default), --java = plain java on PATH (JDK 17).
$LEGEND_ENGINE_ROOT defaults to the checkout containing the current directory.
Only legend-engine is source-rooted; legend-pure comes from the classpath jar and needs no checkout
or $LEGEND_PURE_ROOT. Add --source legend-pure to edit platform .pure live too (needs
$LEGEND_PURE_ROOT), or --full-source for the whole chain.
Backend is on by default. If nothing's listening on 127.0.0.1:9095 the script runs
pure-backend-start itself and wires the resulting -Dlegend.test.server.* jvm-args in, so
execute()/go() take the real plan-gen path. --no-backend gives a plain interpreted session. A
failed backend start aborts the launch rather than silently degrading to interpreted — so if you
want interpreted, ask for it explicitly.
Whenever the backend is wired in, ExecPlan/PlanLocal/FullInteractiveExec also default to
true — the same "3 trues" legendLspServerConfig.json sets for the engine-side config-driven
launcher of this same daemon. Plan-gen then runs locally against the live graph rather than the
backend's own jars, so a Pure-only edit is reflected immediately with no jar rebuild. Override any
of them with a trailing --jvm-arg=-Dpure.options.X=... — it lands after these defaults and wins.
Since the daemon it starts is on a fixed socket port, re-running this after a daemon on that port is
already up reconnects to the existing warm session (via pure-lsp-server's own reconnect logic —
the same behavior pure-lsp-connect relies on) rather than double-booting a second JVM.
If a bridge is already listening on the HTTP port, this script refuses to launch and exits 0
after printing that bridge's /health (repo-roots, jvm-args, socket port) so you can see whether
it is the session you wanted. It does not try to start a second one: the bridge binds its HTTP port
before doing anything else, so a second launch dies instantly on Address already in use — and
this script would then poll that same port, get the EXISTING bridge's ready, and report a
successful launch while the configuration you just asked for was silently discarded. To run a
second independent session pass a free --port/--socket-port; to rebuild this one use
pure-lsp-restart --socket-port 9100.
Unlike a bare pure-lsp-server call this does not block your terminal. It launches the bridge
fully detached (setsid nohup ... & disown, so a process-group teardown can't reap it), polls
pure-lsp status until ready/failed, then pushes and compiles legend-engine's own welcome.pure
($LEGEND_ENGINE_ROOT/welcome.pure) into the session overlay via pure-lsp check — not go, so
it's compiled and go()-ready but never executed — before printing a final summary and exiting. You
get your shell prompt (or tool call) back immediately with the bridge already running and warmed, no
separate verification call needed.
If welcome.pure doesn't exist yet, a minimal go():Any[*] wrapper is created for you — but only
when legend-engine's checkout actually .gitignores it (true today), so this never leaves an
untracked file a later git add -A could sweep into a commit. If the checkout stopped ignoring it,
the launcher skips creation and tells you to add the ignore rule yourself.
Exit codes: 0 ready and warmed (or welcome.pure missing/failed to compile — that's a non-fatal
warning printed to stderr, not a failure, since the LSP itself is still usable), 1 bad args or
missing server jar/dependency dir, 3 the bridge never reached ready (or reported failed)
within the timeout — see the two log paths it prints.
Two separate logs, one writer each: /tmp/pure_lsp_bridge_8991.log (the Python bridge — argument
errors, classpath resolution, bind failures) and /tmp/pure_lsp_server_8991.log (the LSP daemon
JVM's own output). They used to be one file written by both, which meant a relaunch truncated the
log out from under the still-running daemon.
The shared dev-loop conventions (talking to the bridge, welcome.pure, database setup) are in
references/lsp-devloop-usage-rules.md.
Hand the resolved --port off to pure-lsp-check/pure-lsp-go/pure-lsp status for the actual
compile/execute work — go() is already warmed and ready to run against welcome.pure immediately.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub finos/legend-engine --plugin pure-dev15 skills in this plugin
/pure-backend-startStarts (or confirms) the standalone legend-engine backend - engine Server + H2 + local metadata server on fixed ports 9095/9092 - so a Pure LSP started with -Dlegend.test.* routes execute()/go() through real plan-generation instead of the interpreted engine. Starts only the backend, not the LSP. Use when the user wants to run Pure queries 'through the real engine', 'through plan-gen' or 'via the backend server', reproduce compiled-mode behaviour the interpreted engine cannot, or mentions legend.test.server, EngineServerForTest or LegendTest./pure-chain-updateProcedure for git-syncing and rebuilding a local legend-pure + legend-engine checkout, in dependency order, with pinned dependency versions resynced. Run by hand, one project at a time, fixing problems as they surface. Use for 'update my project chain', 'pull latest and rebuild <project>', 'sync legend-pure/legend-engine', 'refresh my local checkouts', or 'propagate my engine snapshot downstream'./pure-code-styleReformats a .pure file (or a block of Pure code) to a consistent house style: 2-space indentation with no column-aligned hanging indents, tight colons in type annotations, spaced pipes on if/match/lambda branches, one-parameter-per-line for long function signatures, and no stray blank lines or trailing whitespace. Whitespace-only - never changes tokens, logic, or semantics. Use when asked to 'format this Pure file', 'clean up the formatting', 'make this more readable', 'fix indentation', or 'make the style consistent' on .pure source./pure-lsp-checkCompiles/checks a single .pure file against the already-running Legend Pure LSP bridge and reports diagnostics (errors/warnings) in under a second, as a fast alternative to a full `mvn test`/`mvn compile` cycle while iterating on Pure source in legend-pure. Use whenever the user is editing .pure files and wants to know if they compile, asks 'does this Pure file compile', 'check this .pure file', 'validate this Pure code', or wants fast type/syntax feedback without running the full Maven build./pure-lsp-classpathComputes and caches the engine-scale Pure classpath (via Maven dependency:build-classpath) for any pure-bearing project registered in config/projects.json - legend-pure, legend-engine, or a project you've layered on top via PURE_DEV_EXTRA_PROJECTS_JSON - and resolves that project's dependency-ordered --repo-root set. Use before the first engine-scale LSP start in a repo, when the cached classpath is stale after pulling or rebuilding, when engine-scale boot fails on missing classpath entries, or when you need repo-roots for a project with dependencies. Provides pure-lsp-classpath and pure-lsp-roots./pure-lsp-connectAttaches the pure-lsp HTTP bridge to an LSP daemon that is ALREADY running (e.g. started from IntelliJ, or left over from a prior session) - never spawns a new daemon JVM. Defaults to socket port 9100. Use for 'connect to the existing/already-running LSP', 'attach the bridge to the LSP on port X', or 'reconnect to the LSP' - as opposed to pure-lsp-launch-engine, which boots a new session. Also recovers a bridge whose connection has gone stale (health OK, requests fail with a broken pipe).Other plugins' skills for the same job