Przejdź do treści

Terminal

Szybki interfejs terminalowy, który działa w każdej powłoce, edytorze i na zdalnym serwerze. Opisz zwykłymi słowami, czego chcesz, patrz, jak każda edycja pojawia się jako diff, i wybierz, które polecenia uruchamiają się same.

Funkcje

Pisz zwykłymi słowami

Wpisz, czego chcesz, a agent pokaże plan w trakcie pracy.

Zatwierdzaj polecenia

Edycje wyświetlają się jako diffy, a polecenia czekają na Twoją zgodę.

Po swojemu

Zmieniaj motyw jednym klawiszem, od domyślnego po tokyonight i inne.

Mini

Uruchom opencode mini, a odpowiedzi trafią do historii terminala.

  • Każdy terminalDziała w każdej powłoce, w terminalu edytora i na zdalnym serwerze.
  • Diffy na osiOglądaj każdą edycję jako diff na osi czasu, gdy agent ją wprowadza.
  • Wróć późniejKontynuuj ostatnią sesję z -c albo dowolną z -s.
  • Jednorazowoopencode run wysyła jedną wiadomość i wypisuje odpowiedź.
  • Agenci i poleceniaZmieniaj agentów przez shift+tab i otwieraj wszystkie polecenia przez ctrl+p.
  • AutozgodaUruchom z --auto, aby zezwolić na każdą akcję, której nie zablokowałeś.
  • Każdy serwerPołącz się z serwerem OpenCode przez URL z --server.
  • Statystykiopencode stats pokazuje statystyki użycia do udostępnienia.

  • curlcurl -fsSL https://opencode.ai/v2/install | bash
  • npmnpm install -g @opencode/cli
  • bunbun install -g --trust @opencode/cli
  • brewbrew install anomalyco/tap/opencode-v2
  • paruparu -S opencode-beta

Zmiany

  1. v2.3.0

    Quieter Transcripts by Default

    The TUI now summarizes each run of tool calls and thoughts into one collapsible activity row, so the answer is easier to follow. To see every step again, set Verbosity to medium or high in settings, or set session.verbosity in your TUI config; an existing setting is kept.#63207

    Zobacz wszystkie najważniejsze zmiany w v2.3.0

    Ulepszenia

    • TerminalSession IDs found in messages can now be opened directly.
    • TerminalActivity tabs are clickable and open the correct view.
    • TerminalShell mode has its own prompt color under the new designs.

    Poprawki

    • TerminalRestored pasted text when undo brings back its placeholder.
    • TerminalRestored the live draft after browsing prompt history.
    • TerminalFixed copying a paste from within the prompt selection.
    • TerminalPreserved the Mini composer caret when closing the command palette.
    Jeszcze 5 poprawki
  2. v2.2.7

    The update and confirm dialogs have buttons you can move between with ←/→ and Tab/Shift+Tab

    Zobacz wszystkie najważniejsze zmiany w v2.2.7

    Ulepszenia

    • TerminalThe model picker no longer has a Usage action; use /usage instead.#62927

    Poprawki

    • TerminalSession exports are saved in the current working directory instead of the system temp folder.#62253
    • TerminalTyping a child session's exact ID in the open-session menu lists that session.#62262
    • TerminalThe TUI follows the terminal's current light or dark mode instead of a cached palette.#62248
  3. v2.2.6

    Added Scroll on send in Settings

    Added Scroll on send in Settings. Choose Keep (session.submit_scroll: "keep") to retain your reading position after submitting a prompt.#61460

    Zobacz wszystkie najważniejsze zmiany w v2.2.6

    Poprawki

    • TerminalAllow Ctrl+Z to suspend OpenCode while a form or dialog is open.#62118
    • TerminalKeep focus on an open dialog when a question arrives and contain plugin dialogs that throw during rendering.#60365#62110
    • TerminalShow an error when Ctrl+V cannot read the clipboard. Thanks @jimmyallinai.#61094
    • TerminalPrevent session titles containing newlines from crashing the TUI. Thanks @vishalshekhar.#57523
    Jeszcze 6 poprawki
Zobacz wszystkie zmiany