---
title: Explore, plan, code, PR loop
description: Separate codebase exploration from implementation, then verify the change
  and open a reviewable PR.
url: https://subramanya.ai/awesome-loops/explore-plan-code-pr-loop/
tags:
- planning
- pull-request
- tests
---

# Explore, plan, code, PR loop

Use this when implementation risk comes from not understanding the existing system.

1. Explore the relevant files, commands, docs, and tests without editing.
2. Write a concrete plan that names files, data flow, risks, and verification.
3. Implement the plan in the smallest coherent changes.
4. Run the planned verification.
5. Fix failures and update the plan if reality changed.
6. Open a PR with the plan, diff summary, and verification evidence.

Stop when the PR reviewer can understand what changed and how it was proven.
