@aitne-sh/aitne 0.1.0

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 (249) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +464 -0
  3. package/agent-assets/agent-profiles/_safety.md +26 -0
  4. package/agent-assets/agent-profiles/conversational.md +33 -0
  5. package/agent-assets/agent-profiles/docs-qa.md +24 -0
  6. package/agent-assets/agent-profiles/observer.md +28 -0
  7. package/agent-assets/agent-profiles/profile-importer.md +63 -0
  8. package/agent-assets/agent-profiles/proxy.md +28 -0
  9. package/agent-assets/agent-profiles/routine.md +16 -0
  10. package/agent-assets/agent-profiles/task.md +18 -0
  11. package/agent-assets/docs/concepts/agent-day.md +88 -0
  12. package/agent-assets/docs/concepts/auth-health.md +75 -0
  13. package/agent-assets/docs/concepts/backends-and-tiers.md +126 -0
  14. package/agent-assets/docs/concepts/costs-and-quotas.md +103 -0
  15. package/agent-assets/docs/concepts/delegated-mode.md +223 -0
  16. package/agent-assets/docs/concepts/memory-model.md +118 -0
  17. package/agent-assets/docs/concepts/observations.md +80 -0
  18. package/agent-assets/docs/concepts/process-keys.md +89 -0
  19. package/agent-assets/docs/concepts/routines.md +108 -0
  20. package/agent-assets/docs/concepts/safety-and-execution.md +109 -0
  21. package/agent-assets/docs/concepts/safety-model.md +279 -0
  22. package/agent-assets/docs/concepts/skills.md +100 -0
  23. package/agent-assets/docs/features/integrations/calendar.md +92 -0
  24. package/agent-assets/docs/features/integrations/git.md +95 -0
  25. package/agent-assets/docs/features/integrations/github.md +170 -0
  26. package/agent-assets/docs/features/integrations/mail.md +106 -0
  27. package/agent-assets/docs/features/integrations/notion.md +69 -0
  28. package/agent-assets/docs/features/integrations/obsidian.md +71 -0
  29. package/agent-assets/docs/features/lifestyle/git.md +178 -0
  30. package/agent-assets/docs/features/lifestyle/reading.md +93 -0
  31. package/agent-assets/docs/features/lifestyle/receipts.md +71 -0
  32. package/agent-assets/docs/features/lifestyle/travel-bookings.md +44 -0
  33. package/agent-assets/docs/features/lifestyle/travel-time.md +52 -0
  34. package/agent-assets/docs/features/memory-files/agent-journal.md +105 -0
  35. package/agent-assets/docs/features/memory-files/projects.md +56 -0
  36. package/agent-assets/docs/features/memory-files/roadmap.md +61 -0
  37. package/agent-assets/docs/features/memory-files/schedule.md +112 -0
  38. package/agent-assets/docs/features/memory-files/today.md +73 -0
  39. package/agent-assets/docs/features/memory-files/user-profile.md +81 -0
  40. package/agent-assets/docs/features/messaging/dashboard-chat.md +93 -0
  41. package/agent-assets/docs/features/messaging/discord.md +50 -0
  42. package/agent-assets/docs/features/messaging/overview.md +111 -0
  43. package/agent-assets/docs/features/messaging/pairing-and-magic-phrase.md +69 -0
  44. package/agent-assets/docs/features/messaging/slack.md +51 -0
  45. package/agent-assets/docs/features/messaging/telegram.md +63 -0
  46. package/agent-assets/docs/features/messaging/whatsapp.md +48 -0
  47. package/agent-assets/docs/features/operations/activity-and-conversations.md +105 -0
  48. package/agent-assets/docs/features/operations/approvals.md +58 -0
  49. package/agent-assets/docs/features/operations/backend-routing.md +62 -0
  50. package/agent-assets/docs/features/operations/cost-tracking.md +59 -0
  51. package/agent-assets/docs/features/operations/notifications.md +69 -0
  52. package/agent-assets/docs/features/operations/quiet-hours.md +106 -0
  53. package/agent-assets/docs/features/operations/schedule-approaching.md +60 -0
  54. package/agent-assets/docs/features/routines/custom-routines.md +101 -0
  55. package/agent-assets/docs/features/routines/evening-review.md +81 -0
  56. package/agent-assets/docs/features/routines/hourly-check.md +85 -0
  57. package/agent-assets/docs/features/routines/monthly-review.md +65 -0
  58. package/agent-assets/docs/features/routines/morning-routine.md +123 -0
  59. package/agent-assets/docs/features/routines/weekly-review.md +70 -0
  60. package/agent-assets/docs/getting-started/01-what-is-this.md +192 -0
  61. package/agent-assets/docs/getting-started/02-first-steps.md +80 -0
  62. package/agent-assets/docs/getting-started/03-what-can-this-do.md +110 -0
  63. package/agent-assets/docs/getting-started/04-first-day.md +287 -0
  64. package/agent-assets/docs/glossary.md +116 -0
  65. package/agent-assets/docs/guides/add-a-custom-routine.md +71 -0
  66. package/agent-assets/docs/guides/backup-and-restore.md +54 -0
  67. package/agent-assets/docs/guides/change-which-model-handles-x.md +47 -0
  68. package/agent-assets/docs/guides/connect-a-new-mail-account.md +59 -0
  69. package/agent-assets/docs/guides/import-knowledge-file.md +275 -0
  70. package/agent-assets/docs/guides/install-and-run.md +72 -0
  71. package/agent-assets/docs/guides/migrate-machines.md +52 -0
  72. package/agent-assets/docs/guides/pause-the-agent.md +65 -0
  73. package/agent-assets/docs/guides/reinstall-cleanly.md +52 -0
  74. package/agent-assets/docs/guides/setup-wizard.md +107 -0
  75. package/agent-assets/docs/guides/switch-default-backend.md +60 -0
  76. package/agent-assets/docs/reference/api.md +51 -0
  77. package/agent-assets/docs/reference/cli-commands.md +121 -0
  78. package/agent-assets/docs/reference/config.md +74 -0
  79. package/agent-assets/docs/reference/disallowed-tools.md +76 -0
  80. package/agent-assets/docs/reference/keyboard-shortcuts.md +39 -0
  81. package/agent-assets/docs/reference/process-keys.md +59 -0
  82. package/agent-assets/docs/reference/skills.md +50 -0
  83. package/agent-assets/docs/troubleshooting/auth-failed.md +57 -0
  84. package/agent-assets/docs/troubleshooting/dashboard-shows-degraded.md +55 -0
  85. package/agent-assets/docs/troubleshooting/fallback-keeps-firing.md +54 -0
  86. package/agent-assets/docs/troubleshooting/messaging-not-pairing.md +53 -0
  87. package/agent-assets/docs/troubleshooting/morning-routine-didnt-run.md +75 -0
  88. package/agent-assets/docs/troubleshooting/observation-not-detected.md +57 -0
  89. package/agent-assets/docs/troubleshooting/quota-exhausted.md +57 -0
  90. package/agent-assets/optimizer-skills/drift-analysis/SKILL.md +75 -0
  91. package/agent-assets/optimizer-skills/knowledge-map/SKILL.md +71 -0
  92. package/agent-assets/optimizer-skills/skill-curation/SKILL.md +108 -0
  93. package/agent-assets/project-doc-templates/git-repo.md +21 -0
  94. package/agent-assets/project-doc-templates/project.md +38 -0
  95. package/agent-assets/skills/attach/SKILL.md +104 -0
  96. package/agent-assets/skills/context/SKILL.md +257 -0
  97. package/agent-assets/skills/context/curation.json +37 -0
  98. package/agent-assets/skills/context/seeds/file-responsibilities.seed.json +13 -0
  99. package/agent-assets/skills/context/seeds/frontmatter-requirements.seed.json +40 -0
  100. package/agent-assets/skills/docs-search/SKILL.md +176 -0
  101. package/agent-assets/skills/external-services/SKILL.delegated.claude.md +369 -0
  102. package/agent-assets/skills/external-services/SKILL.delegated.codex.md +349 -0
  103. package/agent-assets/skills/external-services/SKILL.delegated.gemini.md +347 -0
  104. package/agent-assets/skills/external-services/SKILL.md +371 -0
  105. package/agent-assets/skills/mail/SKILL.delegated.claude.md +284 -0
  106. package/agent-assets/skills/mail/SKILL.delegated.codex.md +261 -0
  107. package/agent-assets/skills/mail/SKILL.delegated.gemini.md +255 -0
  108. package/agent-assets/skills/mail/SKILL.md +313 -0
  109. package/agent-assets/skills/mail/references/errors.md +17 -0
  110. package/agent-assets/skills/mail/references/providers.md +40 -0
  111. package/agent-assets/skills/mail/references/query-grammar.md +24 -0
  112. package/agent-assets/skills/management-policy/SKILL.md +307 -0
  113. package/agent-assets/skills/management-policy/curation.json +13 -0
  114. package/agent-assets/skills/management-policy/seeds/policy-file-shape.seed.json +16 -0
  115. package/agent-assets/skills/management-task-modify/SKILL.md +202 -0
  116. package/agent-assets/skills/management-task-register/SKILL.md +330 -0
  117. package/agent-assets/skills/management-task-stop/SKILL.md +166 -0
  118. package/agent-assets/skills/notify/SKILL.md +196 -0
  119. package/agent-assets/skills/notion/SKILL.delegated.claude.md +254 -0
  120. package/agent-assets/skills/notion/SKILL.delegated.codex.md +195 -0
  121. package/agent-assets/skills/notion/SKILL.delegated.gemini.md +194 -0
  122. package/agent-assets/skills/notion/SKILL.md +86 -0
  123. package/agent-assets/skills/observations/SKILL.md +234 -0
  124. package/agent-assets/skills/observations/curation.json +13 -0
  125. package/agent-assets/skills/observations/seeds/source-namespacing.seed.json +20 -0
  126. package/agent-assets/skills/project-doc/SKILL.md +86 -0
  127. package/agent-assets/skills/project-doc/curation.json +21 -0
  128. package/agent-assets/skills/project-doc/seeds/project-shape.seed.json +25 -0
  129. package/agent-assets/skills/project-doc/seeds/slug-grammar.seed.json +20 -0
  130. package/agent-assets/skills/reading/SKILL.md +198 -0
  131. package/agent-assets/skills/reading/references/reading-taste.md +197 -0
  132. package/agent-assets/skills/receipts/SKILL.md +134 -0
  133. package/agent-assets/skills/roadmap/SKILL.md +276 -0
  134. package/agent-assets/skills/roadmap/curation.json +13 -0
  135. package/agent-assets/skills/roadmap/references/horizon-tags.md +40 -0
  136. package/agent-assets/skills/roadmap/references/preparation-timeline.md +47 -0
  137. package/agent-assets/skills/roadmap/seeds/entry-types.seed.json +16 -0
  138. package/agent-assets/skills/schedule/SKILL.md +228 -0
  139. package/agent-assets/skills/scheduled-managed-task/SKILL.md +392 -0
  140. package/agent-assets/skills/today/SKILL.md +198 -0
  141. package/agent-assets/skills/today/curation.json +21 -0
  142. package/agent-assets/skills/today/seeds/agent-notes-flavors.seed.json +17 -0
  143. package/agent-assets/skills/today/seeds/section-shape.seed.json +17 -0
  144. package/agent-assets/skills/travel/SKILL.md +132 -0
  145. package/agent-assets/skills/travel-time/SKILL.md +149 -0
  146. package/agent-assets/skills/user-interview/SKILL.md +323 -0
  147. package/agent-assets/skills/user-interview/references/sweep-and-fallback.md +94 -0
  148. package/agent-assets/skills/user-profile/SKILL.md +210 -0
  149. package/agent-assets/skills/user-profile/curation.json +29 -0
  150. package/agent-assets/skills/user-profile/seeds/learned-context-format.seed.json +14 -0
  151. package/agent-assets/skills/user-profile/seeds/routing-table.seed.json +53 -0
  152. package/agent-assets/skills/user-profile/seeds/topic-files.seed.json +27 -0
  153. package/agent-assets/task-flows/dashboard.docs_qa.md +43 -0
  154. package/agent-assets/task-flows/default.md +11 -0
  155. package/agent-assets/task-flows/git.branch.created.md +25 -0
  156. package/agent-assets/task-flows/git.lifecycle.poll.md +52 -0
  157. package/agent-assets/task-flows/git.local_ahead.stale.md +34 -0
  158. package/agent-assets/task-flows/git.merge_to_default.md +30 -0
  159. package/agent-assets/task-flows/git.project.refresh_architecture.md +100 -0
  160. package/agent-assets/task-flows/git.project.retemplate.md +73 -0
  161. package/agent-assets/task-flows/git.push.detected.md +32 -0
  162. package/agent-assets/task-flows/git.push.force_pushed.md +36 -0
  163. package/agent-assets/task-flows/git.tag.created.md +24 -0
  164. package/agent-assets/task-flows/github.assigned.md +43 -0
  165. package/agent-assets/task-flows/github.pull_request.review_requested.md +57 -0
  166. package/agent-assets/task-flows/github.security_alert.md +45 -0
  167. package/agent-assets/task-flows/github.workflow_run.failed.md +57 -0
  168. package/agent-assets/task-flows/knowledge.import.md +161 -0
  169. package/agent-assets/task-flows/message.received.dm.md +142 -0
  170. package/agent-assets/task-flows/message.received.dm_first.md +117 -0
  171. package/agent-assets/task-flows/message.received.md +14 -0
  172. package/agent-assets/task-flows/routine.custom.md +38 -0
  173. package/agent-assets/task-flows/routine.evening_review.md +323 -0
  174. package/agent-assets/task-flows/routine.hourly_check.delegated.claude.md +405 -0
  175. package/agent-assets/task-flows/routine.hourly_check.delegated.codex.md +400 -0
  176. package/agent-assets/task-flows/routine.hourly_check.delegated.gemini.md +404 -0
  177. package/agent-assets/task-flows/routine.hourly_check.md +184 -0
  178. package/agent-assets/task-flows/routine.hourly_check.triage.md +93 -0
  179. package/agent-assets/task-flows/routine.monthly_review.md +250 -0
  180. package/agent-assets/task-flows/routine.morning_routine.md +300 -0
  181. package/agent-assets/task-flows/routine.morning_routine_initial.md +184 -0
  182. package/agent-assets/task-flows/routine.roadmap_refresh.md +275 -0
  183. package/agent-assets/task-flows/routine.today_refresh.md +172 -0
  184. package/agent-assets/task-flows/routine.user_profile_sweep.md +242 -0
  185. package/agent-assets/task-flows/routine.weekly_review.md +247 -0
  186. package/agent-assets/task-flows/schedule.approaching.md +124 -0
  187. package/agent-assets/task-flows/scheduled.dm.md +391 -0
  188. package/agent-assets/task-flows/scheduled.task.md +141 -0
  189. package/agent-assets/task-flows/setup.initial.md +277 -0
  190. package/agent-assets/task-flows/setup.update.md +53 -0
  191. package/agent-assets/templates/README.md +85 -0
  192. package/agent-assets/templates/_index.md +39 -0
  193. package/agent-assets/templates/_manifest.json +103 -0
  194. package/agent-assets/templates/agent/journal.md +10 -0
  195. package/agent-assets/templates/agent/profile-questions.md +74 -0
  196. package/agent-assets/templates/context-index.md +42 -0
  197. package/agent-assets/templates/dossiers/_index.md +22 -0
  198. package/agent-assets/templates/dossiers/evening.md +23 -0
  199. package/agent-assets/templates/dossiers/hourly.md +23 -0
  200. package/agent-assets/templates/dossiers/monthly.md +23 -0
  201. package/agent-assets/templates/dossiers/morning.md +23 -0
  202. package/agent-assets/templates/dossiers/roadmap.md +23 -0
  203. package/agent-assets/templates/dossiers/weekly.md +23 -0
  204. package/agent-assets/templates/projects/_active.base +14 -0
  205. package/agent-assets/templates/projects/_index.md +29 -0
  206. package/agent-assets/templates/roadmap.md +15 -0
  207. package/agent-assets/templates/routines/_index.md +20 -0
  208. package/agent-assets/templates/routines/evening.md +22 -0
  209. package/agent-assets/templates/routines/hourly.md +30 -0
  210. package/agent-assets/templates/routines/monthly.md +25 -0
  211. package/agent-assets/templates/routines/morning.md +26 -0
  212. package/agent-assets/templates/routines/weekly.md +23 -0
  213. package/agent-assets/templates/rules/_index.md +19 -0
  214. package/agent-assets/templates/rules/journal-export.md +41 -0
  215. package/agent-assets/templates/rules/journal-format.md +61 -0
  216. package/agent-assets/templates/rules/management.md +48 -0
  217. package/agent-assets/templates/rules/mcp.md +40 -0
  218. package/agent-assets/templates/rules/policies/_index.md +22 -0
  219. package/agent-assets/templates/rules/redaction.md +30 -0
  220. package/agent-assets/templates/today.md +13 -0
  221. package/agent-assets/templates/user/_index.md +16 -0
  222. package/agent-assets/templates/user/expertise.md +7 -0
  223. package/agent-assets/templates/user/goals.md +7 -0
  224. package/agent-assets/templates/user/people.md +7 -0
  225. package/agent-assets/templates/user/personal.md +7 -0
  226. package/agent-assets/templates/user/profile.md +28 -0
  227. package/agent-assets/templates/user/work.md +7 -0
  228. package/bin/aitne.mjs +1096 -0
  229. package/package.json +78 -0
  230. package/personal-agent.mjs +39 -0
  231. package/scripts/browser.mjs +99 -0
  232. package/scripts/check-redaction-coverage.mjs +109 -0
  233. package/scripts/commands/audit.mjs +309 -0
  234. package/scripts/commands/doctor.mjs +437 -0
  235. package/scripts/commands/open.mjs +40 -0
  236. package/scripts/commands/setup.mjs +21 -0
  237. package/scripts/commands/uninstall.mjs +114 -0
  238. package/scripts/commands/update.mjs +96 -0
  239. package/scripts/commands/version.mjs +62 -0
  240. package/scripts/commands.md +0 -0
  241. package/scripts/lib/sqlite-loader.mjs +49 -0
  242. package/scripts/message-discipline-digest.mjs +535 -0
  243. package/scripts/poc/google-connector-inheritance/REPORT.md +197 -0
  244. package/scripts/poc/google-connector-inheritance/claude-sdk-probe.mjs +79 -0
  245. package/scripts/remint-roadmap-ids.mjs +257 -0
  246. package/scripts/rm-paths.mjs +22 -0
  247. package/scripts/run-node.mjs +223 -0
  248. package/scripts/smoke-obsidian-api.mjs +166 -0
  249. package/scripts/start.mjs +160 -0
