Skip to content
ellmos-aiPublic

Latest commit

 

History

108 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MarbleRun Banner

llmauto -- LLM Automation Framework (MarbleRun)

English | Deutsch

Local-first multi-agent orchestration and chain-execution framework from ellmos-ai.

Universal automation tool for autonomous LLM agent chains ("marble runs"). Sequential agent loops, prompt management, persistent state machines, and unattended execution cycles.

Canonical Search Name: ellmos MarbleRun or llmauto. This repository is not the confidential-computing project edgelesssys/marblerun and not a physics toy, but an orchestration framework for autonomous LLM agent chains.

Version CI Pytest Python Platform Code Style: Ruff Privacy Security Policy Security SLA Third-Party: Audited Marketing Log License: MIT Organization Ecosystem Level 1 SBOM: Plain Text Contributing Guidelines Verified: 2026-10-23 LLM-Ready


Quick Navigation

# Section Nav Anchor Description
01 Executive Summary & Core Identity #sec-01 Universal automation tool for autonomous LLM agent chains
02 Visual Showcase & System Architecture #sec-02 Mermaid execution loops and Four-View ASCII Topology Projection
03 Tactical Round Execution & Sequence Flow #sec-03 Sequence diagram and handoff context pipeline
04 Target Personas & Discoverability Queries #sec-04 Core archetypes [PERSONA-01]..[PERSONA-04] and high-intent queries
05 Comparative Matrix vs. Alternatives #sec-05 10-dimension comparison vs LangGraph, CrewAI, AutoGen, OpenClaw
06 Governance & Runtime Invariants Matrix #sec-06 10 canonical security and runtime invariants INV-LOCAL-01..INV-SLA-10
07 Chain Patterns & Role Matrix #sec-07 Worker, Reviewer, Controller, and multi-model configuration
08 Installation & Prerequisites #sec-08 Python 3.10+ and Claude Code CLI requirements
09 Step-by-Step Quickstart #sec-09 Chain definition, initialization, and execution commands
10 Pipe Mode & Ad-hoc Execution #sec-10 Single-call CLI pipes and ad-hoc task automation
11 CLI Reference & Global Configuration #sec-11 Comprehensive command flags, timeouts, and options
12 Sibling Tools & Ecosystem Matrix #sec-12 12 partner repositories across ellmos-ai, dev-bricks, and open-bricks
13 Third-Party Licenses & Level 1 SBOM #sec-13 Zero-copyleft inventory, Level 1 SBOM companion, and RunAsInvoker
14 Security Policy & Operational Limits #sec-14 48h response target, provider-dependent network, and vulnerability reporting
15 Repository Structure & Key Assets #sec-15 Folder structure, chains, prompts, templates, and runtime files
16 Development, Test Matrix & Verification #sec-16 Pytest suite (187 passed
17 Discovery Keywords & Disambiguation #sec-17 Disambiguation from edgelesssys/marblerun and high-intent SEO
18 Statutory Notice, Liability Limitation & License (§ 521 BGB) #sec-18 MIT license, § 521 BGB gratuitous lending disclaimer, and copyright

Note

For AI Agents & Automated Tools: Machine-readable architecture summary, discovery anchors, and usage guidelines are available in llms.txt.

Author: Lukas Geiger | License: MIT | Python: 3.10+ | Status: Alpha (Development Status :: 3 - Alpha, version 0.1.x)


1. Executive Summary & Core Identity

llmauto orchestrates autonomous LLM agent chains ("marble runs"). Multiple agents work in sequence -- workers execute tasks, reviewers check results, controllers coordinate -- passing context via handoff files.

Provider selection is per chain link. Claude remains the default; Codex and Agy run through the shared COMA adapter layer, while Kimi stays fail-closed until a model/login is configured:

{
  "name": "reviewer",
  "role": "reviewer",
  "backend": "codex",
  "model": "gpt-5.6-sol",
  "prompt": "prompts/example_reviewer.txt"
}

Install the optional provider bridge with pip install -e ".[providers]".

Think of it as a marble run: the marble (context) rolls from link to link in a loop, with each link being an LLM agent with a specific role and prompt.

Key Features

  • Chain Execution: Define multi-agent chains in JSON, run them autonomously
  • Marble Run Pattern: Sequential agent loops with handoff-based context passing
  • Multi-Model Support: Mix Claude Opus, Sonnet, and Haiku in a single chain
  • Role System: Workers, Reviewers, Controllers with skip-if-not-assigned patterns
  • State Management: Persistent round counters, handoff files, stop/resume support
  • Pipe Mode: Single LLM calls from the command line
  • Background Execution: Start chains in separate terminal windows
  • Telegram Notifications: Optional status updates via Telegram bot
  • Zero Dependencies: Pure Python stdlib (subprocess, json, pathlib, sqlite3)

