Cline CLI 2.0、ターミナルへ進出
開発者 Juan P Flores が、サイドバーからターミナルへ移行した Cline CLI 2.0 を発表し、複数のエージェントを並列実行可能にした。
Source Article
元記事を日本語で読む
本文に関係しない購読案内、埋め込み通知、サイト内プロモーションは除いています。
先週、私は tmux のパネルを 3 つ使いながら、同時に 3 つのエージェントを動かしていました。1 つは機能ブランチ上のデータベース層のリファクタリングを担当し、2 つ目は API ドキュメントの更新、そして 3 つ目は標準入力からパイプされたスキーマ差分からマイグレーションスクリプトを生成する役割でした。キーボード操作一つでパネル間を切り替えながら、各エージェントがリアルタイムでタスクに向き合う様子を監視していました。
こうした作業は IDE のサイドバーでは不可能です。
IDE が悪いわけでもありません。IDE は、人間がファイル内でコードを書くために設計されたものであり、その点においては素晴らしいツールです。しかし、開発の現場は変化しています。モデルによる推論能力がコードベース全体に及ぶレベルまで向上したことで、開発者が個別の行を書く時間は減り、システムを統括する時間が増えています。もはや単一のファイルを編集しているのではなく、「モジュールのリファクタリング」「テストの更新」「ビルドの修正」「マイグレーションの実装」などをエージェントに指示しています。重要なのは構文ではなく、意図の管理です。
そのように複雑な作業を行う場合、編集機能よりも「オーケストレーション(統制・調整)」に特化したインターフェースが必要です。ターミナルは元々、オーケストレーションのために作られた環境です。長時間実行されるプロセスや並列セッション、スクリプトで制御可能なワークフロー、パイプラインを介した入出力、そして組み合わせ可能なツール群——これらはすべて、コーディングエージェントがサイドバーの助手からインフラストラクチャの基盤へと役割を変えた際に必要な機能そのものです。Cline CLI 2.0 は、この完全なエージェント機能をターミナル上で直接利用できるようにしました。
再設計された対話型体験
cline コマンドを実行すると、新しいターミナル UI が起動します。これは VS Code エクステンションで慣れ親しんだ操作パターンを踏襲しつつ、異なる媒体(ターミナル)向けに再構築したものです。設定パネルはクリックではなくキーボードショートカットでナビゲートできます。モードの切り替えもボタンではなく Tab キーで行います。ストリーミング応答では Markdown がインラインでレンダリングされるため、エージェントの推論プロセスが拡張機能と同じように視覚的に追跡可能です。
Tab キーを押して「Plan(計画)」と「Act(実行)」モードを切り替えます。Cline がコードベースに手を加える前に、どのように推論しているかを確認できます。各ステップを手動で承認するか、Shift+Tab を押して自動承認モードで実行させるか——監視の度合いはあなたが決めます。作業の複雑さに応じてセッション中にモデルを変更することも可能です。ツールもエージェントループも、モデルサポートも従来通りです。異なる点はターミナル内で動作しているため、ターミナルが得意とする機能がすべて、エージェントとの連携ワークフローに組み込まれる点にあります。
スラッシュコマンドを使えば、一般的なワークフローを高速化できます。
/history と入力すれば前回のタスクを再開でき、/settings でセッション中に設定を変更できます。pr-review.md などの Markdown ファイルをカスタムワークフォルダにドロップするだけで、自動的に /pr-review コマンドとして認識されます。
実際に機能する並列エージェント
IDE では複数のエージェントを実行すると、ウィンドウが複数開き、拡張機能のインスタンスも増え、状態の分離に細心の注意を払い、手動でのウィンドウ管理が必要になります。技術的には可能ですが、誰もそんなことはしません。
一方、ターミナルならその方法を知っています。tmux セッションを開いてパネルを分割し、それぞれでプロセスを実行するだけです。並列的な対話セッションを管理するためのインフラはすでに数十年の歴史があります。欠けていたのは、このように動作するように設計されたコーディングエージェントでした。
Cline CLI の各インスタンスは完全に分離されています。それぞれのインスタンスが独自の状態、会話履歴、モデル設定を保持します。あるエージェントがデータベース層のリファクタリングを行っている間、別のエージェントは異なるブランチで API ドキュメントの更新を行います。共有状態はなく、互いに干渉することはありません。TUI によって、各インスタンスの進捗状況が独立して視覚化され、対話的に操作できます。
並列エージェントは新しいワークフローのパターンですが、インターフェースが並列ビューをサポートしていなければ自然にはなりません。単に TUI が十分に優れていれば、複数のインスタンスを起動する価値があると考えられるようになりました。
自動化のためのヘッドレスモード
-y フラグを使用すると、Cline は完全な自律モードで動作します。対話型 TUI(ターミナルユーザーインターフェース)は不要で、すべての出力が標準出力にストリーミングされます。標準入力と標準入力の完全サポートにより、データをパイプで受け渡したり、コマンドを連鎖させたりして、Cline をシェルのワークフローにおけるもう一つのビルディングブロックとして扱うことが可能になります。
CI での自動化コードレビュー
git diff origin/main | cline -y "これらの変更点に問題がないかレビューしてください"
コミット履歴からリリースノートを生成
git log --oneline v1.0..v1.1 | cline -y "リリースノートを記述してください"
テストを実行し、タイムアウト付きで失敗を修正
cline -y "テストを実行して失敗箇所を修正する" --timeout 600
これにより、Cline は GitHub Actions、GitLab CI、Jenkins、シェルスクリプト、cron ジョブなど、コマンドが実行できるあらゆる場所で利用可能になります。エージェントは切り替える必要がある別々のツールではなく、パイプラインの一部として組み込まれるのです。
Cline は、小さなツールを組み合わせて使うという Unix の哲学に合致しています。何らかのデータを Cline へパイプし、その出力を別のツールへと連鎖させることが可能です。構造化された出力をプログラム用途向けにストリーミングする JSON モード(--json)も用意されており、Cline をベースにした独自のツール構築や、既存の自動化システムへの統合が容易になります。
ACP により、エージェントはあなたと共に移動します
--acp フラグを使用すると、Cline は ACP(Agent Client Protocol:エージェント・クライアント・プロトコル)準拠のエージェントとして機能します。ACP は、コーディングエージェントとエディタ間の通信方法を標準化するもので、言語サーバー向けに LSP が果たしてきた役割と同様のものです。これにより、Cline は JetBrains、Zed、Neovim(CodeCompanion や avante.nvim を経由)、Emacs、そしてこのプロトコルをサポートする他のあらゆるエディタで動作します。
コーディングエージェントは、特定のツールにユーザーを縛り付けるべきではありません。Neovim を中心としたワークフローを構築している場合や、Zed の試用を試みている場合でも、それらを捨てる必要はありません。同じエージェントが、同じ設定が、そしてターミナル体験のために注力した設計の細部まで、あなたがすでに使っているエディタにそのまま引き継がれます。
邪魔にならない設定
すべてのプロバイダは、すぐに使える状態です。cline auth を実行してプロバイダを設定すれば、Cline ネイティブのプロバイダ、OpenAI、Anthropic、Bedrock、Vertex などに対応できます。また、cline config で YOLO モードの切り替えやデフォルトモデルの変更、Plan モードで Act モードとは異なるモデルを使用する設定などを行うことができます。
複数の設定が必要ですか? --config フラグを指定して、別の設定ディレクトリを参照させることも可能です。ターミナルの一つでは Claude を使って計画を立て、もう一つは高速なモデルを使って実装を行うといった使い方もできます。各インスタンスは独自の状態を維持します。
より大きな視点
開発者がすべての行を手書きしていた時代には、IDE が正解でした。しかし、エージェントがリポジトリの管理やターミナルコマンドの実行、エンドツーエンドのワークフロー実行を担当するようになると、問われるのは「その作業を見守るための適切なインターフェースは何か」という点です。
答えは特定のインターフェース一つにあるわけではありません。開発者がどこにいても、その場所でサポートすることです。Cline は VS Code、JetBrains、Zed、Neovim、Emacs で動作し、今やターミナルでもファーストクラスのエクスリエンスとして提供されています。
見知らぬコードベースの探索やデバッグなら、IDE の視覚ツールに勝るものはありません。並列エージェントの調整、パイプラインの自動化、反復可能なワークフローのスクリプト化にはターミナルが最適です。ビルドシステムの一部としてエージェントを実行するなら、ヘッドレス環境でも問題ありません。
異なる作業には、それぞれに適したインターフェースが必要です。CLI は以前に存在しなかった理想的な場所を占めています。シェル上の他のツールと組み合わせて使えるほど軽量でありながら、本格的な開発環境を感じさせる十分な機能を持っています。
IDE がスタート地点でした。しかし、それがゴールではありません。
今すぐお試しください:
npm install -g cline
cline auth
期間限定で、Minimax M2.5 と Kimi K2.5 は API キー不要で無料で利用可能です。参入障壁はゼロです。
Cline は Apache 2.0 ライセンスの下で公開され、500 万人以上の開発者に信頼されています。GitHub Octoverse では、コントリビューター数において最も急速に成長している AI オープンソースプロジェクトとして認定されました。特定のモデルやベンダーに縛られることはありません。Anthropic、OpenAI、Google、Mistral から API キーを持参するか、Ollama でローカルモデルを実行することも可能です。
詳細は cline.bot/cli まで。完全なドキュメントは docs.cline.bot/cline-cli をご覧ください。ソースコードは github.com/cline/cline にあります。
私たちはオープンイテレーションを続けており、皆さんのフィードバックが今後の方向性を形作ります。アイデア、課題、議論は GitHub、Reddit、Discord でお寄せください。
ターミナルの準備は整いました。さあ、構築しましょう。
原文を表示
imageLast week I had three agents running across three tmux panes. One was refactoring a database layer on a feature branch. Another was updating API docs. A third was generating migration scripts from a schema diff I piped in from stdin. I switched between panes with a keystroke, watching each agent reason through its task in real time.
None of this would have worked in an IDE sidebar.
Not because the IDE is bad. The IDE is great at what it was designed for a human writing code in a file, one cursor at a time. But the work is shifting. Models have gotten good enough at reasoning across entire codebases that developers are spending less time writing individual lines and more time orchestrating systems. You're not editing a single file; you're telling an agent to refactor a module, update the tests, fix the build, and write the migration. You're managing intent, not syntax.
When the work looks like that, you need an interface built for orchestration, not authoring. The terminal was always built for orchestration. Long-running processes, parallel sessions, scriptable workflows, piped I/O, composable tools these are exactly the properties you need when a coding agent is no longer a sidebar assistant but an infrastructure primitive. Cline CLI 2.0 brings the full agent to that surface.
A redesigned interactive experience
Launch cline and you're in the new terminal UI. We designed it to mirror the interaction patterns you're used to from the VS Code extension, rebuilt for a different medium. Settings panel you navigate with keystrokes instead of clicks. Mode toggle with Tab instead of a button. Streaming responses with markdown rendered inline, so the agent's reasoning unfolds visually the same way it does in the extension.
Press Tab to switch between Plan and Act modes. Watch Cline reason through your codebase before it touches anything. Approve each step or let it run with auto-approve by pressing shift+tab you decide how much oversight you need. Change models mid-session based on the complexity of the work. The tools are the same, the agentic loop is the same, the model support is the same. The difference is you're in a terminal, which means everything the terminal is good at becomes part of how you work with the agent.
Slash commands make common workflows fast. Type /history to resume a previous task. /settings to change configuration mid-session. Drop a markdown file like pr-review.md into your custom workflows and it becomes /pr-review automatically.
Parallel agents that actually work
In an IDE, running multiple agents means multiple windows, multiple extension instances, careful state isolation, and a lot of manual window management. It's technically possible. Nobody does it.
In a terminal, you already know how to do this. Open a tmux session, split into panes, run a process in each one. The infrastructure for managing parallel interactive sessions has existed for decades. What was missing was a coding agent designed to work this way.
Cline CLI instances are fully isolated. Each one maintains its own state, its own conversation, its own model configuration. One agent refactoring your database layer while another updates API docs on a different branch. No shared state, no stepping on each other. The TUI makes each instance's progress visible and interactive independently.
Parallel agents are a new workflow pattern that only becomes natural when your interface supports parallel views. The TUI just needed to be good enough that running multiple instances was worth it.
Headless mode for automation
The -y flag gives Cline full autonomy. No interactive TUI. Everything streams to stdout. Full stdin/stdout support means you can pipe content in, chain commands, and treat Cline as another building block in your shell workflow.
Automated code review in CI
git diff origin/main | cline -y "Review these changes for issues"
Generate release notes from commit history
git log --oneline v1.0..v1.1 | cline -y "Write release notes"
Run tests and fix failures with a timeout
cline -y "Run tests and fix failures" --timeout 600
This makes Cline usable in GitHub Actions, GitLab CI, Jenkins, shell scripts, cron jobs anywhere you can run a command. The agent becomes part of your pipeline, not a separate tool you switch to.
Cline fits the Unix philosophy of small tools that compose. Pipe anything into it, chain the output into another tool. JSON mode (--json) streams structured output for programmatic use cases, so you can build tools on top of Cline or integrate it into existing automation.
ACP means your agent travels with you
The --acp flag turns Cline into an ACP-compliant agent. ACP (Agent Client Protocol) standardizes how coding agents and editors communicate, similar to what LSP did for language servers. That means Cline works in JetBrains, Zed, Neovim (via CodeCompanion or avante.nvim), Emacs, and any other editor that speaks the protocol.
Your coding agent shouldn't lock you into a specific tool. If you've built your workflow around Neovim or you're trying out Zed, you shouldn't have to give that up. The same agent, the same configuration, the same design attention we put into the terminal experience, it carries into whatever editor you already use.
Configuration that stays out of your way
All providers work out of the box. Run cline auth to set up your provider, Cline's native provider, OpenAI, Anthropic, Bedrock, Vertex, and more. Use cline config to toggle YOLO mode, change your default model, or configure Plan mode to use a different model than Act mode.
Need multiple configurations? Pass the --config flag to point to a different settings directory. Run one terminal with Claude for planning, another with a fast model for implementation. Each instance maintains its own state.
The bigger picture
The IDE was the right answer when the developer wrote every line. But when an agent is managing repositories, running terminal commands, and executing end-to-end workflows, the question becomes: what's the right interface for overseeing that work?
The answer isn't any single surface. It's meeting developers wherever they are. Cline runs in VS Code, JetBrains, Zed, Neovim, Emacs, and now the terminal as a first-class experience. Exploring and debugging an unfamiliar codebase? The IDE's visual tools are hard to beat. Orchestrating parallel agents, automating pipelines, scripting repeatable workflows? The terminal. Running an agent as part of a build system? Headless. Different work deserves different interfaces. The CLI occupies the sweet spot that didn't exist before: rich enough to feel like a real development environment, light enough to compose with everything else in your shell.
The IDE was the starting point. It won't be the ending point.
Try it now:
npm install -g cline
cline auth
For a limited time, Minimax M2.5 and Kimi K2.5 are free to use, no API key required. The barrier to entry is zero.
Cline is Apache 2.0 licensed, trusted by over five million developers, and recognized by GitHub Octoverse as the fastest-growing AI open-source project by contributors. You're not locked into any model or vendor. Bring your own API key from Anthropic, OpenAI, Google, Mistral, or run local models with Ollama.
Learn more at cline.bot/cli. Full docs at docs.cline.bot/cline-cli. Source code at github.com/cline/cline.
We're iterating in the open and your feedback shapes what comes next. Keep the ideas, issues, and discussions coming through GitHub, Reddit, or Discord.
The terminal is ready. Let's build.
関連記事
今日のまとめ
AIデイリーブリーフで今日の重要ニュースをまとめ読み