joplock/app/items
igor 72e2ff98ce docs: split the agent guide into a short AGENTS.md and on-demand topic files
AGENT_GUIDE.md was ~33k tokens, loaded in full by every agent that
followed AGENTS.md's 'read it first', whatever the task. A third of it
was lookups an agent can get from the code (file map, route table, env
var table, settings key list, static asset list) and had already gone
stale in several places.

- AGENTS.md (~1.8k tokens, always loaded): what the project is, a
  'before you touch X, read Y' table, the rules that always apply,
  workflow (including that a push to master publishes the Docker
  image), and the traps that have each broken real data or a real
  phone. It keeps the tool-managed graft block as is.
- docs/agents/*.md (11 files, read on demand): the hard-won 'why' and
  'do not regress' contracts by topic, sliced from the old guide with
  nothing hand-rewritten. The derivable lookups are dropped; the few
  non-derivable facts from them (git-ignored dev compose, built
  bundles, reference.docx) moved to testing-and-dev.md.
- pointer comments at the top of the contract-heavy source files, so
  the rule surfaces at the point of editing
- tests/agentDocs.test.js keeps the docs honest: AGENTS.md has a size
  budget, every topic file is linked and says when to read it, and any
  file, function or npm script a doc names must still exist
- README and two code comments no longer point at AGENT_GUIDE.md
2026-10-14 08:37:26 +13:00
..
folderOps.js docs: split the agent guide into a short AGENTS.md and on-demand topic files 2026-10-14 08:37:26 +13:00
folderTree.js docs: split the agent guide into a short AGENTS.md and on-demand topic files 2026-10-14 08:37:26 +13:00
itemService.js feat(folders): notebook order option (A-Z / most recently updated) 2026-10-09 17:44:18 +13:00
itemWriteService.js docs: split the agent guide into a short AGENTS.md and on-demand topic files 2026-10-14 08:37:26 +13:00
joplinItem.js docs: split the agent guide into a short AGENTS.md and on-demand topic files 2026-10-14 08:37:26 +13:00
shareAccess.js docs: split the agent guide into a short AGENTS.md and on-demand topic files 2026-10-14 08:37:26 +13:00