@@ -0,0 +1,71 @@
1
+ ---
2
+ schema_version: 1
3
+ slug: features/lifestyle/receipts
4
+ title: Receipts
5
+ id: receipts
6
+ category: features
7
+ summary: |
8
+ A SQLite-backed log of receipt and invoice attachments the Gmail
9
+ observer detects, plus an export path that saves them into the
10
+ operator's external Obsidian vault for tax / reimbursement tracking.
11
+ section: lifestyle
12
+ tags:
13
+ - lifestyle
14
+ - receipts
15
+ status: stable
16
+ ask_examples:
17
+ - Where are my receipts stored?
18
+ - How do I save a receipt to my Obsidian vault?
19
+ - What does the receipts table track?
20
+ locale: en-US
21
+ created: 2026-04-25
22
+ updated: 2026-04-26
23
+ related:
24
+ - features/lifestyle/reading
25
+ - features/lifestyle/travel-bookings
26
+ - features/integrations/mail
27
+ ---
28
+
29
+ # Receipts
30
+
31
+ ## In One Sentence
32
+
33
+ Receipts are PDF / image attachments the Gmail observer flags as
34
+ receipts or invoices; their metadata lives in the `receipts` SQLite
35
+ table, and the agent can export the original file into your external
36
+ Obsidian vault on request.
37
+
38
+ ## What It Does
39
+
40
+ - The Gmail observer auto-detects receipt / invoice attachments while
41
+ scanning travel-booking and document mail.
42
+ - Each detection inserts a row into the `receipts` table
43
+ (`provider_msg_id`, `attachment_id`, `filename`, `mime_type`,
44
+ `size_bytes`, `category`, `obsidian_path`, `saved_at`, `account_id`).
45
+ - The agent surfaces summaries via the `/api/receipts` and
46
+ `/api/receipts/summary` HTTP routes.
47
+ - On request, the agent downloads the attachment via
48
+ `POST /api/receipts/:id/download`, writes it into the external
49
+ Obsidian vault under `receipts/YYYY/MM/<merchant>-<date>.<ext>`, and
50
+ patches the row's `obsidian_path` / `saved_at` columns.
51
+
52
+ There is no Markdown context file for receipts; the durable record is
53
+ the SQLite row plus the optional Obsidian copy.
54
+
55
+ ## Where in the Dashboard
56
+
57
+ There is no dedicated tab today. Receipts surface inline when you ask
58
+ for them in chat (e.g. "what receipts haven't I saved yet?"). The
59
+ underlying API is documented in `agent-assets/skills/receipts/SKILL.md`.
60
+
61
+ ## Configuration
62
+
63
+ The detection runs as part of the Gmail observer; see
64
+ [Mail](../integrations/mail.md). The Obsidian save path follows the
65
+ external vault convention `receipts/YYYY/MM/<merchant>-<date>.<ext>`.
66
+
67
+ ## Related
68
+
69
+ - [Reading](reading.md)
70
+ - [Travel Bookings](travel-bookings.md)
71
+ - [Mail](../integrations/mail.md) — the source observer.
@@ -0,0 +1,44 @@
1
+ ---
2
+ schema_version: 1
3
+ slug: features/lifestyle/travel-bookings
4
+ title: Travel Bookings
5
+ id: travel-bookings
6
+ category: features
7
+ summary: |
8
+ A lightweight log of trips, flights, hotels, and confirmation
9
+ numbers. The agent appends to it from confirmation emails or DMs.
10
+ section: lifestyle
11
+ tags:
12
+ - lifestyle
13
+ - travel
14
+ status: stable
15
+ ask_examples:
16
+ - How do I log a flight?
17
+ - Will the agent remind me about my upcoming trip?
18
+ locale: en-US
19
+ created: 2026-04-25
20
+ updated: 2026-04-25
21
+ related:
22
+ - features/lifestyle/travel-time
23
+ ---
24
+
25
+ # Travel Bookings
26
+
27
+ ## In One Sentence
28
+
29
+ A trip log the agent appends to from confirmation emails and DMs,
30
+ referenced by the morning routine on travel days.
31
+
32
+ ## What It Does
33
+
34
+ - Captures trip dates, modes, and confirmation numbers.
35
+ - Surfaces in the morning routine on the day of departure.
36
+ - Cross-references the travel-time skill for door-to-airport math.
37
+
38
+ ## Where in the Dashboard
39
+
40
+ Surfaces inline in chat and via the morning briefing on travel days.
41
+
42
+ ## Related
43
+
44
+ - [Travel Time](travel-time.md)
@@ -0,0 +1,52 @@
1
+ ---
2
+ schema_version: 1
3
+ slug: features/lifestyle/travel-time
4
+ title: Travel Time
5
+ id: travel-time
6
+ aliases:
7
+ - door to door
8
+ - eta
9
+ category: features
10
+ summary: |
11
+ A skill that estimates door-to-door travel time given an origin
12
+ and destination — used by schedule-approaching reminders for
13
+ events with location.
14
+ section: lifestyle
15
+ tags:
16
+ - lifestyle
17
+ - travel
18
+ - skill
19
+ status: stable
20
+ ask_examples:
21
+ - How long will it take me to get to the airport?
22
+ - Does the agent know about traffic?
23
+ locale: en-US
24
+ created: 2026-04-25
25
+ updated: 2026-04-25
26
+ related:
27
+ - features/lifestyle/travel-bookings
28
+ - features/operations/schedule-approaching
29
+ ---
30
+
31
+ # Travel Time
32
+
33
+ ## In One Sentence
34
+
35
+ A skill the agent calls to estimate door-to-door travel time before
36
+ a calendar event with a location.
37
+
38
+ ## What It Does
39
+
40
+ - Reads origin (current location, configured home/work) and
41
+ destination (event location).
42
+ - Returns a typical-time estimate with mode (drive, transit, walk).
43
+ - Used by `schedule-approaching` reminders to lead-time the alert.
44
+
45
+ ## Where in the Dashboard
46
+
47
+ There is no operator surface for the travel-time data itself; the
48
+ estimates appear inline in event reminders and morning routines.
49
+
50
+ ## Related
51
+
52
+ - [Schedule Approaching](../operations/schedule-approaching.md)
@@ -0,0 +1,105 @@
1
+ ---
2
+ schema_version: 1
3
+ slug: features/memory-files/agent-journal
4
+ title: agent/journal.md
5
+ id: agent-journal
6
+ aliases:
7
+ - journal
8
+ - agent journal
9
+ - agent log
10
+ category: features
11
+ summary: |
12
+ The agent's append-only log of decisions, retros, and judgement
13
+ calls. Distinct from Activity (which is action-shaped) — the journal
14
+ is reflection-shaped.
15
+ section: memory-files
16
+ tags:
17
+ - memory
18
+ - journal
19
+ - reflection
20
+ status: stable
21
+ ask_examples:
22
+ - What is the agent journal?
23
+ - Where does the agent log its own decisions?
24
+ - How is the journal different from Activity?
25
+ locale: en-US
26
+ created: 2026-04-25
27
+ updated: 2026-04-25
28
+ keywords:
29
+ - journal
30
+ - retros
31
+ - decisions
32
+ - reflection
33
+ related:
34
+ - features/routines/evening-review
35
+ - features/routines/weekly-review
36
+ - features/operations/activity-and-conversations
37
+ ui_anchors:
38
+ - /connections/journal
39
+ - /settings/journal
40
+ context_files:
41
+ - agent/journal.md
42
+ ---
43
+
44
+ # agent/journal.md
45
+
46
+ ## In One Sentence
47
+
48
+ `agent/journal.md` is the agent's own running diary — what it noticed,
49
+ what it tried, what it would do differently — appended (never
50
+ rewritten) so a long timeline accumulates.
51
+
52
+ ## What It Does
53
+
54
+ The journal is the place the agent writes about its own work in the
55
+ first person. Each entry has:
56
+
57
+ - A timestamp.
58
+ - A short context line (which routine / conversation prompted it).
59
+ - The reflection itself.
60
+
61
+ Unlike Activity, the journal is opinion-shaped. The evening review
62
+ adds the day's reflections; the weekly retro reads them back to
63
+ look for patterns; the monthly retro distills them into trend notes.
64
+
65
+ ## When It Runs / How It Is Triggered
66
+
67
+ - **Evening review** adds the largest chunk — what worked, what was
68
+ surprising, what felt off.
69
+ - **Weekly review** appends a retro that quotes prior journal entries
70
+ to find a thread.
71
+ - **In-the-moment** entries fire when the agent notices something
72
+ worth flagging during reactive work.
73
+
74
+ ## What It Outputs
75
+
76
+ - An ever-growing append-only file at
77
+ `~/.personal-agent/context/agent/journal.md`.
78
+ - A linked-from-roadmap section when an entry tied a project to a new
79
+ decision.
80
+
81
+ ## Where in the Dashboard
82
+
83
+ - **Connections → Journal** is the read view of the file.
84
+ - **Settings → Journal** controls retention and which routines
85
+ contribute (currently always-on for evening / weekly / monthly).
86
+
87
+ ## Configuration
88
+
89
+ There is no per-entry configuration. The file is plain Markdown — you
90
+ can hand-edit, prune, or git-version it like any other context file.
91
+
92
+ ## When Something Goes Wrong
93
+
94
+ - A journal that **stops growing** points at the evening review not
95
+ running. See [Evening Review](../routines/evening-review.md).
96
+ - A journal that **looks duplicated** usually means a routine retried
97
+ after a fallback. The agent's own anti-duplicate check is best-effort,
98
+ not bulletproof — manual prune is fine.
99
+
100
+ ## Related
101
+
102
+ - [Evening Review](../routines/evening-review.md) — the daily writer.
103
+ - [Weekly Review](../routines/weekly-review.md) — the consumer.
104
+ - [Activity](../operations/activity-and-conversations.md) — the
105
+ action-shaped audit log, distinct from the journal.
@@ -0,0 +1,56 @@
1
+ ---
2
+ schema_version: 1
3
+ slug: features/memory-files/projects
4
+ title: projects/ files
5
+ id: projects
6
+ aliases:
7
+ - project files
8
+ - projects directory
9
+ category: features
10
+ summary: |
11
+ One Markdown file per active project under projects/. Each captures
12
+ the project's why, status, key links, and the per-project log of
13
+ agent activity. Cross-linked from the roadmap.
14
+ section: memory-files
15
+ tags:
16
+ - memory
17
+ - projects
18
+ status: stable
19
+ ask_examples:
20
+ - Where do I find the per-project files?
21
+ - How does the agent decide a project is active?
22
+ locale: en-US
23
+ created: 2026-04-25
24
+ updated: 2026-04-25
25
+ related:
26
+ - features/memory-files/roadmap
27
+ context_files:
28
+ - projects/<slug>.md
29
+ ---
30
+
31
+ # projects/ Files
32
+
33
+ ## In One Sentence
34
+
35
+ One Markdown file per active project; the agent appends notes,
36
+ decisions, and external references over the project's lifetime.
37
+
38
+ ## What It Does
39
+
40
+ - Captures the project's purpose, status, links, recent decisions.
41
+ - Surfaces in the morning routine when the project is active and
42
+ has Preparation Timeline rows.
43
+ - Becomes the canonical reference the agent quotes from in DMs.
44
+
45
+ ## When It Runs / How It Is Triggered
46
+
47
+ Read on demand. Written when the operator asks the agent to
48
+ remember something project-specific.
49
+
50
+ ## Where in the Dashboard
51
+
52
+ - **Knowledge → Context Files → projects/**.
53
+
54
+ ## Related
55
+
56
+ - [roadmap.md](roadmap.md)
@@ -0,0 +1,61 @@
1
+ ---
2
+ schema_version: 1
3
+ slug: features/memory-files/roadmap
4
+ title: roadmap.md
5
+ id: roadmap
6
+ aliases:
7
+ - roadmap
8
+ - long term goals
9
+ - preparation timeline
10
+ category: features
11
+ summary: |
12
+ roadmap.md captures long-running goals plus Preparation Timeline
13
+ rows that fire on specific days. The morning routine walks the
14
+ roadmap each day to surface items whose offsets fire.
15
+ section: memory-files
16
+ tags:
17
+ - memory
18
+ - planning
19
+ - core
20
+ status: stable
21
+ ask_examples:
22
+ - What is the roadmap file?
23
+ - What is a Preparation Timeline?
24
+ - How does the morning routine use the roadmap?
25
+ locale: en-US
26
+ created: 2026-04-25
27
+ updated: 2026-04-25
28
+ related:
29
+ - features/routines/morning-routine
30
+ - features/memory-files/projects
31
+ context_files:
32
+ - roadmap.md
33
+ ---
34
+
35
+ # roadmap.md
36
+
37
+ ## In One Sentence
38
+
39
+ A multi-week plan: each goal carries dates and Preparation Timeline
40
+ rows the morning routine fires on the day of.
41
+
42
+ ## What It Does
43
+
44
+ - Captures long-running goals beyond a single day.
45
+ - Preparation Timeline rows like "T-7 days: book hotel" surface in
46
+ the morning routine on the right day.
47
+ - Cross-links to project files for deeper context.
48
+
49
+ ## When It Runs / How It Is Triggered
50
+
51
+ Read by the morning routine; updated by the operator (or the agent
52
+ on request).
53
+
54
+ ## Where in the Dashboard
55
+
56
+ - **Knowledge → Context Files → roadmap.md**.
57
+
58
+ ## Related
59
+
60
+ - [Morning Routine](../routines/morning-routine.md)
61
+ - [Projects](projects.md)
@@ -0,0 +1,112 @@
1
+ ---
2
+ schema_version: 1
3
+ slug: features/memory-files/schedule
4
+ title: daily/ files
5
+ id: schedule-files
6
+ aliases:
7
+ - schedule directory
8
+ - daily directory
9
+ - per-date schedule
10
+ - daily/YYYY-MM-DD.md
11
+ category: features
12
+ 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.
17
+ section: memory-files
18
+ tags:
19
+ - memory
20
+ - schedule
21
+ - core
22
+ status: stable
23
+ 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
+ locale: en-US
28
+ created: 2026-04-25
29
+ updated: 2026-04-26
30
+ keywords:
31
+ - schedule
32
+ - daily
33
+ - per-date
34
+ - calendar snapshot
35
+ related:
36
+ - features/routines/morning-routine
37
+ - features/memory-files/today
38
+ - concepts/agent-day
39
+ ui_anchors:
40
+ - /schedule
41
+ context_files:
42
+ - daily/<date>.md
43
+ ---
44
+
45
+ # daily/ Files
46
+
47
+ ## In One Sentence
48
+
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.
87
+
88
+ ## Where in the Dashboard
89
+
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.
93
+
94
+ ## Configuration
95
+
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.
99
+
100
+ ## When Something Goes Wrong
101
+
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).
107
+
108
+ ## Related
109
+
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.
@@ -0,0 +1,73 @@
1
+ ---
2
+ schema_version: 1
3
+ slug: features/memory-files/today
4
+ title: today.md
5
+ id: today-md
6
+ aliases:
7
+ - today
8
+ - day plan
9
+ category: features
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.
14
+ section: memory-files
15
+ tags:
16
+ - core
17
+ - memory
18
+ status: stable
19
+ ask_examples:
20
+ - What is in today.md?
21
+ - Can I edit today.md by hand?
22
+ - Why does today.md keep getting rewritten?
23
+ locale: en-US
24
+ created: 2026-04-25
25
+ updated: 2026-04-25
26
+ keywords:
27
+ - today
28
+ - day plan
29
+ related:
30
+ - features/routines/morning-routine
31
+ - features/memory-files/schedule
32
+ - concepts/agent-day
33
+ context_files:
34
+ - today.md
35
+ ---
36
+
37
+ # today.md
38
+
39
+ ## In One Sentence
40
+
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.
44
+
45
+ ## What It Does
46
+
47
+ Sections:
48
+
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.
54
+
55
+ ## When It Runs / How It Is Triggered
56
+
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.
60
+
61
+ ## Where in the Dashboard
62
+
63
+ - **Knowledge → Context Files → today.md** to view and edit.
64
+
65
+ ## When Something Goes Wrong
66
+
67
+ - An empty today.md after the morning hour: see [Morning Routine
68
+ Didn't Run](../../troubleshooting/morning-routine-didnt-run.md).
69
+
70
+ ## Related
71
+
72
+ - [Morning Routine](../routines/morning-routine.md)
73
+ - [schedule/ files](schedule.md)
@@ -0,0 +1,81 @@
1
+ ---
2
+ schema_version: 1
3
+ slug: features/memory-files/user-profile
4
+ title: user/profile.md
5
+ id: user-profile
6
+ aliases:
7
+ - user.md
8
+ - user/profile.md
9
+ - user profile
10
+ - about-me
11
+ category: features
12
+ 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.
16
+ section: memory-files
17
+ tags:
18
+ - memory
19
+ - profile
20
+ - core
21
+ status: stable
22
+ ask_examples:
23
+ - What is user/profile.md?
24
+ - How do I tell the agent something about me?
25
+ - Will the agent change my profile without asking?
26
+ locale: en-US
27
+ created: 2026-04-25
28
+ updated: 2026-04-25
29
+ related:
30
+ - getting-started/04-first-day
31
+ - concepts/memory-model
32
+ 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
39
+ ---
40
+
41
+ # user/profile.md
42
+
43
+ ## In One Sentence
44
+
45
+ A stable, mostly hand-edited profile of you — the agent reads it
46
+ every session and appends only with explicit permission.
47
+
48
+ ## What It Does
49
+
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.
57
+
58
+ ## When It Runs / How It Is Triggered
59
+
60
+ Read continuously. Written only when the operator says "remember
61
+ that…" or during a profile sweep routine
62
+ (`routine.user_profile_sweep`).
63
+
64
+ ## Where in the Dashboard
65
+
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).
72
+
73
+ ## When Something Goes Wrong
74
+
75
+ - The agent forgets something it should remember: append it to
76
+ the appropriate `user/*.md` slice by hand.
77
+
78
+ ## Related
79
+
80
+ - [Memory Model](../../concepts/memory-model.md)
81
+ - [Import a Knowledge File](../../guides/import-knowledge-file.md)