The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.
Moira
Agent Workflow Engine for AI agents over MCP — per-step directives, completion conditions, and JSON-Schema validation. Self-hostable (Apache-2.0).
Install
git clone https://github.com/moira-mcp/moiraInstall command taken from the project's README or registry entry. Always review code before running it.
README excerpt
Read full README on GitHub →MCP Moira
Agent Workflow Engine for AI agents.
Primary users: AI agents via MCP protocol. Web UI is supplementary for workflow management.
See docs/VISION.md for product vision and design principles.
Two ways to run Moira
- Self-host (this repository, Apache-2.0) — run the full engine + Web UI + MCP server and its ingress through Docker Compose on your own infrastructure. Free and open source; your data stays with you. Start in the Quick Start below.
- Moira Cloud (managed) — a hosted instance with nothing to operate, at moira-mcp.com.
Both run the same engine and MCP tools. Self-host is a single-tenant private-team deployment with administrator-approved accounts. Cloud adds managed hosting and SaaS-only policy and administration, including social login, legal consent, email verification, and the broader multi-user administration surface.
Architecture
Monorepo: Clean separation of concerns with npm workspaces Workflow Engine: Node-graph execution over a set of node types (@mcp-moira/workflow-engine) MCP Server: HTTP protocol server exposing the MCP tools (@mcp-moira/mcp-server) Web Backend: Express API server (@mcp-moira/web-backend) Web Frontend: React UI with webpack (@mcp-moira/web-frontend) Docs: Astro 5 + Starlight documentation site, EN+RU (@mcp-moira/docs) Shared: Database layer + Better Auth + logging (@mcp-moira/shared) Database: Modular repository pattern with Drizzle ORM Settings System: Universal settings with encryption and dynamic UI generation Docker Deployment: Multi-stage container with TypeScript validation Validation: JSON Schema with AJV
Package Structure
- packages/workflow-engine/ - Core node-graph execution engine
- packages/extension-sdk/ - Typed authoring contract for custom nodes and communication channels
- packages/extension-runner/ - Isolated companion service for installed extension bundles
- packages/local/ - User-owned Docker Sandboxes companion for local codespaces
- packages/workspace-service/ - Common guest command, file and session service with its Unix-socket CLI
- packages/mcp-server/ - MCP protocol HTTP server with tools
- packages/web-backend/ - Express API for workflow management
- packages/web-frontend/ - React UI for workflow visualization
- packages/docs/ - Astro 5 + Starlight documentation site (EN+RU), built into the image and served at
/docs - packages/shared/ - Database layer (schema, connection, repositories) + Better Auth + logging
database/- Modular repositories (Workflow, Execution, Settings)auth/- Better Auth configurationlogging/- Structured logging
- Docker Config (
config/) - Unified container deployment configuration
Quick Start
Self-Host (recommended)
Run a complete Moira instance locally with Docker — no source build required:
cp .env.example .env # defaults work locally; review host, port, and artifact domain for another host
docker compose up -d
Then open:
- Web UI: http://localhost:8080
- Documentation: http://localhost:8080/docs/
- MCP endpoint: http://localhost:8080/mcp
Similar plugs
Reverse engineer anything with agents, from app behavior down to native binaries.
Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype…
User-friendly AI Interface (Supports Ollama, OpenAI API, ...)
A cross-platform desktop All-in-One assistant for Claude Code, Codex, OpenCode, OpenClaw, Grok Build & Hermes Agent. Only official website: ccswitch.io