Skip to content

Latest commit

 

History

History
46 lines (29 loc) · 1.31 KB

File metadata and controls

46 lines (29 loc) · 1.31 KB

Tip 36: Running bash commands and agents in the background

Bashコマンドとエージェントをバックグラウンドで実行

Category: Automation Related: Tip 17: Exponential backoff, Tip 14: Multitasking

Overview

長時間実行されるBashコマンドはCtrl+Bでバックグラウンドに移動できる。

Background Bash Commands

コマンドが予想より長くかかっている場合:

  1. Ctrl+B を押す
  2. コマンドがバックグラウンドに移動
  3. Claude CodeはBashOutputツールで後から確認可能
  4. その間、他の作業を続けられる

Background Agents

サブエージェントもバックグラウンドで実行可能:

> このリサーチをバックグラウンドで実行して

長時間のリサーチや定期的なチェックに便利。

Use Cases

  • 長時間のビルド
  • 大量のファイル処理
  • 長時間のリサーチ
  • 定期的な状態チェック

Combining with Other Tips

  • Tip 17 のエクスポネンシャルバックオフと組み合わせ
  • Tip 14 のマルチタスクと組み合わせ

See Also