Skip to content

Commit 08b2bbf

Browse files
chore: rename npm package to mex-agent
1 parent ee70f8e commit 08b2bbf

9 files changed

Lines changed: 42 additions & 42 deletions

File tree

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ All notable changes to this project will be documented in this file.
55
## [0.3.5] - 2026-05-14
66

77
### Added
8-
- **Package rename** — the npm package is now `mex-cli`; the installed binary command remains `mex`.
8+
- **Package rename** — the npm package is now `mex-agent`; the installed binary command remains `mex`.
99
- **Agent memory mode**`mex setup --mode agent-memory` creates templates for persistent-agent, homelab, OpenClaw-style, and operational-memory workspaces.
1010
- **Heartbeat checks**`mex heartbeat` runs lightweight scheduled health checks over optional `last_updated` frontmatter, stale context, memory cleanup metadata, and old daily memory files.
1111
- **Scheduled heartbeat loop**`mex watch --interval` runs heartbeat repeatedly in the foreground while preserving the existing post-commit hook behavior for plain `mex watch`.

README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
[![CI](https://github.com/theDakshJaitly/mex/actions/workflows/ci.yml/badge.svg)](https://github.com/theDakshJaitly/mex/actions/workflows/ci.yml)
1717
[![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](LICENSE)
18-
[![npm version](https://img.shields.io/npm/v/mex-cli.svg)](https://www.npmjs.com/package/mex-cli)
18+
[![npm version](https://img.shields.io/npm/v/mex-agent.svg)](https://www.npmjs.com/package/mex-agent)
1919

2020
</div>
2121

@@ -41,10 +41,10 @@ Works with any stack — JavaScript, Python, Go, Rust, and more.
4141

4242
## Install
4343

44-
The npm package is named `mex-cli` (`mex` was taken on npm). The CLI command is `mex`.
44+
The npm package is named `mex-agent` (`mex` was taken on npm). The CLI command is `mex`.
4545

4646
```bash
47-
npx mex-cli setup
47+
npx mex-agent setup
4848
```
4949

5050
That's it. The setup command creates the `.mex/` scaffold, asks which AI tool you use, pre-scans your codebase, and generates a targeted prompt to populate everything. Takes about 5 minutes.
@@ -59,14 +59,14 @@ mex sync # fix drift
5959
If you skip global install, everything still works via npx:
6060

6161
```bash
62-
npx mex-cli check # drift score
63-
npx mex-cli sync # fix drift
62+
npx mex-agent check # drift score
63+
npx mex-agent sync # fix drift
6464
```
6565

6666
You can install globally later at any time:
6767

6868
```bash
69-
npm install -g mex-cli
69+
npm install -g mex-agent
7070
```
7171

7272
## Drift Detection
@@ -91,7 +91,7 @@ Scoring: starts at 100. Deducts -10 per error, -3 per warning, -1 per info.
9191

9292
## CLI
9393

94-
All commands run from your **project root**. If you didn't install globally, replace `mex` with `npx mex-cli`.
94+
All commands run from your **project root**. If you didn't install globally, replace `mex` with `npx mex-agent`.
9595

9696
### Commands
9797

RELEASE_NOTES.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ This release turns mex from a drift-aware scaffold CLI into a small operational
44

55
The original goal of mex is still the same: keep agent context useful, navigable, and honest without dumping an entire project into the prompt. v0.3 keeps the stable v0.2 scaffold architecture, then adds the pieces that make mex work better for persistent agents, homelabs, OpenClaw-style operational workspaces, and long-running project memory.
66

7-
npm package: `mex-cli@0.3.5`
7+
npm package: `mex-agent@0.3.5`
88

9-
Package rename: the npm package is now `mex-cli`. The binary command remains `mex`.
9+
Package rename: the npm package is now `mex-agent`. The binary command remains `mex`.
1010

1111
## Highlights
1212

@@ -23,7 +23,7 @@ Package rename: the npm package is now `mex-cli`. The binary command remains `me
2323
v0.3 adds a first-class agent-memory setup mode:
2424

2525
```bash
26-
npx mex-cli setup --mode agent-memory
26+
npx mex-agent setup --mode agent-memory
2727
```
2828

2929
This is for projects where the "codebase" is not necessarily the main thing being remembered. Examples:
@@ -251,13 +251,13 @@ Those need a bigger architecture story and are not part of this stable v0.3 rele
251251
Install or update:
252252

253253
```bash
254-
npm install -g mex-cli@latest
254+
npm install -g mex-agent@latest
255255
```
256256

257257
Or use directly:
258258

259259
```bash
260-
npx mex-cli@latest setup
260+
npx mex-agent@latest setup
261261
```
262262

263263
For an existing project, no scaffold reset is needed. Update the package, then run:
@@ -270,6 +270,6 @@ mex check
270270
For an agent-memory workspace:
271271

272272
```bash
273-
npx mex-cli@latest setup --mode agent-memory
273+
npx mex-agent@latest setup --mode agent-memory
274274
mex heartbeat
275275
```

flake.nix

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@
3030

3131
# Ensure templates directory is included
3232
postInstall = ''
33-
mkdir -p $out/lib/node_modules/mex-cli/templates
34-
cp -r templates/* $out/lib/node_modules/mex-cli/templates/
33+
mkdir -p $out/lib/node_modules/mex-agent/templates
34+
cp -r templates/* $out/lib/node_modules/mex-agent/templates/
3535
'';
3636

3737
meta = with pkgs.lib; {

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "mex-cli",
2+
"name": "mex-agent",
33
"version": "0.3.5",
44
"description": "CLI engine for mex scaffold — drift detection, pre-analysis, and targeted sync",
55
"type": "module",

setup.sh

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -534,17 +534,17 @@ if [ "$SELECTED_CLAUDE" -eq 1 ] && command -v claude &>/dev/null; then
534534
echo " \"Read .mex/ROUTER.md and tell me what you know about this project.\""
535535
echo ""
536536
info "Run commands with npx (no install needed):"
537-
echo " npx mex-cli check Drift score"
538-
echo " npx mex-cli check --quiet One-liner"
539-
echo " npx mex-cli sync Fix drift"
540-
echo " npx mex-cli watch Auto-check after every commit"
537+
echo " npx mex-agent check Drift score"
538+
echo " npx mex-agent check --quiet One-liner"
539+
echo " npx mex-agent sync Fix drift"
540+
echo " npx mex-agent watch Auto-check after every commit"
541541
echo ""
542542
info "Or install globally for shorter commands:"
543-
echo " npm install -g mex-cli"
543+
echo " npm install -g mex-agent"
544544
echo " mex check / mex sync / mex watch"
545545
echo ""
546546
info "Or add to your package.json scripts:"
547-
echo " npm install --save-dev mex-cli"
547+
echo " npm install --save-dev mex-agent"
548548
echo ""
549549
echo " \"scripts\": {"
550550
echo " \"mex\": \"mex check\","
@@ -584,17 +584,17 @@ else
584584
echo " \"Read .mex/ROUTER.md and tell me what you know about this project.\""
585585
echo ""
586586
info "Run commands with npx (no install needed):"
587-
echo " npx mex-cli check Drift score"
588-
echo " npx mex-cli check --quiet One-liner"
589-
echo " npx mex-cli sync Fix drift"
590-
echo " npx mex-cli watch Auto-check after every commit"
587+
echo " npx mex-agent check Drift score"
588+
echo " npx mex-agent check --quiet One-liner"
589+
echo " npx mex-agent sync Fix drift"
590+
echo " npx mex-agent watch Auto-check after every commit"
591591
echo ""
592592
info "Or install globally for shorter commands:"
593-
echo " npm install -g mex-cli"
593+
echo " npm install -g mex-agent"
594594
echo " mex check / mex sync / mex watch"
595595
echo ""
596596
info "Or add to your package.json scripts:"
597-
echo " npm install --save-dev mex-cli"
597+
echo " npm install --save-dev mex-agent"
598598
echo ""
599599
echo " \"scripts\": {"
600600
echo " \"mex\": \"mex check\","

src/cli.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,7 @@ program
295295
console.log(" mex watch --interval Run heartbeat every 30 minutes (or config value)");
296296
console.log(" mex watch --uninstall Remove the post-commit hook");
297297
console.log();
298-
console.log(chalk.dim("Not installed globally? Replace 'mex' with 'npx mex-cli'."));
298+
console.log(chalk.dim("Not installed globally? Replace 'mex' with 'npx mex-agent'."));
299299
console.log();
300300
});
301301

src/setup/index.ts

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ export async function runSetup(opts: { dryRun?: boolean; mode?: string } = {}):
117117
// Verify templates directory exists (sanity check for npm package integrity)
118118
if (!existsSync(TEMPLATES_DIR)) {
119119
throw new Error(
120-
`Templates directory not found at ${TEMPLATES_DIR}. The mex-cli package may be corrupted — try reinstalling.`
120+
`Templates directory not found at ${TEMPLATES_DIR}. The mex-agent package may be corrupted — try reinstalling.`
121121
);
122122
}
123123

@@ -465,23 +465,23 @@ async function promptGlobalInstall(): Promise<void> {
465465

466466
if (answer === "" || answer === "y" || answer === "yes") {
467467
console.log();
468-
info("Installing mex-cli globally...");
468+
info("Installing mex-agent globally...");
469469
try {
470-
execSync("npm install -g mex-cli", { stdio: "inherit" });
470+
execSync("npm install -g mex-agent", { stdio: "inherit" });
471471
console.log();
472472
ok("Installed globally. `mex check` and `mex sync` work from anywhere now.");
473473
printNextSteps(true);
474474
} catch {
475475
console.log();
476476
warn("Global install failed. You can retry manually:");
477-
console.log(" npm install -g mex-cli");
477+
console.log(" npm install -g mex-agent");
478478
console.log();
479479
printNextSteps(false);
480480
}
481481
} else {
482482
console.log();
483483
info("No problem. You can always install later:");
484-
console.log(" npm install -g mex-cli");
484+
console.log(" npm install -g mex-agent");
485485
console.log();
486486
printNextSteps(false);
487487
}
@@ -505,13 +505,13 @@ function printNextSteps(globalInstalled: boolean) {
505505
console.log(" mex watch Auto-check drift after every commit");
506506
} else {
507507
info("Ongoing commands (via npx):");
508-
console.log(" npx mex-cli check Drift score — are scaffold files still accurate?");
509-
console.log(" npx mex-cli check --quiet One-liner drift score");
510-
console.log(" npx mex-cli sync Fix drift — AI updates only what's broken");
511-
console.log(" npx mex-cli watch Auto-check drift after every commit");
508+
console.log(" npx mex-agent check Drift score — are scaffold files still accurate?");
509+
console.log(" npx mex-agent check --quiet One-liner drift score");
510+
console.log(" npx mex-agent sync Fix drift — AI updates only what's broken");
511+
console.log(" npx mex-agent watch Auto-check drift after every commit");
512512
console.log();
513513
info("Or install globally to use the shorter `mex` command:");
514-
console.log(" npm install -g mex-cli");
514+
console.log(" npm install -g mex-agent");
515515
}
516516
console.log();
517517
}

0 commit comments

Comments
 (0)