Aller au contenu

Terminal

Une interface terminal rapide, compatible avec tous les shells, éditeurs et serveurs distants. Décrivez ce que vous voulez avec vos mots, suivez chaque diff et choisissez les commandes qui peuvent s’exécuter automatiquement.

Fonctionnalités

Formulez votre demande

Écrivez ce que vous voulez. L’agent affiche son plan pendant qu’il travaille.

Validez les commandes

Les modifications s’affichent sous forme de diffs. Les commandes attendent votre autorisation.

À votre image

Changez de thème d’une touche, du thème par défaut à tokyonight et bien d’autres.

Mini

Lancez opencode mini pour voir les réponses dans l’historique de défilement de votre terminal.

  • Tout terminalFonctionne dans tout shell, dans le terminal de votre éditeur ou sur un serveur distant.
  • Diffs dans le filChaque diff apparaît dans le fil au moment où l’agent effectue la modification.
  • Reprendre plus tardReprenez la dernière session avec -c, ou n’importe laquelle avec -s.
  • Exécutions ponctuellesopencode run envoie un message et affiche la réponse.
  • Agents et commandesChangez d’agent avec shift+tab et ouvrez toutes les commandes avec ctrl+p.
  • Approbation automatiqueLancez avec --auto pour autoriser toute action que vous n’avez pas refusée.
  • Tout serveurConnectez-vous à un serveur OpenCode par URL avec --server.
  • Statistiques d’utilisationopencode stats affiche les statistiques d’utilisation que vous pouvez partager.

  • 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

Changelog

  1. v2.4.5

    opencode and opencode mini accept -p as a short form of --prompt

    Voir tous les points forts de v2.4.5

    Améliorations

    • Terminalopencode api streams responses as they arrive and stops cleanly when piped to head.#67856
    • TerminalMermaid diagrams fit the width of the markdown they're in.#68268
    • TerminalMarkdown math renders in replies: $…$ and \(…\) inline, $$…$$ and \[…\] as display math. Plugins can supply the inline renderer with context.markdown.registerInlineMathRenderer.#68341

    Correctifs

    • Terminal@file#7 attaches only line 7. Use @file#7- for line 7 to the end of the file.#68332
    • TerminalRedo removes the prompt text undo restored, a single Esc no longer arms the next run to interrupt, and Windows paths pasted in WSL attach the file.#68098#68085#68005
    • Terminalopencode serve --port rejects out-of-range ports with a clear error.#67711
  2. v2.4.4

    Jump to Sessions by ID and Deep Links

    Paste a session ID into the Command Palette in Desktop or TUI to jump straight to any session across servers, or open sessions directly via opencode://session/<id> deep links.#67779#64180

    Voir tous les points forts de v2.4.4

    Améliorations

    • Core, TerminalAdded experimental.tool.auto and experimental.permission.save managed policy actions, with required prompts for unparseable shell commands when shell deny policies are active.#67687#67867

    Correctifs

    • TerminalReloaded textarea keybindings live when config changes without restarting TUI. Thanks @OpeOginni.#66127
  3. v2.4.3

    Added Find in session behind the Find in session experiment (`experimental["session-find"]

    Added Find in session behind the Find in session experiment (experimental["session-find"]: true): press <leader>f, super+f, or run /find to search loaded messages incrementally.#64870

    Voir tous les points forts de v2.4.3

    Améliorations

    • TerminalText selections now render using theme colors (text.selection and background.selection), and provider lists now use the same ordering as Desktop and opencode auth login.#65776#66736

    Correctifs

    • TerminalFixed three batches of TUI issues covering session list pinning and renaming, stashed input modes, pinned permission prompts, "none" in keybind arrays, "Jump to latest", Mermaid bold tags and unspaced edge labels, symlinked cli.json live reload, clickable bare URLs in user messages, unmatched leader sequences, and opencode mini --replay-limit, plus an empty slot-path hang.#66795#66813#66841#66863
Voir toutes les mises à jour