Agent v3 and some AI modifications