Write history records only when requested.
-
Do not hardcode a record location. Use the user's provided folder, an existing project record folder the user points to, or ask the user
to choose one before writing durable records.
-
Do not initialize git, create remotes, or push the record folder unless the user explicitly asks for repository setup.
-
Use date-first storage with topic/query metadata:
<record-folder>/
├── README.md
├── index.jsonl
├── briefs/YYYY/MM/YYYY-MM-DD-<slug>.md
├── raw/YYYY/MM/YYYY-MM-DD-<slug>.json
└── topics/<topic-slug>.md
-
Create README.md when absent to document the local schema and source-citation expectations.
-
Write the rendered brief to briefs/YYYY/MM/YYYY-MM-DD-<slug>.md.
-
Append one JSON object to index.jsonl with relative paths plus generatedAt, date, topic, query, window, language,
sourceCount, sources, tags, and errors when available.
-
Store the topic-radar JSON under raw/ when available and useful for future trend tracking; skip it if the user wants markdown-only
records.
-
Update topics/<topic-slug>.md only for explicit tracking requests or when the user asks for a topic timeline. Keep these notes concise
and source-linked.