Restructure a folder you already have
Almost nobody starts from an empty directory. You have a folder of notes, drafts, half-finished outputs and a README that stopped being true in March, and the question is whether it can become a workspace without losing anything.
It can, but only in one order: classify, plan, copy, verify, remove. Every version that goes wrong skips a step, and the one that goes worst skips the fourth.
Step 1: classify everything into three primitives
Open the folder and sort every item into exactly one bucket.
| Bucket | What goes in | The tell |
|---|---|---|
| Becomes a step | One unit of work that happens in order | You can name what it takes in and what it puts out |
| Becomes a shelf | A group of files with the same purpose | Three or more files that could share headings |
| Becomes the catalog | The name-and-location list | It describes other files rather than containing their content |
Anything that fits none of the three needs a decision, not a folder. A file that is "reference material I might need" is either a shelf item or something to delete; putting it in a folder called misc moves the problem rather than solving it.
Expect roughly a third of the folder to end up deleted. A folder that has been growing for a year contains drafts of drafts, exports of exports, and at least one file whose name is a date and whose content is a single sentence.
Step 2: write the migration map first
Before moving a single file, write down where everything goes:
migration.md
from to
notes/*.md 01_collect/shelf/
old-drafts/final-*.md 02_draft/examples/
README.md CONTEXT.md (rewritten, not renamed)
scripts/ _tools/
everything else review before deleting
The map gets reviewed before anything moves. This is the step people skip because it feels like paperwork, and it is the only reason the rest is reversible.
One thing on the map deserves its own line: the README does not become CONTEXT.md by renaming it. A README describes a project; CONTEXT.md issues rules. Copy the useful facts out, then write the rules fresh.
Step 3: copy, do not move
Copy files into the new tree. Leave the old tree untouched.
This feels wasteful for an afternoon and is the reason a failed restructure costs an afternoon instead of a project. If the new tree turns out to be the wrong shape — and it might, because you learn things while building it — you delete it and try again, with nothing lost.
Step 4: verify by running the workspace, not by listing files
Run one full pass of the new workspace on real input. Then check two things:
- Every file you expected to keep has an obvious home in the new tree.
- The run produced an output you would have accepted from the old folder.
If the second one fails, do not patch the output. Open the step folder and find the check that should have caught it. Every bad output is a missing or weak check.
Step 5: remove the old tree, last
Only after a successful run. Move the originals to an archive folder rather than deleting them outright if the content is irreplaceable, and keep the migration map with the archive — six weeks later, it is the only document that explains where everything went.
The collision that eats a file
On Windows and on default macOS file systems, file names are case-insensitive. A workspace with CONTEXT.md at the root and a context.md inside a step folder is two files that the file system treats as one: the second one written silently overwrites the first, and there is no error message to notice.
Two rules:
- Never use names that differ only by case anywhere in one workspace.
- Keep step-level rules in
task.mdrather than a second context file. OneCONTEXT.mdat the root is both the simpler design and the safe one.
If you have already hit this, check the file's content: if your workspace-wide rules now read as one step's local rules, that is the overwrite, not a mystery.
What to leave behind
Not everything should survive the restructure. Specifically:
- Chat transcripts. A folder of saved conversations is not a workspace. Extract the decisions into a shelf; delete the rest.
- The old README. Keep the parts that are still true inside
CONTEXT.md; archive the file. - Scripts nobody ran this year.
_tools/is for scripts the agent may actually call. Anything else is a museum piece.
Next
When the new tree runs once end to end, run the walk test on each step folder — it catches the missing headings and the vague checks that a successful run can hide. If you have not built a workspace from scratch yet, do the worked example first; restructuring is much easier when you have felt a working one.