Skip to main content

Lag: Lamin's Agent CLI.

Project description

Lag: Lamin's Agent CLI

lag can retrieve or generate scripts (.py), notebooks (.ipynb), and skills & plans (.md) and then perform work with these tools.

Setup

pip install lag-cli

Create ~/llms.env with:

GEMINI_API_KEY=your_api_key_here

Make sure LaminDB is initialized and connected.

Quick Start

Run in default mode:

lag --prompt "Write a text file with 'Hello agent!' in it, please"

Modes

Default mode

  • If a plan exists (plan.md or latest plan_*.md, or --plan-file), lag executes the referenced runnable tools.
  • Otherwise, lag generates runnable tool file(s), shows their contents, and asks for confirmation before execution.
  • In default mode, generated code includes ln.track() / ln.finish() unless --no-track is used.

Planning mode (--plan)

Generate tools without executing them:

lag --plan --prompt "Write a plan for this analysis"

Generated tool files are saved via lamin save in plan mode.

Common Flags

  • --project <name> sets LAMIN_CURRENT_PROJECT.
  • --model <model-name> selects the Gemini model.
  • --output-file <path> sets output filename for generated content.
  • --output-format [md|py|ipynb] applies in --plan mode.
  • --plan-file <path> executes a specific plan in default mode.
  • --no-track disables ln.track() / ln.finish() injection.
  • --yes skips confirmation for executing newly generated tools.

Run Context Propagation

When lag executes scripts/notebooks, it propagates:

  • LAMIN_INITIATED_BY_RUN_UID (master run uid)
  • LAMIN_CURRENT_PROJECT (if --project is provided)

lag itself does not directly create output artifacts; produced outputs are tracked by executed tool code.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

lag_cli-0.1.0.tar.gz (23.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

lag_cli-0.1.0-py3-none-any.whl (19.1 kB view details)

Uploaded Python 3

File details

Details for the file lag_cli-0.1.0.tar.gz.

File metadata

  • Download URL: lag_cli-0.1.0.tar.gz
  • Upload date:
  • Size: 23.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.32.5

File hashes

Hashes for lag_cli-0.1.0.tar.gz
Algorithm Hash digest
SHA256 1174b312016c6d91ed221f722d57605f5ee12ff317254dd3c48a92e7d8cf12f7
MD5 1d26ef67cc01e2ddc25e36a0407b328a
BLAKE2b-256 068b484d2c5ae1904d468c9cb23f8b3f3325ead8d90bd04053fe5bc7f60eee2e

See more details on using hashes here.

File details

Details for the file lag_cli-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: lag_cli-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 19.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.32.5

File hashes

Hashes for lag_cli-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 89ac3d7e9c3b96af29a60c0923b81d7f336ceb501a6975aaf7b6ddbdc397f7a2
MD5 2184773f4107229069f759390cedac79
BLAKE2b-256 a128770f9a4d922cfd065cb1ed10c304d381127d01caa8d551989050b161ee48

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page