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.mdor latestplan_*.md, or--plan-file),lagexecutes the referenced runnable tools. - Otherwise,
laggenerates 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-trackis 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>setsLAMIN_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--planmode.--plan-file <path>executes a specific plan in default mode.--no-trackdisablesln.track()/ln.finish()injection.--yesskips 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--projectis provided)
lag itself does not directly create output artifacts; produced outputs are tracked by executed tool code.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1174b312016c6d91ed221f722d57605f5ee12ff317254dd3c48a92e7d8cf12f7
|
|
| MD5 |
1d26ef67cc01e2ddc25e36a0407b328a
|
|
| BLAKE2b-256 |
068b484d2c5ae1904d468c9cb23f8b3f3325ead8d90bd04053fe5bc7f60eee2e
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
89ac3d7e9c3b96af29a60c0923b81d7f336ceb501a6975aaf7b6ddbdc397f7a2
|
|
| MD5 |
2184773f4107229069f759390cedac79
|
|
| BLAKE2b-256 |
a128770f9a4d922cfd065cb1ed10c304d381127d01caa8d551989050b161ee48
|