Requirements


2. Visual Showcase & System Architecture

The core architecture follows a cyclic marble-run pipeline where each agent is an autonomous step passing verified state:

graph TD
    subgraph Round["Round N Execution Loop"]
        W["Link 1: Worker Agent (Opus/Sonnet)"] -->|"Executes tasks & writes draft"| H1["state/handoff.md (Snapshot Isolation)"]
        H1 --> R["Link 2: Reviewer Agent (Opus)"]
        R -->|"Audits, verifies & fixes"| H2["state/handoff.md (Protected Update)"]
        H2 --> C["Link 3: Controller Agent (Sonnet/Haiku)"]
        C -->|"Coordinates & assigns next step"| H3["state/handoff.md (Committed State)"]
    end
    H3 -->|"Advance Round Counter (N+1)"| W
    C -->|"All Done / Max Rounds / Deadline"| END["Chain Completed / Graceful Stop"]

    style Round fill:#1f2937,stroke:#3b82f6,color:#fff
    style END fill:#111827,stroke:#10b981,color:#fff
Loading

Four-View ASCII Topology Projection

===================================================================================================
[VIEW 1: CLI COCKPIT, RUNNER RUNTIMES & CHAIN ORCHESTRATION]
+-------------------------------------------------------------------------------------------------+
| Caller Invocations: python -m llmauto chain start <chain> | --pipe | --once | --status          |
| Multi-Model Matrix: Claude (Opus, Sonnet, Haiku) | Codex (via COMA) | Agy (via COMA)            |
| Link Supervisor: Per-link roles (Worker, Reviewer, Controller) & custom prompt expansion        |
+-------------------------------------------------------------------------------------------------+
                                      | (INV-PROC-07, INV-GATE-03)
                                      v
===================================================================================================
[VIEW 2: MARBLERUN CORE ENGINE, SKIP-GUARD & HANDOFF CONTEXT PIPELINE]
+-------------------------------------------------------------------------------------------------+
| Chain Execution Engine (llmauto.py / core/runner.py):                                           |
|   +-----------------------+     +------------------------+     +------------------------+       |
|   | Link 1: Worker Agent  | --> | Link 2: Reviewer Agent | --> | Link 3: Controller     |       |
|   | (Draft & Code Task)   |     | (Audit, Test & Verify) |     | (Evaluate Stop / Done) |       |
|   +-----------------------+     +------------------------+     +------------------------+       |
| Handoff Isolation: Baseline snapshotting & anti-starvation skip-protection (INV-CONT-05)        |
| Concurrency Isolation: Isolated per-link workspaces prevent file collisions (INV-SYNC-04)       |
+-------------------------------------------------------------------------------------------------+
                                      | (INV-STATE-06, INV-LOCAL-01)
                                      v
===================================================================================================
[VIEW 3: RUNTIME PERSISTENCE, STATE MACHINE WAL & MULTI-HOST SIGNALS]
+-------------------------------------------------------------------------------------------------+
| State Directory: ./state/                                                                       |
|   * status.txt       -> Canonical state machine (RUNNING, PAUSED, STOPPED, ALL_DONE)            |
|   * round_counter    -> Persistent atomic round iterations (1 .. max_rounds)                    |
|   * handoff.md       -> Verified contextual payload passed between agent links                  |
|   * PAUSE.json / STOP / steer_queue.json -> Control requests at safe checkpoints                |
+-------------------------------------------------------------------------------------------------+
                                      | (INV-LOCAL-01, INV-SEC-02, INV-SLA-10)
                                      v
===================================================================================================
[VIEW 4: NETWORK BOUNDARIES & RUNASINVOKER]
+-------------------------------------------------------------------------------------------------+
| Network boundary: provider/tool traffic is not blocked; Telegram is opt-in (INV-LOCAL-01) |
| Non-Elevation Privilege: Standard user-mode execution (RunAsInvoker), no daemon (INV-SEC-02)   |
| Zero-Copyleft Perimeter: 100% permissive dependencies (PSFL, MIT, Apache-2.0) (Level 1 SBOM)    |
| Governance & Audit: Best-effort 48h response target, § 521 BGB statutory disclaimer (INV-SLA-10)      |
+-------------------------------------------------------------------------------------------------+
===================================================================================================

