Skip to Content
MeowKit

CLI Reference

The mewkit command line, grouped by what you are trying to do.

MeowKit has one CLI, the native mewkit binary, with mk as a short alias. mk doctor and mewkit doctor run the same binary; this reference uses the long form. Installation shows how to get it. Run project commands from the project root.

Find a command

You want toPage
Install, upgrade, remove or check the kit; configure a projectProject Setup
Create a task, check a plan, see where work stands, record a supervised runPlanning and Tasks
Review a pull request across several sittingsReview
Lint the memory storeMemory
Install the kit for Codex, Cursor, Grok, Pi or OMP, or see what each tool supportsPortability
See what a session cost, check the context budget, read a traceCost and Telemetry

Get started

# 1. Install the kit into your project
cd your-project
mewkit init

# 2. Configure environment
mewkit setup

# 3. Verify installation
mewkit doctor

# 4. Create your first task
mewkit task new --type feature "Add user authentication"

Runtimes and scopes

init writes each runtime's files in the format that runtime reads. The runtimes other than Claude Code are projected from .claude/ plus a small overlay for their hooks and config.

Runtime--targetProject install--global install
Claude Codeclaude-code.claude/~/.claude/ (or CLAUDE_CONFIG_DIR)
Codexcodex.codex/, .agents/skills/, a block in AGENTS.md~/.codex/ (or CODEX_HOME), ~/.agents/skills/
Cursorcursor.cursor/~/.cursor/
Grokgrok.grok/, AGENTS.mdnot available
Pipi.pi/, .agents/skills/, AGENTS.mdnot available
OMPomp.omp/, .agents/skills/, AGENTS.mdnot available
Antigravityantigravity.agents/ (skills, agents, rules, hooks), AGENTS.mdnot available

--target takes a comma-separated list or all. Where a runtime's skills, agents and rules go depends on which runtimes are installed together, because some runtimes also read each other's folders. The runtime surface table lists the placement for each set. Portability lists what each install writes.

The CLI keeps its own state (ownership indexes, lock, kit cache) in .meowkit/ for a project and in ~/.mewkit/state/ for a global install. Files you already had are merged, not replaced: hook files handler by handler, Markdown by a marked block, JSON and TOML by key. The ownership index for each runtime sits at .meowkit/state/ownership/<runtime>.json (~/.mewkit/state/ownership/<runtime>.json globally). upgrade and uninstall act only on what it records. Generated Files describes every file an install writes.

How hooks reach mewkit

For Claude Code at project scope, init writes a small launcher at .meowkit/bin/mewkit for you to commit. The hooks find it by that project path.

  • The launcher resolves the CLI and runs it. It runs the mewkit binary (or mk) when one is on PATH, in MEWKIT_INSTALL_DIR or in ~/.local/bin and reports a compatible version. A project whose kit the retired npm CLI installed keeps running the copy in its own node_modules until you move it (Moving from the npm CLI).
  • The launcher makes no network request. When no CLI is available it says so, names mewkit doctor and exits 127.
  • Hooks do not depend on your shell. They run .meowkit/bin/mewkit only after resolving it and checking that it stays inside the project, so a symlink out of the project is refused.
  • The SessionStart hook puts the launcher's directory first on PATH, so plain mewkit commands work in the agent's shell. That directory contains only mewkit, so nothing else on your PATH changes. On Windows PowerShell the bare form is unavailable and the hook prints the mewkit doctor hint instead.
  • A teammate who clones the repository gets the launcher with it. They still need the binary on their machine.

The binary needs no Node.js. The kit's hooks are Node scripts and need Node.js 24 or later; mewkit doctor fails below it and names the version it found.

Exit codes and help

CodeMeaning
0The command ran and succeeded
1The command ran and failed; a lifecycle command leaves nothing half-applied
2The invocation was wrong: unknown command, unknown subcommand, or a missing subcommand on a command that requires one
3A lifecycle dry run found changes to make, --force had no terminal and no --yes to confirm it, or self-update --check found an update
6init, upgrade or uninstall kept files you edited; --force replaces or removes them
127The committed launcher found no CLI to run

A code 2 names what was wrong and what you could have typed. mewkit <command> --help and mewkit <command> <subcommand> --help print usage and run nothing.

Every flag

The tables below are generated from the binary's own --help. The family pages above carry the worked examples and failure recovery.

