Skip to main content

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_agent routing
  • 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_KEY in .env)

License

MIT

Metadata

Release files for create-leafmesh 2.7.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for create-leafmesh 2.7.3
File Size Uploaded Provenance
create_leafmesh-2.7.3.tar.gz 1.4 MB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for create-leafmesh 2.7.3
File Interpreter ABI Platform
create_leafmesh-2.7.3-py3-none-any.whl Python 3 none any Details

Total release size: 3.1 MB

Release files / create_leafmesh-2.7.3.tar.gz

Download URL create_leafmesh-2.7.3.tar.gz
Size 1.4 MB
Tags Source
SHA-256 checksum
How to use checksums
6c896d8491de0ded3c78407868ebdada50e0ddbdb981b44f29fc2ba3dca95f9c
BLAKE2b-256 checksum
How to use checksums
c4921710fc98a2a529089cc6e2f8a061e850dfeb265515d8fbd077c7d4817543
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.13

Release files / create_leafmesh-2.7.3-py3-none-any.whl

Download URL create_leafmesh-2.7.3-py3-none-any.whl
Size 1.7 MB
Tags Python 3
SHA-256 checksum
How to use checksums
fde5cff024f5a8acc2fb48173821232748f7233e407932536943973af977a934
BLAKE2b-256 checksum
How to use checksums
ff9ba831c158d14b1834b0c6c6a3b59ef924a96e9de5a2af26b6c9217d905b21
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.13

Security for create-leafmesh 2.7.3

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.

Release history Release notifications | RSS feed

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page