A lightweight framework for building and running AI multi-agent workflows with a terminal UI
Project description
lider
A lightweight framework for building and running AI multi-agent workflows with a terminal UI.
Installation
Requires Python 3.11+.
# Install uv if you don't have it
curl -LsSf https://astral.sh/uv/install.sh | sh
# Install dependencies and the project
uv sync
# Install dev dependencies (for testing)
uv sync --group dev
Usage
lider path/to/workflow.py
Workflows are plain Python files with an async def run() function.
SDK
from lider.sdk import agent_node, input_node, process_node
async def run():
question = await input_node("Ask something:")
answer = await agent_node(question, tool="claude")
# Run an OS process and chain its output to an agent
logs = await process_node("journalctl -n 50", shell=True)
summary = await agent_node(logs, tool="claude")
input_node(prompt)— prompts the user for inputagent_node(prompt, tool=...)— sends a prompt to an AI model ("claude"or"gemini")process_node(command, cwd=None, shell=False)— runs an OS process, streams output to the TUI, and returns the full stdout as a string
Currently supported tools: Claude Code CLI and Gemini CLI.
Examples
debate.py
lider example-workflows/debate.py
Asks a question, gets answers from Claude and Gemini in parallel, then synthesizes them into a single response.
multi-model-code-review.py
lider example-workflows/multi-model-code-review.py
Runs a code review in parallel with Claude and Gemini, then synthesizes the two reviews into a prioritized, authoritative report with a final verdict.
new-feature-pipeline.py
lider example-workflows/new-feature-pipeline.py
End-to-end feature development pipeline: creates a git worktree, drafts a spec interactively with Claude, generates an implementation plan, implements it, runs acceptance and code reviews in parallel, fixes findings, and pushes the branch.
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 lider-0.1.0.tar.gz.
File metadata
- Download URL: lider-0.1.0.tar.gz
- Upload date:
- Size: 49.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.10.12 {"installer":{"name":"uv","version":"0.10.12","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"25.10","id":"questing","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1fe03732f203ff5dd2565ad32a8582d9eadd99822ecf64f2acb9e6d4657a6d58
|
|
| MD5 |
3c7cc855ca9f5f44e19ddbc2f06dd974
|
|
| BLAKE2b-256 |
d549b01e044b5768a5af6a31e5426e8f38b2c1e8e4c8f6c5444e3c1229df9510
|
File details
Details for the file lider-0.1.0-py3-none-any.whl.
File metadata
- Download URL: lider-0.1.0-py3-none-any.whl
- Upload date:
- Size: 16.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.10.12 {"installer":{"name":"uv","version":"0.10.12","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"25.10","id":"questing","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9a9fc2b8d8993c0e4702bc5e5d156587680c5b02b7c55917ef738e3446da85a9
|
|
| MD5 |
0aa77f4b2470ab3fc363412570b158e4
|
|
| BLAKE2b-256 |
4062b05cbf23b552258bb8be42c82e8dff97bbf0d2c917824002f64fbd6ee0a7
|