Project scaffolding + cloud-deploy tool for LeafMesh
Project description
create-leafmesh
Project scaffolding tool for LeafMesh — the YAML-native multi-agent orchestration platform.
Install
pip install create-leafmesh
Create a Project
create-leafmesh create my-project
cd my-project
python -m venv .venv && source .venv/bin/activate
pip install -r requirements.txt
python main.py
CLI Options
# Create in a specific directory
create-leafmesh create my-project -o /path/to/dir
# Skip git initialization
create-leafmesh create my-project --no-git
# Interactive mode (prompts for project name)
create-leafmesh create
Generated Project Structure
my-project/
configs/
config.yaml # Agent definitions, mesh wiring, HITL config
agency/
greeter_agent.py # LLM agent with @pre_compose
processor_agent.py # Programmatic agent with @conditional_chain
researcher_agent.py # LLM agent with @chain_with_results + smart memory
fallback_researcher_agent.py # Fast fallback (race pattern)
advisor_agent.py # LLM fan-in with @chain + @compose
scheduler_agent.py # Cron-scheduled agent
tools.py # Custom tools (@global_tool, @tool)
external_agents.py # Integration reference (CrewAI, LangGraph, etc.)
main.py # Entry point
hitl_stub_receiver.py # Webhook stub for testing HITL locally
requirements.txt
.env # API keys
Dockerfile
docker-compose.yml # Redis + app
What's Included
- 8 agents showcasing all 4 agent types (human, llm, programmatic, external)
- Human-in-the-Loop (HITL) with dual webhook mode and
from_agentrouting - Fan-in/fan-out with OR expressions (
processor AND (researcher OR fallback)) - Smart memory with hybrid recency/relevance scoring
- Scheduled agents with cron expressions
- Custom tools with access control and categories
- All 5 decorators:
@pre_compose,@chain,@chain_with_results,@conditional_chain,@compose - HITL test stub (
hitl_stub_receiver.py) for local webhook testing - Docker-ready with Redis included
- Full README with HITL walkthrough (2 scenarios, step-by-step)
Requirements
- Python 3.10+
- Redis server running (default: localhost:6379)
- At least one LLM API key (e.g.
OPENAI_API_KEYin.env)
Links
License
MIT
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
create_leafmesh-2.6.1.tar.gz
(2.2 MB
view details)
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 create_leafmesh-2.6.1.tar.gz.
File metadata
- Download URL: create_leafmesh-2.6.1.tar.gz
- Upload date:
- Size: 2.2 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c5e6caa99b5ab353d601403c64a55494fca486dc2ae867a795a436517c801cd8
|
|
| MD5 |
d58cd0db59625aaf7e5f2f0cb1840c50
|
|
| BLAKE2b-256 |
32c5204b2db2a50de318153c01b3adf4f589f3ef5ae899a1a24cb18edab5b4a9
|
File details
Details for the file create_leafmesh-2.6.1-py3-none-any.whl.
File metadata
- Download URL: create_leafmesh-2.6.1-py3-none-any.whl
- Upload date:
- Size: 2.9 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b814c2aa0a1819fc95b06e8dfdba7fd4a72694f0ede97b430115d527b345469a
|
|
| MD5 |
8bdf8db832d32f205678c8112bac96a9
|
|
| BLAKE2b-256 |
f3868f0b8ab7b9216e4de7c024627b0978f70bbbeba04029e8c0d7c6c2624ea4
|