Skip to content
Projects

About

Hyperextensible AI coding agent harness — Rust core with hot-reloadable Lua 5.5 plugins, TUI, RPC, and ACP

Developer Tools

How these counts are measured

What you can do

  • Built-in and user plugins: built-ins use the same public Cordis service and event API as user plugins. Run mare runtime to inspect shipped sources; to replace a plugin, provide a same-name definition in a higher-precedence source with override = true, then run /reload.
  • Rust safety boundary: OS sandboxing (bubblewrap or Landlock on Linux, Seatbelt on macOS, restricted tokens and an optional enhanced tier on Windows), project trust, crash-safe JSONL sessions, pre-edit file snapshots (/rewind), and a Lua watchdog stay in Rust.
  • Configured in Lua: ~/.config/mare/init.lua plus trusted .mare/init.lua, typed for LuaLS via mare init, with git package management (mare.plugins.add and mare-lock.json) and mare --clean.
  • Every front end, one session model: main-screen TUI with native scrollback, headless -p / --json for scripts and CI, bidirectional mare RPC protocol 3.0 (--rpc), authenticated --web HTTP/WebSocket RPC, and ACP (mare acp) for editors.

Measured star growth

in 24h
0
in 7 days
Collecting history
in 15 days
Collecting history
in 1 month
Collecting history

Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.

README.md

Original

mare mare

A hyperextensible agent harness.

Docs · Quickstart · Website · English · 简体中文 · 日本語

mare terminal interface reading a file, editing it, and showing the diff

Recorded from the real TUI against an offline scripted model.

At its core, mare is a small Rust kernel that confines processes, keeps sessions durable, renders the terminal UI (mare-tui), and runs plugins. The agent loop, tools, model providers, compaction, permission policy, status line, and UI components and themes are Lua 5.5 plugins built on cordis-lua.

Highlights

  • Built-in and user plugins: built-ins use the same public Cordis service and event API as user plugins. Run mare runtime to inspect shipped sources; to replace a plugin, provide a same-name definition in a higher-precedence source with override = true, then run /reload.
  • Rust safety boundary: OS sandboxing (bubblewrap or Landlock on Linux, Seatbelt on macOS, restricted tokens and an optional enhanced tier on Windows), project trust, crash-safe JSONL sessions, pre-edit file snapshots (/rewind), and a Lua watchdog stay in Rust.
  • Configured in Lua: ~/.config/mare/init.lua plus trusted .mare/init.lua, typed for LuaLS via mare init, with git package management (mare.plugins.add and mare-lock.json) and mare --clean.
  • Every front end, one session model: main-screen TUI with native scrollback, headless -p / --json for scripts and CI, bidirectional mare RPC protocol 3.0 (--rpc), authenticated --web HTTP/WebSocket RPC, and ACP (mare acp) for editors.

Quick start

1. Install. Run the one-line installer, install via a package manager (brew, scoop, nix, yay, Docker/GHCR), download a release package or archive (.deb, .rpm, .tar.gz, .zip) from GitHub Releases (see the installation guide), or build from source with Rust 1.100.0+ and a C compiler:

# macOS / Linux one-line installer (SHA-256 verified)
curl -fsSL https://signalridge.github.io/mare/install.sh | sh

# Homebrew (macOS / Linux)
brew tap signalridge/tap && brew trust signalridge/tap
brew install signalridge/tap/mare

# Nix (Flake / NUR)
nix run github:signalridge/mare
nix profile install github:signalridge/nur-packages#mare

# Arch Linux (AUR) & Container (GHCR)
yay -S mare-bin
docker run --rm -it -v "$PWD:/workspace" -w /workspace ghcr.io/signalridge/mare:latest
# Windows one-line installer (PowerShell, SHA-256 verified)
irm https://signalridge.github.io/mare/install.ps1 | iex

# Scoop (Windows)
scoop bucket add signalridge https://github.com/signalridge/scoop-bucket
scoop install signalridge/mare
# From source with Cargo (or clone and build)
cargo install --git https://github.com/signalridge/mare --locked --bin mare mare-cli

2. Run. Launch mare directly inside a project. When no provider has credentials yet, the TUI walks you through first-run onboarding (provider login, default model, and optional plugins):

cd ~/src/my-project
mare

You can also initialize config and credentials explicitly with mare init, mare login openai (or pipe an API key with --with-api-key), and mare doctor.

3. Configure (~/.config/mare/init.lua). Extend mare with packages from mare-plugins or your own Lua plugins built on cordis-lua:

mare.setup { model = "openai/gpt-6.1-terra" }
mare.plugin("tools", { bash_timeout_ms = 120000 })

mare.plugins.add {
  { "signalridge/mare-plugins", version = "^1" },
}

Documentation

Topic Link
Full documentation docs/README.md · signalridge.github.io/mare
Get started & workflows Quickstart · Installation · Workflows
Configuration & plugins init.lua · Packages · Writing a plugin
Safety & interfaces Permissions · RPC · ACP · Headless
Architecture & reference Subsystems · CLI · Lua API · RPC reference
Project & governance NEWS.md · SECURITY.md · CONTRIBUTING.md

Acknowledgements

mare stands on the ideas and engineering of these projects:

  • DeepSeek Harness & Cordis: plugin-first services, events, and a replaceable agent loop.
  • Codex: process execution, OS sandboxing, apply_patch, and Rust groundwork.
  • Kimi Code: context-recovery footer and secret/log redaction patterns.
  • pi: compaction summary prompts, retry error classification, and project trust flow.
  • Neovim: init.lua configuration, typed Lua APIs, and RPC.
  • Yazi & WezTerm: Lua plugin/package layout for Rust apps and live-reloaded config as code.

The name comes from the lunar maria: the core is the moon, and plugins are the seas across its surface.

License

Licensed under the Apache License, Version 2.0. Third-party attributions and notices are listed in THIRD_PARTY_NOTICES.md.

Explore related projects

Loading…