Generated from mewkit --help. Run MEWKIT_BLESS=1 cargo test -p mewkit-cli --test docs_cli after changing a command; do not edit this table by hand.

Every command takes --help; mewkit --version prints the version.

mewkit init

Install the kit into this project, or your home with --global

FlagWhat it does
--target <TARGETS>Runtimes to install for: claude-code, codex, cursor, grok, pi, omp, antigravity (comma-separated) or all. Omitted: Claude Code with --yes or in a project that has .claude/, otherwise a picker
--profile <PROFILE>Claude Code: install a subset (core, developer, product, atlassian, security, research, or full). Re-running with a narrower profile removes what the narrower profile no longer includes, unless you edited it
--skill-packs <PACKS>Every runtime but Claude Code: comma-separated skill packs, or all. Omitted installs every skill; an empty value installs the default pack only
--delivery <SHAPE>Claude Code only: native (the host's own directory) or plugin (the same content plus a plugin manifest)
--mcp-profiles <NAMES>Cursor: MCP profile names, or all, to merge into .cursor/mcp.json. Without it no MCP config is written
--allow-cloud-mcpCursor: second opt-in for applying an MCP profile to a project that has a git remote (Cursor Cloud Agents run no local MCP hooks)
--allow-kit-sourceRun even in the kit's source repo (whose .claude/ is the kit's authored source, and which an install would overwrite)
--dry-runShow what would change and change nothing installed (a downloaded kit is still kept in the cache)
--adopt-from <TAG>The kit release the files here came from (e.g. v3.0.0), when a project has the kit's files and no install record. Files that still match that release are taken as the kit's; the rest stay yours
--yesAnswer every question with its default and do not ask any
--globalAct on your home directory instead of this project
--jsonPrint one JSON document instead of text
--forceReplace or remove files you edited after the kit installed them
--kit-version <TAG>Install exactly this kit release (e.g. v2.16.0)
--betaLet a prerelease be the newest kit
--offlineMake no network request: use the newest kit in this scope's cache (or the cached --kit-version)
--kit-archive <ZIP>Install from a local meowkit-release.zip; its SHA-256 comes from --kit-sha256 or a checksums.txt beside it
--kit-sha256 <HEX>The expected SHA-256 of the --kit-archive zip, in hex
--allow-unverified-kitAccept a kit with no checksum or no kit-contract.json

mewkit upgrade

Move the installed runtimes to a newer kit, keeping your edits

FlagWhat it does
--target <TARGETS>Only these installed runtimes (comma-separated); default: every one here
--dry-runShow what would change and change nothing installed (a downloaded kit is still kept in the cache)
--checkReport the installed kit against the newest release; change nothing
--listList the kit releases that can be installed; change nothing
--no-cleanupAccepted for scripts written for the npm CLI. There is no download directory to keep: a downloaded kit always stays in the cache
--yesConfirm --force in a session with no terminal (CI, a pipe, a hook)
--globalAct on your home directory instead of this project
--jsonPrint one JSON document instead of text
--forceReplace or remove files you edited after the kit installed them
--kit-version <TAG>Install exactly this kit release (e.g. v2.16.0)
--betaLet a prerelease be the newest kit
--offlineMake no network request: use the newest kit in this scope's cache (or the cached --kit-version)
--kit-archive <ZIP>Install from a local meowkit-release.zip; its SHA-256 comes from --kit-sha256 or a checksums.txt beside it
--kit-sha256 <HEX>The expected SHA-256 of the --kit-archive zip, in hex
--allow-unverified-kitAccept a kit with no checksum or no kit-contract.json

mewkit uninstall

Remove the kit again (shows what would go unless --yes)

FlagWhat it does
--target <TARGETS>Runtimes to remove (comma-separated) or all; default: every one here
--yesApply the removal; without it, only show what would go
--globalAct on your home directory instead of this project
--jsonPrint one JSON document instead of text
--forceReplace or remove files you edited after the kit installed them
--kit-version <TAG>Install exactly this kit release (e.g. v2.16.0)
--betaLet a prerelease be the newest kit
--offlineMake no network request: use the newest kit in this scope's cache (or the cached --kit-version)
--kit-archive <ZIP>Install from a local meowkit-release.zip; its SHA-256 comes from --kit-sha256 or a checksums.txt beside it
--kit-sha256 <HEX>The expected SHA-256 of the --kit-archive zip, in hex
--allow-unverified-kitAccept a kit with no checksum or no kit-contract.json

mewkit doctor

Check the toolchain, the installs here and their hooks

Subcommands: provenance.

FlagWhat it does
--reportAppend a shareable report block to the text output
--providersAlso report what each provider adapter can enforce
--stateAlso report the state taxonomy
--explainprovenance: name the files behind each count
--hard-gatesLive-probe the hard guards (privacy, injection, ship) in a scratch project. This executes the hook commands this project's Claude Code settings name, so run it only in a project whose settings you trust.
--adoptRebuild the npm CLI's ownership baseline from the local kit cache, or refuse
--target <TARGETS>Only these runtimes (comma-separated); default: all
--globalCheck your home directory's installs first instead of this project's
--jsonPrint one JSON document instead of text

mewkit providers

What each runtime gets from the kit: files, skills, hooks, gaps

FlagWhat it does
--lifecycleShow the capability-adapter view: the lifecycle-event matrix, or one provider's adapter detail
--target <TARGETS>Runtimes to show (comma-separated); default: all
--globalShow the global (home directory) projection instead of this project's
--jsonPrint one JSON document instead of text
--kit-version <TAG>Install exactly this kit release (e.g. v2.16.0)
--betaLet a prerelease be the newest kit
--offlineMake no network request: use the newest kit in this scope's cache (or the cached --kit-version)
--kit-archive <ZIP>Install from a local meowkit-release.zip; its SHA-256 comes from --kit-sha256 or a checksums.txt beside it
--kit-sha256 <HEX>The expected SHA-256 of the --kit-archive zip, in hex
--allow-unverified-kitAccept a kit with no checksum or no kit-contract.json

mewkit versions

Kits installed, cached and available, and the supported kit contract

FlagWhat it does
--globalList the cache of your home directory instead of this project's
--offlineDo not ask GitHub for the kits that can be installed
--betaInclude prereleases among the available kits
--jsonPrint one JSON document instead of text

mewkit self-update

Replace this binary with the newest release (SHA-256 verified)

FlagWhat it does
--checkOnly report whether a newer binary exists (exit 3 when one does)
--channel <CHANNEL>Release channel: stable, or beta to include prereleases [default: stable] [possible values: stable, beta]

mewkit orient

Resume orientation from durable task state; reads records only

FlagWhat it does
--jsonPrint the full envelope as JSON instead of the bounded text block
--recordRecord the advisory orient_run measurement (the default)
--no-recordSkip the advisory measurement, leaving the run strictly read-only

mewkit plan

Inspect, sync or archive a plan under tasks/plans/

Subcommands: status, check, sync, archive.

mewkit plan status

Progress across plan.md + its phase files (read-only)

FlagWhat it does
--jsonPrint the summary as JSON instead of the progress block

mewkit plan check

Required-section report for one phase file (read-only)

FlagWhat it does
--jsonPrint the report as JSON
--structuralValidate plan.md + every sibling phase file against the full template

mewkit plan sync

Rewrite derived statuses from the checkboxes; never a checkbox (mutating)

FlagWhat it does
--checkWrite nothing; print the drift and exit 1 when there is any
--jsonPrint the changes as JSON

mewkit plan archive

Mark statuses completed + move to tasks/plans/archive/ (mutating)

FlagWhat it does
--dry-runPrint what would happen without writing or moving anything

mewkit note

Append a lint-checked entry to the team-memory store (entry on stdin)

mewkit task

Create and list task files

Subcommands: new, list.

mewkit task new

Scaffold a task file from the template for its type

FlagWhat it does
--type <TYPE>Task type: feature, bug-fix, refactor, security
--priority <PRIORITY>Task priority
--activateActivate the task on creation; --no-activate opts out
--no-activateThe explicit opt-out, accepted so a caller can state the default

mewkit task list

List task files with their status, type, priority and path

FlagWhat it does
--allInclude completed and backlog tasks (scan all of tasks/)
--status <STATUS>Filter the list by status: draft, in-progress, blocked, review, done

mewkit task-state

Show or update the durable task record

Subcommands: show, update.

FlagWhat it does
--jsonEmit machine-readable JSON (show only)

mewkit task-state show

Print the durable state every active record carries

FlagWhat it does
--jsonEmit machine-readable JSON (show only)

mewkit task-state update

Record a transition on one task's record

FlagWhat it does
--status <STATUS>Task status: active, blocked, done
--step <STEP>What just finished
--jsonEmit machine-readable JSON (show only)
--next <NEXT>The next action
--plan <PLAN>Path to the plan this record joins
--blocker <TEXT>Record a blocker; repeatable
--verification <REF=RESULT>Record a verification as ref=result; repeatable
--evidence-ref <PATH>Record an evidence reference; repeatable
--capability-decision <DECISION>Record a capability decision as capId|decision|reason; repeatable

mewkit validate

Check this project's structure and wiring (not that the guards block)

FlagWhat it does
--mode <MODE>Maintainer override for the detected consumer profile
--target <PROVIDER>Validate a generated provider target instead of a .claude/ project
--portableInclude the portable provider-contract checks
--strictTreat WARN as failure (exit 1)
--workflowRun only the workflow.yaml drift check
--ownershipRun only the artifact ownership-completeness check
--agentsRun only the declared agent-contract conformance checks
--substrateRun only the responsibility-substrate drift and untagged check
--packsRun only the pack-manifest coherence and safety check
--rulesRun only the routing-table-breadth check
--capabilitiesRun only the capability-manifest checks
--memoryRun only the committed team-memory store lint
--frontmatterRun only the SKILL.md frontmatter schema and runtime-contract check
--docs-refsRun only the .claude to docs/* reference allowlist check
--skill-rubricRun only the mechanical skill-rubric scoring and write its JSON report
--skill-rubric-report <PATH>Where the skill-rubric report goes (implies --skill-rubric; default .meowkit/telemetry/skill-rubric.json)

mewkit review

Prepare, read, compose and submit a structured code review

Subcommands: prepare, read, coverage, compose, submit, cleanup.

FlagWhat it does
--remote <REMOTE>prepare: fetch the pull request from this remote
--session <SESSION>The session id review prepare printed
--as <REVIEWER>read: the reviewer role the receipt is attributed to
--replysubmit: the only GitHub write authority
--confirm <CONFIRM>submit: the token bound to the composed payload
--jsonPrint JSON instead of a summary line

mewkit advice

Athena supervision checkpoints: evidence in, advice out (never approval)

Subcommands: begin, commit, status, validate-packet.

FlagWhat it does
--run <RUN>The supervision run id; it names the dossier
--skill <SKILL>The wrapped skill, e.g. mk:cook
--stage <STAGE>GUIDE, RESCUE, REVIEW or RECHECK
--checkpoint <CHECKPOINT>Caller-chosen checkpoint id, unique within the run
--disposition <DISPOSITION>The returned routing signal, recorded verbatim
--outcome <OUTCOME>What the PARENT did with the directive: adopted, rejected, deferred
--reason <REASON>Why; required even when the directive was adopted
--question <QUESTION>The question the checkpoint asked
--directive <DIRECTIVE>The directive that came back
--correction <CORRECTION>One required correction; repeat for more
--evidence-pointer <EVIDENCE_POINTER>One evidence pointer; repeat for more
--next <NEXT>The next safe action recorded on the receipt
--slug <SLUG>Receipt filename slug; defaults to the run id
--task-id <TASK_ID>Task id recorded on the receipt
--provider <PROVIDER>Runtime recorded on the receipt
--evidence <EVIDENCE>commit: the workflow evidence index a correction supersedes. validate-packet: the packet to check
--correction-kind <CORRECTION_KIND>commit: source or scope; scope also marks the plan agreement required again
--packet-kind <PACKET_KIND>validate-packet: input, output or brief
--release-stage <RELEASE_STAGE>The release stage whose budget this call spends (mk:ship only)
--jsonstatus: print the dossier as JSON

mewkit trace

On-demand trace recall: score, audit, propose, record friction

Subcommands: score, audit, propose.

FlagWhat it does
--id <ID>Run id: filters score, attributes --friction
--friction <FRICTION>Record a friction note instead of reading the log
--responsibility <RESPONSIBILITY>Attribute the friction note to one responsibility
--skill <SKILL>Attribute the friction note to one skill
--commitpropose: append the items to the advisory backlog
--jsonPrint JSON instead of text

mewkit eval

Measure the kit: run eval cases in sandboxes, compare two reports

Subcommands: run, compare.

mewkit eval run

Run a case suite in disposable sandboxes and write a report

FlagWhat it does
--suite <SUITE>Suite to run: the cases whose suite field names it [default: baseline]
--runtime <RUNTIME>Runtime to drive: claude-code or codex [default: claude-code]
--model <MODEL>Pinned model version, recorded in the report (required unless --dry-run)
--max-cost-usd <MAX_COST_USD>Stop before total spend across concurrent eval runs here passes this many USD (required unless --dry-run)
--max-runs <MAX_RUNS>Stop after this many runs (required unless --dry-run)
--case-root <CASE_ROOT>Folder holding <skill>/eval/*.yaml cases; defaults to this project's .claude/skills (cases live only in a kit checkout)
--trust-casesAccept a --case-root outside this project's .claude/skills (its cases run model turns)
--case <CASES>Only these case ids (repeatable)
--kit-archive <KIT_ARCHIVE>Kit archive installed into every sandbox (required unless --dry-run); a release meowkit-release.zip, or one built from a checkout
--kit-sha256 <KIT_SHA256>The expected SHA-256 of --kit-archive, in hex
--timeout-secs <TIMEOUT_SECS>Seconds before one run is stopped and counted as an error [default: 600]
--max-turns <MAX_TURNS>Turn limit passed to the runtime for each run [default: 12]
--fail-under <FAIL_UNDER>Exit 1 when the trigger, paired-on or mismatch-report rate is below this fraction
--dry-runList the cases and runs that would happen, and run nothing

mewkit eval compare

Compare two reports of the same suite; refuses reports that differ in what they measured

FlagWhat it does
--jsonPrint JSON instead of text

mewkit budget

Token and USD spend from the cost log

Subcommands: context.

FlagWhat it does
--monthlyAggregate by month instead of the last ten entries
--session <SESSION>Filter to the current session, or to a specific session id
--day <DAY>Filter to today, or to a specific YYYY-MM-DD
--profile <PROFILE>context: estimate one profile instead of all of them
--fail-over <FAIL_OVER>context: exit non-zero when a profile exceeds N tokens
--jsoncontext: print the reports as JSON

mewkit setup

Guided post-scaffold configuration

FlagWhat it does
--only <ONLY>Run a single setup step
--system-depsInstall system-level dependencies
--skills <SKILLS>Comma-separated skills whose interpreter environment setup should create
--dry-runPrint what would happen without writing
--jsonEmit machine-readable JSON
--yesAnswer the system-dependency prompt affirmatively

mewkit skill

Per-skill environments and the skill store (status of installed skills)

Subcommands: env, status, overlay, fork, rollback.

FlagWhat it does
--listList every skill that declares a runtime and the state of its environment
--file <PATH>overlay: a file of the skill to store (repeatable; default: every file edited since install)
--approveoverlay: show an overlay this machine has not approved and place it
--yesConfirm overlay --approve in a session with no terminal
--to <DIGEST>rollback: the recorded digest to restore (a unique prefix of at least 7 hex digits; default: the most recent earlier one)
--globalAct on your home directory instead of this project (skill store verbs)
--jsonPrint one JSON document instead of text (skill store verbs)

mewkit pack

Manage install packs

Subcommands: list, add, remove.

FlagWhat it does
--jsonPrint JSON instead of text
--yesSkip the confirmation before deleting
--dry-runPrint the plan; write and delete nothing
--kit-version <TAG>Install exactly this kit release (e.g. v2.16.0)
--betaLet a prerelease be the newest kit
--offlineMake no network request: use the newest kit in this scope's cache (or the cached --kit-version)
--kit-archive <ZIP>Install from a local meowkit-release.zip; its SHA-256 comes from --kit-sha256 or a checksums.txt beside it
--kit-sha256 <HEX>The expected SHA-256 of the --kit-archive zip, in hex
--allow-unverified-kitAccept a kit with no checksum or no kit-contract.json

mewkit capabilities

Explain, resolve and project the kit's capabilities

Subcommands: list, explain, resolve, view, bootstrap, projections.

FlagWhat it does
--jsonPrint JSON instead of text
--intent <INTENT>resolve: the intent to resolve
--provider <PROVIDER>resolve: the host provider (default claude-code); bootstrap: the provider to render for
--writebootstrap: write the generated file instead of printing it

mewkit backups

List or restore the backups lifecycle commands left behind

Subcommands: list, restore.

FlagWhat it does
--jsonPrint JSON instead of text
--dry-runrestore: print the plan and change nothing
--yesrestore: proceed without a terminal to confirm in

On this page