Skip to main content

Lag: Lamin's Agent CLI.

Project description

⚠️ This repo is in development right now. ⚠️

Lag CLI: Lamin Agent CLI

lag can execute existing runnable tools and author/update runnable scripts (.py).

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"

You can explore runnable example scenarios in tests/examples.

Modes

Default mode (execute only)

  • If a tool exists (tool.md or latest tool_*.md, or --tool-file), lag executes the referenced runnable tools.
  • Otherwise, lag executes existing runnable tools referenced in --prompt (explicit .py key or path).
  • Default mode does not create or update tools. If a referenced tool is missing, it fails with a clear error.

Planning mode (--tool)

Generate or update runnable tools (without executing them):

lag --tool --prompt "Update test-lag/create_fasta.py with another protein"

Generated/updated tool files are saved via lamin save in tool mode.

Common Flags

  • --project <name> sets LAMIN_CURRENT_PROJECT.
  • --model <model-name> selects the Gemini model (--tool mode).
  • --output-file <path> sets output filename for generated content (--tool mode).
  • --tool-file <path> executes a specific tool in default mode.
  • --no-track disables ln.track() / ln.finish() injection in generated scripts (--tool mode).

Run Context Propagation

When lag executes scripts, 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

laminai-0.1.0.tar.gz (27.5 kB view details)

Uploaded Source

Built Distribution

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

laminai-0.1.0-py3-none-any.whl (20.6 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for laminai-0.1.0.tar.gz
Algorithm Hash digest
SHA256 e0844788acb3a825147ca045a0eed414f129cc08133c7089e735a6289919c007
MD5 c767e522350aa7d7a450877da085ea8a
BLAKE2b-256 adc5daf940b8b72bf2c5b569c9f059dbab45c8f1815f3605120bc881d56bce91

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for laminai-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2bc4d5a31e4ea15473445bea821f049631c2795cf98c7f2248428bfd08de6d83
MD5 3d5f4597c99a88b645b274898fdfa338
BLAKE2b-256 54fb10ef511fef7057bc980e1e5e95f47535b575990a4d9ba818a7e9d329fe20

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