Skip to content

Latest commit

 

History

History
47 lines (29 loc) · 1.73 KB

File metadata and controls

47 lines (29 loc) · 1.73 KB

commandcode — Command Code

Account boundary: fileOverlay.commandcode/auth.json is profile-local; declared configuration and session paths are shared normal state.

Command Code resolves its home from os.homedir() with no override variable. The adapter redirects HOME/USERPROFILE at a per-profile runtime view where only .commandcode/auth.json belongs to the profile.

Install

npm i -g command-code

Provides the cmd binary (%APPDATA%\npm\cmd.cmd on Windows, $HOME/.npm-global/bin/cmd or /usr/local/bin/cmd elsewhere).

Quickstart

Account-overlay profiles are supported on all platforms:

multi-cli new commandcode/work
multi-cli launch commandcode/work       # sign in on first run; auth.json stays profile-local

Account boundary

  • Mechanism: fileOverlay.commandcode/auth.json is profile-local; COMMAND_CODE_API_KEY takes precedence when set.
  • Declared launch env: HOME={runtimeRoot}, USERPROFILE={runtimeRoot}.
  • Logout scope: profile.

Shared normal state

Shared root: the user home (%USERPROFILE% on Windows, $HOME on macOS/Linux).

  • Config: .commandcode/config.json, .commandcode/settings.json, .commandcode/skills/, .commandcode/plans/, .commandcode/taste/.
  • Sessions: .commandcode/projects/, .commandcode/history.jsonl, .commandcode/file-history/.

Known limitations

  • Use the commandcode binary name; bare cmd collides with Windows cmd.exe.

Support

Windows macOS Linux
supported (file overlay; use commandcode, bare cmd collides with cmd.exe) supported supported

supported means multi-cli provides account isolation on that OS (mode requirements noted); unsupported means no isolation mode works there.