@aitne-sh/aitne 0.1.8 → 0.1.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (276) hide show
  1. package/README.md +218 -161
  2. package/agent-assets/agent-profiles/_safety.md +3 -3
  3. package/agent-assets/agent-profiles/browser-task.md +108 -0
  4. package/agent-assets/agent-profiles/conversational.md +3 -3
  5. package/agent-assets/agent-profiles/profile-importer.md +2 -2
  6. package/agent-assets/agent-profiles/routine-fetch-window.md +30 -19
  7. package/agent-assets/agents/context-index-reconcile/agent.md +52 -0
  8. package/agent-assets/agents/evening-review/agent.md +53 -0
  9. package/agent-assets/agents/hourly-check/agent.md +62 -0
  10. package/agent-assets/agents/monthly-review/agent.md +55 -0
  11. package/agent-assets/agents/morning-routine/agent.md +78 -0
  12. package/agent-assets/agents/roadmap-maintenance/agent.md +52 -0
  13. package/agent-assets/agents/skill-curation/agent.md +52 -0
  14. package/agent-assets/agents/user-profile-sweep-evening/agent.md +48 -0
  15. package/agent-assets/agents/user-profile-sweep-morning/agent.md +53 -0
  16. package/agent-assets/agents/weekly-review/agent.md +51 -0
  17. package/agent-assets/docs/concepts/agent-day.md +13 -11
  18. package/agent-assets/docs/concepts/auth-health.md +47 -10
  19. package/agent-assets/docs/concepts/backends-and-tiers.md +66 -31
  20. package/agent-assets/docs/concepts/costs-and-quotas.md +50 -15
  21. package/agent-assets/docs/concepts/delegated-mode.md +52 -13
  22. package/agent-assets/docs/concepts/memory-model.md +72 -32
  23. package/agent-assets/docs/concepts/observations.md +49 -11
  24. package/agent-assets/docs/concepts/process-keys.md +56 -22
  25. package/agent-assets/docs/concepts/routines.md +60 -33
  26. package/agent-assets/docs/concepts/safety-and-execution.md +50 -21
  27. package/agent-assets/docs/concepts/safety-model.md +42 -34
  28. package/agent-assets/docs/concepts/skills.md +33 -17
  29. package/agent-assets/docs/features/integrations/browser-history.md +195 -0
  30. package/agent-assets/docs/features/integrations/calendar.md +39 -29
  31. package/agent-assets/docs/features/integrations/git.md +18 -7
  32. package/agent-assets/docs/features/integrations/github.md +84 -33
  33. package/agent-assets/docs/features/integrations/mail.md +59 -16
  34. package/agent-assets/docs/features/integrations/notion.md +18 -6
  35. package/agent-assets/docs/features/integrations/obsidian.md +28 -5
  36. package/agent-assets/docs/features/lifestyle/git.md +42 -38
  37. package/agent-assets/docs/features/lifestyle/reading.md +50 -22
  38. package/agent-assets/docs/features/lifestyle/receipts.md +51 -21
  39. package/agent-assets/docs/features/lifestyle/travel-bookings.md +76 -14
  40. package/agent-assets/docs/features/memory-files/agent-journal.md +111 -50
  41. package/agent-assets/docs/features/memory-files/projects.md +71 -17
  42. package/agent-assets/docs/features/memory-files/roadmap.md +50 -10
  43. package/agent-assets/docs/features/memory-files/schedule.md +113 -70
  44. package/agent-assets/docs/features/memory-files/today.md +46 -21
  45. package/agent-assets/docs/features/memory-files/user-profile.md +63 -33
  46. package/agent-assets/docs/features/messaging/bang-commands.md +113 -36
  47. package/agent-assets/docs/features/messaging/dashboard-chat.md +43 -21
  48. package/agent-assets/docs/features/messaging/discord.md +35 -4
  49. package/agent-assets/docs/features/messaging/overview.md +37 -19
  50. package/agent-assets/docs/features/messaging/pairing-and-magic-phrase.md +94 -27
  51. package/agent-assets/docs/features/messaging/slack.md +67 -14
  52. package/agent-assets/docs/features/messaging/telegram.md +18 -5
  53. package/agent-assets/docs/features/messaging/whatsapp.md +71 -17
  54. package/agent-assets/docs/features/operations/activity-and-conversations.md +44 -15
  55. package/agent-assets/docs/features/operations/approvals.md +48 -16
  56. package/agent-assets/docs/features/operations/backend-routing.md +68 -16
  57. package/agent-assets/docs/features/operations/cost-tracking.md +84 -17
  58. package/agent-assets/docs/features/operations/managed-chromium.md +221 -0
  59. package/agent-assets/docs/features/operations/notifications.md +52 -11
  60. package/agent-assets/docs/features/operations/quiet-hours.md +63 -40
  61. package/agent-assets/docs/features/operations/schedule-approaching.md +54 -24
  62. package/agent-assets/docs/features/routines/custom-routines.md +88 -20
  63. package/agent-assets/docs/features/routines/evening-review.md +74 -21
  64. package/agent-assets/docs/features/routines/hourly-check.md +149 -29
  65. package/agent-assets/docs/features/routines/morning-routine.md +53 -35
  66. package/agent-assets/docs/features/routines/weekly-review.md +40 -21
  67. package/agent-assets/docs/features/wiki/commands.md +26 -16
  68. package/agent-assets/docs/features/wiki/cost-and-approval.md +240 -0
  69. package/agent-assets/docs/features/wiki/dashboard.md +255 -0
  70. package/agent-assets/docs/features/wiki/overview.md +68 -10
  71. package/agent-assets/docs/features/wiki/search.md +248 -0
  72. package/agent-assets/docs/features/wiki/workspaces.md +254 -0
  73. package/agent-assets/docs/getting-started/01-what-is-this.md +34 -23
  74. package/agent-assets/docs/getting-started/02-first-steps.md +13 -8
  75. package/agent-assets/docs/getting-started/03-what-can-this-do.md +25 -14
  76. package/agent-assets/docs/getting-started/04-first-day.md +38 -20
  77. package/agent-assets/docs/glossary.md +235 -24
  78. package/agent-assets/docs/guides/add-a-custom-routine.md +63 -23
  79. package/agent-assets/docs/guides/backup-and-restore.md +80 -16
  80. package/agent-assets/docs/guides/budget-and-cost-for-wiki.md +56 -25
  81. package/agent-assets/docs/guides/build-your-wiki.md +22 -9
  82. package/agent-assets/docs/guides/change-which-model-handles-x.md +64 -10
  83. package/agent-assets/docs/guides/connect-a-new-mail-account.md +64 -15
  84. package/agent-assets/docs/guides/explore-with-trace-and-connect.md +28 -11
  85. package/agent-assets/docs/guides/import-knowledge-file.md +50 -40
  86. package/agent-assets/docs/guides/install-and-run.md +48 -19
  87. package/agent-assets/docs/guides/maintain-wiki-health.md +35 -10
  88. package/agent-assets/docs/guides/migrate-machines.md +74 -18
  89. package/agent-assets/docs/guides/multiple-wikis-for-multiple-domains.md +111 -60
  90. package/agent-assets/docs/guides/pause-the-agent.md +65 -24
  91. package/agent-assets/docs/guides/reinstall-cleanly.md +88 -18
  92. package/agent-assets/docs/guides/setup-wizard.md +113 -54
  93. package/agent-assets/docs/guides/switch-default-backend.md +62 -16
  94. package/agent-assets/docs/guides/use-an-existing-obsidian-vault.md +26 -10
  95. package/agent-assets/docs/reference/api.md +143 -32
  96. package/agent-assets/docs/reference/cli-commands.md +38 -17
  97. package/agent-assets/docs/reference/config.md +224 -49
  98. package/agent-assets/docs/reference/disallowed-tools.md +29 -10
  99. package/agent-assets/docs/reference/keyboard-shortcuts.md +34 -10
  100. package/agent-assets/docs/reference/knowledge-layout.md +620 -0
  101. package/agent-assets/docs/reference/process-keys.md +61 -5
  102. package/agent-assets/docs/reference/skills.md +38 -12
  103. package/agent-assets/docs/troubleshooting/auth-failed.md +48 -19
  104. package/agent-assets/docs/troubleshooting/dashboard-shows-degraded.md +90 -28
  105. package/agent-assets/docs/troubleshooting/fallback-keeps-firing.md +86 -22
  106. package/agent-assets/docs/troubleshooting/messaging-not-pairing.md +68 -24
  107. package/agent-assets/docs/troubleshooting/morning-routine-didnt-run.md +80 -20
  108. package/agent-assets/docs/troubleshooting/observation-not-detected.md +73 -21
  109. package/agent-assets/docs/troubleshooting/quota-exhausted.md +29 -5
  110. package/agent-assets/docs/troubleshooting/wiki-ingest-full-blocked.md +126 -54
  111. package/agent-assets/docs/troubleshooting/wiki-write-failed.md +29 -12
  112. package/agent-assets/optimizer-skills/drift-analysis/SKILL.md +1 -1
  113. package/agent-assets/optimizer-skills/knowledge-map/SKILL.md +1 -1
  114. package/agent-assets/optimizer-skills/skill-curation/SKILL.md +1 -1
  115. package/agent-assets/sandbox/linux/aitne-chromium.apparmor +91 -0
  116. package/agent-assets/sandbox/macos/aitne-chromium.sb +156 -0
  117. package/agent-assets/skills/agent-actions/SKILL.md +2 -2
  118. package/agent-assets/skills/agent-create/SKILL.md +149 -0
  119. package/agent-assets/skills/attach/SKILL.md +2 -2
  120. package/agent-assets/skills/browser-history/SKILL.md +198 -0
  121. package/agent-assets/skills/browser-history-respond/SKILL.md +106 -0
  122. package/agent-assets/skills/browser-task/SKILL.md +169 -0
  123. package/agent-assets/skills/context/SKILL.md +12 -12
  124. package/agent-assets/skills/context/curation.json +2 -2
  125. package/agent-assets/skills/context/references/api.md +43 -31
  126. package/agent-assets/skills/context/references/required-frontmatter.md +3 -3
  127. package/agent-assets/skills/context/references/snapshot-files.md +6 -6
  128. package/agent-assets/skills/context/seeds/file-responsibilities.seed.json +3 -3
  129. package/agent-assets/skills/docs-search/SKILL.md +4 -3
  130. package/agent-assets/skills/external-services/SKILL.delegated.claude.md +11 -21
  131. package/agent-assets/skills/external-services/SKILL.delegated.codex.md +11 -21
  132. package/agent-assets/skills/external-services/SKILL.delegated.gemini.md +11 -21
  133. package/agent-assets/skills/external-services/SKILL.md +3 -3
  134. package/agent-assets/skills/external-services/SKILL.native.claude.md +5 -5
  135. package/agent-assets/skills/external-services/SKILL.native.codex.md +7 -7
  136. package/agent-assets/skills/external-services/SKILL.native.gemini.md +4 -4
  137. package/agent-assets/skills/external-services/references/calendar-apple.md +2 -2
  138. package/agent-assets/skills/external-services/references/calendar-outlook.md +1 -1
  139. package/agent-assets/skills/external-services/references/obsidian.md +2 -2
  140. package/agent-assets/skills/gmail-lifestyle/SKILL.md +9 -82
  141. package/agent-assets/skills/mail/SKILL.delegated.claude.md +14 -5
  142. package/agent-assets/skills/mail/SKILL.delegated.codex.md +8 -4
  143. package/agent-assets/skills/mail/SKILL.delegated.gemini.md +8 -4
  144. package/agent-assets/skills/mail/references/api.md +4 -2
  145. package/agent-assets/skills/mail/references/providers.md +1 -1
  146. package/agent-assets/skills/managed-tasks/SKILL.md +9 -9
  147. package/agent-assets/skills/managed-tasks/references/errors.md +9 -6
  148. package/agent-assets/skills/managed-tasks/references/recurrence-rule.md +1 -1
  149. package/agent-assets/skills/management-policy/SKILL.md +32 -31
  150. package/agent-assets/skills/management-policy/curation.json +1 -1
  151. package/agent-assets/skills/management-policy/references/policy-workflow.md +9 -9
  152. package/agent-assets/skills/management-policy/seeds/policy-file-shape.seed.json +1 -1
  153. package/agent-assets/skills/notify/SKILL.md +4 -4
  154. package/agent-assets/skills/notify/references/priority.md +9 -4
  155. package/agent-assets/skills/notion/SKILL.delegated.claude.md +1 -1
  156. package/agent-assets/skills/notion/SKILL.delegated.codex.md +1 -1
  157. package/agent-assets/skills/notion/SKILL.delegated.gemini.md +1 -1
  158. package/agent-assets/skills/notion/SKILL.native.claude.md +10 -6
  159. package/agent-assets/skills/notion/SKILL.native.codex.md +9 -4
  160. package/agent-assets/skills/notion/SKILL.native.gemini.md +9 -4
  161. package/agent-assets/skills/observations/SKILL.md +24 -8
  162. package/agent-assets/skills/project-doc/SKILL.md +1 -1
  163. package/agent-assets/skills/project-doc/curation.json +3 -3
  164. package/agent-assets/skills/project-doc/seeds/project-shape.seed.json +7 -4
  165. package/agent-assets/skills/project-doc/seeds/slug-grammar.seed.json +3 -3
  166. package/agent-assets/skills/reading/SKILL.md +10 -0
  167. package/agent-assets/skills/reading/references/reading-taste.md +2 -2
  168. package/agent-assets/skills/roadmap/SKILL.md +5 -5
  169. package/agent-assets/skills/roadmap/curation.json +1 -1
  170. package/agent-assets/skills/roadmap/references/api.md +7 -7
  171. package/agent-assets/skills/roadmap/references/cross-check.md +15 -8
  172. package/agent-assets/skills/roadmap/references/migration.md +4 -4
  173. package/agent-assets/skills/roadmap/seeds/entry-types.seed.json +1 -1
  174. package/agent-assets/skills/schedule/SKILL.md +42 -34
  175. package/agent-assets/skills/schedule/references/batch.md +2 -2
  176. package/agent-assets/skills/schedule/references/errors.md +7 -4
  177. package/agent-assets/skills/schedule/references/model-selection.md +3 -3
  178. package/agent-assets/skills/schedule/references/recurrence-rule.md +1 -1
  179. package/agent-assets/skills/scheduled-managed-task/SKILL.md +46 -36
  180. package/agent-assets/skills/today/SKILL.md +9 -9
  181. package/agent-assets/skills/today/curation.json +3 -3
  182. package/agent-assets/skills/today/references/agent-plan-lifecycle.md +6 -5
  183. package/agent-assets/skills/today/seeds/section-shape.seed.json +1 -1
  184. package/agent-assets/skills/user-interview/SKILL.md +12 -9
  185. package/agent-assets/skills/user-interview/references/op-briefing.md +2 -2
  186. package/agent-assets/skills/user-interview/references/sweep-and-fallback.md +8 -0
  187. package/agent-assets/skills/user-profile/SKILL.md +17 -17
  188. package/agent-assets/skills/user-profile/curation.json +2 -2
  189. package/agent-assets/skills/user-profile/references/character-preferences.md +2 -2
  190. package/agent-assets/skills/user-profile/seeds/routing-table.seed.json +8 -8
  191. package/agent-assets/skills/user-profile/seeds/topic-files.seed.json +6 -6
  192. package/agent-assets/skills/wiki/wiki-compile/SKILL.md +4 -4
  193. package/agent-assets/system-prompts/routine-fetch-window.md +22 -12
  194. package/agent-assets/task-flows/_partials/calendar-acquire.google_calendar.md +4 -2
  195. package/agent-assets/task-flows/_partials/calendar-acquire.outlook_calendar.md +4 -2
  196. package/agent-assets/task-flows/_partials/capture-user-info.md +2 -2
  197. package/agent-assets/task-flows/_partials/dm-intent.long-horizon.md +1 -1
  198. package/agent-assets/task-flows/_partials/dm-intent.project.md +9 -9
  199. package/agent-assets/task-flows/_partials/mail-acquire.outlook_mail.md +3 -2
  200. package/agent-assets/task-flows/_partials/notion-acquire.notion.md +10 -5
  201. package/agent-assets/task-flows/browser_task.md +84 -0
  202. package/agent-assets/task-flows/github.assigned.md +1 -1
  203. package/agent-assets/task-flows/github.pull_request.review_requested.md +2 -2
  204. package/agent-assets/task-flows/github.workflow_run.failed.md +2 -2
  205. package/agent-assets/task-flows/knowledge.import.md +14 -14
  206. package/agent-assets/task-flows/message.received.dm.md +9 -4
  207. package/agent-assets/task-flows/message.received.dm_first.md +3 -3
  208. package/agent-assets/task-flows/routine.custom.md +3 -3
  209. package/agent-assets/task-flows/routine.evening_review.md +8 -8
  210. package/agent-assets/task-flows/routine.fetch_window.md +2 -2
  211. package/agent-assets/task-flows/routine.hourly_check.md +16 -12
  212. package/agent-assets/task-flows/routine.monthly_review.md +21 -21
  213. package/agent-assets/task-flows/routine.morning_routine_journal.md +119 -97
  214. package/agent-assets/task-flows/routine.morning_routine_today.md +43 -43
  215. package/agent-assets/task-flows/routine.research_cluster_update.md +35 -0
  216. package/agent-assets/task-flows/routine.research_dispatch.md +38 -0
  217. package/agent-assets/task-flows/routine.research_offer_dm.md +125 -0
  218. package/agent-assets/task-flows/routine.research_wiki_summary.md +53 -0
  219. package/agent-assets/task-flows/routine.roadmap_refresh.md +10 -10
  220. package/agent-assets/task-flows/routine.today_refresh.md +4 -4
  221. package/agent-assets/task-flows/routine.user_profile_sweep.md +10 -10
  222. package/agent-assets/task-flows/routine.weekly_review.md +93 -24
  223. package/agent-assets/task-flows/schedule.approaching.md +0 -1
  224. package/agent-assets/task-flows/scheduled.dm.md +5 -5
  225. package/agent-assets/task-flows/scheduled.task.md +4 -4
  226. package/agent-assets/task-flows/setup.initial.md +21 -21
  227. package/agent-assets/task-flows/setup.update.md +2 -2
  228. package/agent-assets/templates/README.md +27 -20
  229. package/agent-assets/templates/_index.md +42 -26
  230. package/agent-assets/templates/_manifest.json +34 -99
  231. package/agent-assets/templates/{user → identity}/_index.md +1 -1
  232. package/agent-assets/templates/{user → identity}/profile.md +2 -2
  233. package/agent-assets/templates/{dossiers → knowledge/dossiers}/_index.md +1 -1
  234. package/agent-assets/templates/{projects → plans/projects}/_active.base +1 -1
  235. package/agent-assets/templates/policies/_index.md +21 -0
  236. package/agent-assets/templates/{rules → policies}/journal-export.md +1 -1
  237. package/agent-assets/templates/{rules → policies}/journal-format.md +5 -5
  238. package/agent-assets/templates/{rules/policies → policies/management-captures}/_index.md +2 -2
  239. package/agent-assets/templates/{rules → policies}/management.md +3 -3
  240. package/agent-assets/templates/{rules → policies}/mcp.md +1 -1
  241. package/agent-assets/templates/{rules → policies}/redaction.md +1 -1
  242. package/agent-assets/templates/{routines → policies/routines}/_index.md +1 -1
  243. package/agent-assets/templates/{routines → policies/routines}/evening.md +2 -2
  244. package/agent-assets/templates/{routines → policies/routines}/hourly.md +1 -1
  245. package/agent-assets/templates/{routines → policies/routines}/monthly.md +2 -2
  246. package/bin/aitne.mjs +13 -4
  247. package/package.json +5 -4
  248. package/scripts/commands/doctor.mjs +14 -8
  249. package/scripts/commands/run-now.mjs +6 -21
  250. package/scripts/lib/ports.d.mts +27 -0
  251. package/scripts/lib/ports.mjs +36 -0
  252. package/scripts/lib/read-api-token.mjs +176 -0
  253. package/scripts/start.mjs +2 -1
  254. package/agent-assets/docs/features/lifestyle/travel-time.md +0 -58
  255. package/agent-assets/skills/gmail-lifestyle/references/travel-time-api.md +0 -59
  256. package/agent-assets/skills/schedule/references/recurring.md +0 -185
  257. package/agent-assets/templates/context-index.md +0 -42
  258. package/agent-assets/templates/rules/_index.md +0 -19
  259. /package/agent-assets/templates/{user → identity}/expertise.md +0 -0
  260. /package/agent-assets/templates/{user → identity}/goals.md +0 -0
  261. /package/agent-assets/templates/{user → identity}/people.md +0 -0
  262. /package/agent-assets/templates/{user → identity}/personal.md +0 -0
  263. /package/agent-assets/templates/{user → identity}/work.md +0 -0
  264. /package/agent-assets/templates/{agent/journal.md → journal/agent.md} +0 -0
  265. /package/agent-assets/templates/{dossiers → knowledge/dossiers}/evening.md +0 -0
  266. /package/agent-assets/templates/{dossiers → knowledge/dossiers}/hourly.md +0 -0
  267. /package/agent-assets/templates/{dossiers → knowledge/dossiers}/monthly.md +0 -0
  268. /package/agent-assets/templates/{dossiers → knowledge/dossiers}/morning.md +0 -0
  269. /package/agent-assets/templates/{dossiers → knowledge/dossiers}/roadmap.md +0 -0
  270. /package/agent-assets/templates/{dossiers → knowledge/dossiers}/weekly.md +0 -0
  271. /package/agent-assets/templates/{projects → plans/projects}/_index.md +0 -0
  272. /package/agent-assets/templates/{roadmap.md → plans/roadmap.md} +0 -0
  273. /package/agent-assets/templates/{routines → policies/routines}/morning.md +0 -0
  274. /package/agent-assets/templates/{routines → policies/routines}/weekly.md +0 -0
  275. /package/agent-assets/templates/{agent → state}/profile-questions.md +0 -0
  276. /package/agent-assets/templates/{today.md → state/today.md} +0 -0
