@aitne-sh/aitne 0.1.7 → 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 (317) hide show
  1. package/README.md +256 -833
  2. package/agent-assets/agent-profiles/_safety.md +52 -20
  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 +3 -3
  6. package/agent-assets/agent-profiles/routine-fetch-window.md +30 -19
  7. package/agent-assets/agent-profiles/routine.md +4 -3
  8. package/agent-assets/agents/context-index-reconcile/agent.md +52 -0
  9. package/agent-assets/agents/evening-review/agent.md +53 -0
  10. package/agent-assets/agents/hourly-check/agent.md +62 -0
  11. package/agent-assets/agents/monthly-review/agent.md +55 -0
  12. package/agent-assets/agents/morning-routine/agent.md +78 -0
  13. package/agent-assets/agents/roadmap-maintenance/agent.md +52 -0
  14. package/agent-assets/agents/skill-curation/agent.md +52 -0
  15. package/agent-assets/agents/user-profile-sweep-evening/agent.md +48 -0
  16. package/agent-assets/agents/user-profile-sweep-morning/agent.md +53 -0
  17. package/agent-assets/agents/weekly-review/agent.md +51 -0
  18. package/agent-assets/docs/concepts/agent-day.md +18 -11
  19. package/agent-assets/docs/concepts/auth-health.md +56 -10
  20. package/agent-assets/docs/concepts/backends-and-tiers.md +110 -41
  21. package/agent-assets/docs/concepts/costs-and-quotas.md +74 -19
  22. package/agent-assets/docs/concepts/delegated-mode.md +193 -75
  23. package/agent-assets/docs/concepts/memory-model.md +79 -34
  24. package/agent-assets/docs/concepts/observations.md +61 -11
  25. package/agent-assets/docs/concepts/process-keys.md +66 -17
  26. package/agent-assets/docs/concepts/routines.md +77 -32
  27. package/agent-assets/docs/concepts/safety-and-execution.md +50 -21
  28. package/agent-assets/docs/concepts/safety-model.md +62 -37
  29. package/agent-assets/docs/concepts/skills.md +38 -17
  30. package/agent-assets/docs/features/integrations/browser-history.md +195 -0
  31. package/agent-assets/docs/features/integrations/calendar.md +40 -30
  32. package/agent-assets/docs/features/integrations/git.md +20 -9
  33. package/agent-assets/docs/features/integrations/github.md +93 -35
  34. package/agent-assets/docs/features/integrations/mail.md +60 -17
  35. package/agent-assets/docs/features/integrations/notion.md +51 -11
  36. package/agent-assets/docs/features/integrations/obsidian.md +35 -7
  37. package/agent-assets/docs/features/lifestyle/git.md +45 -44
  38. package/agent-assets/docs/features/lifestyle/reading.md +50 -22
  39. package/agent-assets/docs/features/lifestyle/receipts.md +66 -21
  40. package/agent-assets/docs/features/lifestyle/travel-bookings.md +91 -14
  41. package/agent-assets/docs/features/memory-files/agent-journal.md +111 -50
  42. package/agent-assets/docs/features/memory-files/projects.md +75 -15
  43. package/agent-assets/docs/features/memory-files/roadmap.md +55 -10
  44. package/agent-assets/docs/features/memory-files/schedule.md +113 -70
  45. package/agent-assets/docs/features/memory-files/today.md +47 -21
  46. package/agent-assets/docs/features/memory-files/user-profile.md +67 -31
  47. package/agent-assets/docs/features/messaging/bang-commands.md +115 -28
  48. package/agent-assets/docs/features/messaging/dashboard-chat.md +43 -21
  49. package/agent-assets/docs/features/messaging/discord.md +46 -4
  50. package/agent-assets/docs/features/messaging/overview.md +40 -19
  51. package/agent-assets/docs/features/messaging/pairing-and-magic-phrase.md +94 -27
  52. package/agent-assets/docs/features/messaging/slack.md +79 -14
  53. package/agent-assets/docs/features/messaging/telegram.md +25 -6
  54. package/agent-assets/docs/features/messaging/whatsapp.md +79 -14
  55. package/agent-assets/docs/features/operations/activity-and-conversations.md +45 -16
  56. package/agent-assets/docs/features/operations/approvals.md +53 -15
  57. package/agent-assets/docs/features/operations/backend-routing.md +75 -16
  58. package/agent-assets/docs/features/operations/cost-tracking.md +90 -17
  59. package/agent-assets/docs/features/operations/managed-chromium.md +221 -0
  60. package/agent-assets/docs/features/operations/notifications.md +58 -11
  61. package/agent-assets/docs/features/operations/quiet-hours.md +63 -40
  62. package/agent-assets/docs/features/operations/schedule-approaching.md +59 -16
  63. package/agent-assets/docs/features/routines/custom-routines.md +97 -23
  64. package/agent-assets/docs/features/routines/evening-review.md +75 -22
  65. package/agent-assets/docs/features/routines/hourly-check.md +150 -30
  66. package/agent-assets/docs/features/routines/morning-routine.md +60 -33
  67. package/agent-assets/docs/features/routines/weekly-review.md +65 -20
  68. package/agent-assets/docs/features/wiki/commands.md +37 -16
  69. package/agent-assets/docs/features/wiki/cost-and-approval.md +240 -0
  70. package/agent-assets/docs/features/wiki/dashboard.md +255 -0
  71. package/agent-assets/docs/features/wiki/overview.md +80 -12
  72. package/agent-assets/docs/features/wiki/search.md +248 -0
  73. package/agent-assets/docs/features/wiki/workspaces.md +254 -0
  74. package/agent-assets/docs/getting-started/01-what-is-this.md +64 -32
  75. package/agent-assets/docs/getting-started/02-first-steps.md +28 -10
  76. package/agent-assets/docs/getting-started/03-what-can-this-do.md +42 -21
  77. package/agent-assets/docs/getting-started/04-first-day.md +52 -20
  78. package/agent-assets/docs/glossary.md +285 -21
  79. package/agent-assets/docs/guides/add-a-custom-routine.md +74 -22
  80. package/agent-assets/docs/guides/backup-and-restore.md +92 -14
  81. package/agent-assets/docs/guides/budget-and-cost-for-wiki.md +62 -25
  82. package/agent-assets/docs/guides/build-your-wiki.md +33 -6
  83. package/agent-assets/docs/guides/change-which-model-handles-x.md +70 -9
  84. package/agent-assets/docs/guides/connect-a-new-mail-account.md +80 -15
  85. package/agent-assets/docs/guides/explore-with-trace-and-connect.md +32 -9
  86. package/agent-assets/docs/guides/import-knowledge-file.md +60 -39
  87. package/agent-assets/docs/guides/install-and-run.md +64 -19
  88. package/agent-assets/docs/guides/maintain-wiki-health.md +41 -10
  89. package/agent-assets/docs/guides/migrate-machines.md +86 -18
  90. package/agent-assets/docs/guides/multiple-wikis-for-multiple-domains.md +119 -59
  91. package/agent-assets/docs/guides/pause-the-agent.md +71 -22
  92. package/agent-assets/docs/guides/reinstall-cleanly.md +102 -17
  93. package/agent-assets/docs/guides/setup-wizard.md +126 -56
  94. package/agent-assets/docs/guides/switch-default-backend.md +72 -17
  95. package/agent-assets/docs/guides/use-an-existing-obsidian-vault.md +31 -10
  96. package/agent-assets/docs/reference/api.md +162 -23
  97. package/agent-assets/docs/reference/cli-commands.md +55 -15
  98. package/agent-assets/docs/reference/config.md +246 -39
  99. package/agent-assets/docs/reference/disallowed-tools.md +42 -10
  100. package/agent-assets/docs/reference/keyboard-shortcuts.md +47 -10
  101. package/agent-assets/docs/reference/knowledge-layout.md +620 -0
  102. package/agent-assets/docs/reference/process-keys.md +126 -20
  103. package/agent-assets/docs/reference/skills.md +62 -18
  104. package/agent-assets/docs/troubleshooting/auth-failed.md +53 -19
  105. package/agent-assets/docs/troubleshooting/dashboard-shows-degraded.md +96 -22
  106. package/agent-assets/docs/troubleshooting/fallback-keeps-firing.md +94 -20
  107. package/agent-assets/docs/troubleshooting/messaging-not-pairing.md +77 -22
  108. package/agent-assets/docs/troubleshooting/morning-routine-didnt-run.md +87 -22
  109. package/agent-assets/docs/troubleshooting/observation-not-detected.md +85 -21
  110. package/agent-assets/docs/troubleshooting/quota-exhausted.md +36 -6
  111. package/agent-assets/docs/troubleshooting/wiki-ingest-full-blocked.md +128 -51
  112. package/agent-assets/docs/troubleshooting/wiki-write-failed.md +33 -11
  113. package/agent-assets/optimizer-skills/drift-analysis/SKILL.md +1 -1
  114. package/agent-assets/optimizer-skills/knowledge-map/SKILL.md +1 -1
  115. package/agent-assets/optimizer-skills/skill-curation/SKILL.md +2 -2
  116. package/agent-assets/sandbox/linux/aitne-chromium.apparmor +91 -0
  117. package/agent-assets/sandbox/macos/aitne-chromium.sb +156 -0
  118. package/agent-assets/skills/agent-actions/SKILL.md +122 -0
  119. package/agent-assets/skills/agent-create/SKILL.md +149 -0
  120. package/agent-assets/skills/attach/SKILL.md +3 -4
  121. package/agent-assets/skills/browser-history/SKILL.md +198 -0
  122. package/agent-assets/skills/browser-history-respond/SKILL.md +106 -0
  123. package/agent-assets/skills/browser-task/SKILL.md +169 -0
  124. package/agent-assets/skills/context/SKILL.md +45 -463
  125. package/agent-assets/skills/context/curation.json +2 -2
  126. package/agent-assets/skills/context/references/api.md +232 -0
  127. package/agent-assets/skills/context/references/required-frontmatter.md +73 -0
  128. package/agent-assets/skills/context/references/snapshot-files.md +103 -0
  129. package/agent-assets/skills/context/seeds/file-responsibilities.seed.json +4 -4
  130. package/agent-assets/skills/docs-search/SKILL.md +17 -16
  131. package/agent-assets/skills/external-services/SKILL.delegated.claude.md +14 -26
  132. package/agent-assets/skills/external-services/SKILL.delegated.codex.md +14 -26
  133. package/agent-assets/skills/external-services/SKILL.delegated.gemini.md +14 -26
  134. package/agent-assets/skills/external-services/SKILL.md +9 -262
  135. package/agent-assets/skills/external-services/SKILL.native.claude.md +6 -7
  136. package/agent-assets/skills/external-services/SKILL.native.codex.md +8 -9
  137. package/agent-assets/skills/external-services/SKILL.native.gemini.md +5 -6
  138. package/agent-assets/skills/external-services/references/calendar-apple.md +97 -0
  139. package/agent-assets/skills/external-services/references/calendar-google.md +72 -0
  140. package/agent-assets/skills/external-services/references/calendar-outlook.md +36 -0
  141. package/agent-assets/skills/external-services/references/github.md +17 -0
  142. package/agent-assets/skills/external-services/references/obsidian.md +49 -0
  143. package/agent-assets/skills/external-services/references/skills-crud.md +27 -0
  144. package/agent-assets/skills/gmail-lifestyle/SKILL.md +151 -0
  145. package/agent-assets/skills/gmail-lifestyle/references/receipts-api.md +93 -0
  146. package/agent-assets/skills/gmail-lifestyle/references/travel-bookings-api.md +75 -0
  147. package/agent-assets/skills/mail/SKILL.delegated.claude.md +15 -6
  148. package/agent-assets/skills/mail/SKILL.delegated.codex.md +9 -5
  149. package/agent-assets/skills/mail/SKILL.delegated.gemini.md +9 -5
  150. package/agent-assets/skills/mail/SKILL.md +9 -114
  151. package/agent-assets/skills/mail/SKILL.native.claude.md +1 -1
  152. package/agent-assets/skills/mail/SKILL.native.codex.md +1 -1
  153. package/agent-assets/skills/mail/SKILL.native.gemini.md +1 -1
  154. package/agent-assets/skills/mail/references/api.md +110 -0
  155. package/agent-assets/skills/mail/references/examples.md +70 -0
  156. package/agent-assets/skills/mail/references/providers.md +8 -8
  157. package/agent-assets/skills/managed-tasks/SKILL.md +472 -0
  158. package/agent-assets/skills/managed-tasks/references/errors.md +73 -0
  159. package/agent-assets/skills/managed-tasks/references/output-path.md +75 -0
  160. package/agent-assets/skills/managed-tasks/references/recurrence-rule.md +86 -0
  161. package/agent-assets/skills/management-policy/SKILL.md +54 -125
  162. package/agent-assets/skills/management-policy/curation.json +1 -1
  163. package/agent-assets/skills/management-policy/references/policy-workflow.md +101 -0
  164. package/agent-assets/skills/management-policy/seeds/policy-file-shape.seed.json +1 -1
  165. package/agent-assets/skills/notify/SKILL.md +10 -82
  166. package/agent-assets/skills/notify/references/priority.md +65 -0
  167. package/agent-assets/skills/notion/SKILL.delegated.claude.md +2 -2
  168. package/agent-assets/skills/notion/SKILL.delegated.codex.md +2 -2
  169. package/agent-assets/skills/notion/SKILL.delegated.gemini.md +2 -2
  170. package/agent-assets/skills/notion/SKILL.md +6 -10
  171. package/agent-assets/skills/notion/SKILL.native.claude.md +11 -8
  172. package/agent-assets/skills/notion/SKILL.native.codex.md +10 -6
  173. package/agent-assets/skills/notion/SKILL.native.gemini.md +10 -6
  174. package/agent-assets/skills/observations/SKILL.md +25 -14
  175. package/agent-assets/skills/project-doc/SKILL.md +2 -6
  176. package/agent-assets/skills/project-doc/curation.json +3 -3
  177. package/agent-assets/skills/project-doc/seeds/project-shape.seed.json +7 -4
  178. package/agent-assets/skills/project-doc/seeds/slug-grammar.seed.json +3 -3
  179. package/agent-assets/skills/reading/SKILL.md +12 -2
  180. package/agent-assets/skills/reading/references/reading-taste.md +2 -2
  181. package/agent-assets/skills/roadmap/SKILL.md +43 -141
  182. package/agent-assets/skills/roadmap/curation.json +1 -1
  183. package/agent-assets/skills/roadmap/references/api.md +100 -0
  184. package/agent-assets/skills/roadmap/references/cross-check.md +80 -0
  185. package/agent-assets/skills/roadmap/references/migration.md +56 -0
  186. package/agent-assets/skills/roadmap/references/preparation-timeline.md +2 -2
  187. package/agent-assets/skills/roadmap/seeds/entry-types.seed.json +1 -1
  188. package/agent-assets/skills/schedule/SKILL.md +76 -104
  189. package/agent-assets/skills/schedule/references/batch.md +93 -0
  190. package/agent-assets/skills/schedule/references/errors.md +217 -0
  191. package/agent-assets/skills/schedule/references/model-selection.md +96 -0
  192. package/agent-assets/skills/schedule/references/recurrence-rule.md +86 -0
  193. package/agent-assets/skills/scheduled-managed-task/SKILL.md +59 -51
  194. package/agent-assets/skills/today/SKILL.md +32 -62
  195. package/agent-assets/skills/today/curation.json +3 -3
  196. package/agent-assets/skills/today/references/agent-plan-lifecycle.md +114 -0
  197. package/agent-assets/skills/today/seeds/section-shape.seed.json +1 -1
  198. package/agent-assets/skills/user-interview/SKILL.md +23 -67
  199. package/agent-assets/skills/user-interview/references/op-briefing.md +51 -0
  200. package/agent-assets/skills/user-interview/references/op-morning.md +59 -0
  201. package/agent-assets/skills/user-interview/references/sweep-and-fallback.md +9 -1
  202. package/agent-assets/skills/user-profile/SKILL.md +54 -74
  203. package/agent-assets/skills/user-profile/curation.json +2 -2
  204. package/agent-assets/skills/user-profile/references/character-preferences.md +83 -0
  205. package/agent-assets/skills/user-profile/seeds/routing-table.seed.json +8 -8
  206. package/agent-assets/skills/user-profile/seeds/topic-files.seed.json +30 -2
  207. package/agent-assets/skills/wiki/wiki-ask/SKILL.md +0 -1
  208. package/agent-assets/skills/wiki/wiki-compile/SKILL.md +4 -5
  209. package/agent-assets/skills/wiki/wiki-connect/SKILL.md +0 -1
  210. package/agent-assets/skills/wiki/wiki-graduate/SKILL.md +0 -1
  211. package/agent-assets/skills/wiki/wiki-ingest/SKILL.md +0 -1
  212. package/agent-assets/skills/wiki/wiki-lint/SKILL.md +0 -1
  213. package/agent-assets/skills/wiki/wiki-trace/SKILL.md +0 -1
  214. package/agent-assets/skills/wiki/wiki-vault-rules/SKILL.md +0 -1
  215. package/agent-assets/system-prompts/routine-fetch-window.md +78 -0
  216. package/agent-assets/system-prompts/skill-index-instruction.md +26 -0
  217. package/agent-assets/task-flows/_partials/calendar-acquire.google_calendar.md +20 -11
  218. package/agent-assets/task-flows/_partials/calendar-acquire.outlook_calendar.md +18 -9
  219. package/agent-assets/task-flows/_partials/capture-user-info.md +24 -0
  220. package/agent-assets/task-flows/_partials/confirm-subflow.md +68 -0
  221. package/agent-assets/task-flows/_partials/dm-intent.long-horizon.md +35 -0
  222. package/agent-assets/task-flows/_partials/dm-intent.project.md +391 -0
  223. package/agent-assets/task-flows/_partials/mail-acquire.gmail.md +20 -11
  224. package/agent-assets/task-flows/_partials/mail-acquire.outlook_mail.md +18 -9
  225. package/agent-assets/task-flows/_partials/notion-acquire.notion.md +26 -15
  226. package/agent-assets/task-flows/browser_task.md +84 -0
  227. package/agent-assets/task-flows/github.assigned.md +1 -1
  228. package/agent-assets/task-flows/github.pull_request.review_requested.md +2 -2
  229. package/agent-assets/task-flows/github.workflow_run.failed.md +2 -2
  230. package/agent-assets/task-flows/knowledge.import.md +15 -15
  231. package/agent-assets/task-flows/message.received.dm.md +20 -17
  232. package/agent-assets/task-flows/message.received.dm_first.md +11 -15
  233. package/agent-assets/task-flows/routine.custom.md +6 -4
  234. package/agent-assets/task-flows/routine.evening_review.md +46 -170
  235. package/agent-assets/task-flows/routine.fetch_window.md +19 -14
  236. package/agent-assets/task-flows/routine.hourly_check.md +27 -15
  237. package/agent-assets/task-flows/routine.hourly_check.triage.md +1 -1
  238. package/agent-assets/task-flows/routine.monthly_review.md +67 -25
  239. package/agent-assets/task-flows/routine.morning_routine_journal.md +135 -0
  240. package/agent-assets/task-flows/routine.morning_routine_today.md +673 -0
  241. package/agent-assets/task-flows/routine.research_cluster_update.md +35 -0
  242. package/agent-assets/task-flows/routine.research_dispatch.md +38 -0
  243. package/agent-assets/task-flows/routine.research_offer_dm.md +125 -0
  244. package/agent-assets/task-flows/routine.research_wiki_summary.md +53 -0
  245. package/agent-assets/task-flows/routine.roadmap_refresh.md +68 -23
  246. package/agent-assets/task-flows/routine.today_refresh.md +4 -4
  247. package/agent-assets/task-flows/routine.user_profile_sweep.md +19 -20
  248. package/agent-assets/task-flows/routine.weekly_review.md +370 -86
  249. package/agent-assets/task-flows/schedule.approaching.md +0 -1
  250. package/agent-assets/task-flows/scheduled.dm.md +13 -13
  251. package/agent-assets/task-flows/scheduled.task.md +9 -9
  252. package/agent-assets/task-flows/setup.initial.md +171 -251
  253. package/agent-assets/task-flows/setup.update.md +2 -2
  254. package/agent-assets/task-flows/wiki.ingest_url.md +1 -1
  255. package/agent-assets/templates/README.md +27 -20
  256. package/agent-assets/templates/_index.md +42 -26
  257. package/agent-assets/templates/_manifest.json +34 -99
  258. package/agent-assets/templates/{user → identity}/_index.md +1 -1
  259. package/agent-assets/templates/identity/expertise.md +9 -0
  260. package/agent-assets/templates/identity/goals.md +9 -0
  261. package/agent-assets/templates/identity/people.md +13 -0
  262. package/agent-assets/templates/identity/personal.md +9 -0
  263. package/agent-assets/templates/{user → identity}/profile.md +2 -2
  264. package/agent-assets/templates/identity/work.md +9 -0
  265. package/agent-assets/templates/{dossiers → knowledge/dossiers}/_index.md +2 -2
  266. package/agent-assets/templates/{projects → plans/projects}/_active.base +1 -1
  267. package/agent-assets/templates/policies/_index.md +21 -0
  268. package/agent-assets/templates/{rules → policies}/journal-export.md +1 -1
  269. package/agent-assets/templates/policies/journal-format.md +168 -0
  270. package/agent-assets/templates/{rules/policies → policies/management-captures}/_index.md +2 -2
  271. package/agent-assets/templates/{rules → policies}/management.md +3 -3
  272. package/agent-assets/templates/{rules → policies}/mcp.md +1 -1
  273. package/agent-assets/templates/{rules → policies}/redaction.md +1 -1
  274. package/agent-assets/templates/{routines → policies/routines}/_index.md +1 -1
  275. package/agent-assets/templates/{routines → policies/routines}/evening.md +2 -2
  276. package/agent-assets/templates/{routines → policies/routines}/hourly.md +1 -1
  277. package/agent-assets/templates/{routines → policies/routines}/monthly.md +2 -2
  278. package/bin/aitne.mjs +21 -5
  279. package/package.json +5 -4
  280. package/scripts/commands/doctor.mjs +63 -5
  281. package/scripts/commands/run-now.mjs +187 -0
  282. package/scripts/commands/verify.mjs +264 -0
  283. package/scripts/lib/ports.d.mts +27 -0
  284. package/scripts/lib/ports.mjs +36 -0
  285. package/scripts/lib/read-api-token.mjs +176 -0
  286. package/scripts/start.mjs +2 -1
  287. package/agent-assets/docs/features/lifestyle/travel-time.md +0 -52
  288. package/agent-assets/docs/features/routines/monthly-review.md +0 -65
  289. package/agent-assets/skills/management-task-modify/SKILL.md +0 -203
  290. package/agent-assets/skills/management-task-register/SKILL.md +0 -330
  291. package/agent-assets/skills/management-task-stop/SKILL.md +0 -166
  292. package/agent-assets/skills/receipts/SKILL.md +0 -134
  293. package/agent-assets/skills/travel/SKILL.md +0 -132
  294. package/agent-assets/skills/travel-time/SKILL.md +0 -158
  295. package/agent-assets/task-flows/routine.morning_routine.md +0 -322
  296. package/agent-assets/task-flows/routine.morning_routine_initial.md +0 -204
  297. package/agent-assets/templates/context-index.md +0 -42
  298. package/agent-assets/templates/rules/_index.md +0 -19
  299. package/agent-assets/templates/rules/journal-format.md +0 -61
  300. package/agent-assets/templates/user/expertise.md +0 -7
  301. package/agent-assets/templates/user/goals.md +0 -7
  302. package/agent-assets/templates/user/people.md +0 -7
  303. package/agent-assets/templates/user/personal.md +0 -7
  304. package/agent-assets/templates/user/work.md +0 -7
  305. /package/agent-assets/templates/{agent/journal.md → journal/agent.md} +0 -0
  306. /package/agent-assets/templates/{dossiers → knowledge/dossiers}/evening.md +0 -0
  307. /package/agent-assets/templates/{dossiers → knowledge/dossiers}/hourly.md +0 -0
  308. /package/agent-assets/templates/{dossiers → knowledge/dossiers}/monthly.md +0 -0
  309. /package/agent-assets/templates/{dossiers → knowledge/dossiers}/morning.md +0 -0
  310. /package/agent-assets/templates/{dossiers → knowledge/dossiers}/roadmap.md +0 -0
  311. /package/agent-assets/templates/{dossiers → knowledge/dossiers}/weekly.md +0 -0
  312. /package/agent-assets/templates/{projects → plans/projects}/_index.md +0 -0
  313. /package/agent-assets/templates/{roadmap.md → plans/roadmap.md} +0 -0
  314. /package/agent-assets/templates/{routines → policies/routines}/morning.md +0 -0
  315. /package/agent-assets/templates/{routines → policies/routines}/weekly.md +0 -0
  316. /package/agent-assets/templates/{agent → state}/profile-questions.md +0 -0
  317. /package/agent-assets/templates/{today.md → state/today.md} +0 -0
