3
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

macOS / Ubuntu(WSL含む)で AIコーディングエージェントを高速化する環境整備チートシート

Posted at

AIコーディングエージェントを“即動ける”状態にする環境整備チートシート

AIコーディングエージェント(Codex CLI/IDE、Copilot、Cursorなど)を使うとき、詰まりやすいのは「どこを触るか探す」「設定やログを読む」「差分を理解する」「必要な場所へすぐ移動する」といった周辺作業です。
この記事は、その周辺作業を速くするための 汎用CLIユーティリティを、macOS / Ubuntu(WSL含む) 向けにまとめた“コピペ用チートシート”です。

前提(一般論)

  • ここに挙げるツールが 必ず全員のワークフローで使われる保証はありません(一般論です)。
  • ただし基本は「読む/探す/見る」系が中心で、導入しただけでリポジトリを勝手に変更する類ではないため、概ね “毒になりにくい” 構成です。
  • コーディングエージェントが直接関係ない自動化(watch系、pre-commit)や環境切替(direnv等)は、IDE/DevContainer等で吸収される前提で 本記事の対象外とします。

macOS(Homebrew)— 結論:コピペで入れる

✅ 全部入り(迷ったらこれ)

brew update

brew install \
  git gh \
  ripgrep fd bat eza tree \
  jq yq \
  git-delta \
  fzf tmux zoxide tldr \
  tokei \
  sd \
  shellcheck \
  curl wget \
  openssl \
  gnu-tar gnu-sed coreutils \
  unzip xz \
  htop btop \
  ncdu \
  httpie \
  lynx w3m

レベル1:必須(高確率で使う)

brew update

brew install \
  git \
  ripgrep fd bat \
  jq \
  curl

レベル2:快適(刺さる人が多い)

brew update

brew install \
  gh \
  yq \
  git-delta \
  fzf tmux \
  eza tree

レベル3:好み(無くても困らないが効く)

brew update

brew install \
  zoxide tldr \
  tokei \
  sd \
  shellcheck \
  htop btop \
  ncdu \
  httpie \
  lynx w3m \
  wget \
  gnu-tar gnu-sed coreutils \
  unzip xz

Ubuntu / WSL(apt)— 結論:コピペで入れる

✅ 全部入り(aptで入る範囲を最大化)

sudo apt update

sudo apt install -y \
  ca-certificates curl wget \
  git openssh-client \
  build-essential pkg-config \
  ripgrep fd-find bat jq tree \
  fzf tmux tldr \
  shellcheck \
  unzip xz-utils \
  htop \
  ncdu \
  netcat-openbsd dnsutils iproute2 lsof \
  httpie \
  lynx w3m \
  gh

Ubuntuでは fdbat のコマンド名が fdfind / batcat になりがちなので、エイリアス推奨です。

cat >> ~/.bashrc <<'EOF'
alias fd=fdfind
alias bat=batcat
EOF
source ~/.bashrc

レベル1:必須(高確率で使う)

sudo apt update

sudo apt install -y \
  git \
  ripgrep fd-find bat \
  jq \
  curl ca-certificates

レベル2:快適(刺さる人が多い)

sudo apt update

sudo apt install -y \
  fzf tmux tldr \
  gh \
  tree

レベル3:好み(開発体験の底上げ)

sudo apt update

sudo apt install -y \
  shellcheck \
  wget \
  unzip xz-utils \
  htop ncdu \
  httpie \
  lynx w3m \
  netcat-openbsd dnsutils iproute2 lsof

Ubuntuでは yq / git-delta / eza / zoxide / tokei / sdaptで入らない or 古いことがあります。
この範囲は、チームの配布方針(snap / deb / GitHub Releases / 社内ミラー)で揃えるのがおすすめです。


収録ツールのざっくり役割(短く)

探す(影響範囲の特定が速くなる)

  • ripgrep (rg):全文検索
  • fd:ファイル探索(Ubuntuは fd-find
  • tokei:言語別の行数/規模感

読む(視認性が上がり、判断が速くなる)

  • bat:cat代替(行番号/ハイライト)
  • eza / tree:ディレクトリ俯瞰
  • jq / yq:JSON/YAMLの整形・抽出

差分を見る(レビュー/原因調査が速くなる)

  • git:履歴・差分の基盤
  • git-delta:diffを読みやすく

移動する(必要な場所へ即到達)

  • fzf:曖昧検索で瞬間移動
  • tmux:並行作業(ログ/実行/調査を同時に)
  • zoxide:cd高速化

外部情報を読む(ブラウザ往復を減らす)

  • gh:PR/Issue参照
  • lynx / w3m:TUIブラウザ(軽い参照や検索に)

地味に効く“土台”

  • curl / wget:取得
  • unzip / xz:アーカイブ展開
  • shellcheck:シェルの事故を減らす
  • htop / btop:プロセス観測
  • ncdu:容量調査
  • (Ubuntu)dnsutils / iproute2 / lsof / netcat-openbsd:ネットワーク/ポート調査

今後、AIコーディングエージェントの性能があがってくれば、もっといろいろなコマンドを使うようになったり、最適化されたコマンドが登場するかもしれないですね!
あくまで2025年時点の個人的なものなので、その点ご了承ください

3
2
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
3
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?