@@ -1,16 +1,18 @@
1
1
  ---
2
2
  schema_version: 1
3
3
  slug: features/memory-files/projects
4
- title: projects/ files
4
+ title: plans/projects/ files
5
5
  id: projects
6
6
  aliases:
7
7
  - project files
8
8
  - projects directory
9
+ - plans/projects
9
10
  category: features
10
11
  summary: |
11
- One Markdown file per active project under projects/. Each captures
12
+ One Markdown file per project under plans/projects/. Each captures
12
13
  the project's why, status, key links, and the per-project log of
13
- agent activity. Cross-linked from the roadmap.
14
+ agent activity. Cross-linked from the roadmap and surfaced by the
15
+ morning routine while the project is active.
14
16
  section: memory-files
15
17
  tags:
16
18
  - memory
@@ -20,43 +22,95 @@ status: stable
20
22
  ask_examples:
21
23
  - Where do I find the per-project files?
22
24
  - How does the agent decide a project is active?
25
+ - How does the agent write to a project file?
23
26
  locale: en-US
24
27
  created: 2026-04-25
25
- updated: 2026-04-25
28
+ updated: 2026-05-28
26
29
  keywords:
27
- - projects.md
30
+ - projects
28
31
  - project file
29
- - projects/<slug>.md
32
+ - plans/projects/<slug>.md
30
33
  - active project
