AGENTS.md — Personal Agent Wiki Schema and Conventions¶
Read this file before any wiki ingest, query, or lint.
Layout¶
agent-wiki/
├── AGENTS.md # this file
├── index.md # content catalog
├── log.md # append-only ops log
├── raw/ # source documents (immutable)
└── wiki/
├── entities/ # one file per Person/Org (mirrors AnyType where applicable)
├── projects/ # one file per tracked project (mirrors AnyType pkm_project)
├── events/ # one file per tracked event (mirrors AnyType event)
├── concepts/ # ideas, frameworks, terms
├── topics/ # broader subject pages
├── timelines/ # chronological views
└── sources/ # one summary file per ingested source in raw/
Page conventions¶
Every wiki page has:
- YAML frontmatter:
- A 1-line summary directly under the H1.
- Body sections appropriate to type (see below).
- A
## Sourcessection listing the canonical references.
Page types¶
Entity¶
Sections: Identity, Affiliations, Notable contributions, Mentions, Open questions.
Concept¶
Sections: Definition, Why it matters, Variants, Related concepts, Sources.
Topic¶
Sections: Overview, Key facts, Open questions, Sub-topics, Sources.
Project¶
Sections: Identity (name, status, version, license, repo, org), Tech stack, Team, Architecture, Roadmap, External connections, Open questions.
Event¶
Sections: Date & Location, Description, Participants, Related projects, Preparation (if upcoming) / Outcomes (if past), Open questions.
Timeline¶
Sections: Period, Key events (chronological), Cross-references.
Source¶
Sections: Provenance (URL, author, date), Key takeaways, Notable quotes, Affected wiki pages, Date ingested.
Operations¶
Ingest¶
- Read the source from
raw/. - Discuss key takeaways with the user (or summarize them in chat for review).
- Create
wiki/sources/<slug>.mdwith the source page template. - Update affected entity / concept / topic / timeline pages — add or revise relevant sections, ensure cross-references exist both ways.
- Update
index.md— add the new source page; update modified pages' summaries if their content changed. - Append a row to
log.md. - Flag contradictions explicitly (don't silently overwrite).
Query¶
- Search
index.mdfor relevant pages. - Read those pages (and their
sources:references) to depth 1. - Synthesize an answer with citations.
- Optionally file the answer as a new wiki page if it's a non-trivial synthesis.
Lint¶
Periodically (or on demand):
- Find pages with no inbound links (orphans).
- Find pages whose
sources:list is empty. - Find concepts mentioned in body text without their own page.
- Find contradictions between pages.
- Suggest follow-up questions or sources.
Cross-link with AnyType¶
- A wiki page can reference an AnyType object via
anytype:<object_id>in frontmatterrelated:. - A AnyType
Projectmay link to a wiki page viawiki_index_id. - Treat AnyType as authority for
private_sensitivedata; wiki entries for those should be redacted summaries only.
Log format¶
Append-only. Each entry begins with ## [<yyyy-mm-dd>] <op> | <subject> for grep-ability: