agentleFS
NTCodingNTCoding/living-architecture/project-memory/AGENTS.md

living-architecture / project-memory

AGENTS.md139 starsChanged 3 months agoApache-2.0View on GitHub

Project memory is the persistent cross-PRD planning layer for this repository. When doing planning, discovery, PRD drafting, architecture planning, delivery planning, or future-project discussion, read project-memory/README.md and apply these instructions. Do not invent priorities, dependencies, need levels, user pain, reasons, risks, or timing signals. Use the user's approved words as the source of truth. If a detail is unclear, ask before recording it. Architecture memory lives under project-memory/architecture/. It stores approved reusable architectural reasoning for planning. It is for lessons…

  • Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about code style.

    Of the AGENTS.md files we read, the 31,439 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.

  • In this repository4 other files it gives its agents.

The file

Show its rules and text

We split this AGENTS.md into the rules it gives an agent

32 rules. About 0 are common, 22 are distinctive, and 10 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈22

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 10

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    When doing planning, discovery, PRD drafting, architecture planning, delivery planning, or future-project discussion, read …

    line 5
  2. Very specific:

    Read project-memory/README.md before using or changing project memory.

    line 9
  3. Very specific:

    Read project-memory/priorities.md when discussing future work, sequencing, or what may come next.

    line 10
  4. Very specific:

    Read project-memory/architecture/AGENTS.md and project-memory/architecture/README.md before querying, creating, or updating architecture …

    line 11
  5. Very specific:

    Read relevant idea folders under project-memory/ideas/ when the user names an idea, when choosing between future candidates, or when …

    line 12
  6. Distinctive:

    Do not invent priorities, dependencies, need levels, user pain, reasons, risks, or timing signals.

    line 17
  7. Distinctive:

    Use the user's approved words as the source of truth.

    line 19
  8. Distinctive:

    Every architecture memory must be standalone for future use.

    line 29
  9. Distinctive:

    When working on architecture drafting or architecture approval:

    line 38
  10. Very specific:

    Read project-memory/architecture/README.md for the frontmatter schema, approved metadata values, and memory-card structure.

    line 41
  11. Distinctive:

    If a memory seems relevant but the fit is unclear, ask the user whether it applies before using it to shape a recommendation.

    line 44
  12. Distinctive:

    If a reusable architecture insight emerges, propose concise memory-card text and ask the user whether it is worth saving before writing it.

    line 45
  13. Distinctive:

    Never create or update an architecture memory without explicit user approval of the memory content.

    line 47
  14. Distinctive:

    Do not use architecture memory to override an approved PRD, ADR, role definition, or repository convention.

    line 49
  15. Distinctive:

    When the user says an item is out of scope, deferred, not for this PRD, later, future work, not now, or similar, treat it as a triage point …

    line 53
  16. Distinctive:

    Ask, or confirm if the user already said clearly, whether the item is:

    line 55
  17. Distinctive:

    If the item is probably or definitely needed later:

    line 62
  18. Very specific:

    Create or update an idea folder at project-memory/ideas/<idea-slug>/.

    line 64
  19. Very specific:

    Add or update idea.md in that folder.

    line 65
  20. Distinctive:

    Keep the current PRD focused by recording only the concise scope decision there, with a link to the idea folder when useful.

    line 76
  21. Distinctive:

    If the item is explicitly not needed:

    line 78
  22. Distinctive:

    Do not create an idea folder unless the user confirms that the decision should be remembered more broadly.

    line 80
  23. Distinctive:

    Keep it as concise out-of-scope context in the current PRD or planning artefact.

    line 81
  24. Distinctive:

    If the item is uncertain:

    line 83
  25. Distinctive:

    Ask a clarifying question before recording it as future work.

    line 85
  26. Distinctive:

    Use the current planning artefact's open questions area if it may affect the current PRD.

    line 86
  27. Distinctive:

    Use a short kebab-case slug for idea folders.

    line 90
  28. Distinctive:

    Before creating a new folder, check whether a matching or overlapping idea already exists.

    line 92
  29. Very specific:

    Use project-memory/ideas/README.md as the idea template source.

    line 94
  30. Very specific:

    Only add or reorder items in project-memory/priorities.md when the user explicitly confirms the priority.

    line 98
  31. Distinctive:

    Do not manually duplicate completed-work history into project memory.

    line 104
  32. Distinctive:

    When a future planning discussion needs implementation context, retrieve it from existing PRDs, git history, GitHub issues, GitHub pull …

    line 106

≈ “Common” is an estimate: at least 1 in 5 of the 40,246 AGENTS.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
AGENTS.md

