⚠️ 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 laminagent
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.mdor latesttool_*.md, or--tool-file),lagexecutes the referenced runnable tools. - Otherwise,
lagexecutes existing runnable tools referenced in--prompt(explicit.pykey 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>setsLAMIN_CURRENT_PROJECT.--model <model-name>selects the Gemini model (--toolmode).--output-file <path>sets output filename for generated content (--toolmode).--tool-file <path>executes a specific tool in default mode.--no-trackdisablesln.track()/ln.finish()injection in generated scripts (--toolmode).
Run Context Propagation
When lag executes scripts, 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.
Metadata
Release files for laminagent 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| laminagent-0.1.0.tar.gz | 27.5 kB | Without provenance | Details for laminagent-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| laminagent-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for laminagent-0.1.0-py3-none-any.whl |
Total release size: 48.3 kB
Release files / laminagent-0.1.0.tar.gz
| Download URL | laminagent-0.1.0.tar.gz |
|---|---|
| Size | 27.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
29f7db8476f8f8f7678cfdfc397fa6e7f6f1a0a4c8c163649064b615bbbdd90c
|
|
BLAKE2b-256 checksum How to use checksums |
090c7b830ab9797f890f5afb67a082ac18287a3d41f4e8572716e0ed43a0de97
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
python-requests/2.34.2
|
Release files / laminagent-0.1.0-py3-none-any.whl
| Download URL | laminagent-0.1.0-py3-none-any.whl |
|---|---|
| Size | 20.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
0241071c3ab32cf5f430e9076c24a2e404c4ff01597d89afcb526110b6731399
|
|
BLAKE2b-256 checksum How to use checksums |
7b288b7f335441c5905a40a0853c190441d0f822803bb4249eae07aee60e55d3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
python-requests/2.34.2
|
Security for laminagent 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.