@@ -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,13 +8,14 @@ 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
17
17
  - memory
18
+ - today
18
19
  status: stable
19
20
  ask_examples:
20
21
  - What is in today.md?
@@ -22,52 +23,77 @@ ask_examples:
22
23
  - Why does today.md keep getting rewritten?
23
24
  locale: en-US
24
25
  created: 2026-04-25
25
- updated: 2026-04-25
26
+ updated: 2026-05-28
26
27
  keywords:
27
28
  - today
28
29
  - day plan
30
+ - agent log
31
+ - handoff
29
32
  related:
30
33
  - features/routines/morning-routine
34
+ - features/routines/hourly-check
35
+ - features/routines/evening-review
31
36
  - features/memory-files/schedule
32
37
  - concepts/agent-day
38
+ ui_anchors:
39
+ - /knowledge?tab=context-files
40
+ api_endpoints:
41
+ - PUT /api/context/*
42
+ - PATCH /api/context/*
33
43
  context_files:
34
- - today.md
44
+ - state/today.md
35
45
  ---
36
46
 
37
47
  # today.md
38
48
 
39
49
  ## In One Sentence
40
50
 
41
- The single live file that captures the day's plan, log, tasks, and
42
- hand-off rebuilt by the morning routine, appended-to by everything
43
- 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.
44
54
 
45
55
  ## What It Does
46
56
 
47
- Sections:
57
+ today.md holds six sections, written in this order:
48
58
 
49
- - **User Schedule** — calendar events.
50
- - **Tasks** — today's external + agent-tracked tasks.
51
- - **Agent Plan** — what the agent intends to work on today.
52
- - **Agent Log** what actually happened.
53
- - **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.
54
67
 
55
68
  ## When It Runs / How It Is Triggered
56
69
 
57
- - The morning routine fully rewrites it.
58
- - The hourly check appends short observations under Agent Log.
59
- - 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.
60
84
 
61
85
  ## Where in the Dashboard
62
86
 
63
- - **Knowledge → Context Files → today.md** to view and edit.
87
+ - **Knowledge → Context Files → today.md** to view and edit by hand.
64
88
 
65
89
  ## When Something Goes Wrong
66
90
 
67
- - An empty today.md after the morning hour: see [Morning Routine
68
- 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).
69
93
 
70
94
  ## Related
71
95
 
72
- - [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)
73
99
  - [schedule/ files](schedule.md)
@@ -1,18 +1,19 @@
1
1
  ---
2
2
  schema_version: 1
3
3
  slug: features/memory-files/user-profile
4
- title: user/profile.md
4
+ title: identity/profile.md
5
5
  id: user-profile
6
6
  aliases:
7
7
  - user.md
8
8
  - user/profile.md
9
+ - identity/profile.md
9
10
  - user profile
10
11
  - about-me
11
12
  category: features
12
13
  summary: |
13
- user/profile.md is the agent's stable profile of the operator — role,
14
- focus areas, preferences, names of important people. The agent reads
15
- it on every session and appends with the operator's permission.
14
+ identity/profile.md is the agent's stable profile of the operator — role,
15
+ focus areas, preferences, names of important people. The agent reads it
16
+ on every session and appends only with the operator's permission.
16
17
  section: memory-files
17
18
  tags:
18
19
  - memory
@@ -20,25 +21,36 @@ tags:
20
21
  - core
21
22
  status: stable
22
23
  ask_examples:
23
- - What is user/profile.md?
24
+ - What is identity/profile.md?
24
25
  - How do I tell the agent something about me?
25
26
  - Will the agent change my profile without asking?
26
27
  locale: en-US
27
28
  created: 2026-04-25
28
- updated: 2026-04-25
29
+ updated: 2026-05-28
30
+ keywords:
31
+ - user profile
32
+ - identity/profile.md
33
+ - identity slices
34
+ - people
35
+ - expertise
29
36
  related:
30
37
  - getting-started/04-first-day
31
38
  - concepts/memory-model
39
+ process_keys:
40
+ - routine.user_profile_sweep
41
+ api_endpoints:
42
+ - PUT /api/context/*
43
+ - PATCH /api/context/*
32
44
  context_files:
33
- - user/profile.md
34
- - user/people.md
35
- - user/work.md
36
- - user/expertise.md
37
- - user/personal.md
38
- - user/goals.md
45
+ - identity/profile.md
46
+ - identity/people.md
47
+ - identity/work.md
48
+ - identity/expertise.md
49
+ - identity/personal.md
50
+ - identity/goals.md
39
51
  ---
40
52
 
41
- # user/profile.md
53
+ # identity/profile.md
42
54
 
43
55
  ## In One Sentence
44
56
 
@@ -47,35 +59,59 @@ every session and appends only with explicit permission.
47
59
 
48
60
  ## What It Does
49
61
 
50
- - Captures who you are, what you do, who matters in your life.
51
- - Pinned at the top of every session prompt so the agent has the
52
- same baseline understanding turn-to-turn.
53
- - The companion files in the `user/` directory split the dossier into
54
- topic-shaped slices: `user/people.md`, `user/work.md`,
55
- `user/expertise.md`, `user/personal.md`, `user/goals.md`. The agent
56
- loads them on demand instead of inlining everything.
62
+ - Captures who you are, what you do, and who matters in your life.
63
+ - Is pinned at the top of every session prompt, so the agent keeps
64
+ the same baseline understanding of you turn-to-turn.
65
+ - Anchors a set of companion slices in the `identity/` directory that
66
+ split the dossier into topic-shaped files:
67
+ `identity/people.md`, `identity/work.md`, `identity/expertise.md`,
68
+ `identity/personal.md`, `identity/goals.md`. The agent loads these on
69
+ demand instead of inlining everything into every prompt.
70
+
71
+ > Older docs and exports may call these files `user/profile.md`,
72
+ > `user/people.md`, and so on. `user/` is a legacy alias for
73
+ > `identity/`; the daemon rewrites it in-process, so the current
74
+ > canonical location is `identity/`.
57
75
 
58
76
  ## When It Runs / How It Is Triggered
59
77
 
60
- Read continuously. Written only when the operator says "remember
61
- that…" or during a profile sweep routine
62
- (`routine.user_profile_sweep`).
78
+ - **Read continuously** loaded at the start of every session.
79
+ - **Written** only when you say "remember that…" in a DM, or during
80
+ the profile sweep routine (`routine.user_profile_sweep`), which
81
+ routes captured facts into the appropriate `identity/*.md` slice.
82
+
83
+ The agent never edits these files directly. It writes through the
84
+ daemon's context API — for example
85
+ `PATCH /api/context/identity/profile.md` — the single validated write
86
+ path with locks and backup snapshots.
63
87
 
64
88
  ## Where in the Dashboard
65
89
 
66
- - **Knowledge → Context Files user/profile.md** to view and edit.
67
- The other `user/*.md` slices are listed alongside.
68
- - **Knowledge Upload** to seed `user/*.md` from a Markdown / text
69
- file useful for migrating an existing profile out of ChatGPT,
70
- Gemini, Obsidian, or Notion. See
71
- [Import a Knowledge File](../../guides/import-knowledge-file.md).
90
+ - **Knowledge → Context Files** (`/knowledge?tab=context-files`) to
91
+ view and edit `identity/profile.md`. The other `identity/*.md`
92
+ slices are listed alongside it.
93
+ - **Knowledge Upload** (`/knowledge?tab=upload`) to seed the
94
+ `identity/*.md` slices from a Markdown or text file — useful when
95
+ migrating an existing profile out of ChatGPT, Gemini, Obsidian, or
96
+ Notion. See [Import a Knowledge File](../../guides/import-knowledge-file.md).
97
+
98
+ ## Example
99
+
100
+ To tell the agent a durable fact about yourself, just say it in a DM:
101
+
102
+ > remember that my manager is Priya and we sync every Monday at 10am
103
+
104
+ The agent appends a line to the relevant slice (here `identity/people.md`)
105
+ after confirming, and recalls it in future sessions.
72
106
 
73
107
  ## When Something Goes Wrong
74
108
 
75
- - The agent forgets something it should remember: append it to
76
- the appropriate `user/*.md` slice by hand.
109
+ - **The agent forgets something it should remember:** open
110
+ **Knowledge Context Files** and append it to the appropriate
111
+ `identity/*.md` slice by hand.
77
112
 
78
113
  ## Related
79
114
 
80
115
  - [Memory Model](../../concepts/memory-model.md)
116
+ - [First Day](../../getting-started/04-first-day.md)
81
117
  - [Import a Knowledge File](../../guides/import-knowledge-file.md)