A docs folder for agents: pending, done and decisions

How to give every new AI coding session a memory of the project: a short docs folder with what's pending, what's done, where it's going and why decisions were made. The exact setup this site uses.

By Shakir Sajad & Claude (AI by Anthropic) · 2 min read · Updated 2026-11-19

scissors cutting list illustration

Step 12 of the agentic coding learning path.

The problem

Anthropic's best practices say the agent can read your code, but not what was never in it: a decision you made last week, the task you left half-done, the reason a page looks the way it does.

Chat history doesn't fix this. It gets cleared, compacted or lost. A file in the repo doesn't.

The setup this site uses

This is the real structure behind this website:

Prompt
docs/
  README.md        ← index + rules for keeping docs
  PENDING.md       ← open work, most important first
  DONE.md          ← what shipped, with dates
  ROADMAP.md       ← where it's going
  01-project/      ← overview, architecture, commands
  02-seo/          ← setup, search engine submission
  03-content/      ← content plan
  04-tools/        ← free tools: list, how to add, ideas
  05-decisions/    ← the decision log

Numbered folders keep the order clear. Each file is short. Long detail only exists where it's needed, and the short lists link to it.

The four files that matter most

PENDING.md: one checkbox line per task, most important first, with a link to detail if there is any.

DONE.md: date, one line, commit. Proof of what's finished, so nobody redoes it.

ROADMAP.md: a few lines on where the project is heading, so the agent's suggestions point the same way.

Decision log: a table of what was decided and why. On this site, rows include "share button lives in the byline" and "no invented numbers or experiences". When an agent sees something odd, the log tells it not to "fix" it.

The rule that keeps it alive

Docs die when nobody updates them. So make it the agent's job. This site's AGENTS.md says:

Prompt
## Start here
- Read docs/README.md first. "What's pending?" → docs/PENDING.md. Why something is the way it is → the decision log.
- After finishing work: move the item from PENDING to DONE (one line + commit), and log any owner decision. Keep docs short.

Now every task ends with the docs up to date, without me asking.

Prompt: set it up in your project

Prompt
Create a docs/ folder for this project: README.md (index and rules for keeping docs short), PENDING.md, DONE.md, ROADMAP.md and 05-decisions/01-decisions.md. Fill PENDING from open TODOs and anything half-done you can find. Then ask me 5 questions about decisions and plans only I know, and log my answers. Finally, add a "Start here" section to AGENTS.md pointing to docs/README.md, with the rule to move items from PENDING to DONE after each task.

Test it

Open a fresh session and type only:

Prompt
What's pending?

If it reads PENDING.md and gives you a sensible next task, it works. If not, tighten the "Start here" line.

What's next

The rest of Part 3 (git, review, running without you, deploys) is coming. Follow the learning path to see what's next.

Do this now

  1. Create docs/ with four files README.md, PENDING.md, DONE.md, and a decisions log. (10 min)
  2. Ask the agent to fill PENDING.md From your notes, open issues and anything half-done. (10 min)
  3. Log three decisions Things an agent might 'fix' that you chose on purpose. (10 min)
  4. Point your AGENTS.md at it One 'Start here' line: read docs/README.md first. (5 min)
  5. Test it in a fresh session Ask only: "What's pending?" See if it answers right. (5 min)

Frequently asked questions

Why not put all of this in CLAUDE.md?

CLAUDE.md loads on every task, so it should stay short. The docs folder holds longer project memory that the agent reads only when it needs it. CLAUDE.md just points to it.

What's a decision log for?

To stop an agent from 'fixing' something you chose on purpose. Each line says what was decided and why. When a new session sees something odd, the log explains it.

Who updates the docs?

The agent, as part of finishing each task: move the item from PENDING to DONE, log any decision. Put that rule in AGENTS.md so it happens every time.

How long should the docs be?

As short as possible. One line per item, with a link to a longer file only when one is really needed.

Sources