MI

moadim-io/daemon

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

56 stars 1 forks 质量 74 趋势 33MIT

跨平台 Rust 守护进程,通过 UI、REST 和 MCP 调度 AI 代理例程。

概览

别再给你的代理提示——设计出能触发他们的循环。一个端口。三个接口。零漂移。设置循环。忘掉键盘。Moadim会触发提示,这样你就不用操作了。 ——安装Rust/Cargo,安装moadim,然后运行: Rust服务器进行调度(在cron调度下运行AI代理),同时在三个接口上暴露它们: - (http://localhost:5784/) — 用于管理例程的浏览器仪表盘- (http://localhost:5784/api/v1) — 用于浏览器、CLI 工具和服务的标准 HTTP API;Swagger UI at /docs - (http://localhost:5784/mcp) — 用于 AI 代理的模型上下文协议(Claude 等) 这三个都共用同一个端口。通过任何接口创建的例程都会注册到守护进程的跨平台调度器,因此它们能按计划运行,无需依赖操作系统的 cron 服务。参见 agent-loop engine 的例程,或 docs/comparison.md,了解 moadim 与 cron、GitHub Actions 及其他代理运行工具的区别。

概述(AI 翻译)

按计划进行循环工程。 停止提示你的代理——设计能提示他们的循环。

在你睡觉时运行的特工程序。 一个端口。三个接口。零漂移。

Set循环。忘了键盘吧。Moadim会触发提示,这样你就不用to.

一行安装——先安装Rust/Cargo,安装moadim,然后运行:

Rust服务器负责调度例程(运行一个基于cron调度的AI代理), 同时通过三个接口曝光:

  • UI (http://localhost:5784/) — 用于管理例程的浏览器仪表盘
  • REST(http://localhost:5784/api/v1)——浏览器、CLI工具和服务的标准HTTP API;Swagger界面[/docs
  • MCP (http://localhost:5784/mcp) — AI代理模型上下文协议(Claude等)

这三者共用同一端口。通过任何接口创建的例程有 注册了守护灵的跨平台调度器,所以它们按计划运行 无需依赖操作系统的 cron 服务。参见 代理循环引擎的例程,或者 docs/comparison.md 关于莫阿迪姆与克隆的比较, GitHub Actions,以及其他代理运行者。

先修条件

本页由 AI 翻译,技术细节请以原文为准。

README

以下为原文 README 节选,完整内容请查看原文。

moadim

Loop engineering, on a schedule. Stop prompting your agents — design the loop that prompts them.

Agent routines that run while you sleep. One port. Three interfaces. Zero drift.

Set the loop. Forget the keyboard. moadim fires the prompt so you don’t have to.

One-line install — install Rust/Cargo, install moadim, then run it:

curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y && . "$HOME/.cargo/env" && cargo install --locked moadim && moadim

Rust server that schedules routines (run an AI agent on a cron schedule), exposing them over three interfaces simultaneously:

  • UI (http://localhost:5784/) — browser dashboard for managing routines
  • REST (http://localhost:5784/api/v1) — standard HTTP API for browsers, CLI tools, and services; Swagger UI at /docs
  • MCP (http://localhost:5784/mcp) — Model Context Protocol for AI agents (Claude, etc.)

All three share the same port. Routines created through any interface are registered with the daemon’s cross-platform scheduler so they run on schedule without depending on an OS cron service. See Routines for the agent-loop engine, or docs/comparison.md for how moadim compares to cron, GitHub Actions, and other agent runners.

Prerequisites

moadim depends on a few external tools at runtime, in addition to Rust/Cargo for building and installing:

Tool Required for Install
Rust/Cargo building and installing moadim
tmux launching routine agents — every scheduled routine starts its agent inside a tmux session. Without tmux, routine runs silently fail to launch. brew install tmux (macOS) · apt install tmux (Debian/Ubuntu)

The daemon reports whether tmux and python3 resolve on its PATH in GET /api/v1/health (under dependencies) and logs a warning at startup when either is missing, so a misconfigured host is easy to spot. See the built-in claude agent’s prerequisites below for why python3 matters.

Installation

cargo install --locked moadim

Homebrew (from this repository)

To build and install the current main branch with Homebrew, add this repository as a tap and install its formula with --HEAD:

brew tap moadim-io/daemon https://github.com/moadim-io/daemon.git
在 GitHub 查看完整 README

安装

This server does not publish a one-line install command.

Open the repository installation guide 新手?先看 mcpskill.org 教程 →