Rinse the rice: Place rice in a fine mesh strainer and rinse under cold water, swishing with your hand, until the water runs mostly clear.
Drain well to avoid soggy rice.
Sauté the garlic: In a small skillet, melt the butter over medium-low heat. Add the minced garlic and cook 1–2 minutes until fragrant and just turning golden. Do not brown deeply, or it will taste bitter.
Add to the rice cooker: Pour the rinsed rice into the rice cooker pot.
Add the sautéed garlic and butter, olive oil (if using), salt, and black pepper. Stir to coat the grains.
Measure the liquid: Add 2 cups broth (or water). For jasmine or basmati, a 1:1 liquid-to-rice ratio works well in most rice cookers.
If your cooker tends to run hot, add an extra 2–3 tablespoons liquid.
Cook: Close the lid and set to the standard white rice setting. Avoid opening the lid during cooking, which releases steam and affects texture.
Rest and fluff: When it clicks to warm, let the rice rest 10 minutes. Open, fluff gently with a rice paddle or fork to separate grains.
Finish and serve: Stir in chopped parsley or chives.
Add a pinch more salt if needed and a light squeeze of lemon for brightness. Serve warm.