Skip to content

fix(cli): remove code bin alias to prevent VS Code CLI collision - #443

Open
Sergei-Nikitin-epam wants to merge 4 commits into
codemie-ai:mainfrom
Sergei-Nikitin-epam:EPMCDME-13589
Open

fix(cli): remove code bin alias to prevent VS Code CLI collision#443
Sergei-Nikitin-epam wants to merge 4 commits into
codemie-ai:mainfrom
Sergei-Nikitin-epam:EPMCDME-13589

Conversation

@Sergei-Nikitin-epam

Copy link
Copy Markdown
Contributor

Summary

Removes the code entry from the npm bin block in package.json. The alias collided with the VS Code CLI (code) installed on most developer machines, causing confusing behaviour (and a potential footgun where shell completion or scripts invoke the wrong binary). Users should use codemie or codemie-code instead.

Changes

  • package.json: removed "code": "./bin/codemie.js" from the bin block
  • docs/MIGRATION.md: new migration guide documenting the change, the recommended replacement commands, the optional shell-alias approach (with VS Code caveat), and the stale-symlink cleanup procedure

Impact

Before: code chat invoked the CodeMie CLI (and shadowed the VS Code code binary)
After: code reverts to VS Code's binary; users must use codemie chat or codemie-code chat

Existing global installs retain a stale code symlink until npm uninstall -g @codemieai/code && npm install -g @codemieai/code is run. docs/MIGRATION.md documents this.

Testing

  • All QA gates passed: license-check, lint, typecheck, build, test:unit (162 files / 2 382 tests), test:integration (28 files / 196 tests), commitlint
  • No UI surface changed (gate skipped — expected)

Checklist

  • Code follows project standards
  • CI is green (npm run ci)
  • No merge conflicts with main
  • Migration guide added (docs/MIGRATION.md)

Closes EPMCDME-13589

SergeyVNikitin and others added 4 commits July 27, 2026 12:55
Generated with AI

Co-Authored-By: codemie-ai <codemie.ai@gmail.com>
Claude-Session: https://claude.ai/code/session_014NeZZse4iQvowT8MfFdwkt
Generated with AI

Co-Authored-By: codemie-ai <codemie.ai@gmail.com>
Claude-Session: https://claude.ai/code/session_014NeZZse4iQvowT8MfFdwkt
- CR-001: replace npm unlink -g with npm uninstall -g (correct command)
- CR-002: add VS Code collision warning to Option 2 alias suggestion
- CR-003: correct claim that npm update -g removes stale bin symlinks

Generated with AI

Co-Authored-By: codemie-ai <codemie.ai@gmail.com>
Claude-Session: https://claude.ai/code/session_014NeZZse4iQvowT8MfFdwkt
Generated with AI

Co-Authored-By: codemie-ai <codemie.ai@gmail.com>
Claude-Session: https://claude.ai/code/session_014NeZZse4iQvowT8MfFdwkt
Comment thread docs/MIGRATION.md
@@ -0,0 +1,59 @@
# Migration Guide

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

let's remove this migration, it's obsolete

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.

3 participants