Skip to content

CLI: --cloud/--gpu/--ttl, instances.json, destroy NAME, status, text-to-sql-h100 - #56

Merged
kchandan merged 1 commit into
mainfrom
cli-first-class-flags
Nov 21, 2026
Merged

kchandan merged 1 commit into
mainfrom
cli-first-class-flags

Conversation

@kchandan

Copy link
Copy Markdown
Member

What

  1. launch takes --cloud, --gpu, --ttl; they win over --param. gpu becomes the pack's instance_type and ttl its hours (rounded up), because packs reject unknown parameters. A pack with no such setting is refused by name.
  2. ~/.labagent/instances.json (0600) records each real launch. labagent destroy NAME recalls pack and params. destroy <pack> --name n merges saved params; explicit flags win. A successful destroy removes the entry.
  3. labagent status prints NAME, PACK, CLOUD, GPU, ELAPSED, TTL REMAINING (--json / --output - for JSON). text-to-sql-h100 is an alias of gpu-notebooks-container, listed by labagent packs.

run, dataset, bootstrap-path, commands, rag are unchanged. No new dependencies.

Notes

  • --ttl only deletes the machine on Shadeform. On RunPod and Lambda it is a planned end: run destroy. status can show "expired" while a machine still bills.
  • The record is keyed by name, so a second pack launched under the same name replaces the entry. A corrupt or unwritable record only warns.
  • The alias presets no Text-to-SQL parameters: the pack defines none.

Tests

20 new tests in tests/test_cli_instances.py. Full suite: 996 passed, 1 failed (test_gpu_shared_key ... no_key_list, also fails on clean main because of a local Nebius login).

Created by LabAgent

…s, text-to-sql-h100

- launch: --cloud, --gpu, --ttl win over --param. gpu maps to the pack's instance_type
  and ttl to hours (rounded up), since packs reject unknown parameters.
- ~/.labagent/instances.json (0600) records each launch; destroy NAME recalls pack and
  params, and the old destroy <pack> --name syntax merges them (explicit flags win).
- labagent status: table or JSON of recorded instances.
- text-to-sql-h100 resolves to gpu-notebooks-container and is listed by `labagent packs`.

Created by LabAgent
https://becloudready.com/

Co-Authored-By: LabAgent <info@becloudready.com>
@kchandan
kchandan merged commit 4f2a6cb into main Nov 21, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant