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 to | Page |
|---|---|
| Install, upgrade, remove or check the kit; configure a project | Project Setup |
| Create a task, check a plan, see where work stands, record a supervised run | Planning and Tasks |
| Review a pull request across several sittings | Review |
| Lint the memory store | Memory |
| Install the kit for Codex, Cursor, Grok, Pi or OMP, or see what each tool supports | Portability |
| See what a session cost, check the context budget, read a trace | Cost 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 | --target | Project install | --global install |
|---|---|---|---|
| Claude Code | claude-code | .claude/ | ~/.claude/ (or CLAUDE_CONFIG_DIR) |
| Codex | codex | .codex/, .agents/skills/, a block in AGENTS.md | ~/.codex/ (or CODEX_HOME), ~/.agents/skills/ |
| Cursor | cursor | .cursor/ | ~/.cursor/ |
| Grok | grok | .grok/, AGENTS.md | not available |
| Pi | pi | .pi/, .agents/skills/, AGENTS.md | not available |
| OMP | omp | .omp/, .agents/skills/, AGENTS.md | not available |
| Antigravity | antigravity | .agents/ (skills, agents, rules, hooks), AGENTS.md | not 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
mewkitbinary (ormk) when one is onPATH, inMEWKIT_INSTALL_DIRor in~/.local/binand reports a compatible version. A project whose kit the retired npm CLI installed keeps running the copy in its ownnode_modulesuntil you move it (Moving from the npm CLI). - The launcher makes no network request. When no CLI is available it says so, names
mewkit doctorand exits 127. - Hooks do not depend on your shell. They run
.meowkit/bin/mewkitonly 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 plainmewkitcommands work in the agent's shell. That directory contains onlymewkit, so nothing else on yourPATHchanges. On Windows PowerShell the bare form is unavailable and the hook prints themewkit doctorhint 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
| Code | Meaning |
|---|---|
0 | The command ran and succeeded |
1 | The command ran and failed; a lifecycle command leaves nothing half-applied |
2 | The invocation was wrong: unknown command, unknown subcommand, or a missing subcommand on a command that requires one |
3 | A lifecycle dry run found changes to make, --force had no terminal and no --yes to confirm it, or self-update --check found an update |
6 | init, upgrade or uninstall kept files you edited; --force replaces or removes them |
127 | The 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
| Flag | What 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-mcp | Cursor: 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-source | Run even in the kit's source repo (whose .claude/ is the kit's authored source, and which an install would overwrite) |
--dry-run | Show 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 |
--yes | Answer every question with its default and do not ask any |
--global | Act on your home directory instead of this project |
--json | Print one JSON document instead of text |
--force | Replace or remove files you edited after the kit installed them |
--kit-version <TAG> | Install exactly this kit release (e.g. v2.16.0) |
--beta | Let a prerelease be the newest kit |
--offline | Make 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-kit | Accept a kit with no checksum or no kit-contract.json |
mewkit upgrade
Move the installed runtimes to a newer kit, keeping your edits
| Flag | What it does |
|---|---|
--target <TARGETS> | Only these installed runtimes (comma-separated); default: every one here |
--dry-run | Show what would change and change nothing installed (a downloaded kit is still kept in the cache) |
--check | Report the installed kit against the newest release; change nothing |
--list | List the kit releases that can be installed; change nothing |
--no-cleanup | Accepted for scripts written for the npm CLI. There is no download directory to keep: a downloaded kit always stays in the cache |
--yes | Confirm --force in a session with no terminal (CI, a pipe, a hook) |
--global | Act on your home directory instead of this project |
--json | Print one JSON document instead of text |
--force | Replace or remove files you edited after the kit installed them |
--kit-version <TAG> | Install exactly this kit release (e.g. v2.16.0) |
--beta | Let a prerelease be the newest kit |
--offline | Make 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-kit | Accept a kit with no checksum or no kit-contract.json |
mewkit uninstall
Remove the kit again (shows what would go unless --yes)
| Flag | What it does |
|---|---|
--target <TARGETS> | Runtimes to remove (comma-separated) or all; default: every one here |
--yes | Apply the removal; without it, only show what would go |
--global | Act on your home directory instead of this project |
--json | Print one JSON document instead of text |
--force | Replace or remove files you edited after the kit installed them |
--kit-version <TAG> | Install exactly this kit release (e.g. v2.16.0) |
--beta | Let a prerelease be the newest kit |
--offline | Make 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-kit | Accept a kit with no checksum or no kit-contract.json |
mewkit doctor
Check the toolchain, the installs here and their hooks
Subcommands: provenance.
| Flag | What it does |
|---|---|
--report | Append a shareable report block to the text output |
--providers | Also report what each provider adapter can enforce |
--state | Also report the state taxonomy |
--explain | provenance: name the files behind each count |
--hard-gates | Live-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. |
--adopt | Rebuild the npm CLI's ownership baseline from the local kit cache, or refuse |
--target <TARGETS> | Only these runtimes (comma-separated); default: all |
--global | Check your home directory's installs first instead of this project's |
--json | Print one JSON document instead of text |
mewkit providers
What each runtime gets from the kit: files, skills, hooks, gaps
| Flag | What it does |
|---|---|
--lifecycle | Show the capability-adapter view: the lifecycle-event matrix, or one provider's adapter detail |
--target <TARGETS> | Runtimes to show (comma-separated); default: all |
--global | Show the global (home directory) projection instead of this project's |
--json | Print one JSON document instead of text |
--kit-version <TAG> | Install exactly this kit release (e.g. v2.16.0) |
--beta | Let a prerelease be the newest kit |
--offline | Make 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-kit | Accept a kit with no checksum or no kit-contract.json |
mewkit versions
Kits installed, cached and available, and the supported kit contract
| Flag | What it does |
|---|---|
--global | List the cache of your home directory instead of this project's |
--offline | Do not ask GitHub for the kits that can be installed |
--beta | Include prereleases among the available kits |
--json | Print one JSON document instead of text |
mewkit self-update
Replace this binary with the newest release (SHA-256 verified)
| Flag | What it does |
|---|---|
--check | Only 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
| Flag | What it does |
|---|---|
--json | Print the full envelope as JSON instead of the bounded text block |
--record | Record the advisory orient_run measurement (the default) |
--no-record | Skip 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)
| Flag | What it does |
|---|---|
--json | Print the summary as JSON instead of the progress block |
mewkit plan check
Required-section report for one phase file (read-only)
| Flag | What it does |
|---|---|
--json | Print the report as JSON |
--structural | Validate plan.md + every sibling phase file against the full template |
mewkit plan sync
Rewrite derived statuses from the checkboxes; never a checkbox (mutating)
| Flag | What it does |
|---|---|
--check | Write nothing; print the drift and exit 1 when there is any |
--json | Print the changes as JSON |
mewkit plan archive
Mark statuses completed + move to tasks/plans/archive/ (mutating)
| Flag | What it does |
|---|---|
--dry-run | Print 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
| Flag | What it does |
|---|---|
--type <TYPE> | Task type: feature, bug-fix, refactor, security |
--priority <PRIORITY> | Task priority |
--activate | Activate the task on creation; --no-activate opts out |
--no-activate | The explicit opt-out, accepted so a caller can state the default |
mewkit task list
List task files with their status, type, priority and path
| Flag | What it does |
|---|---|
--all | Include 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.
| Flag | What it does |
|---|---|
--json | Emit machine-readable JSON (show only) |
mewkit task-state show
Print the durable state every active record carries
| Flag | What it does |
|---|---|
--json | Emit machine-readable JSON (show only) |
mewkit task-state update
Record a transition on one task's record
| Flag | What it does |
|---|---|
--status <STATUS> | Task status: active, blocked, done |
--step <STEP> | What just finished |
--json | Emit 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)
| Flag | What it does |
|---|---|
--mode <MODE> | Maintainer override for the detected consumer profile |
--target <PROVIDER> | Validate a generated provider target instead of a .claude/ project |
--portable | Include the portable provider-contract checks |
--strict | Treat WARN as failure (exit 1) |
--workflow | Run only the workflow.yaml drift check |
--ownership | Run only the artifact ownership-completeness check |
--agents | Run only the declared agent-contract conformance checks |
--substrate | Run only the responsibility-substrate drift and untagged check |
--packs | Run only the pack-manifest coherence and safety check |
--rules | Run only the routing-table-breadth check |
--capabilities | Run only the capability-manifest checks |
--memory | Run only the committed team-memory store lint |
--frontmatter | Run only the SKILL.md frontmatter schema and runtime-contract check |
--docs-refs | Run only the .claude to docs/* reference allowlist check |
--skill-rubric | Run 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.
| Flag | What 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 |
--reply | submit: the only GitHub write authority |
--confirm <CONFIRM> | submit: the token bound to the composed payload |
--json | Print JSON instead of a summary line |
mewkit advice
Athena supervision checkpoints: evidence in, advice out (never approval)
Subcommands: begin, commit, status, validate-packet.
| Flag | What 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) |
--json | status: print the dossier as JSON |
mewkit trace
On-demand trace recall: score, audit, propose, record friction
Subcommands: score, audit, propose.
| Flag | What 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 |
--commit | propose: append the items to the advisory backlog |
--json | Print 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
| Flag | What 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-cases | Accept 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-run | List 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
| Flag | What it does |
|---|---|
--json | Print JSON instead of text |
mewkit budget
Token and USD spend from the cost log
Subcommands: context.
| Flag | What it does |
|---|---|
--monthly | Aggregate 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 |
--json | context: print the reports as JSON |
mewkit setup
Guided post-scaffold configuration
| Flag | What it does |
|---|---|
--only <ONLY> | Run a single setup step |
--system-deps | Install system-level dependencies |
--skills <SKILLS> | Comma-separated skills whose interpreter environment setup should create |
--dry-run | Print what would happen without writing |
--json | Emit machine-readable JSON |
--yes | Answer the system-dependency prompt affirmatively |
mewkit skill
Per-skill environments and the skill store (status of installed skills)
Subcommands: env, status, overlay, fork, rollback.
| Flag | What it does |
|---|---|
--list | List 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) |
--approve | overlay: show an overlay this machine has not approved and place it |
--yes | Confirm 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) |
--global | Act on your home directory instead of this project (skill store verbs) |
--json | Print one JSON document instead of text (skill store verbs) |
mewkit pack
Manage install packs
Subcommands: list, add, remove.
| Flag | What it does |
|---|---|
--json | Print JSON instead of text |
--yes | Skip the confirmation before deleting |
--dry-run | Print the plan; write and delete nothing |
--kit-version <TAG> | Install exactly this kit release (e.g. v2.16.0) |
--beta | Let a prerelease be the newest kit |
--offline | Make 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-kit | Accept 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.
| Flag | What it does |
|---|---|
--json | Print 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 |
--write | bootstrap: write the generated file instead of printing it |
mewkit backups
List or restore the backups lifecycle commands left behind
Subcommands: list, restore.
| Flag | What it does |
|---|---|
--json | Print JSON instead of text |
--dry-run | restore: print the plan and change nothing |
--yes | restore: proceed without a terminal to confirm in |