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)

Links

License

MIT

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.11.tar.gz (1.3 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

create_leafmesh-2.6.11-py3-none-any.whl (1.6 MB view details)

Uploaded Python 3

File details

Details for the file create_leafmesh-2.6.11.tar.gz.

File metadata

  • Download URL: create_leafmesh-2.6.11.tar.gz
  • Upload date:
  • Size: 1.3 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.14.2

File hashes

Hashes for create_leafmesh-2.6.11.tar.gz
Algorithm Hash digest
SHA256 e309d7610b4f1849b91b91697355f88675d88bb82486610f7a129f81081b7ae7
MD5 93ed62f6e491533831382abd83427d88
BLAKE2b-256 f101fbed22d7c8d580d6466b779227d88ab08f5bd36c5f5e6132f79224de9f59

See more details on using hashes here.

File details

Details for the file create_leafmesh-2.6.11-py3-none-any.whl.

File metadata

File hashes

Hashes for create_leafmesh-2.6.11-py3-none-any.whl
Algorithm Hash digest
SHA256 a7a8c1fefbca3382487490b39267c0013da9b32bb5c8677c57a5d557c98d3fdf
MD5 ed4004ca34cdfe07ddd7acfc54396f84
BLAKE2b-256 46f2faa099630ee77ce29c4456603a57570dcdfeea9656cb39ae1aa9821b3248

See more details on using hashes here.

Release history Release notifications | RSS feed

2.7.0

2 files

This release

2.6.11 This release

2 files

2.6.10

2 files

2.6.9

2 files

2.6.8

2 files

2.6.7

2 files

2.6.6

2 files

2.6.5

2 files

2.6.4

2 files

2.6.3

2 files

2.6.2

2 files

2.6.1

2 files

2.6.0

2 files

2.5.2

2 files

2.5.1

2 files

2.5.0

2 files

2.4.1

2 files

2.4.0

2 files

2.3.2

2 files

2.2.6

2 files

2.2.4

2 files

2.2.3

2 files

2.1.3

1 file

2.1.2

1 file

2.1.1

2 files

2.1.0

2 files

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