Skip to content

gut(cli): remove dead memory CLI (#2300)#2326

Merged
alexey-pelykh merged 1 commit intomainfrom
gut/2300-remove-memory-cli
Apr 12, 2026
Merged

gut(cli): remove dead memory CLI (#2300)#2326
alexey-pelykh merged 1 commit intomainfrom
gut/2300-remove-memory-cli

Conversation

@alexey-pelykh
Copy link
Copy Markdown

Summary

Closes #2300. Removes the dead memory CLI that survived the middleware-fork gut of the memory subsystem.

  • Delete src/cli/memory-cli.ts (819 lines) — imported from the gutted src/memory/ module via an allowlist escape.
  • Delete src/cli/memory-cli.test.ts (572 lines) — tests only the deleted file.
  • Remove 2 stale allowlist entries in scripts/check-no-zombie-imports.mjs. The script's own docstring instructs this cleanup ("Remove entries as the underlying imports are eliminated").

Total: 1,393 deletions.

Coordination with other MBP audit items

Acceptance criteria (from #2300)

  • grep -r "memory-cli" src/cli/ returns nothing
  • grep -r "from.*memory" src/cli/ returns no live imports
  • Build passes (pnpm check: format + tsgo + oxlint)
  • Tests pass (pnpm test: 745 files, 6482 tests passed, 2 skipped)

Test plan

  • Local pnpm check clean
  • Local pnpm test green (745 files, 6482 tests passing)
  • `node scripts/check-no-zombie-imports.mjs` clean
  • CI green on this branch

Follow-ups (not in this PR)

  • `docs/cli/index.md:293-295` still lists `remoteclaw memory status|index|search` commands. These commands have been broken since the memory subsystem was gutted (pre-existing staleness, not caused by this PR). Track as a separate docs cleanup.
  • `getMemoryCommandSecretTargetIds` in `command-secret-targets.ts` is orphaned after this merges — in scope for gut: sweep gutted stubs across agents, auto-reply, commands, cli (MBP audit) #2303.

🤖 Generated with Claude Code

The memory subsystem was gutted in the middleware fork (agents bring
own memory), but `src/cli/memory-cli.ts` and its test survived — they
imported from the gutted `src/memory/` module via an allowlist escape
in `check-no-zombie-imports.mjs`.

- Delete `src/cli/memory-cli.ts` (819 lines)
- Delete `src/cli/memory-cli.test.ts` (572 lines)
- Remove stale allowlist entries pointing at the deleted file

`register.subclis.ts` already had no `memory` entry (removed in #187),
so it is untouched to avoid conflict with the in-flight stub sweep
(#2303). The orphaned `getMemoryCommandSecretTargetIds` helper in
`command-secret-targets.ts` is left for #2303.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@alexey-pelykh alexey-pelykh merged commit 675e390 into main Apr 12, 2026
10 checks passed
@alexey-pelykh alexey-pelykh deleted the gut/2300-remove-memory-cli branch April 12, 2026 23:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

gut: remove dead memory CLI (MBP audit)

1 participant