Mikk
Getting Started

Installation & Quick Start

Get Mikk running in your project in under 3 minutes — install the CLI, run mikk init, and connect your AI assistant.

Requirements

Node.js ≥ 18 or Bun ≥ 1.x

Any modern Node runtime works. Bun is recommended — it is the fastest.

TypeScript, JavaScript, Go, or any of 11 supported languages

.ts, .tsx, .js, .jsx, .mjs, .cjs, .go, .py, .java, .cs, .rs, .cpp, .c, .php, .rb

Install the CLI

npm install -g @getmikk/cli
bun add -g @getmikk/cli
npx @getmikk/cli init

Verify the installation:

mikk --version

Initialize Your Project

Run mikk init

mikk init

Mikk scans your codebase using OXC (Rust-backed parser) and writes all artifacts in seconds:

✓ 2,847 functions across 91 files parsed
✓ Graph: 3,201 nodes, 9,442 edges
✓ 8 modules auto-detected
✓ SHA-256 Merkle tree complete
✓ mikk.lock.json written
✓ claude.md + AGENTS.md written
Done in 2.8s.

Review generated files

mikk.json
mikk.lock.json
claude.md
AGENTS.md
FileDescriptionCommit?
mikk.jsonArchitecture contract — modules, constraints, ADRs, policies✅ Yes
mikk.lock.jsonFull codebase snapshot with Merkle hashes✅ Yes
claude.mdAI context for Claude✅ Yes
AGENTS.mdAI context for Codex and other agents✅ Yes
.mikk/sync-state.jsonWatcher daemon state❌ No

Define your policies (optional)

Open mikk.json and add a policies block to configure safety gate thresholds:

mikk.json
{
  "policies": {
    "maxRiskScore": 70,
    "maxImpactNodes": 10,
    "protectedModules": ["auth", "billing"],
    "enforceStrictBoundaries": false,
    "requireTestsForChangedFiles": true,
    "requireDocumentationForApiChanges": false
  }
}

These control what the Decision Engine blocks vs. warns vs. approves. All fields have safe defaults — the block is optional.

Ignore Files

Create .mikkignore at your project root — same syntax as .gitignore:

.mikkignore
node_modules/
dist/
.next/
build/
*.test.ts
*.spec.ts
coverage/

Mikk automatically respects .gitignore. You only need .mikkignore for additional exclusions specific to Mikk.

Connect to Your AI Assistant

Add to %APPDATA%\Claude\claude_desktop_config.json (Windows) or ~/Library/Application Support/Claude/claude_desktop_config.json (macOS):

claude_desktop_config.json
{
  "mcpServers": {
    "mikk": {
      "command": "npx",
      "args": ["-y", "@getmikk/mcp-server", "/absolute/path/to/my-project"]
    }
  }
}

Or use the auto-installer:

mikk mcp install --tool claude

Add to .cursor/mcp.json in your project root:

.cursor/mcp.json
{
  "mcpServers": {
    "mikk": {
      "command": "npx",
      "args": ["-y", "@getmikk/mcp-server", "/absolute/path/to/my-project"]
    }
  }
}

Or:

mikk mcp install --tool cursor
mikk mcp install --tool vscode

Adds Mikk's MCP server to VS Code settings automatically.

Daily Workflow

# After making code changes — update the lock file
mikk analyze

# Keep a live watcher running in the background
mikk watch

# See blast radius before touching a file
mikk context impact src/auth/login.ts

# Pre-flight a refactor idea
mikk intent "Extract shared validation into a utils module"

# Validate architecture in CI
mikk ci --strict

Supported Languages

LanguageExtensionsParserCoverage
TypeScript.ts, .tsxOXC (Rust)100%
JavaScript.js, .jsx, .mjs, .cjsOXC (Rust)100%
Go.goNative100%
Python.pyTree-sitter95%
Java / Kotlin.java, .kt, .ktsTree-sitter90%
C#.csTree-sitter90%
Rust.rsTree-sitter85%
C++.cpp, .cc, .cxx, .hpp, .hxx, .hhTree-sitter85%
C.c, .hTree-sitter85%
PHP.phpTree-sitter85%
Ruby.rbTree-sitter85%
Swift.swiftTree-sitter80%

Tree-sitter languages require the web-tree-sitter package, which is installed automatically with @getmikk/cli. Optional: install @xenova/transformers (22MB, downloads once) to enable mikk_semantic_search.

Was this page helpful?

On this page