/pure-dev:pure-backend-startfrom Pure Dev
Starts the standalone legend-engine backend (engine Server + H2 + local metadata server on fixed ports 9095/9092) so Pure LSP queries run through real plan-generation instead of the interpreted engine.
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 Pure LSP go()/pure-lsp-go runs the interpreted engine, which (a) can't reproduce
compiled-mode behaviour (plan generation + generated Specifics.prepare Java, e.g. relational
graph-fetch temp-table nodes) and (b) has its own gaps (e.g. interpreted RFPM graph-fetch is
unimplemented). meta::pure::router::execute(...) wraps the query in the mayExecuteLegendTest
native which — if legend.test.server.host/port/clientVersion/serverVersion System
properties are set on the JVM — does real plan-generation and POSTs to a running backend
Server instead. This skill boots that backend on fixed ports; pure-lsp-launch-engine then points
the LSP JVM at it via --jvm-arg=-D....
Result: go() through the so-configured LSP runs the same plan-gen + execute path as
Test_*_UsingPureClientTestSuite, verified end-to-end (returns real query results and shows
generated SQL in the go() output trace), without a 15-30 min mvn test.
org.finos.legend.engine.ide.EngineServerForTest (in the legend-engine-pure-ide-light-http-server
module, alongside PureIDELight). It starts H2 (fixed 9092), a local test metadata server
(dynamic), and the full org.finos.legend.engine.server.Server on a FIXED port (9095), then
blocks forever.
All of check-if-already-up / compile-once / generate-classpath-once / launch-in-background /
poll-for-ready is implemented deterministically in bin/pure-backend-start:
pure-backend-start [--port N] [--h2-port N] [--force-classpath]
Defaults: --port 9095, --h2-port 9092. If something's already listening on --port, it reports
that and exits 0 without relaunching (it's a full engine JVM — never stack a second one).
On success it prints one JSON line to stdout, e.g. {"port": 9095, "h2Port": 9092, "state": "ready"},
and exits 0. Exit codes:
1 — the launcher module didn't compile, or its runtime classpath is missing/empty (pass
--force-classpath to regenerate the cached classpath after a dependency change)3 — launched but never reached READY within the timeout (~2 minutes) — check
/tmp/engine-server.logThis skill only brings up the backend — it does not start the Pure LSP. pure-lsp-launch-engine
calls pure-backend-start automatically by default and wires the resulting
-Dlegend.test.server.* jvm-args into the LSP launch; pass --no-backend to skip this and launch
interpreted-only instead. For a custom/manual launch, use pure-lsp-server's --jvm-arg passthrough
with the flags pure-backend-start prints (see references/lsp-devloop-internals.md).
createTablesAndFillDb()
first, meta::pure::router::execute not meta::pure::mapping::execute, and one go() per
session (reuse welcome.pure). All three are the database-setup and welcome.pure conventions
in references/lsp-devloop-usage-rules.md.legendExecute in core/pure/protocol/vX_X_X/invocations/execution.pure is wired
(see pure-lsp-go's "Execution routing" section): let planGenerated = if(true, {|local executionPlan(...)}, {|remote generatePlan(...)}) keeps plan-gen local, so it uses the Pure graph
in the LSP session (reflecting files you've pure-lsp checked live, on top of the jar baseline),
and only executePlan($host,$port) hits this server. Plan execution is almost all Java, so it
ignores your Pure edits. Net loop with NO mvn install / NO server restart: edit .pure →
pure-lsp check it into the session → go() → live local plan-gen + server execute. (Rebuild/
restart this server only for Java execution-layer changes, or if you flip plan-gen to run
remotely by editing that if(true,...).)vX_X_X is the dev placeholder and is accepted (see PureClientVersions)./tmp/engine-server.log. Stop it with pkill -f EngineServerForTest (match the java
process precisely; a bare pgrep can match your own shell command).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-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.Other plugins' skills for the same job