#16657: feat(memory-lancedb): add memory CLI command alias
extensions: memory-lancedb
size: S
Cluster:
Plugin Fixes and Enhancements
## Summary
- feat(memory-lancedb): add memory CLI command alias
- Split from our `v2026.2.13` patch train as a single-purpose change for easier review.
## Why
- Keep the diff focused and low-risk so it can be merged or reverted independently.
## Scope
- Branch: `feat/memory-lancedb-memory-cli-command-en`
- Files changed: 2
- Key files:
- `extensions/memory-lancedb/index.test.ts`
- `extensions/memory-lancedb/index.ts`
## Test Plan
- Suggested local command:
- `./node_modules/.bin/vitest run extensions/memory-lancedb/index.test.ts`
- Validation status:
- [ ] CI checks pass
- [ ] Maintainer re-ran local tests
## Risk & Rollback
- Risk: low to medium; impact limited to touched module(s).
- Rollback: revert this PR commit(s) cleanly.
## Co-authorship
- Co-authored by @ciberponk and Codex (GPT-5).
<!-- greptile_comment -->
<h3>Greptile Summary</h3>
Added `memory` CLI command alias to the memory-lancedb plugin alongside the existing `ltm` command. Both commands now invoke `api.runtime.tools.registerMemoryCli(program)` to provide consistent CLI access patterns.
- Registered new CLI command alias `memory` that uses the same implementation as memory-core plugin
- Existing `ltm` command with custom subcommands (list, search, stats) remains unchanged
- Test coverage added to verify both commands are registered correctly
- No conflicts expected since only one memory plugin can be active at a time (memory slot mechanism)
<h3>Confidence Score: 5/5</h3>
- This PR is safe to merge with minimal risk
- The changes are minimal and well-tested. The PR adds a simple CLI command alias without modifying any existing logic. Test coverage verifies both commands are registered. The memory slot mechanism ensures no conflicts between plugins. The implementation follows existing patterns from memory-core plugin.
- No files require special attention
<sub>Last reviewed commit: 696c160</sub>
<!-- greptile_other_comments_section -->
<!-- /greptile_comment -->
Most Similar PRs
#16669: feat(memory-lancedb): add memory_search/memory_get compatibility re...
by ciberponk · 2026-02-15
82.2%
#16634: feat(memory-lancedb): make auto-capture min length configurable
by ciberponk · 2026-02-14
74.8%
#8252: Config: honor legacy memorySearch alias
by sauerdaniel · 2026-02-03
73.7%
#21217: fix: memory prune command to prevent unbounded MEMORY.md growth
by theognis1002 · 2026-02-19
72.4%
#22692: fix(memory-lancedb): [P1] add missing runtime deps — plugin broken ...
by mahsumaktas · 2026-02-21
72.2%
#21631: feat(doctor): detect memory plugins in memory search health check
by tsukhani · 2026-02-20
72.2%
#12596: fix(status): show third-party memory plugins as active instead of u...
by nhadaututtheky · 2026-02-09
71.9%
#4881: docs(plugin): clarify memory-lancedb is bundled (no npm install nee...
by AverageSuami · 2026-01-30
71.6%
#2884: fix: Create memory directory and symlink identity files during work...
by webdevtodayjason · 2026-01-27
70.2%
#17030: feat(memory-lancedb): support Ollama and OpenAI-compatible embeddin...
by nightfullstar · 2026-02-15
70.1%