m>minicode
terminalv0.9.6 · MIT · zero-dep · bun ≥ 1.0

Coding agent CLI yang tinggal di shell kamu.

Minicode berjalan di atas kernel MiniCore yang dibekukan: tools FS, bash, git, memory RAG, MCP, LSP, dan checkpoint shadow-git. Output mengalir ke scrollback — tanpa alternate screen, tanpa panel.

terminalinstall
git clone https://github.com/startupmini/minicode && cd minicode
bun install && bun link
play_arrowminicode “buat http server” --verbose
$ minicode “buat http server hello world di server.ts” --verbose
  ✓ write_file server.ts
  ✓ bash bun run server.ts
Hello world di http://localhost:3000 — receipt di atas permanen di scrollback,
progres transient tidak pernah bocor ke output.
Kenapa shell-native

Bukan TUI. Sengaja.

Kontrak terminal Minicode dibekukan di docs/TERMINAL_CONTRACT.md — 12 invariant dijaga test peta proteksi.

scroll

Scrollback, bukan redraw

Teks model dan receipt menempel di riwayat shell. Bisa di-pipe, di-grep, di-copy.

tune

Pipe-safe

Non-TTY: nol cursor-control, nol spinner. Warna mati saat di-redirect; NO_COLOR menang.

traffic

Satu arbitrator transient

Garis status dan spinner lewat satu ownership di statusline.ts — tidak tumpang tindih.

block

Tanpa alternate screen

Picker dan manager transient dan menghapus diri. Tidak ada chrome permanen.

Fitur

Satu biner kecil, enam subsistem.

Tiap klaim merujuk ke file sumber agar bisa diverifikasi dengan read_file.

build

37 tool

FS, bash, git, web, memory, sub-agen, MCP, LSP. Dijail realpath, atomic, secret-scrub.

Referensi tools →
shield

Policy & sandbox

6 permission mode, bash-guard ternormalisasi, sandbox OS-native otomatis.

Policy & sandbox →
hub

14 gateway + OAuth

OpenAI-compat, Anthropic, router fallback, login device-code tanpa API key.

Config & provider →
memory

Memory & sessions

RAG hybrid, checkpoint shadow-git O(delta), /undo dan /redo per turn.

Memory & sessions →
extension

MCP & LSP

Client stdio + Streamable HTTP, plus mcp serve. LSP diagnostics otomatis.

MCP & LSP →
verified

Verify & benchmark

--verify baseline-first + self-heal 3 siklus, harness audit 60 cek.

Verify & benchmark →
Provider

14 gateway, tanpa bocor endpoint.

Picker Gateway > hanya menampilkan label — tanpa URL. Login OAuth device-code tersedia tanpa API key. Detail di Config & Provider.

openaianthropicopenrouterdeepseekopencode-zengoogleollamaqwengroqtogetherfireworksmistralcoheregeneric
CLI

Flags yang paling dipakai.

Tabel penuh, mode REPL, dan environment variables ada di CLI — Mode & Flags.

FlagFungsi
--verifyAuto-verify baseline-first + self-heal maks 3 siklus.
--sandbox docker|os|noneIsolasi bash; default OS-native otomatis bila tersedia.
--budget 0.50Batas biaya sesi; warn 80%, tolak prompt baru bila lewat.
--budget-strictFail-closed: cost tak dikenal dianggap over budget.
--ask / --planHuman-in-loop per tool, atau mode rencana read-only.
--tool-scope exploreSubset read-only 12 tool untuk eksplorasi aman.
--provider <id>Paksa provider tanpa ubah config.
--model a::bOverride model sekali jalan, lintas provider.
--resume <id>Lanjutkan sesi dengan full history + validasi workspace.
--cwd <path>Workspace root untuk tool file dan jail.
FAQ

Yang sering ditanya.

Butuh API key?

Tidak harus. minicode auth login memakai OAuth device-code — kode singkat, setujui di browser. API key tetap didukung untuk 14 gateway.

Jalan di Windows?

Ya, via Bun. Sandbox OS-native (bubblewrap/seatbelt) tidak ada di Windows — default turun ke allowlist dengan alasan dicetak sekali, atau pakai --sandbox docker.

Biaya tampil N/A?

Model belum ada di tabel harga. Jalankan minicode pricing sync lalu pricing show <model>. Semua angka estimasi.

/undo memulihkan apa?

Perubahan file turn terakhir (yang dilacak git). File ber-.gitignore tidak ikut — disengaja agar node_modules tak ikut snapshot.

MCP localhost ditolak?

Itu penjaga SSRF, bukan bug. Tambahkan server dengan --allow-private saat config mcp add.

Butuh Node.js?

Tidak — wajib Bun ≥ 1.0 karena bun:sqlite dipakai langsung. Tidak jalan di Node.js.