LeanLane (Python)
Stop AI agents from over-building — decision ladder, diff scoreboard, prune review, and cloud client. Local helpers need no API key; cloud uses Talocode.
Part of Talocode. Hosted at /v1/leanlane/*.
| Package | pip install talocode-leanlane |
| Import | from leanlane import LeanLaneClient, decide, score_diff |
| npm | @talocode/leanlane |
| Cloud | https://api.talocode.site |
| Auth | TALOCODE_API_KEY (cloud only) |
| Repo | github.com/talocode/leanlane |
| License | MIT |
Why LeanLane?
Agents over-generate code: new packages, wrappers, and speculative frameworks. LeanLane forces a decide → score → review loop so you ship smaller, safer diffs.
Install
pip install -U talocode-leanlane
Quickstart
from leanlane import decide, score_diff, review_code, get_ruleset, LeanLaneClient
import os
print(decide(task="add a date picker to the form"))
print(score_diff(diff="""--- a/x.ts
+++ b/x.ts
@@
+import moment from 'moment'
+export class DatePickerFactory {}
"""))
print(review_code(text="abstract class BaseThing {} // for future use"))
print(get_ruleset(mode="full")[:200])
client = LeanLaneClient(api_key=os.environ.get("TALOCODE_API_KEY"))
# print(client.health()) # when cloud route is deployed
Auth / env
export TALOCODE_API_KEY=...
export TALOCODE_BASE_URL=https://api.talocode.site # optional
API surface
Local
| Function | Purpose |
|---|---|
decide(...) |
Ladder recommendation before coding |
score_diff(diff=...) |
Over-build score A–F on unified diffs |
review_code(text=...) |
Findings + delete-list |
get_ruleset(mode=...) |
Always-on agent rules markdown |
Cloud client (LeanLaneClient)
| Method | Route | Credits |
|---|---|---|
health() |
GET /v1/leanlane/health |
0 |
pricing() |
GET /v1/leanlane/pricing |
0 |
capabilities() |
GET /v1/leanlane/capabilities |
0 |
decide(...) |
POST /v1/leanlane/decide |
2 |
score(...) |
POST /v1/leanlane/score |
5 |
review(...) |
POST /v1/leanlane/review |
5 |
rules(...) |
POST /v1/leanlane/rules |
1 |
skill(...) |
GET /v1/leanlane/skill |
1 |
CLI
leanlane --help
leanlane decide --task "add date picker"
leanlane score --diff "..."
The Python console script is a thin client. For full MCP/git integration use the Node CLI: npm i -g @talocode/leanlane.
Related packages
| Package | Install |
|---|---|
| LeanLane (this) | pip install talocode-leanlane |
| VerifyLane | pip install talocode-verifylane |
| SearchLane | pip install talocode-searchlane |
| Tera | pip install talocode-tera |
| ContextLane | pip install contextlane |
| StackLane | pip install talocode |
Talocode ecosystem
| Product | Role |
|---|---|
| LeanLane | (this package) stop agent over-building |
VerifyLane · pip install talocode-verifylane |
Deterministic code verification |
| PolicyLane | Allow/deny + redaction |
| StyleLane | Constitution packs |
| EvalLane | Assertion eval suites |
| TraceLane | Agent run tracing |
| RetryLane | Retries & circuit breakers |
| PromptLane | Prompt versioning |
| HandoffLane | Schema handoffs |
| GateLane | MCP gateway |
SearchLane · pip install talocode-searchlane |
Agent web search |
ContextLane · pip install contextlane |
Shared agent context |
| MemoryLane | Agent memory |
Tera · pip install talocode-tera |
Capability API |
Codra · pip install talocode-codra |
Coding agent |
StackLane · pip install talocode |
Keys, wallet, metering |
Tradia · pip install tradia |
Trading agents |
ScreenLane · pip install talocode-screenlane |
Screen context |
XSearchLane · npm i @talocode/xsearchlane |
X search |
XProLane · pip install talocode-xprolane |
X pro workflows |
| Agent Browser | Browser automation |
| ClipLoop | Clip / media loops |
| InvoiceLane | Invoicing |
| GeoLane | Geo utilities |
DevTool · pip install talocode-devtool |
Dev tooling |
More: github.com/talocode · talocode.site · docs.talocode.site
License
MIT © Talocode
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 talocode_leanlane-0.1.0.tar.gz.
File metadata
- Download URL: talocode_leanlane-0.1.0.tar.gz
- Upload date:
- Size: 9.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/6.2.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6354d166b4315435c5c53080e51f84e0adfc8415005111562a1496a596361651
|
|
| MD5 |
248e9f687334ba45d948d7c209cc6311
|
|
| BLAKE2b-256 |
2228d96ec7305966e3668a21fca674e5fd8b606fd476a0bfcfa2e85ef9ec5561
|
File details
Details for the file talocode_leanlane-0.1.0-py3-none-any.whl.
File metadata
- Download URL: talocode_leanlane-0.1.0-py3-none-any.whl
- Upload date:
- Size: 8.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/6.2.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4849666391a543d985f716bb230fe7235e7a931c1918ae641c1f4d9da96e9cfc
|
|
| MD5 |
aa74c530428388686aa94a716d73bbba
|
|
| BLAKE2b-256 |
9b8ccc68cbb85af18ae107651481b9b457a624194517875edac7cc06ba69d1f8
|