3. Tactical Round Execution & Sequence Flow

The execution cycle coordinates process isolation, baseline snapshotting, anti-overwrite protection, and persistent state transitions:

sequenceDiagram
    autonumber
    actor User as Developer / Operator
    participant Runner as MarbleRun Engine (llmauto)
    participant State as State Manager (SQLite/MD)
    participant Worker as Worker Agent (Link 1)
    participant Guard as Skip/Handoff Guard
    participant Reviewer as Reviewer Agent (Link 2)
    participant Controller as Controller Agent (Link 3)

    User->>Runner: Start Chain (e.g. python -m llmauto chain start my-chain)
    Runner->>State: Initialize / Read state (status.txt, round_counter, handoff.md)
    loop Round Execution (1 .. max_rounds)
        Runner->>Guard: Snapshot Baseline Handoff
        Runner->>Worker: Execute Worker Link with Prompt & Context
        Worker-->>Guard: Write Task Output / Diff / Handoff
        Guard->>Guard: Verify Non-Empty / Detect Skip-Overwrite
        Guard->>State: Commit Safe Worker Handoff
        Runner->>Reviewer: Execute Reviewer Link (--continue session)
        Reviewer-->>Guard: Review Findings, Tests & Fixes
        Guard->>State: Commit Reviewed Handoff
        Runner->>Controller: Execute Controller Link (Evaluate Completion)
        Controller-->>State: Write Next Assignment or ALL_DONE
        State->>Runner: Check Stop Conditions (Max Rounds, Deadline, Status)
    end
    Runner->>State: Set Status = ALL_DONE / STOPPED
    Runner->>User: Final Handoff Summary & Runtime Report
Loading

4. Target Personas & Discoverability Queries

Persona ID Target Audience Primary Needs & Operational Pain Points High-Intent Discoverability Queries
[PERSONA-01] Autonomous AI Agent Engineers & Chain Builders Requires unattended, cyclic multi-agent execution loops where workers, reviewers, and controllers collaborate for hours without manual prompt re-entry or session stalls. claude code agent chain runner, llmauto claude automation, unattended multi agent loop python, autonomous coding agent supervisor
[PERSONA-02] Multi-Agent Swarm & Handoff Architects Needs clean context passing between heterogeneous models (e.g. Sonnet worker, Opus reviewer, Haiku controller) with anti-starvation skip protection and baseline rollback. llm handoff file pattern python, worker reviewer controller multi agent loop, skip overwrite protection llm context, stateless agent handoff
[PERSONA-03] Enterprise Tooling, Safety & Governance Compliance Officers Needs to assess provider/tool data flows and any external controls required for offline operation, non-elevated user privilege (RunAsInvoker), permissive open-source licensing, and best-effort response targets. local first ai agent orchestration zero egress, runasinvoker llm automation framework, enterprise compliant agent chains python, permissive license ai agent runner
[PERSONA-04] Open-Source AI Tool Builders & Local-First Developers Demands lightweight, zero-dependency Python tooling that wraps local LLM CLIs directly via standard library primitives without requiring heavy heavyweight node or cloud dependencies. zero dependency llm orchestration python, claude cli wrapper python stdlib, lightweight agent chain framework, marble run ai agent loop

5. Comparative Matrix vs. Alternatives

Architectural Dimension MarbleRun (llmauto) LangGraph / LangChain CrewAI AutoGen (Microsoft) Invariant Alignment
Runtime Dependencies Zero (100% Python standard library) Heavy (hundreds of pip packages) Heavy (Pydantic, LangChain stack) Moderate-to-heavy dependency tree INV-LOCAL-01
Privilege Model RunAsInvoker (unprivileged user space) Unenforced script context Process execution with loose sandbox Docker / container-focused runtime INV-SEC-02
Backend Isolation Multi-Provider Fail-Closed (Claude, Codex, Agy) Dynamic provider switching with fallbacks Provider abstraction with loose validation Multi-provider with complex configuration INV-GATE-03
Concurrency & Workers Race-Free per-worker handoff workspaces Thread / async task pool Asynchronous tasks with shared state Conversation threads and event loops INV-SYNC-04
Context Starvation Guard Anti-starvation skip detection & auto-restore Missing (overwritten on empty output) Retries upon failure Conversational loop recovery INV-CONT-05
State Persistence Transparent plain-text & Markdown files SQLite / Postgres checkpointers In-memory or proprietary SQLite state In-memory or cache databases INV-STATE-06
Invocation Safety Direct vector execution (shell=False) Shell tools commonly enabled Python execution tools available Code execution environment INV-PROC-07
Cross-Platform CI Matrix Automated Linux, Windows, macOS (3.10-3.13) Standard CI matrix Standard CI matrix Multi-OS CI matrix INV-CI-08
CI Concurrency Gate Strict cancel-in-progress gate Standard workflow triggers Standard workflow triggers Concurrency controls INV-CONC-09
Security Governance Best-effort 48h response target & advisory workflow General open-source issue tracker Venture-backed commercial SLA Enterprise security reporting INV-SLA-10