31
34
  related:
32
35
  - features/memory-files/roadmap
36
+ - features/memory-files/today
37
+ ui_anchors:
38
+ - /knowledge?tab=context-files
39
+ api_endpoints:
40
+ - GET /api/context/list/:dir
41
+ - PUT /api/context/*
42
+ - PATCH /api/context/*
33
43
  context_files:
34
- - projects/<slug>.md
44
+ - plans/projects/<slug>.md
35
45
  ---
36
46
 
37
- # projects/ Files
47
+ # plans/projects/ Files
38
48
 
39
49
  ## In One Sentence
40
50
 
41
- One Markdown file per active project; the agent appends notes,
42
- decisions, and external references over the project's lifetime.
51
+ One Markdown file per project, stored at `plans/projects/<slug>.md`;
52
+ the agent appends notes, decisions, and external references over the
53
+ project's lifetime.
43
54
 
44
55
  ## What It Does
45
56
 
46
- - Captures the project's purpose, status, links, recent decisions.
47
- - Surfaces in the morning routine when the project is active and
48
- has Preparation Timeline rows.
57
+ - Captures the project's purpose, status, links, and recent decisions
58
+ in a single durable note.
59
+ - Surfaces in the morning routine while the project is active and the
60
+ roadmap has Preparation Timeline rows pointing at it.
49
61
  - Becomes the canonical reference the agent quotes from in DMs.
50
62
 
63
+ ## File Shape
64
+
65
+ Each file lives at `plans/projects/<slug>.md`. The daemon validates
66
+ only the minimum — `type: project`, `owner: shared`, an `updated`
67
+ date, and an H1 title. By convention the agent also writes `slug`,
68
+ `state`, `start`, `due`, `stakeholders`, `next_milestone`, and `tags`.
69
+
70
+ `state` is what marks a project **active**: the dashboard's project
71
+ view filters on it, and the morning routine only surfaces projects
72
+ whose `state` is active.
73
+
74
+ ```markdown
75
+ ---
76
+ type: project
77
+ owner: shared
78
+ slug: spring-launch
79
+ state: active
80
+ due: 2026-06-15
81
+ next_milestone: ship beta
82
+ updated: 2026-05-28
83
+ ---
84
+
85
+ # Spring Launch
86
+
87
+ ## Why
88
+ Ship the public beta before the conference.
89
+
90
+ ## Log
91
+ - 2026-05-28: agreed to cut feature X for v1.
92
+ ```
93
+
51
94
  ## When It Runs / How It Is Triggered
52
95
 
53
- Read on demand. Written when the operator asks the agent to
54
- remember something project-specific.
96
+ Read on demand. Written when the operator asks the agent to remember
97
+ something project-specific, or when a DM expresses project intent
98
+ (create, update status, mark done).
99
+
100
+ The agent never edits files on disk — it has no `Edit`/`Write` tools.
101
+ All project writes go through the context API:
102
+
103
+ - `GET /api/context/list/projects` — discover existing project files.
104
+ - `PUT /api/context/plans/projects/<slug>` — create or fully replace.
105
+ - `PATCH /api/context/plans/projects/<slug>` — append a log line or
106
+ update a section.
55
107
 
56
108
  ## Where in the Dashboard
57
109
 
58
- - **Knowledge → Context Files projects/**.
110
+ - **Knowledge → Context Files** (`/knowledge?tab=context-files`), under
111
+ the `plans/projects/` folder.
59
112
 
60
113
  ## Related
61
114
 
62
- - [roadmap.md](roadmap.md)
115
+ - [roadmap.md](roadmap.md) — cross-links to project files for deeper context.
116
+ - [today.md](today.md) — where active-project prep surfaces each day.
@@ -15,26 +15,33 @@ summary: |
15
15
  section: memory-files
16
16
  tags:
17
17
  - memory
18
- - planning
19
18
  - core
20
19
  status: stable
21
20
  ask_examples:
22
21
  - What is the roadmap file?
23
22
  - What is a Preparation Timeline?
24
23
  - How does the morning routine use the roadmap?
24
+ - How do I add a roadmap entry?
25
25
  locale: en-US
26
26
  created: 2026-04-25
27
- updated: 2026-04-25
27
+ updated: 2026-05-28
28
28
  keywords:
29
29
  - roadmap.md
30
30
  - roadmap
31
31
  - long-term goals
32
32
  - preparation timeline
33
+ - milestones
33
34
  related:
34
35
  - features/routines/morning-routine
35
36
  - features/memory-files/projects
37
+ - features/memory-files/today
38
+ ui_anchors:
39
+ - /knowledge?tab=context-files
40
+ api_endpoints:
41
+ - PUT /api/context/*
42
+ - PATCH /api/context/*
36
43
  context_files:
37
- - roadmap.md
44
+ - plans/roadmap.md
38
45
  ---
39
46
 
40
47
  # roadmap.md
@@ -42,19 +49,51 @@ context_files:
42
49
  ## In One Sentence
43
50
 
44
51
  A multi-week plan: each goal carries dates and Preparation Timeline
45
- rows the morning routine fires on the day of.
52
+ rows that the morning routine fires on the day they come due.
46
53
 
47
54
  ## What It Does
48
55
 
49
- - Captures long-running goals beyond a single day.
56
+ - Captures long-running goals that span more than a single day, so
57
+ they don't fall out of `state/today.md` (which is replaced fresh
58
+ each morning).
50
59
  - Preparation Timeline rows like "T-7 days: book hotel" surface in
51
- the morning routine on the right day.
60
+ the morning routine on the day each offset lands — turning a far-off
61
+ milestone into concrete actions at the right moment.
52
62
  - Cross-links to project files for deeper context.
53
63
 
64
+ ## What It Looks Like
65
+
66
+ A goal with a Preparation Timeline is just Markdown the agent reads
67
+ each morning. For example:
68
+
69
+ ```markdown
70
+ ## Conference talk — 2026-06-20
71
+
72
+ Goal: deliver the keynote in Tokyo.
73
+
74
+ Preparation Timeline:
75
+ - T-14 days: finalize slide deck
76
+ - T-7 days: book hotel
77
+ - T-2 days: dry run with the team
78
+ - T-0: travel day
79
+ ```
80
+
81
+ On 2026-06-06 the morning routine sees the `T-14` offset come due and
82
+ pulls "finalize slide deck" into that day's plan; on 2026-06-13 it
83
+ surfaces "book hotel", and so on.
84
+
54
85
  ## When It Runs / How It Is Triggered
55
86
 
56
- Read by the morning routine; updated by the operator (or the agent
57
- on request).
87
+ Read by the morning routine each day, which walks the roadmap and
88
+ surfaces any Preparation Timeline rows whose offset fires that day.
89
+ The file is updated by the operator, or by the agent on request (for
90
+ example via the roadmap skill or `aitne run-now roadmap_maintenance`).
91
+
92
+ The agent never edits the file directly. All writes go through the
93
+ daemon's context endpoint — `PUT /api/context/plans/roadmap` (full
94
+ replace) or `PATCH /api/context/plans/roadmap` (section op) — which is
95
+ guarded by an exclusive roadmap write lock so two flows can't clobber
96
+ each other.
58
97
 
59
98
  ## Where in the Dashboard
60
99
 
@@ -62,5 +101,6 @@ on request).
62
101
 
63
102
  ## Related
64
103
 
65
- - [Morning Routine](../routines/morning-routine.md)
66
- - [Projects](projects.md)
104
+ - [Morning Routine](../../routines/morning-routine.md) — reads the roadmap each day.
105
+ - [Projects](projects.md) — deeper, per-project context the roadmap links to.
106
+ - [today.md](today.md) — the single-day plan the roadmap feeds into.
@@ -1,112 +1,155 @@
1
1
  ---
2
2
  schema_version: 1
3
3
  slug: features/memory-files/schedule
4
- title: daily/ files
4
+ title: journal/daily/ files
5
5
  id: schedule-files
6
6
  aliases:
7
- - schedule directory
7
+ - daily journal
8
8
  - daily directory
9
- - per-date schedule
10
- - daily/YYYY-MM-DD.md
9
+ - per-date journal
10
+ - journal/daily/YYYY-MM-DD.md
11
+ - schedule directory
11
12
  category: features
12
13
  summary: |
13
- Per-date synthesis files (daily/YYYY-MM-DD.md) the morning routine
14
- writes from yesterday.md plus the SQLite event log. They are the
15
- read-only archive each day rolls into; the dashboard's Schedule view
16
- also reads them.
14
+ Per-date diary files (journal/daily/YYYY-MM-DD.md) the morning
15
+ routine writes as a first-person retrospective of the previous
16
+ agent-day. They are a read-only archive composed by the daemon from
17
+ the Stage B journal session's output; weekly and monthly reviews
18
+ read them back.
17
19
  section: memory-files
18
20
  tags:
19
21
  - memory
20
- - schedule
22
+ - journal
23
+ - routines
21
24
  - core
22
25
  status: stable
23
26
  ask_examples:
24
- - Where does the agent store the day's archived plan?
25
- - Why is yesterday still showing up in /schedule?
26
- - How do I hand-edit a day's plan?
27
+ - Where does the agent store the day's diary?
28
+ - What is in journal/daily and how is it different from today.md?
29
+ - How do I change which sections the daily journal includes?
27
30
  locale: en-US
28
31
  created: 2026-04-25
29
- updated: 2026-04-26
32
+ updated: 2026-05-28
30
33
  keywords:
31
- - schedule
32
- - daily
34
+ - daily journal
35
+ - diary
33
36
  - per-date
34
- - calendar snapshot
37
+ - retrospective
38
+ - synthesis
35
39
  related:
36
40
  - features/routines/morning-routine
37
41
  - features/memory-files/today
42
+ - features/memory-files/agent-journal
38
43
  - concepts/agent-day
39
44
  ui_anchors:
40
45
  - /schedule
46
+ process_keys:
47
+ - routine.morning_routine_journal
41
48
  context_files:
42
- - daily/<date>.md
49
+ - journal/daily/<date>.md
43
50
  ---
44
51
 
45
- # daily/ Files
52
+ # journal/daily/ Files
46
53
 
47
54
  ## In One Sentence
48
55
 
49
- `daily/YYYY-MM-DD.md` is the morning routine's synthesized archive of
50
- the agent-day; the dashboard's Schedule view and downstream routines
51
- read from this directory.
52
-
53
- > **Heads up — directory renamed.** The mechanical
54
- > `schedule/YYYY-MM-DD.md` copy was retired in B-007. The morning
55
- > routine now synthesizes `daily/YYYY-MM-DD.md` from `yesterday.md`
56
- > plus the SQLite event log instead. Hand-pruning the old `schedule/`
57
- > directory is safe.
58
-
59
- ## What It Does
60
-
61
- Each file under `~/.personal-agent/context/daily/` corresponds to one
62
- **agent day** (the file name uses the agent-day date, not the calendar
63
- date — see [Agent Day](../../concepts/agent-day.md)). The morning
64
- routine writes the file shortly after rolling `today.md` →
65
- `yesterday.md`. It contains:
66
-
67
- - Calendar events from connected calendars.
68
- - Mail-driven items the agent flagged for that day.
69
- - Preparation Timeline rows from `roadmap.md` whose offset fired that day.
70
- - Carryover items the agent did not finish.
71
-
72
- The synthesis is template-driven and reads from the in-process DB
73
- snapshot of the closing `today.md` plus the day's event records, so
74
- late edits made directly to `today.md` after rotation cannot retroactively
75
- rewrite a previous `daily/` file.
76
-
77
- ## When It Runs / How It Is Triggered
78
-
79
- The morning routine writes today's file once at start-of-day. Other
80
- routines read it but do not rewrite.
81
-
82
- ## What It Outputs
83
-
84
- - A Markdown file with sections for events, preparations, and
85
- carryover items.
86
- - A `last_updated` line so the dashboard knows freshness.
56
+ `journal/daily/YYYY-MM-DD.md` is the morning routine's first-person
57
+ diary of the **previous** agent-day — what the user did, who they met,
58
+ what they talked about — composed by the daemon and kept as a
59
+ read-only archive that the weekly and monthly reviews read back.
60
+
61
+ > **Renamed from `schedule/`.** The old mechanical `schedule/YYYY-MM-DD.md`
62
+ > copy was retired. Today the morning routine synthesizes a diary at
63
+ > `journal/daily/YYYY-MM-DD.md` instead a retrospective, not a plan.
64
+ > Pruning any leftover `schedule/` directory is safe.
65
+
66
+ ## What It Is (and What It Is Not)
67
+
68
+ This is a **diary of what already happened**, written for the user in
69
+ their own voice. It is the opposite end of the day from
70
+ [today.md](today.md):
71
+
72
+ - **`state/today.md`** is the live, forward-looking plan for the
73
+ *current* agent-day — calendar events ahead, items to prepare,
74
+ carryover.
75
+ - **`journal/daily/<date>.md`** is the finished, retrospective record
76
+ of a *past* agent-day. Once written it is not rewritten.
77
+
78
+ It is also distinct from [journal/agent.md](agent-journal.md): the
79
+ daily journal is the *user's* diary, while `journal/agent.md` is the
80
+ agent's own decision log. Agent-side telemetry (action counts, retry
81
+ stats) never appears here.
82
+
83
+ ## What It Contains
84
+
85
+ Each file under `~/.personal-agent/context/journal/daily/` corresponds
86
+ to one **agent day** (the file name uses the agent-day date, not the
87
+ calendar date see [Agent Day](../../concepts/agent-day.md)). The body
88
+ typically includes:
89
+
90
+ - `## Summary` — a first-person recap of the day.
91
+ - `## Schedule` the events and meetings that actually took place.
92
+ - `## Tasks` — what the user worked on.
93
+ - `## Conversations` who they talked to and about what.
94
+
95
+ When the `browser_history` integration is active, a reading/research
96
+ surface is woven in from the day's browser digest. Daemon-owned
97
+ frontmatter (`date`, `weekday`, `calendar_events`, `messages_handled`,
98
+ `projects`, `people`, `tags`, `content_hash`, `updated`) is filled in
99
+ automatically. The exact sections and tone are governed by the
100
+ journal-format and journal-export policy files (see
101
+ [Configuration](#configuration)).
102
+
103
+ ## When It Runs / How It Is Written
104
+
105
+ The daily journal is **Stage B of the 04:00 morning routine**
106
+ (process key `routine.morning_routine_journal`, lite tier), which runs
107
+ in parallel with Stage A's `state/today.md` rollover. Stage B authors
108
+ the body of *yesterday's* file; because the agent has no write tools,
109
+ its output is two XML-tagged blocks that the daemon's
110
+ `DailyJournalComposer` extracts, frames with frontmatter, and writes
111
+ atomically to disk.
112
+
113
+ Because the synthesis reads pre-aggregated facts captured at rotation
114
+ time, late edits made directly to `state/today.md` after rollover
115
+ cannot retroactively rewrite an already-written `journal/daily/` file.
116
+
117
+ Other routines (weekly and monthly reviews) read these files back but
118
+ do not rewrite them.
87
119
 
88
120
  ## Where in the Dashboard
89
121
 
90
- - **Schedule (`/schedule`)** reads adjacent `daily/<date>.md` files
91
- to render the past/today/upcoming columns. Hand-edits are picked up
92
- on the next view refresh.
122
+ The daily journal does **not** appear on the Schedule page that page
123
+ shows the scheduler's wake-ups and recurring routines, not these files.
124
+
125
+ - **Journal settings (`/settings/journal`)** is where you shape the
126
+ output: the Format and Export rule files control which sections
127
+ appear, the voice, the required frontmatter, and the redaction /
128
+ inclusion rules applied on every synthesis run. Edits take effect on
129
+ the next morning routine.
93
130
 
94
131
  ## Configuration
95
132
 
96
- There is nothing to configure on these files directly; they are a
97
- side effect of the morning routine. Retention is unlimited old
98
- files accumulate. A manual prune (`rm daily/2025-*.md`) is safe.
133
+ There is nothing to configure on the files themselves; they are a
134
+ side effect of the morning routine. To change *what* gets written, edit
135
+ the journal Format and Export rules at `/settings/journal`.
136
+
137
+ Retention is unlimited — old files accumulate. A manual prune
138
+ (`rm ~/.personal-agent/context/journal/daily/2025-*.md`) is safe.
99
139
 
100
140
  ## When Something Goes Wrong
101
141
 
102
- - An **empty** daily file usually means the morning routine did not
103
- run. See [Morning Routine Didn't Run](../../troubleshooting/morning-routine-didnt-run.md).
104
- - A view that **shows yesterday** is the day-boundary subtlety:
105
- before `dayBoundaryHour`, the agent day is still yesterday. See
106
- [Agent Day](../../concepts/agent-day.md).
142
+ - A **missing or empty** daily file usually means the morning routine
143
+ did not run. See
144
+ [Morning Routine Didn't Run](../../troubleshooting/morning-routine-didnt-run.md).
145
+ - An entry **dated to the wrong day** is the day-boundary subtlety:
146
+ before `dayBoundaryHour` (default 04:00 local), the agent day is
147
+ still yesterday. See [Agent Day](../../concepts/agent-day.md).
107
148
 
108
149
  ## Related
109
150
 
110
- - [Morning Routine](../routines/morning-routine.md) — the writer.
111
- - [today.md](today.md) — the live, hand-editable surface for the
112
- current agent day.
151
+ - [Morning Routine](../routines/morning-routine.md) — the writer (Stage B).
152
+ - [today.md](today.md) — the live, forward-looking plan for the
153
+ current agent-day.
154
+ - [journal/agent.md](agent-journal.md) — the agent's own decision log,
155
+ distinct from this user diary.
@@ -8,9 +8,9 @@ aliases:
8
8
  - day plan
9
9
  category: features
10
10
  summary: |
11
- today.md is the live, hand-editable plan for the current agent day.
12
- The morning routine writes it; the operator and the agent both
13
- append to it during the day.
11
+ today.md is the live plan for the current agent day. The morning
12
+ routine rebuilds it each day; the hourly check, evening review,
13
+ and the operator all read and append to it during the day.
14
14
  section: memory-files
15
15
  tags:
16
16
  - core
@@ -23,52 +23,77 @@ ask_examples:
23
23
  - Why does today.md keep getting rewritten?
24
24
  locale: en-US
25
25
  created: 2026-04-25
26
- updated: 2026-04-25
26
+ updated: 2026-05-28
27
27
  keywords:
28
28
  - today
29
29
  - day plan
30
+ - agent log
31
+ - handoff
30
32
  related:
31
33
  - features/routines/morning-routine
34
+ - features/routines/hourly-check
35
+ - features/routines/evening-review
32
36
  - features/memory-files/schedule
33
37
  - concepts/agent-day
38
+ ui_anchors:
39
+ - /knowledge?tab=context-files
40
+ api_endpoints:
41
+ - PUT /api/context/*
42
+ - PATCH /api/context/*
34
43
  context_files:
35
- - today.md
44
+ - state/today.md
36
45
  ---
37
46
 
38
47
  # today.md
39
48
 
40
49
  ## In One Sentence
41
50
 
42
- The single live file that captures the day's plan, log, tasks, and
43
- hand-off rebuilt by the morning routine, appended-to by everything
44
- else during the day.
51
+ The single live file for the current agent day plan, log, tasks, and
52
+ hand-off. The morning routine rebuilds it; everything else during the
53
+ day appends to it.
45
54
 
46
55
  ## What It Does
47
56
 
48
- Sections:
57
+ today.md holds six sections, written in this order:
49
58
 
50
- - **User Schedule** — calendar events.
51
- - **Tasks** — today's external + agent-tracked tasks.
52
- - **Agent Plan** — what the agent intends to work on today.
53
- - **Agent Log** what actually happened.
54
- - **Handoff** — what carries to tomorrow.
59
+ - **User Schedule** — the day's calendar events.
60
+ - **User Tasks** — today's external tasks plus agent-tracked to-dos.
61
+ - **Agent Plan** — what the agent intends to work on today (each row is
62
+ registered as a schedule entry by the morning routine).
63
+ - **Agent Notes** — look-ahead items and date-bound memos folded in from
64
+ inbox triage.
65
+ - **Agent Log** — what actually happened, appended throughout the day.
66
+ - **Handoff** — what carries over to tomorrow.
55
67
 
56
68
  ## When It Runs / How It Is Triggered
57
69
 
58
- - The morning routine fully rewrites it.
59
- - The hourly check appends short observations under Agent Log.
60
- - The evening review reads it before writing the journal.
70
+ - The **morning routine** fully rebuilds today.md (the daemon first
71
+ rotates the previous day's file to `state/yesterday.md`).
72
+ - The **hourly check** routes new observations into the right section
73
+ and appends short status lines under Agent Log.
74
+ - The **evening review** finalizes the file — it updates Agent Log and
75
+ the Handoff section before writing the daily journal.
76
+
77
+ ## How It Is Written
78
+
79
+ The agent never edits today.md with a file tool. All writes go through
80
+ the daemon's context API — `PUT`/`PATCH /api/context/state/today` (the
81
+ canonical, class-prefixed path). A `today-write-lock` serializes writes
82
+ during the morning routine: while the lock is held, a write to
83
+ `state/today` must carry the `X-Lock-Id` header or it is rejected.
61
84
 
62
85
  ## Where in the Dashboard
63
86
 
64
- - **Knowledge → Context Files → today.md** to view and edit.
87
+ - **Knowledge → Context Files → today.md** to view and edit by hand.
65
88
 
66
89
  ## When Something Goes Wrong
67
90
 
68
- - An empty today.md after the morning hour: see [Morning Routine
69
- Didn't Run](../../troubleshooting/morning-routine-didnt-run.md).
91
+ - An empty today.md after the morning hour: see
92
+ [Morning routine didn't run](../../troubleshooting/morning-routine-didnt-run.md).
70
93
 
71
94
  ## Related
72
95
 
73
- - [Morning Routine](../routines/morning-routine.md)
96
+ - [Morning routine](../routines/morning-routine.md)
97
+ - [Hourly check](../routines/hourly-check.md)
98
+ - [Evening review](../routines/evening-review.md)
74
99
  - [schedule/ files](schedule.md)