← Back to Leaderboard
SCharlesHoskinson

CharlesHoskinson/selune

Worktree-isolated MCP workflow for landing concurrent agent edits with verified checks

Engineering Health (Methodology)
A+ · 89/100
Maintenance Activity
● Updated today
Latest Release
v0.4.0
Commercial License Check
Apache-2.0 · Commercial Friendly

Automated SPDX check for reference only — not legal advice. Disclaimer

Maintenance35/35
Fork Adoption14/25
Release Cadence20/20
License Clarity20/20
MCPSelf-HostedCLI1 README badge views (30d)
Total Stars
★ 40
24h Growth
+4
7d Growth
+39
Forks
14

GitHub Star History

Tracked from daily D1 telemetry snapshots. Hover any data point for exact daily star counts.

CharlesHoskinson/selune Star History (2026-11-27 - 2026-12-04) DAILY STAR HISTORY (8-DAY D1 TELEMETRY) +39 in 7d · avg +6/day 44 22 0 2026-11-27: ★ 12026-11-28: ★ 12026-11-29: ★ 102026-11-30: ★ 192026-12-01: ★ 302026-12-02: ★ 312026-12-03: ★ 362026-12-04: ★ 40 ★ 40 11-27 11-30 12-04

Evidence-Backed Technical Brief

AI Deep Review

Architecture & Core Mechanics

Selûne is a MoonBit 1.0 RC1 toolchain for coordinating edits by multiple coding agents. Each agent works in a locked, detached Git worktree cell with a private object store, and Bubblewrap confines commands run in the cell. Git remains the source of truth; SQLite stores facts derived from Git revisions, candidate records and validation evidence. Edit plans pair typed operations such as Rename and ReplaceBody with definition-level read sets and digests, making the assumptions behind each edit explicit.

The agentic CLI stages a change through propose, validate and commit. Validation runs moon check, moon test and the integrity gate; commit requires passing records for the exact tree and updates the branch head with compare-and-swap. A shared stdio MCP server exposes the workflow to agent CLIs. The local pre-tool hook catches common protected-path mutations early, but the server-side integrity gate is what controls whether a candidate can land.

Key Capabilities & Differentiators

Agents can publish revision facts, look up definitions and build a task-specific context pack containing relevant definitions, dependents and tests. The LedgerFlow walkthrough uses a 16,000-token budget and labels compiler-resolved and parser-extracted facts separately. MoonBit is the first-party path, with exported .mbti signatures, moon ide queries and moon prove contract checks. Rust, TypeScript, Python and Go connect through language servers and SCIP indexers without proof support.

MARS 1.0 links requirements to MoonBit code, tests and Lean proofs. mars check --fresh recomputes source and Lean artifact digests to catch stale bindings. That freshness check is distinct from proof replay: formal verify checks a receipt against a required release manifest and re-executes proofs only with --replay. A revert likewise produces a new candidate, which must pass validation before it can land.

Trade-offs & Limitations

Compared with running Claude Code or another agent CLI directly in Git worktrees and relying on CI, Selûne adds explicit records of what each edit read, what tree was validated and whether protected tests changed. That matters when concurrent agents make edits that can conflict semantically without touching the same lines. It is not a replacement for review: passing gates establish the checks recorded for a candidate, not correctness beyond those checks and any applicable proofs.

The cost is a Linux-oriented sandbox, exact toolchain pins, configuration to maintain and validation work per candidate. Adapter installers can overwrite same-named files without backups, and generated MCP configurations default to publisher; use --dry-run and set read_only explicitly for query-only access. If MoonBit proofs and multi-agent landing controls are not priorities, ordinary worktrees and CI are a simpler operational fit.

Hardware & Deployment Guide

The self-hosted route targets Linux and WSL2. Run ./bin/selune doctor --strict-tier 1 to check the pinned MoonBit 1.0.0-rc1+3c0520448, Node.js 26.13.1 and Bubblewrap 0.13.1, along with Git 2.38+, a C compiler, SQLite with development headers, and jq. The core workflow runs locally; any model service is a separate concern of the attached agent CLI. hello skips moon prove if no Z3 or CVC5 solver is present, so a successful smoke test does not itself imply a proof ran.

Start with ./bin/selune hello and the bundled LedgerFlow staged-landing exercise before attaching a team repository. For agent setup, preview changes with --dry-run, then verify the installed configuration with --check. Recent releases also cover separate subsystems: v0.2.1 shipped SelûneCraft browser runtime and verification updates, v0.3.0 introduced the MoonBit Silverfire cryptography library, and v0.3.1 added a Jasmin ECDSA engine for secp256k1 and P-256. Those milestones are not measures of agent-workflow performance.

Execution isolation: Locked, detached Git worktree cells use private object stores and run agent commands through Linux Bubblewrap.
Dependency tracking: Typed plans record definition read sets with interface and body digests; exported MoonBit signatures come from moon info.
Landing guarantees: agentic commit requires three passing verdicts for the exact candidate tree and updates the target head with compare-and-swap.
Test integrity: The binding gate rejects held-out test edits and hand-edited verdicts; deleting tests or weakening assertions requires a spec-only reviewer token.
Agent integration: The shared stdio MCP server supports read_only and publisher roles; the generated configuration defaults to publisher.
Formal evidence: MARS 1.0 tracks requirement-to-artifact links, and mars check --fresh detects stale source and Lean bindings.
Best For

MoonBit teams on Linux or WSL2 that want several agents to edit one repository while requiring auditable checks and protected acceptance tests before changes land.

Skip If

A single agent with Git worktrees and CI already meets your needs, Linux sandboxing or exact tool pins are impractical, or you need MoonBit-equivalent proofs in another language.

Reviewed on 2026-12-02 · Grounded in GitHub README, root file tree & releases · Newer release v0.4.0 (2026-12-03) shipped after this reviewMethodology

Quick Start & Installation

MCPSelf-HostedCLI
git clone https://github.com/CharlesHoskinson/selune.git
cd selune
curl -fsSL https://cli.moonbitlang.com/install/unix.sh | bash -s -- 1.0.0-rc1+3c0520448
export PATH="$HOME/.moon/bin:$PATH"
moonc -v

Comparison vs. Top Coding, Skills & MCP Alternatives

Full comparison →
RepositoryStars7d TrendStackLicenseCore Positioning
selune ★40+39MoonBitApache-2.0Worktree-isolated MCP workflow for landing concurrent agent edits with verified
oh-my-pi40.5k+497TypeScriptMITA Bun/Rust terminal agent for model-flexible coding with LSP and editor integrat
gemini-cli109.6k+376TypeScriptApache-2.0A Node.js terminal agent for enterprise Gemini coding workflows and MCP tools
goose57.3k+219RustApache-2.0Rust coding agent with MCP tools and local or hosted models, embeddable via ACP

AI Context Briefing (for Claude / Cursor / Windsurf)

Standardized architecture summary & quickstart commands ready to paste into coding agents.

Raw .md ↗
curl -sL https://repoforai.com/repo/CharlesHoskinson/selune.md

Embed Star History Chart & Badges in README.md

Full-history Star History SVGs and velocity cards on GitHub Camo: drop-in replacement for OSSInsight and Star History widgets.

CharlesHoskinson/selune Star History on RepoForAI

Active README embeds unlock Hot-Tier 6h Telemetry Refresh automatically (zero pay-to-rank).

Frequently Asked Questions about selune

How do I attach Selûne to an existing repository without granting write access?

Use ./bin/selune init --target ../my-service --lang rust --agent claude --dry-run to inspect the proposed files before installing, then verify with --check. The generated MCP configuration launches .selune/mcp-stdio.sh with the target repository path; the launcher resolves Selûne through SELUNE_ROOT or a sibling ../selune checkout. The generated role is publisher; change it to read_only if the agent only needs queries.

Does self-hosting require a GPU, and what determines resource use?

The core workflow uses local Git worktrees, native MoonBit builds, Bubblewrap, SQLite and validation commands; it specifies no GPU or VRAM requirement. Budget CPU, RAM and disk for your repository’s builds and tests, the number of concurrent cells, their private Git object stores and retained evidence. Size the attached agent separately: local inference, if you use it, has its own hardware requirements.

Can a commercial team self-host it, and what should it check before redistribution?

The repository is licensed under Apache-2.0, which permits commercial use and self-hosting subject to its terms. If redistributing, review the license and applicable attribution and notice requirements, including THIRD_PARTY_NOTICES.md. External agent CLIs and model services have separate terms; self-hosting the MCP server does not determine where an attached agent processes repository data.

Why add Selûne instead of using an agent CLI with Git worktrees and CI?

Keep your agent CLI and CI alone if branch isolation and ordinary test gates are enough. Selûne adds definition-level read sets, typed edit plans, a held-out-test integrity gate and validation evidence tied to the exact tree that lands. The case is strongest for MoonBit: Rust, TypeScript, Python and Go connect through language servers and SCIP indexers but do not get the MoonBit proof workflow.

Upstream README & Documentation

This profile focuses on independent engineering analysis and live telemetry. Read the full upstream README, changelog, and examples directly on GitHub.

Maintaining CharlesHoskinson/selune? Pin to Homepage + competitor /alternatives pages with a custom Cloud/Demo CTA.Feature CharlesHoskinson/selune on Homepage & Alternatives ($19)
WEEKLY BREAKOUT DIGEST

Top 10 Breakout Open-Source AI Repos, Every Thursday

Signal-only digest of fast-growing AI repos, SPDX license alerts, and architecture picks. Zero spam.

Zero spam · 1-click unsubscribe · Privacy Policy

Saved in your browser · Export Markdown RFC tables or jump into /vs compare