From dcb90f0fb66b73389ba9bcf54d3d0b63ef8bc292 Mon Sep 17 00:00:00 2001 From: Matteo Cherubini Date: Sun, 10 May 2026 15:11:04 +0200 Subject: [PATCH] docs: Add AI agent instructions for wiki files --- templates/wiki-index.md | 3 ++- templates/wiki-log.md | 4 ++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/templates/wiki-index.md b/templates/wiki-index.md index 9fe4719..d948e11 100644 --- a/templates/wiki-index.md +++ b/templates/wiki-index.md @@ -11,7 +11,8 @@ private: false **[AGENT INSTRUCTION]** This is the primary navigation file. Read it first on every session before accessing individual pages. -Maintain strict alphabetical sorting within each section. +Append new entries at the bottom of the relevant section — do not reorder or rewrite sections. +Alphabetical sorting is handled automatically by the pre-commit hook. Update `last_updated` in the YAML frontmatter on every edit. Entry format: `- [[folder/slug]] — One-line summary. \`maturity: \`` diff --git a/templates/wiki-log.md b/templates/wiki-log.md index 3987fb1..facf25a 100644 --- a/templates/wiki-log.md +++ b/templates/wiki-log.md @@ -9,6 +9,10 @@ private: false # Operations Log: {{GENOME_NAME}} +**[ORCHESTRATOR]** +Inject only the last 20 entries into agent context: `tail -n 20 wiki/log.md` +The agent must never load or read the full log file — it grows unbounded. + **[AGENT INSTRUCTION]** This is an append-only system ledger. Never edit or delete previous entries. Append new entries at the bottom using the format defined below.