Architectural Spotlight: MarbleRun vs. OpenClaw

MarbleRun makes LLMs act -- autonomous multi-agent chains where workers, reviewers, and controllers collaborate in loops. How does it compare to OpenClaw?

Dimension MarbleRun (llmauto) OpenClaw
Focus Autonomous multi-agent orchestration -- make LLMs act Personal AI assistant -- conversational gateway
Execution Multi-agent chains: Worker -> Reviewer -> Controller loops Single-agent responding to messages
Autonomy Fully autonomous -- chains run for hours unattended (rounds, deadlines, shutdown conditions) Reactive -- responds to user input, cron/webhooks for automation
Multi-model Mix Opus, Sonnet, Haiku in one chain with role-based assignment Model selection per session, failover support
State Handoff files, round counters, persistent sessions (continue mode) Session history with /compact summarization
Dependencies Zero -- pure Python stdlib + Claude Code CLI Node.js 22+, numerous npm packages
License MIT MIT

In short: OpenClaw connects LLMs to conversations. MarbleRun connects LLMs to each other -- creating autonomous work loops where agents collaborate, review, and iterate without human intervention.


6. Governance & Runtime Invariants Matrix

MarbleRun keeps orchestration state local; provider and tool traffic follows the selected backend. Zero-Egress is not enforced:

Invariant ID & Capability Implementation Mechanism Security & Reliability Guarantee
INV-LOCAL-01: Local state, provider-dependent network Local orchestration and handoff files The default runner starts the Claude CLI and passes it prompts; the provider may send prompts and context for remote inference. Provider/tool traffic is not isolated or blocked by this package. The optional Telegram notifier, disabled by default, additionally sends chain names and round status.
INV-SEC-02: Non-Elevation & User Mode Standard Python runtime execution without root/admin privilege requirements (RunAsInvoker) Never asks for elevation, so nothing outside the invoking user's reach can be changed. This is not a sandbox: the shipped config.json default grants the agent CLI Read, Edit, Write, Bash, Glob, Grep in permission mode dontAsk -- review it before an unattended run
INV-GATE-03: Multi-Provider Fail-Closed Strict backend selection (Claude CLI, optional COMA adapter for Codex/Agy) Unconfigured backends fail closed; no silent fallback to insecure endpoints
INV-SYNC-04: Race-Free Parallel Workers Per-worker isolated handoff snapshots (tests/test_parallel_handoff.py) Prevents concurrency collisions when parallel agents write simultaneous outputs
INV-CONT-05: Skip-Overwrite Guard Automated baseline snapshot restoration on short SKIPPED responses Prevents context starvation; preserves valuable upstream context across links
INV-STATE-06: Persistent State Machine Transparent filesystem artifacts (status.txt, round_counter.txt, handoff.md) Resumable across reboots; zero proprietary binary lock-in; human-inspectable
INV-PROC-07: Safe Process Scoping & Shell-Free Execution Direct argv execution (shell=False) with sanitized environment maps Eliminates shell-injection vectors, command injection, and untracked side-effects
INV-CI-08: Multi-OS CI Matrix Automated GitHub Actions testing across Ubuntu, Windows, and macOS Guaranteed cross-platform consistency on Python 3.10, 3.11, 3.12, and 3.13
INV-CONC-09: Strict Concurrency Gate Workflow-level concurrency with cancel-in-progress: true Prevents stale CI race conditions and wasted compute resources
INV-SLA-10: Cryptographic Receipt Integrity & Security SLA Auditability Timestamped state transitions, best-effort 48h response target, and deterministic tests Tamper-evident audit trails, best-effort triage target of 5 business days; no response-time guarantee

7. Chain Patterns & Role Matrix

Applications with their own native workers can use the embedded sequence API to pass actual execution receipts and task results between ordered steps. The host supplies dispatch, observation, cancellation and durable checkpoints; no provider CLI is started by this API.

Role Primary Responsibility Recommended Model Context Retention
worker Executes feature code, fixes, documentation, refactoring claude-sonnet-4-6 Fresh session per round or isolated handoff
reviewer Audits code quality, executes test suites, identifies regressions claude-opus-4-6 continue: true for persistent project context
controller Evaluates overall milestone progress, routes tasks, triggers shutdown claude-sonnet-4-6 / haiku Evaluates criteria against max_rounds & deadline

State Machine & Lifecycle Transitions

The runtime orchestrates transitions between idle, active execution, pause/steer signals, and terminal states:

Illustrative worker/reviewer/controller example; these nodes are not a complete list of persisted runtime states. Steering preserves RUNNING.

stateDiagram-v2
    [*] --> READY: Chain Definition Loaded
    READY --> RUNNING: python -m llmauto chain start
    state RUNNING {
        [*] --> Worker: Execute Link 1
        Worker --> SkipGuard: Write Handoff Snapshot
        SkipGuard --> Reviewer: Verify and Test Link 2
        Reviewer --> Controller: Audit and Fixes Link 3
        Controller --> Worker: Advance to Next Round
    }
    RUNNING --> PAUSED: PAUSE.json Signal Detected
    PAUSED --> RUNNING: Pause Cleared or Resume
    RUNNING --> RUNNING: steer_queue.json context injected
    RUNNING --> ALL_DONE: Controller Evaluates Completion
    RUNNING --> STOPPED: STOP or Max Rounds or Deadline
    RUNNING --> COMPLETED: once or normal chain completion
    COMPLETED --> [*]
    ALL_DONE --> [*]: Final Report Generated
    STOPPED --> [*]: Clean Termination
Loading

Shutdown Conditions

A chain stops when any of these conditions are met:

  • runtime_hours exceeded
  • max_rounds reached
  • status.txt contains "STOPPED" or "ALL_DONE"
  • max_consecutive_blocks consecutive BLOCK states
  • Manual stop via llmauto chain stop

State Files

Each chain maintains persistent state in state/<chain-name>/:

File Purpose
status.txt READY, RUNNING, STOPPED, ALL_DONE, BLOCKED
round_counter.txt Current round number
handoff.md Context handoff between links
start_time.txt When the chain was started
STOP Stop request, with the reason as plain text
PAUSE.json Pending pause request, including its reason
steer_queue.json Queued operator messages for the next model call

Use llmauto chain stop <name> [reason], llmauto chain pause <name> [reason], llmauto chain resume <name>, and llmauto chain steer <name> <message> to manage these requests. They are read at safe checkpoints: a pause or stop request does not interrupt a model call already in progress. Steering messages are consumed before the next model call and added to its prompt. Resume clears the pending pause. Files named pause.req, stop.req, or steer.req are not control inputs.

Chain Configuration Schema

Field Type Description
description string Human-readable description
mode string loop (repeat), once (single pass), deadend (single pass)
max_rounds int Maximum number of complete cycles
runtime_hours float Maximum runtime in hours
deadline string Hard deadline (ISO date)
defaults object Chain-wide runner defaults for permissions, tools, timeout, and environment
links array Ordered list of chain links

Link Configuration

Field Type Description
name string Unique link identifier
role string worker, reviewer, controller
model string Claude model ID
prompt string Prompt template filename or inline text
continue bool Use --continue flag (persistent session)
fallback_model string Fallback model if primary fails
until_full bool Add context-limit awareness suffix
telegram_update bool Send Telegram notification after this link
permission_mode string Optional override of the chain/global permission mode
allowed_tools array Optional per-link tool allowlist, including MCP tools
timeout_seconds int Optional per-link timeout override
env object Optional per-link environment merged over chain and global values

Runner settings resolve consistently in this order: link override, chain defaults, then global config.json. Environment objects are merged in the same order and support {HOME} and {BASH_HOME} placeholders.

Advanced Patterns

Skip-If-Not-Assigned

For chains where a controller assigns work to either an Opus or Sonnet worker:

{
  "links": [
    {"name": "controller", "role": "controller", "model": "opus"},
    {"name": "opus-worker", "role": "worker", "model": "opus"},
    {"name": "sonnet-worker", "role": "worker", "model": "sonnet"}
  ]
}

The controller writes ASSIGNED: opus or ASSIGNED: sonnet in the handoff. The non-assigned worker reads the handoff and skips immediately.

Continue Mode

Links with "continue": true maintain a persistent Claude Code session in a dedicated workspace directory. Each invocation continues the previous conversation, preserving full context.

Template Variables

Prompts support {HOME} (Windows path) and {BASH_HOME} (Unix path) placeholders that are resolved at runtime.


8. Installation & Prerequisites

git clone https://github.com/ellmos-ai/MarbleRun.git
cd MarbleRun

# Run directly (zero installation required, pure stdlib)
python -m llmauto --help

# Or install as editable package
pip install -e .
llmauto --help

# Optional: install provider bridge for Codex / Agy backends
pip install -e ".[providers]"

9. Step-by-Step Quickstart

1. Create a Chain Definition

Create a JSON file in chains/ (e.g. chains/my-chain.json):

{
  "description": "Simple worker-reviewer loop",
  "mode": "loop",
  "max_rounds": 5,
  "runtime_hours": 2,
  "links": [
    {
      "name": "worker",
      "role": "worker",
      "model": "claude-sonnet-4-6",
      "prompt": "worker_prompt.txt"
    },
    {
      "name": "reviewer",
      "role": "reviewer",
      "model": "claude-opus-4-6-20250918",
      "prompt": "reviewer_prompt.txt",
      "continue": true
    }
  ]
}

2. Create Prompt Templates

Place prompt files in prompts/ (e.g. prompts/worker_prompt.txt):

You are a software development worker. Read the handoff file at
state/my-chain/handoff.md for your current assignment.

Execute the assigned tasks, then write a handoff for the reviewer:
- What you completed
- What needs review
- Any blockers

3. Run the Chain

# Start in foreground
python -m llmauto chain start my-chain

# Start in background (opens new terminal window)
python -m llmauto chain start my-chain --bg

# Check status
python -m llmauto chain status my-chain

# Stop gracefully (after current link finishes)
python -m llmauto chain stop my-chain "Reason for stopping"

# View logs
python -m llmauto chain log my-chain 50

# Reset state (back to round 0)
python -m llmauto chain reset my-chain

10. Pipe Mode & Ad-hoc Execution

Single LLM calls executed directly from your terminal or shell scripts:

# Direct prompt
python -m llmauto pipe "Explain quantum computing in 3 sentences"

# From file
python -m llmauto pipe -f prompt.txt

# With model override
python -m llmauto pipe "Hello" --model claude-opus-4-6-20250918

11. CLI Reference & Global Configuration

CLI Command Reference

Command Arguments Description
python -m llmauto chain start <name> [--bg] Starts a chain in foreground or new background terminal window
python -m llmauto chain status <name> Displays current round, execution status, and active link
python -m llmauto chain stop <name> [reason] Gracefully stops chain after current link finishes
python -m llmauto chain log <name> [lines] Shows recent log output (default: 50 lines)
python -m llmauto chain reset <name> Resets round counter and state back to round 0
python -m llmauto chain create Interactive CLI wizard for generating new chain configurations
python -m llmauto pipe <prompt> [-f file] [--model ID] Executes a single-shot prompt directly via CLI

Global Configuration (config.json)

Setting Default Description
default_model claude-sonnet-4-6 Primary model ID for links without explicit override
default_permission_mode dontAsk Unattended execution permission level
default_allowed_tools Read, Edit, Write, Bash, Glob, Grep Whitelisted Claude Code capabilities
default_timeout_seconds 7200 (2h) Maximum execution timeout per link
telegram.enabled false Optional Telegram status and completion reporting

Included Example Chains

llmauto ships with production-tested chain configurations:

Chain Pattern Description
worker-reviewer-loop Template Basic 2-link worker/reviewer pattern
gui-live-test Template One-pass Open Compute desktop test with persistent evidence

12. Sibling Tools & Ecosystem Matrix

MarbleRun is part of the ellmos-ai, dev-bricks, and open-bricks ecosystem of modular agent-orchestration components. Every entry below is a public repository, and each line says what it does for a MarbleRun user:

Tool Ecosystem Why it matters here
COMA ellmos-ai Agent lifecycle layer (process start, file log, status query) -- the optional provider bridge that adds Codex and Agy as chain backends
swarm_ai ellmos-ai Parallel agent orchestration with consensus voting and boss-worker flows -- the same problem solved without sequential chains
clutch ellmos-ai Provider-neutral LLM router; supplies the optional routing.default capability this module declares in ellmos-module.v2.json
task-master ellmos-ai Deterministic task selection -- decides what a worker link should pick up next instead of letting the model choose
lock-master ellmos-ai Portable LOCK*.txt multi-agent file locks -- the coordination primitive behind race-free parallel workspaces (INV-SYNC-04)
ellmos-scheduler ellmos-ai Cron, interval and scheduled-task engine with run receipts -- starts chains unattended on a schedule
policy-registry ellmos-ai Local-first pointer registry for policies, rules and decisions using SHA-256 source references
system-explorer ellmos-ai Evidence-backed system maps for functions, carriers, entry points and architecture drift -- useful when a chain touches an unfamiliar codebase
sqlite-transit-sync ellmos-ai Local-first SQLite synchronization via verified snapshots -- carries chain state between machines
rinnsal ellmos-ai Lightweight agent infrastructure that embeds llmauto as its chain-automation module
automizer-for-claude-desktop dev-bricks Unofficial tool for the Claude Desktop app's scheduled tasks -- the GUI counterpart to this CLI-side automation
open-bricks open-bricks Umbrella organization profile for the local-first tool families

13. Third-Party Licenses & Level 1 SBOM

MarbleRun (llmauto) is engineered with zero mandatory external runtime dependencies. The core agent loop, CLI runner, and process orchestration operate solely on the Python Standard Library (PSFL-2.0).

All optional integrations and development tools are 100% permissively licensed:

  • Core Engine: 100% Python Standard Library (PSFL-2.0) -- zero external runtime packages.
  • Optional Provider Bridge: coma (MIT) for Codex and Agy adapters.
  • Testing & Quality Assurance: pytest (MIT), ruff (MIT / Apache-2.0), setuptools (MIT), and setuptools-scm (MIT).

Zero copyleft, GPL, or AGPL dependencies are included. Detailed dependency notices, provenance audits, and full license texts are maintained in THIRD_PARTY_LICENSES.md. Formal repository notice is in NOTICE.


14. Security Policy & Operational Limits

MarbleRun enforces a strict local-first security boundary:

  • Network boundary: The Python orchestrator has no analytics reporting. Its default Claude CLI backend can transmit prompts and context for inference; other providers and tools have their own data flows. This package does not enforce Zero-Egress. The optional Telegram notifier is disabled by default and adds a separate outbound path when enabled.
  • Default Agent Permissions: The shipped config.json runs the agent CLI with Read, Edit, Write, Bash, Glob, Grep in permission mode dontAsk and a 7200-second timeout. That is deliberate for unattended chains and is not a sandbox -- scope it down before pointing a chain at a directory you care about.
  • RunAsInvoker Isolation: Strictly executes in unprivileged user space. Does not require administrative elevation or daemon services.
  • Supported Versions & Response Targets: Version 0.1.x is actively supported. The 48h acknowledgment and 5-business-day triage figures are best-effort targets of an unpaid single-maintainer project, not a contractual service level.
  • Vulnerability Reporting: Disclosures are handled confidentially through GitHub Security Advisories (private vulnerability reporting is enabled). This project publishes no security mailbox; the e-mail addresses named in earlier revisions are not offered as verified reporting channels. Full policy details: SECURITY.md.

15. Repository Structure & Key Assets

MarbleRun/                     # The repository root IS the package: pyproject maps "llmauto" to "."
├── llmauto.py                 # Main CLI dispatcher (chain, pipe, inspect)
├── __init__.py                # Package marker and single-source `__version__`
├── __main__.py                # `python -m llmauto` entry point
├── core/                      # Engine internals
│   ├── runner.py              # Claude CLI & provider invocation (subprocess, env, fallback)
│   ├── config.py              # Chain & global JSON configuration parser
│   ├── state.py               # Handoff files, round counters, shutdown triggers
│   ├── embedded.py            # Native embedded sequences with execution receipts
│   └── chain_creator.py       # Interactive chain scaffolding
├── modes/                     # Execution modes (chain runner, pipe)
│   └── chain.py               # Cyclic marble-run engine
├── chains/                    # Example chain configurations (JSON)
├── prompts/                   # Reusable prompt templates per chain role
├── templates/                 # Chain pattern blueprints (worker-reviewer, gui-live-test)
├── scripts/                   # Helper scripts (chain creator, review pipeline, Roblox MCP wrapper)
├── tests/                     # Contract & integration test suite
├── docs/                      # Chain schema, chain overview, embedded sequences
├── legacy/                    # Retired entry points, kept for reference only
├── assets/                    # Banner and logo artwork
├── config.json                # Global default configuration
├── ellmos-module.v2.json      # ellmos module manifest (capabilities, boundaries)
├── USER-DOCU.md               # Detailed user guide (German)
├── CHANGELOG.md               # Versioned changelog & release history
├── LICENSE                    # MIT license declaration
├── NOTICE                     # Product attribution & copyright declaration
├── THIRD_PARTY_LICENSES.md    # Level 1 SBOM & dependency compliance audit
├── THIRD_PARTY_LICENSES.txt   # Plain-text SBOM companion & full license texts
├── MARKETING-LOG.txt          # Discoverability log & SEO queries
├── SECURITY.md                # Bilingual security policy & SLA commitments
├── CONTRIBUTING.md            # Bilingual contribution workflow
├── llms.txt                   # Machine-readable AI agent index & sitemap
└── pyproject.toml             # PEP 621 package manifest & ruff configuration