Project Memory Agent Instructions

Project memory is the persistent cross-PRD planning layer for this repository.

When doing planning, discovery, PRD drafting, architecture planning, delivery planning, or future-project discussion, read project-memory/README.md and apply these instructions.

Reading project memory

  • Read project-memory/README.md before using or changing project memory.
  • Read project-memory/priorities.md when discussing future work, sequencing, or what may come next.
  • Read project-memory/architecture/AGENTS.md and project-memory/architecture/README.md before querying, creating, or updating architecture memories.
  • Read relevant idea folders under project-memory/ideas/ when the user names an idea, when choosing between future candidates, or when updating deferred work.
  • During the initial problem-definition planning stage, do not use project-memory content such as priorities.md or idea folders as source material unless the user explicitly names it. The problem definition must come from the user, user-named sources, or already-approved problem-definition content.

Updating project memory

Do not invent priorities, dependencies, need levels, user pain, reasons, risks, or timing signals.

Use the user's approved words as the source of truth. If a detail is unclear, ask before recording it.

Architecture memory

Architecture memory lives under project-memory/architecture/.

It stores approved reusable architectural reasoning for planning. It is for lessons that should help future architecture decisions, including trade-off reasoning, responsibility-placement lessons, project-convention interpretation, misunderstood Rivière role definitions, and architectural anti-patterns.

Architecture memory is advisory, not automatic enforcement.

Every architecture memory must be standalone for future use. A future reader must be able to understand the original problem, the evidence, the reasoning, and the reusable lesson without access to the conversation that produced it. Include concrete code samples, dependency examples, diagrams, or other supporting content when they make the concepts clear. Include direct references to the relevant source files, role definitions, conventions, or architecture documents. Do not record vague conclusions that require the reader to guess what code or structural relationship they describe.

When working on architecture drafting or architecture approval:

  1. Read project-memory/architecture/AGENTS.md.
  2. Read project-memory/architecture/README.md for the frontmatter schema, approved metadata values, and memory-card structure.
  3. Query memories by the actual system areas and architecture concepts relevant to the current architecture discussion.
  4. Include global system-area memories when their architecture concepts are relevant.
  5. If a memory seems relevant but the fit is unclear, ask the user whether it applies before using it to shape a recommendation.
  6. If a reusable architecture insight emerges, propose concise memory-card text and ask the user whether it is worth saving before writing it.

Never create or update an architecture memory without explicit user approval of the memory content.

Do not use architecture memory to override an approved PRD, ADR, role definition, or repository convention. If a memory conflicts with a current artefact or convention, clarify with the user before proceeding.

Out-of-scope triage

When the user says an item is out of scope, deferred, not for this PRD, later, future work, not now, or similar, treat it as a triage point rather than a deletion.

Ask, or confirm if the user already said clearly, whether the item is:

  • explicitly not needed
  • probably needed later
  • definitely needed later
  • uncertain and needing more discussion

If the item is probably or definitely needed later:

  1. Create or update an idea folder at project-memory/ideas/<idea-slug>/.
  2. Add or update idea.md in that folder.
  3. Record:
    • idea or capability name
    • status
    • need level
    • source PRD, planning session, or conversation context
    • reason it was deferred from the current PRD
    • confirmed priority signals, if any
    • confirmed dependencies, if any
    • open questions
    • links to related PRDs, research, prototypes, issues, or PRs
  4. Keep the current PRD focused by recording only the concise scope decision there, with a link to the idea folder when useful.

If the item is explicitly not needed:

  • Do not create an idea folder unless the user confirms that the decision should be remembered more broadly.
  • Keep it as concise out-of-scope context in the current PRD or planning artefact.

If the item is uncertain:

  • Ask a clarifying question before recording it as future work.
  • Use the current planning artefact's open questions area if it may affect the current PRD.

Idea folder guidance

Use a short kebab-case slug for idea folders.

Before creating a new folder, check whether a matching or overlapping idea already exists. If it is not clear whether two ideas are the same, ask the user rather than merging them silently.

Use project-memory/ideas/README.md as the idea template source.

Priorities guidance

Only add or reorder items in project-memory/priorities.md when the user explicitly confirms the priority.

Priority entries should explain why the item is prioritised and link to supporting idea folders, PRDs, research, issues, or PRs where available.

Retrieval-first history

Do not manually duplicate completed-work history into project memory.

When a future planning discussion needs implementation context, retrieve it from existing PRDs, git history, GitHub issues, GitHub pull requests, and linked evidence.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.