In agile environments, planning should be flexible and adaptable to changing circumstances. Just-in-time (JIT) refinement refers to the practice of refining the backlog and details of the product features as they become more relevant, rather than attempting to plan everything upfront. This allows the team to respond to changes and new information as they emerge, which aligns with agile principles of iterative development and adaptability.