Note

There is no llmauto/ subdirectory and no src/ layout. pyproject.toml maps the package name llmauto onto the repository root, so an installed llmauto.core.runner lives at core/runner.py in this tree.


16. Development, Test Matrix & Verification

MarbleRun maintains a comprehensive automated test suite with 100% green passing status:

# Run the complete test suite
pytest

# Run with verbose output and summary
pytest -ra -v

# Run code style and linting checks
ruff check .

# Compile Python bytecode across repository
python -m compileall -q .

The CI pipeline executes automatically via .github/workflows/tests.yml across:

  • Operating Systems: Ubuntu Latest, Windows Latest, macOS Latest
  • Python Versions: 3.10, 3.11, 3.12, and 3.13
  • Gates: Ruff linting, compileall verification, concurrency cancel-in-progress, and 15-minute execution timeout guard.

17. Discovery Keywords & Disambiguation

Use these phrases when looking for the project in search engines, GitHub search, LLM tool indexes, or internal automation documentation:

Phrase Why it matters
ellmos MarbleRun Distinguishes this repo from confidential-computing and game projects named MarbleRun
llmauto Claude Code automation Finds the package and CLI name used in code
MarbleRun LLM agent chains Describes the central chain-execution pattern
local-first multi-agent orchestration Python Captures the zero-dependency local automation use case
Claude Code agent chain runner Matches users searching for unattended Claude Code worker/reviewer/controller loops
llmauto autonomous agent loop Combines the CLI/package name with the core automation pattern

Disambiguation Notice

MarbleRun is best discovered through its CLI/package name llmauto plus the use case: Claude Code automation, agent-chain runner, local-first multi-agent orchestration, and handoff-based autonomous work loops. The bare name MarbleRun is intentionally disambiguated because public search results also include confidential-computing infrastructure and physical marble-run projects.

MarbleRun is also the name of a commercial product of Edgeless Systems GmbH (a service mesh for confidential computing). This project is unrelated to it and claims no rights in that name; llmauto is the canonical package and CLI name here, and the project name is used descriptively for the marble-run metaphor of its chain execution.


18. Statutory Notice, Liability Limitation & License (§ 521 BGB)

Statutory Disclaimer (§ 521 BGB)

Diese Software wird unentgeltlich bereitgestellt. Soweit die unentgeltliche Überlassung rechtlich als Schenkung im Sinne der §§ 516 ff. BGB zu behandeln ist, ist die Haftung nach § 521 BGB auf Vorsatz und grobe Fahrlässigkeit beschränkt; ob eine unentgeltliche Softwareüberlassung als Schenkung, als Leihe oder als bloßes Gefälligkeitsverhältnis einzuordnen ist, ist nicht abschließend geklärt. Unabhängig davon gelten die Haftungsausschlüsse der nachstehenden MIT-Lizenz. Zwingende Haftung, etwa für Vorsatz oder nach dem Produkthaftungsgesetz, bleibt unberührt.

Nutzung auf eigenes Risiko. Keine Wartungsverpflichtung, keine Verfügbarkeitszusicherung, keine Gewähr für Fehlerfreiheit oder Eignung für einen bestimmten Einsatzzweck.

English Summary

This software is provided at no charge. To the extent that its provision legally qualifies as a gift, § 521 BGB limits liability to intent and gross negligence. The legal classification is not asserted here. The MIT disclaimer also applies; mandatory liability remains unaffected.

Use entirely at your own risk. No maintenance commitments, no availability guarantees, and no warranties regarding fitness for any particular purpose.

License

Distributed under the terms of the MIT License. Copyright (c) 2026 Lukas Geiger. See LICENSE and NOTICE for full details. Third-party licenses and compliance notices are audited in THIRD_PARTY_LICENSES.md.