Skip to content
MieluoxxxPublic

About

Resources

Contributing

Stars

3 stars

Watchers

0 watching

Forks

Repository files navigation

Mizar

Mizar

Terminal-native AI coding workbench written in Rust.

CI Latest Release Docs MIT License

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.

Quick Start

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 | sh

Once 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

Highlights

  • Dual-Mode TUI (F3 / --inline): Switch seamlessly between a full-screen dashboard and an Inline viewport that preserves terminal scrollback, with @file#L1-40 mentions, split diagnostics (Ctrl+B), and native copy toggle (F2).
  • Local Bash (! / !!): Run !cmd to feed command output into the next model turn, or !!cmd to run locally with zero token cost.
  • Rules & Skills: Hierarchical AGENTS.md / CLAUDE.md discovery under a 64 KiB budget plus hot-reloaded SKILL.md workflows (<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 with tool_search, and activate the isolated QuickJS (rquickjs) codemode sandbox on demand (auto-enabled for MCP codemode servers or via --tools codemode / codemode.enabled).
  • Providers & Persistence: OpenAI Completions/Responses, Anthropic Messages, and custom gateways configured via ~/.mizar/models.json or live /settings, backed by tolerant append-only JSONL sessions with SHA-256 image blobs (/tree branching, B-5 /compact, & /trace profiler).
  • 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 + reverse tool.invoke callbacks, runtime MCP/router reload, and graceful shutdown for external hosts.

Documentation & Development

License

MIT

About

Resources

Contributing

Stars

3 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages