iCode Agent · 最初のタスク
失敗するテストを修正する。
iCode Agent の動きを最速で知る方法は、小さなバグを任せることです。あなたがゴールを伝えれば、調査、変更、検証はエージェントが行います。
1. プロジェクトで iCode Agent を起動する
cd ~/my-project icode-agent
2. 修正を依頼する
プロンプトに次のように入力します。
Fix the failing tests in this repository.
3. 作業の様子を見る
すべてのステップがその場で見えます。ツール呼び出しと、その出力のライブプレビューです。
▸ read src/math.ts ✓ read src/math.ts ▸ bash bun test math.test.ts ✓ bash bun test math.test.ts ← observes the failure ▸ edit src/math.ts ← repairs the code ✓ edit src/math.ts ▸ bash bun test math.test.ts ✓ bash bun test math.test.ts ← verifies: all tests pass Fixed the add() function ... All tests pass.
失敗はエージェントにとってエラーではなく、情報です。タスクが完了するか、あなたの助けが必要になるまで、修正と再検証を続けます。
4. 主導権を保つ
- 方向づけ — 作業中にメッセージを入力して Enter を押すと、進む方向が変わります。
- キュー — Alt+Enter で、現在のタスクの後に実行するフォローアップをキューに追加します。
- 中断 — Esc で中止します。キューに入れたメッセージはエディターに戻ります。
- 展開 — Ctrl+O でプレビューの代わりにツール出力の全体を表示します。