opencode

⚠️ There are 2 different CLIs:

opencode-ai/opencode

Good

  • Can execute multiple sub-agents in parallel.
  • Can open an editor to customize complex prompt.
  • Can manage sessions in the same session.
  • The cost is always displayed at the bottom, so it’s easier to track the spending.
  • Can have custom ccommands.
    • Can symlink custom commands can add custom commands in dotfiles.
    • Can have unique placeholders for each arguments.
  • LSP integration LLM have more context on the code, e.g. knows if there any linter or compiler errors…
  • Nice UX to change the model and provider during a session.
  • Have vim keys to navigate the options.

Bad

sst/opencode

Good

  • Can edit keymaps.
  • Have the “spirit” of vim (e.g. “leader” key).
  • Can open an external editor to create complex prompt, to avoid unwanted prompt submission.
  • Can share chat sessions.
  • UI/Theme can adapt to system.
  • The cost is always displayed at the bottom, so it’s easier to track the spending.
  • The config file has a json schema! So config file lint + autocompletion.
  • Has a build and plan modes, and we can create custom modes.
    • Can add custom system prompts for each mode, e.g. a code reviewer code for a review mode.
    • Can use specific model for each mode.

Bad