Terminal-native AI coding workbench written in Rust.
Docs · 中文文档 · Releases · Architecture · Contributing
Mizar is a Rust workspace (cordis plugin microkernel + mizar-tui) for heavy command-line coding workflows—featuring Fullscreen/Inline dual viewports, local ! / !! shell execution, hierarchical AGENTS.md rules, MCP servers, and an isolated QuickJS orchestration sandbox.
Install the prebuilt binary on macOS (Apple Silicon / Intel) or Linux (x86_64 / arm64) from GitHub Releases:
curl -fsSL https://raw.githubusercontent.com/Mieluoxxx/Mizar/main/scripts/install.sh | shOnce installed, check or upgrade to the latest release anytime with mizar update (set MIZAR_SKIP_VERSION_CHECK=1 to disable startup version checks). Note: the built-in grep tool uses ripgrep (rg) and bash can use fd—interactive TUI installs both on demand into ~/.mizar/bin, or run mizar install-tools.
Or build from source (requires Rust 1.98.0+, edition 2024, pinned in rust-toolchain.toml):
# Launch offline demo mode (when no API key or models.json is configured)
cargo run -p mizar-tui --bin mizar
# Or connect directly with an API key
export DEEPSEEK_API_KEY="sk-..." # also supports OPENAI_API_KEY / ANTHROPIC_API_KEY
cargo run -p mizar-tui --bin mizar -- -C /path/to/repo
# Or install locally from the workspace
cargo install --path crates/mizar-tui- Dual-Mode TUI (
F3/--inline): Switch seamlessly between a full-screen dashboard and an Inline viewport that preserves terminal scrollback, with@file#L1-40mentions, split diagnostics (Ctrl+B), and native copy toggle (F2). - Local Bash (
!/!!): Run!cmdto feed command output into the next model turn, or!!cmdto run locally with zero token cost. - Rules & Skills: Hierarchical
AGENTS.md/CLAUDE.mddiscovery under a64 KiBbudget plus hot-reloadedSKILL.mdworkflows (<available_skills><location>pointers read on demand &/<name>gestures). - MCP & Codemode: Connect Stdio/HTTP MCP servers via
mcp.json, discover large tool catalogs on demand withtool_search, and activate the isolated QuickJS (rquickjs)codemodesandbox on demand (auto-enabled for MCPcodemodeservers or via--tools codemode/codemode.enabled). - Providers & Persistence: OpenAI Completions/Responses, Anthropic Messages, and custom gateways configured via
~/.mizar/models.jsonor live/settings, backed by tolerant append-only JSONL sessions with SHA-256 image blobs (/treebranching, B-5/compact, &/traceprofiler). - Long-Lived Stdio Bridge (
mizar bridge): Machine-readable NDJSON JSON-RPC 2.0 protocol (v1.0) over stdio with dynamic prompt sections, dynamic host tool registration + reversetool.invokecallbacks, runtime MCP/router reload, and graceful shutdown for external hosts.
- Online Docs: English · 中文文档 (deployed to GitHub Pages via
.github/workflows/pages.yml) - Docs Site Source:
site/(Chinese & English Astro + Pagefind site)pnpm --dir site install --frozen-lockfile pnpm --dir site dev
- Architecture & Crates:
docs/plugins.md(34 workspace crates built oncordis) - TypeScript SDK:
sdk/ts/(@mizar/sdk, zero runtime dependencies, bundled asmizar-sdk-<tag>.tgzon GitHub Releases) - Contributing:
CONTRIBUTING.md· Repository Rules:AGENTS.md