/evsys-sdk:using-the-sdkfrom evsys-sdk
Reads and writes experiment data (goals, experiments, runs, metrics, checkpoints, evals) via the evsys-sdk SDK's EvsysStore and Workspace objects.
Ships in evsys-sdk. 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.
Two objects. EvsysStore routes every call through the backend gateway
with your Bearer API key — no Supabase key in the SDK; the backend checks
project membership and does the DB I/O. Workspace caches remote datasets to
local JSONL for fast training.
export EVSYS_API_URL="https://<backend>" # backend base URL
export EVSYS_API_KEY="sk_..." # dashboard → Settings → API keys
export EVSYS_PROJECT_ID="<uuid>" # default project for project-scoped calls
from evsys_sdk import EvsysStore, Workspace
store = EvsysStore() # reads the env above
project → goals[] (versioned) + datasets[]/benchmarks[] → experiments → groups → runs → checkpoints/evals/metrics
store.current_goal() # project's active goal (read-only!)
store.list_goals() # all goal versions, oldest→newest
store.experiment_summaries() # [{id,name,hypothesis,conclusion,is_valid}] — broad scan
store.experiment_detail(exp_id) # {experiment, groups:[{...,runs:[{run_config,evals,checkpoints}]}]}
store.experiment_detail(exp_id, include_metrics=True) # + per-run train-log series
store.get_metrics(run_id, name="val_loss", split="val") # a single metric series
store.list_datasets(); store.list_benchmarks()
run_config is the run's hyperparameters (incl. the model). evals carry the
benchmark result metrics (pass_at_1, …). Skip is_valid=False experiments as evidence.
exp = store.create_experiment(experiment_name="small_vs_large_model",
hypothesis="the smaller model matches the larger on this benchmark",
project_goal_id=store.current_goal()["id"])
g4 = store.create_group(exp["id"], "Qwen 4B", description="v2 dataset, train Qwen 4B")
for seed in (1, 2):
run = store.create_run(experiment_id=exp["id"], group_id=g4["id"], seed=seed,
recipe_kind="sft",
run_config={"model": "Qwen/Qwen3-4B", "lr": 1e-5}) # model = hyperparam
# ... train ... then:
store.log_metrics(run_id=run["id"], step=10, metrics={"loss": 1.2})
store.log_metrics(run_id=run["id"], step=10, split="val", metrics={"val_loss": 1.4})
ckpt = store.add_checkpoint(run_id=run["id"], uri="tinker://final", label="final",
step=100, is_final=True)
store.create_eval(run_id=run["id"], benchmark_id=bm["id"], checkpoint_id=ckpt["id"],
metrics={"pass_at_1": 0.83})
store.update_run(run["id"], status="completed")
store.set_conclusion(exp["id"], "4B matched 9B at half the cost — promote.")
# store.invalidate_experiment(exp_id, reason="...") # if a bug is found later
Remote-first: pull a dataset to local JSONL once, then train from the file.
ws = Workspace(store) # root: $EVSYS_WORKSPACE or ./.evsys (gitignored)
mat = ws.pull_dataset(dataset_id) # cache-hit if already local; else fetch+write
# mat.path → JSONL of RAW rows (one per line)
# mat.format, mat.transform → how to render raw → typed (source_kind=jsonl + transform)
bench = ws.pull_benchmark(benchmark_id)
script = ws.script_path(exp["id"]); out = ws.outputs_dir(run["id"])
Rows are stored raw (+ the dataset's recorded transform); render typed rows
on read. pull_dataset(..., force=True) re-pulls; otherwise a valid local copy is
reused (manifest-guarded).
store.set_goal(...) unless the user explicitly asks to change the goal.run_config, not an experiment field.hypothesis and conclusion are the experiment's commit message — write them well.@register_verifier / @register_metric);
benchmark rows reference a verifier by verifier_name, not inline code.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub ev-sys/evsys-sdk --plugin evsys-sdk4 skills in this plugin
/autoresearch-launchDecide which training experiment to run next for a project and launch it. Use when the user floats a training idea ("is a smaller model as good as a larger one on this benchmark?", "should we try more SFT data?", "what should we run next?") or asks to design/launch/continue experiments. Reads the project goal + past experiments via the evsys-sdk SDK, reasons over the evidence, then crafts and runs the next experiment through the project's own train/benchmark skills.
/project-reportsPush and browse project HTML reports on the EvolvingSystems dashboard via the evsys CLI / EvsysStore. Use when an agent (or researcher) needs to write or upload a static HTML report, name it, inspect the project's report filesystem tree, pick a path, or share a viewer URL with a logged-in project member. Reports are written in third person; names are a readable date followed by the title.
/set-up-research-projectScaffold or migrate a repo to the evsys-sdk research-project layout (data/, src/, experiments/, .evsys/). Use when starting a new project that will use the SDK, or when the user has an existing ad-hoc evsys-sdk project (loose `training/` scripts, scattered data files) they want to bring into the standard shape.Other plugins' skills for the same job