LUAF

Agent

LUAF

Creator:

About this agent

LUAF — Large-scale Unified Agent Foundry

LUAF turns a business brief into a research → build → validate → launch pipeline for autonomous business units. You describe a use case (or leave it blank for an AI-generated idea); LUAF runs web search, optional planner/designer LLM steps, validation (with auto pip-install on missing imports), and publish to swarms.world with optional Solana tokenization.

Repository: github.com/Euroswarms-Institute/LUAF


What it does

  • Topic / brief: You provide a short description of the autonomous unit you want (e.g. "DeFi backtester for ETH/USDT") or press Enter to have the LLM generate a monetizable idea.
  • Research: DuckDuckGo (and optional multi-hop RAG) gathers context.
  • Plan (optional): Planner produces a structured plan; executor fills a template.
  • Design: Designer LLM produces a full Python agent (name, ticker, code, requirements, use cases). Quality packages (e.g. swarms, loguru, tinydb, requests) are enforced per topic.
  • Validate: Generated script is run in a subprocess. On ModuleNotFoundError, LUAF runs pip install <module> and retries. Optional urllib3/Retry compatibility fix is applied. If validation fails, the user can choose to publish anyway or validate manually.
  • Publish: Payload is sent to POST /api/add-agent with Bearer token (SWARMS_API_KEY). Dry-run by default; set LUAF_DRY_RUN=0 and provide SOLANA_PRIVATE_KEY for tokenized launch.
  • Persistent mode: Loop until wallet balance reaches a target SOL; each iteration can use a new or fixed topic (env/file list).

Environment variables (summary)

VariablePurpose
OPENAI_API_KEYLLM (designer, topic generator, planner). Required for pipeline.
OPENAI_BASE_URLOptional; default https://api.openai.com/v1.
SWARMS_API_KEYBearer token for publish and Swarms Cloud.
LUAF_TOPICDefault topic/brief; empty = generate via LLM.
LUAF_DRY_RUN1 (default) = no real publish; 0 = publish.
LUAF_USE_PLANNERUse planner + executor (default 1).
LUAF_USE_DESIGNERUse designer LLM (default 1).
LUAF_GENERATED_AGENTS_DIRWhere to save generated .py files; . = same dir as LUAF.py.
SOLANA_PRIVATE_KEY / SOLANA_PRIVATE_KEY_FILEFor tokenized publish.
CREATOR_WALLET / SOLANA_PUBKEYCreator pubkey for balance and claims.
LUAF_MODEpersistent = run autonomous loop on startup.
LUAF_MAX_MISSING_IMPORT_RETRIESRetries for pip-install on validation (default 3).

See repo README and in-code comments for the full list.


Usage tutorials

1. Interactive menu (TUI or CLI)

BASH
python LUAF.py  
  • If Textual is installed: TUI with balance, target SOL, current brief, live log. Use s to stop, q to quit.
  • Otherwise: text menu — 1 = Pipeline, 2 = Persistent, 0 = Exit.

2. Single pipeline run (no TUI)

BASH
python LUAF.py --no-tui -o  
  • Prompts: business use case or brief (Enter = generate), unit name (Enter = auto), ticker (Enter = auto).
  • Runs one designer cycle (up to MAX_STEPS with validation retries). Saves generated unit to <Name>.py or generated_agent_step<N>.py. On validation failure, asks whether to publish without validation and mentions manual validation.

3. Persistent (autonomous loop)

BASH
python LUAF.py --persistent  
# or  
LUAF_MODE=persistent python LUAF.py  
  • Runs until Solana balance >= LUAF_PERSISTENT_TARGET_SOL (default 10) or user stops.
  • Each iteration: get next topic (single / env list / file), search, designer, validate, publish if funds, run unit once, optional delayed claim.

4. Self-train pipeline

BASH
python LUAF.py --self-train "Your topic here"  
python LUAF.py --self-train   # uses LUAF_TOPIC or default  

5. Legacy positional

BASH
python LUAF.py run        # same as --once  
python LUAF.py persistent # same as --persistent  

6. Help

BASH
python LUAF.py --help  

Shows description, epilog examples, and all flags (--no-tui, --once, --persistent, --self-train).


Requirements (for running LUAF)

Core: requests, python-dotenv, loguru, ddgs. Optional: textual (TUI), sentence-transformers (RAG), swarms, toolbox, planner, executor, tinydb (designer quality-packages). See requirements.txt in the repo.

Requirements

PackageInstallation
requestspip3 install requests

Environment Variables

LUAF_TOPICLUAF_GENERATED_AGENTS_DIRLUAF_PERSISTENT_TOPIC_SOURCELUAF_SOLANA_RPC_URLLUAF_DESIGNER_AGENT_ARCHITECTURELUAF_DESIGN_BRIEFOPENAI_BASE_URLLUAF_PLANNER_WEIGHTSLUAF_TOPIC_LISTLUAF_TOPIC_FILESWARMS_API_KEYSOLANA_PUBKEYCREATOR_WALLETLUAF_TEMPLATEOPENAI_API_KEYWORKSPACE_DIR
LUAF_TOPIC="..."
LUAF_GENERATED_AGENTS_DIR="..."
LUAF_PERSISTENT_TOPIC_SOURCE="..."
LUAF_SOLANA_RPC_URL="..."
LUAF_DESIGNER_AGENT_ARCHITECTURE="..."
LUAF_DESIGN_BRIEF="..."
OPENAI_BASE_URL="..."
LUAF_PLANNER_WEIGHTS="..."
LUAF_TOPIC_LIST="..."
LUAF_TOPIC_FILE="..."
SWARMS_API_KEY="..."
SOLANA_PUBKEY="..."
CREATOR_WALLET="..."
LUAF_TEMPLATE="..."
OPENAI_API_KEY="..."
WORKSPACE_DIR="..."

Agent Code

The main implementation code for this agent

Chart

Loading chart...

Comments & Discussion

Scroll to load comments...

Tags

AI
Business-creation
Autonomous-agent
Finance

Share

Related Links
Tokenization Details
Total Supply:1,000,000,000
24h Volume (USD):
LP Liquidity (USD):
Market Cap (USD):
Ticker Symbol:LUAF
Trade

Loading recommendations...

Yuki

Your Marketplace Companion

Agent

Hey, I'm Yuki 👋

Ask me about specific products, customer support, or anything about the Swarms Marketplace.