0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

CodeRabbit CLIがコーディングタスクに対応しました

0
Last updated at Posted at 2026-11-06

CodeRabbitはAI SDLCを安全かつ適切に推進・管理する基盤を提供します。AIコーディングエージェントが生成する大量のコードに対して、理解負債の解消、優先順位付け、そしてセキュアな状態を維持します。

CodeRabbit CLIに、コーディングタスクを管理する機能が追加されました。サンドボックス環境での開発や、PRの指摘に対する修正などにも対応します。

CodeRabbit CLIのインストール

CodeRabbit CLIは、以下のコマンドでインストールできます。

# macOS / Linuxの場合
curl -fsSL https://cli.coderabbit.ai/install.sh | sh
# Windowsの場合
irm https://cli.coderabbit.ai/install.ps1 | iex
# npmの場合
npm install -g coderabbit

これで coderabbit または cr コマンドが使えます。

基本的な使い方

利用する際には認証が必要です。

coderabbit auth login

そして基本的には、CodeRabbitのレビューをローカルで実行するのがCLIです。アンコミットなファイルに対してコードレビューを行えるのが利点です。

coderabbit review # 変更したファイルをレビュー
coderabbit review --committed # コミットしたファイルだけをレビュー
coderabbit review --uncommitted # アンコミットなファイルをレビュー

AIコーディングエージェント向けのスキルをインストールすることもできます。

coderabbit skills install

コーディングタスクについて

CodeRabbitは、PRやセキュリティ上の指摘に対して、実装まで行ってくれるCodeRabbit Coding Agentがあります。

このCoding AgentをCLIから操作できます。

Usage: coderabbit code [options] [command]

Webアプリと同じCoding Agentとスキルライブラリを使用します。
Coding Agentのコマンドはベータ版です。

Options:

  -h, --help                                   コマンドのヘルプを表示

Commands:

  handoff [options]                            ローカルのコーディングセッションを新しいクラウドタスクで継続
  ls [options]                                 クラウド上のCoding Agentタスクを一覧表示
  show [options] <task>                        クラウド上のCoding Agentタスクを表示
  new [options] [prompt]                       クラウド上でCoding Agentタスクを開始
  goal [options] <task>                        クラウドタスクの目標を取得・設定・削除
  resume [options] [task]                      クラウド上のCoding Agentタスクを追跡・継続
  cancel [options] <task>                      クラウド上のCoding Agentタスクの実行中の処理を停止
  archive [options] <task>                     クラウド上のCoding Agentタスクをアーカイブ
  ask [options] <task> <question>              クラウド上のCoding Agentタスクについて追加の質問をする
  plan [options] <task>                        クラウド上のCoding Agentタスクの計画を表示・承認
  push [options] <task>                        クラウド上のCoding Agentタスクの変更をプッシュ
  autofix|autopilot [options] <action> [task]  クラウドタスクまたはプルリクエストのAutofixを制御
  skills                                      クラウド上のCoding Agentスキルを管理
  help [command]                              コマンドのヘルプを表示

実行例です。

$ coderabbit code ls

Coding Agent tasks in coderabbitai
Your tasks

failed              Autofix for PR #5220
  3bc...93f  ·  state needs_attention  ·  xxxxxxx  ·  PR #5220  ·  1h ago
completed           Resolve merge conflicts between the pull request and base branches
  f21xxx9b9  ·  state completed  ·  yyyyyy  ·  PR #3342  ·  24d ago
completed           Rewrite GPT-6 Astra review caveats with direct bounded statements
  c9exxx618  ·  state completed  ·  zzzzz  ·  PR #3053  ·  60d ago

new で新しいタスクをはじめられます。この時は、現在いるリポジトリが対象です。

% coderabbit code new
Coding Agent commands are in beta. Share feedback: https://discord.gg/coderabbit
◇  What should the agent do?
Translate the website

────────────────────────────────────────
CodeRabbit Code
Start a cloud task
────────────────────────────────────────
  :

以下は new のときのオプションです。

% coderabbit code new --help
Usage: coderabbit code new [options] [prompt]

Start a cloud task on the current branch of the Git repository in this directory. The task starts from that branch on origin. Local commits that are not pushed and uncommitted
changes are not included.

Arguments:
  prompt                   What the agent should do, or - to read it from stdin. Interactive mode prompts when omitted; agent mode requires it

Options:
  --plan                   Start in Plan mode: the agent writes a plan for review instead of changing code
  --resume                 Follow the task after it starts, as coderabbit code resume does
  --goal                   Start in Goal mode, using the prompt as the goal (1–4,000 characters)
  --goal-objective <text>  Use a separate goal objective with --goal
  --agent                  Emit newline-delimited JSON for agent workflows
  --access <mode>          Request repository access after creation; full requires browser authorization (choices: "manual", "full")
  --private                Create a task visible only to you from the start (default: false)
  -h, --help               display help for command

料金

料金は0.4ドル/分、1時間ずっと動き続けると24ドルになります。モデルの違いや、ツールの呼び出し回数、トークン数といった変動しやすい要素は省き、エージェントが実行された時間に対してのみ、課金されます。

まとめ

CodeRabbit CLIは随時アップデートを重ねています。新機能に対してもどんどん対応していますので、ぜひアップデートして試してみてください。レビューに限らず、さまざまな処理が可能です!

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?