Sign in: if the terminal shows “You are not logged in”, run cos login and complete auth in your browser.
Start the CLI: it auto-starts by default; otherwise run “Cosine: Start CLI”. Use “Cosine: Focus CLI Terminal” to bring it to front.
Provide context: open a file or select a block of code. The extension shares the active file/selection with Genie.
Ask Genie: type your request in the CLI prompt (e.g., “refactor this function”, “add tests for X”, “fix lint errors”). Watch live previews stream in the “Cosine Changes” view.
Review diffs: when a stream ends, a native diff opens (configurable via settings). Use inline actions to open Working, Live, or Diff for each item.
Apply/commit: the CLI writes changes to your repo. Review them in Git and commit as usual. The extension is visual-only for previews/diffs.