CharlesHoskinson/selune
Worktree-isolated MCP workflow for landing concurrent agent edits with verified checks
Automated SPDX check for reference only — not legal advice. Disclaimer
GitHub Star History
Tracked from daily D1 telemetry snapshots. Hover any data point for exact daily star counts.
Evidence-Backed Technical Brief
AI Deep ReviewArchitecture & 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.
moon info.agentic commit requires three passing verdicts for the exact candidate tree and updates the target head with compare-and-swap.read_only and publisher roles; the generated configuration defaults to publisher.mars check --fresh detects stale source and Lean bindings.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.
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.
Quick Start & Installation
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 →| Repository | Stars | 7d Trend | Stack | License | Core Positioning |
|---|---|---|---|---|---|
| selune ★ | 40 | +39 | MoonBit | Apache-2.0 | Worktree-isolated MCP workflow for landing concurrent agent edits with verified |
| oh-my-pi | 40.5k | +497 | TypeScript | MIT | A Bun/Rust terminal agent for model-flexible coding with LSP and editor integrat |
| gemini-cli | 109.6k | +376 | TypeScript | Apache-2.0 | A Node.js terminal agent for enterprise Gemini coding workflows and MCP tools |
| goose | 57.3k | +219 | Rust | Apache-2.0 | Rust 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.
curl -sL https://repoforai.com/repo/CharlesHoskinson/selune.md
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?
./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?
Can a commercial team self-host it, and what should it check before redistribution?
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?
Upstream README & Documentation
This profile focuses on independent engineering analysis and live telemetry. Read the full upstream README, changelog, and examples directly on GitHub.
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