1 if max_iterations and iteration > max_iterations: break client = create_client(project_dir, model) # 毎回 new client prompt = initializer_prompt if first_run else coding_prompt async with client: await run_agent_session(client, prompt, project_dir) await asyncio.sleep(3) ハーネスのメイン責務 4 つ ① コンテキスト窓を真っさらに ② プロンプトを切り替え ③ ファイルシステムに状態を保持 ④ 次セッション待機