@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
@@ -14,11 +14,12 @@ summary: |
14
14
  How to use `!trace <topic>` to reconstruct the evolution of an
15
15
  idea across your raw / wiki / outputs layers, and `!connect <a>
16
16
  <b>` to find bridges between two domains.
17
- section: explore-with-trace-and-connect
17
+ section: guides
18
18
  tags:
19
- - guide
19
+ - guides
20
20
  - wiki
21
21
  - exploration
22
+ - bang-commands
22
23
  status: stable
23
24
  ask_examples:
24
25
  - How do I trace an idea across the wiki?
@@ -26,13 +27,27 @@ ask_examples:
26
27
  - How do I find connections between two topics?
27
28
  - Where does the !trace output land?
28
29
  - Can I use multi-word topics with !connect?
30
+ - How do I run !trace against a non-default wiki workspace?
29
31
  locale: en-US
30
32
  created: 2026-05-12
31
- updated: 2026-05-12
33
+ updated: 2026-05-28
34
+ keywords:
35
+ - "!trace"
36
+ - "!connect"
37
+ - wiki exploration
38
+ - topic history
39
+ - topic bridges
40
+ - bridging domains
41
+ prerequisites:
42
+ - guides/build-your-wiki
32
43
  related:
33
44
  - features/wiki/overview
34
45
  - features/wiki/commands
35
46
  - guides/maintain-wiki-health
47
+ - features/messaging/bang-commands
48
+ process_keys:
49
+ - wiki.trace
50
+ - wiki.connect
36
51
  ui_anchors:
37
52
  - /wiki/timeline
38
53
  - /settings/wiki
@@ -40,10 +55,16 @@ ui_anchors:
40
55
 
41
56
  # Explore Your Wiki with `!trace` and `!connect`
42
57
 
43
- `!trace` and `!connect` are the two Phase 3 exploration commands.
44
- Both produce a one-off output document in `30_outputs/` and never
45
- touch your raw or wiki notes. Think of them as cited essays
46
- written from what your wiki actually contains.
58
+ `!trace` and `!connect` are the two wiki exploration commands. Both
59
+ produce a one-off output document in `30_outputs/` and never touch
60
+ your raw or wiki notes. Think of them as cited essays written from
61
+ what your wiki actually contains.
62
+
63
+ Both run as owner-DM bang commands. Both also accept an optional
64
+ leading `@<workspace>` token to target a non-default wiki workspace
65
+ — for example `!trace @research formal methods` or
66
+ `!connect @research category theory, distributed systems`. Omit the
67
+ token and the command runs against your default workspace.
47
68
 
48
69
  ## `!trace <topic>` — Time-Based Exploration
49
70
 
@@ -108,13 +129,15 @@ your wiki. The agent surfaces four kinds of bridges:
108
129
 
109
130
  ### Argument Forms
110
131
 
111
- `!connect` requires exactly two topics. Whitespace separates them
112
- by default; a comma lets you use multi-word topics:
132
+ `!connect` requires exactly two topics (after any optional
133
+ `@<workspace>` token). Whitespace separates them by default; a
134
+ comma lets you use multi-word topics:
113
135
 
114
136
  ```
115
137
  !connect quantum gravity
116
138
  !connect quantum computing, classical computing
117
139
  !connect category theory, distributed systems
140
+ !connect @research category theory, distributed systems
118
141
  ```
119
142
 
120
143
  The handler rejects a single topic, three-or-more topics, a
@@ -3,18 +3,21 @@ schema_version: 1
3
3
  slug: guides/import-knowledge-file
4
4
  title: Import a Knowledge File
5
5
  id: import-knowledge-file
6
+ aliases:
7
+ - import history
8
+ - import chatgpt
9
+ - import gemini
10
+ - knowledge import
6
11
  category: guides
7
12
  summary: |
8
13
  Upload a Markdown or text file of personal facts so the agent folds
9
- it into your user/*.md Context Files. Includes step-by-step recipes
10
- for exporting your existing profile out of ChatGPT and Gemini.
14
+ it into your identity/*.md Context Files. Includes step-by-step
15
+ recipes for exporting your existing profile out of ChatGPT and Gemini.
11
16
  section: import-knowledge-file
12
17
  tags:
13
- - guide
18
+ - guides
14
19
  - knowledge
15
20
  - import
16
- - chatgpt
17
- - gemini
18
21
  - memory
19
22
  status: stable
20
23
  ask_examples:
@@ -24,9 +27,23 @@ ask_examples:
24
27
  - What format does the Knowledge upload accept?
25
28
  locale: en-US
26
29
  created: 2026-04-28
27
- updated: 2026-04-28
30
+ updated: 2026-05-28
28
31
  ui_anchors:
29
32
  - /knowledge
33
+ keywords:
34
+ - import
35
+ - chatgpt history
36
+ - gemini history
37
+ - knowledge
38
+ - profile
39
+ process_keys:
40
+ - knowledge.import
41
+ api_endpoints:
42
+ - POST /api/knowledge/import
43
+ context_files:
44
+ - identity/profile.md
45
+ - identity/people.md
46
+ - journal/agent.md
30
47
  related:
31
48
  - concepts/memory-model
32
49
  - features/memory-files/user-profile
@@ -40,20 +57,21 @@ related:
40
57
  Bring a single Markdown (`.md`, `.markdown`) or plain-text (`.txt`)
41
58
  file you wrote elsewhere — a hand-written profile, an Obsidian or
42
59
  Notion export, or a summary you produced in ChatGPT / Gemini — into
43
- Aitne's `user/*.md` Context Files. The agent reads the file once and
44
- appends each fact verbatim into the right topic file. Existing bullets
45
- are never overwritten; identity-class facts are deferred for your
46
- explicit confirmation.
60
+ Aitne's `identity/*.md` Context Files. The agent reads the file once
61
+ and appends each fact verbatim into the right topic file. Existing
62
+ bullets are never overwritten; identity-class facts are deferred for
63
+ your explicit confirmation.
47
64
 
48
65
  ## Prerequisites
49
66
 
50
- - Initial setup is complete (`rules/management.md` saved). Pre-setup
67
+ - Initial setup is complete (`policies/management.md` saved). Pre-setup
51
68
  imports are rejected with `409 setup_incomplete` because the
52
- `user/*.md` skeleton has not been seeded yet.
53
- - At least one backend (Claude, Codex, or Gemini CLI) is authenticated
54
- with a CLI binary on `PATH`.
55
- - The file is at most **64 KB after UTF-8 encoding** (Japanese / non-
56
- ASCII characters take 3 bytes each 21 K Japanese characters).
69
+ `identity/*.md` skeleton has not been seeded yet.
70
+ - At least one backend (Claude, Codex, Gemini CLI, or OpenCode) is
71
+ authenticated and runnable — enabled, with its CLI binary on `PATH`.
72
+ - The file is at most **64 KB after UTF-8 encoding** (non-ASCII
73
+ characters take up to 3 bytes each, so a Unicode-heavy file holds
74
+ fewer characters than its byte budget suggests).
57
75
  - The file does not contain private keys, API tokens, or credentials.
58
76
  The route rejects these at upload time and never persists them.
59
77
 
@@ -62,12 +80,12 @@ explicit confirmation.
62
80
  | Class of fact | Target Context File |
63
81
  |---|---|
64
82
  | Identity (legal name, primary timezone, primary language, DOB, primary email/phone) | **Deferred for confirmation** — surfaced in the closing journal entry; never auto-written. |
65
- | Relationships (family, partners, close friends) | `user/people.md` |
66
- | Work, employer, role, colleagues | `user/work.md` |
67
- | Skills, expertise, languages spoken | `user/expertise.md` |
68
- | Lifestyle, hobbies, preferences, health | `user/personal.md` |
69
- | Goals, aspirations, current focus | `user/goals.md` |
70
- | Anything else | `user/profile.md` under `## Misc` |
83
+ | Relationships (family, partners, close friends) | `identity/people.md` |
84
+ | Work, employer, role, colleagues | `identity/work.md` |
85
+ | Skills, expertise, languages spoken | `identity/expertise.md` |
86
+ | Lifestyle, hobbies, preferences, health | `identity/personal.md` |
87
+ | Goals, aspirations, current focus | `identity/goals.md` |
88
+ | Anything else | `identity/profile.md` under `## Misc` |
71
89
 
72
90
  Conflicts (a source bullet that contradicts an existing bullet) land in
73
91
  a `## Pending Conflicts` section on the affected file with the upload
@@ -87,7 +105,8 @@ date inline, so you can resolve them later without losing data.
87
105
  have at least one model available. Pick `Use default routing` to
88
106
  let the daemon's main backend run it.
89
107
  5. Click **Import**. The form returns immediately with a 202 + trace id
90
- — the heavy-tier session runs in the background.
108
+ — the import session (`knowledge.import`, medium tier) runs in the
109
+ background.
91
110
  6. Watch progress under the linked **Activity** view (filtered by the
92
111
  trace id) and review the resulting bullets under
93
112
  `/knowledge?tab=context-files` once the run finishes.
@@ -100,11 +119,11 @@ date inline, so you can resolve them later without losing data.
100
119
  session completes (typically 30 s to 2 min depending on file size
101
120
  and backend).
102
121
  - The agent appends a single `## YYYY-MM-DD knowledge import` block to
103
- `agent/journal.md` summarising the run — counts of facts written /
122
+ `journal/agent.md` summarising the run — counts of facts written /
104
123
  skipped, pending conflicts, and identity-class facts awaiting
105
124
  confirmation.
106
- - Open each affected `user/*.md` file under Context Files. New bullets
107
- should be verbatim copies of lines in your source file.
125
+ - Open each affected `identity/*.md` file under Context Files. New
126
+ bullets should be verbatim copies of lines in your source file.
108
127
 
109
128
  ## If It Fails
110
129
 
@@ -119,16 +138,18 @@ date inline, so you can resolve them later without losing data.
119
138
  - **`409 setup_incomplete`** — finish the setup wizard first
120
139
  (`/setup`).
121
140
  - **`No authenticated backends`** in the Execution agent dropdown —
122
- set up a backend under ConnectionsBackends, then return.
141
+ authenticate a backend under SettingsModels (`/settings/models`),
142
+ then return. The dropdown lists only backends that are enabled and
143
+ whose CLI binary is on `PATH`.
123
144
 
124
145
  ---
125
146
 
126
- # Recipe: Export your profile from ChatGPT
147
+ ## Recipe: Export your profile from ChatGPT
127
148
 
128
149
  OpenAI does not ship a one-click "export as Markdown" button, but the
129
150
  following two paths produce a file that uploads cleanly.
130
151
 
131
- ## Recommended: ask ChatGPT to write it for you (≈ 2 min)
152
+ ### Recommended: ask ChatGPT to write it for you (≈ 2 min)
132
153
 
133
154
  Works against ChatGPT's *Memory* feature — the model already holds a
134
155
  list of personal facts about you. This procedure asks it to dump them
@@ -170,7 +191,7 @@ in the exact format the upload expects.
170
191
  imported — the upload writes facts verbatim.
171
192
  5. Upload via Knowledge → Upload, with **Source** = `Other`.
172
193
 
173
- ## Comprehensive: official Data Export → convert (≈ 30 min, large)
194
+ ### Comprehensive: official Data Export → convert (≈ 30 min, large)
174
195
 
175
196
  Use this when you want to seed Aitne with the *complete* history.
176
197
  Output is bulky and requires manual filtering.
@@ -193,7 +214,7 @@ Output is bulky and requires manual filtering.
193
214
  upload one at a time.
194
215
  5. Upload via Knowledge → Upload, with **Source** = `Other`.
195
216
 
196
- ## Bonus: copy your saved memory list
217
+ ### Bonus: copy your saved memory list
197
218
 
198
219
  ChatGPT's Memory page exposes the structured fact list directly.
199
220
 
@@ -205,13 +226,13 @@ ChatGPT's Memory page exposes the structured fact list directly.
205
226
 
206
227
  ---
207
228
 
208
- # Recipe: Export your profile from Gemini
229
+ ## Recipe: Export your profile from Gemini
209
230
 
210
231
  Google Gemini's options mirror ChatGPT's at a high level — no native
211
232
  Markdown export, but the in-conversation prompt method works the same
212
233
  way, and Google Takeout produces a comprehensive archive.
213
234
 
214
- ## Recommended: ask Gemini to write it for you (≈ 2 min)
235
+ ### Recommended: ask Gemini to write it for you (≈ 2 min)
215
236
 
216
237
  1. Open <https://gemini.google.com> and start a **new conversation**.
217
238
  The model uses **Saved info** (the Gemini equivalent of ChatGPT's
@@ -222,7 +243,7 @@ way, and Google Takeout produces a comprehensive archive.
222
243
  3. Copy the response into `gemini-profile.md`, skim, and upload via
223
244
  Knowledge → Upload with **Source** = `Other`.
224
245
 
225
- ## Comprehensive: Google Takeout (≈ 1 hr, archive may take longer)
246
+ ### Comprehensive: Google Takeout (≈ 1 hr, archive may take longer)
226
247
 
227
248
  1. Visit <https://takeout.google.com>.
228
249
  2. **Deselect all**, then check **Gemini Apps Activity** (and
@@ -237,7 +258,7 @@ way, and Google Takeout produces a comprehensive archive.
237
258
  them under the right H2 headings, save as `gemini-export.md`,
238
259
  keep under 64 KB, upload.
239
260
 
240
- ## Bonus: copy your Saved info list
261
+ ### Bonus: copy your Saved info list
241
262
 
242
263
  1. Open Gemini → click your avatar / settings → **Saved info**.
243
264
  2. Copy each saved row into a new `gemini-saved-info.md` under the
@@ -254,11 +275,11 @@ way, and Google Takeout produces a comprehensive archive.
254
275
  for personal facts. This is easier to review than one large mixed
255
276
  upload.
256
277
  - **Edit before you upload.** The agent writes verbatim. Anything in
257
- the file *will* land in `user/*.md` (after dedup and identity-class
258
- deferral). Trim aggressively.
278
+ the file *will* land in `identity/*.md` (after dedup and
279
+ identity-class deferral). Trim aggressively.
259
280
  - **Identity is special.** Even if your file says
260
281
  `- Name: <Your Name>`, the agent will *not* write it to
261
- `user/profile.md`. It surfaces in the journal entry instead, where
282
+ `identity/profile.md`. It surfaces in the journal entry instead, where
262
283
  you can confirm and accept it via the dashboard.
263
284
  - **Conflicts are flagged, not merged.** If your file contradicts an
264
285
  existing bullet, the agent appends the new bullet to a
@@ -271,5 +292,5 @@ way, and Google Takeout produces a comprehensive archive.
271
292
  ## Related
272
293
 
273
294
  - [Memory Model](../concepts/memory-model.md)
274
- - [user/profile.md](../features/memory-files/user-profile.md)
295
+ - [identity/profile.md](../features/memory-files/user-profile.md)
275
296
  - [First Day](../getting-started/04-first-day.md)
@@ -3,30 +3,46 @@ schema_version: 1
3
3
  slug: guides/install-and-run
4
4
  title: Install and Run
5
5
  id: install-and-run
6
+ aliases:
7
+ - install
8
+ - installation
9
+ - first install
10
+ - first run
11
+ - get aitne running
6
12
  category: guides
7
13
  summary: |
8
- Clone the repo, run pnpm install, run pnpm start. The daemon and
9
- dashboard start in the background; the dashboard opens at :3000.
14
+ Install Aitne via the npm package (or clone the repo for development),
15
+ start the daemon and dashboard, and open the dashboard at :8322.
16
+ section: install-and-run
10
17
  tags:
18
+ - core
19
+ - guides
20
+ - getting-started
11
21
  - install
12
22
  - setup
23
+ - operations
13
24
  status: stable
14
25
  ask_examples:
15
26
  - How do I install Aitne?
16
27
  - What command starts the daemon?
17
28
  - Where does Aitne put its data?
29
+ - How do I install the aitne npm package?
18
30
  locale: en-US
19
31
  created: 2026-04-25
20
- updated: 2026-04-27
32
+ updated: 2026-05-28
21
33
  keywords:
22
34
  - install
23
35
  - first run
24
36
  - pnpm
25
- - pa start
37
+ - npm install -g @aitne-sh/aitne
38
+ - aitne start
39
+ - PA_DATA_DIR
40
+ - node 22
26
41
  related:
27
42
  - reference/cli-commands
28
43
  - guides/reinstall-cleanly
29
44
  - guides/migrate-machines
45
+ - getting-started/02-first-steps
30
46
  ---
31
47
 
32
48
  # Install and Run
@@ -51,31 +67,60 @@ through the setup wizard.
51
67
  CLI, or Gemini CLI) installed on `PATH`.
52
68
  - ~200 MB of disk for the daemon's local state.
53
69
 
54
- ## Steps
70
+ ## Install
71
+
72
+ Pick one path. Most people want the npm package; clone the repo only if
73
+ you intend to develop Aitne itself.
74
+
75
+ ### Option A — npm package (recommended)
76
+
77
+ ```bash
78
+ npm install -g @aitne-sh/aitne
79
+ aitne start
80
+ ```
81
+
82
+ `aitne start` launches the daemon and dashboard in the background. The
83
+ package ships prebuilt, so there is no build step.
84
+
85
+ ### Option B — clone the repo (development)
86
+
87
+ ```bash
88
+ git clone <repo> personal_agent && cd personal_agent
89
+ pnpm install
90
+ pnpm start
91
+ ```
92
+
93
+ `pnpm start` builds first when the source is stale (mtime check against
94
+ `.buildstamp`), then launches the daemon + dashboard detached. The
95
+ `pnpm <cmd>` scripts are thin aliases that forward to
96
+ `node bin/aitne.mjs <cmd>`.
97
+
98
+ ### Then, for both paths
55
99
 
56
- 1. `git clone <repo> personal_agent && cd personal_agent`
57
- 2. `pnpm install`
58
- 3. `pnpm start` — builds (if stale) and launches daemon + dashboard
59
- in the background.
60
- 4. Open `http://localhost:3000` and follow the setup wizard.
100
+ Open `http://localhost:8322` and follow the setup wizard.
61
101
 
62
102
  ## Verification
63
103
 
64
- - `pnpm status` shows two PIDs (daemon + dashboard) and a green health
65
- pill.
66
- - `~/.personal-agent/` has been created with `data/personal_agent.db`,
67
- `context/`, and the log directory.
104
+ - `aitne status` (or `pnpm status` from a clone) shows two PIDs (daemon
105
+ + dashboard), uptime, connected backends, and a green health pill.
106
+ - `~/.personal-agent/` has been created, containing
107
+ `data/personal_agent.db`, `context/`, and `logs/`.
68
108
 
69
109
  ## If It Fails
70
110
 
71
- - A port conflict — set `PA_API_PORT` (default 8321) or
72
- `PA_DASHBOARD_PORT` (default 3000).
73
- - Build errors during `pnpm start`: run `pnpm clean && pnpm build`
74
- for verbose output.
111
+ - **Port conflict** — set `PA_API_PORT` (default `8321`) or
112
+ `PA_DASHBOARD_PORT` (default `8322`) before starting.
113
+ - **Diagnose the install** run `aitne doctor` (`pnpm doctor` from a
114
+ clone). It checks Node, ports, keychain, CLI binaries, and native
115
+ bindings, and exits non-zero on any hard failure.
116
+ - **Build errors (clone only)** — rebuild verbosely with `pnpm build`.
117
+ If that still fails, `pnpm clean` removes `node_modules`,
118
+ `.buildstamp`, and Turbo's cache, after which you must re-run
119
+ `pnpm install` before building again.
75
120
 
76
121
  ## Related
77
122
 
78
- - [CLI Commands](../reference/cli-commands.md) — full `pa` command
123
+ - [CLI Commands](../reference/cli-commands.md) — full `aitne` command
79
124
  list and environment overrides.
80
125
  - [Setup Wizard](setup-wizard.md) — what each wizard step does.
81
126
  - [Reinstall Cleanly](reinstall-cleanly.md) — wipe and start over.
@@ -16,7 +16,7 @@ summary: |
16
16
  approval before promoting them.
17
17
  section: maintain-wiki-health
18
18
  tags:
19
- - guide
19
+ - guides
20
20
  - wiki
21
21
  - health
22
22
  status: stable
@@ -28,15 +28,33 @@ ask_examples:
28
28
  - What is a taxonomy candidate?
29
29
  locale: en-US
30
30
  created: 2026-05-12
31
- updated: 2026-05-12
31
+ updated: 2026-05-28
32
+ keywords:
33
+ - wiki health
34
+ - wiki lint
35
+ - wiki maintenance
36
+ - wiki freshness
37
+ - orphan notes
38
+ - taxonomy candidates
32
39
  related:
33
40
  - features/wiki/overview
34
41
  - features/wiki/commands
42
+ - features/wiki/cost-and-approval
35
43
  - guides/explore-with-trace-and-connect
44
+ process_keys:
45
+ - wiki.lint
46
+ - wiki.compile
47
+ - wiki.ingest_url
48
+ - wiki.ask
49
+ - wiki.trace
50
+ api_endpoints:
51
+ - /api/wiki/:workspace/files/:path{.+}
52
+ - /api/wiki/:workspace/health
36
53
  ui_anchors:
37
54
  - /wiki
38
55
  - /wiki/timeline
39
56
  - /settings/wiki
57
+ - /settings/wiki/timeline
40
58
  ---
41
59
 
42
60
  # Maintain Wiki Health
@@ -49,9 +67,10 @@ notes itself.
49
67
 
50
68
  ## When to Run
51
69
 
52
- `!lint` is cheap (Sonnet medium tier, default $0.50 envelope) and
53
- non-destructive. Run it whenever you want a snapshot of wiki
54
- health. A practical cadence:
70
+ `!lint` runs on the `wiki.lint` process key (medium tier Sonnet
71
+ by default, $1.00 budget envelope) and never changes your notes.
72
+ Run it whenever you want a snapshot of wiki health. A practical
73
+ cadence:
55
74
 
56
75
  - **Weekly**, after a busy ingest week, to catch orphans early.
57
76
  - **Before promoting a candidate** to the taxonomy or graduating
@@ -98,9 +117,8 @@ makes the change visible.
98
117
 
99
118
  Open **My Life → Wiki → Timeline & health** (`/wiki/timeline`). The
100
119
  page is also reachable from a button at the top of `/settings/wiki`,
101
- and the legacy `/settings/wiki/timeline` URL redirects here so old
102
- bookmarks still work. The most-recent report is parsed and rendered
103
- with:
120
+ and the same view is mirrored under `/settings/wiki/timeline`. The
121
+ most-recent report is parsed and rendered with:
104
122
 
105
123
  - A coloured date badge.
106
124
  - The `## Summary` bullets.
@@ -130,6 +148,18 @@ item:
130
148
  update `90_meta/taxonomy.md` manually so future ingests pick the
131
149
  right name.
132
150
 
151
+ For example, if the report flags `formal-methods.md` as an orphan,
152
+ you might first ask the agent whether it still matters, then either
153
+ link it or archive it:
154
+
155
+ ```
156
+ !ask Is formal-methods still relevant, or has it been folded into another note?
157
+ ```
158
+
159
+ If the answer says it's superseded, archive the note; otherwise add
160
+ a `[[formal-methods]]` link from a related article and re-run
161
+ `!compile` so the index picks it up.
162
+
133
163
  ## Taxonomy Candidates
134
164
 
135
165
  When `!lint` finds a concept appearing repeatedly that isn't yet
@@ -161,8 +191,9 @@ chokepoint, so:
161
191
 
162
192
  - It's visible to `!ask` (you can literally ask "what did the last
163
193
  lint find?").
164
- - The DM read-only surface (`/api/wiki/.../files/90_meta/health/...`)
165
- serves it back to a DM-agent for follow-up questions.
194
+ - The DM read-only surface
195
+ (`GET /api/wiki/:workspace/files/90_meta/health/<date>.md`) serves
196
+ it back to a DM-agent for follow-up questions.
166
197
  - Internal-mode workspaces snapshot the previous version into
167
198
  `.snapshots/` before each rewrite; external-mode relies on your
168
199
  git or cloud sync.
@@ -3,20 +3,35 @@ schema_version: 1
3
3
  slug: guides/migrate-machines
4
4
  title: Migrate Machines
5
5
  id: migrate-machines
6
+ aliases:
7
+ - migrate
8
+ - move machines
9
+ - transfer install
10
+ - move install
6
11
  category: guides
7
12
  summary: |
8
- Move a Aitne install to a new machine — install the daemon,
9
- copy the context directory, re-pair messaging apps.
13
+ Move an Aitne install to a new machine — install the daemon, copy
14
+ the data directory, re-pair messaging apps. The DB carries cleanly
15
+ because schema migrations auto-forward at boot.
10
16
  section: migrate-machines
11
17
  tags:
12
- - guide
18
+ - guides
13
19
  - operations
20
+ - migration
21
+ - backup
14
22
  status: stable
15
23
  ask_examples:
16
24
  - Can I move Aitne to a new laptop?
25
+ - Will my DB still work after upgrading on the new machine?
17
26
  locale: en-US
18
27
  created: 2026-04-25
19
- updated: 2026-04-25
28
+ updated: 2026-05-28
29
+ keywords:
30
+ - migrate
31
+ - move install
32
+ - PA_DATA_DIR
33
+ - rsync
34
+ - second machine
20
35
  related:
21
36
  - guides/backup-and-restore
22
37
  - guides/reinstall-cleanly
@@ -24,29 +39,82 @@ related:
24
39
 
25
40
  # Migrate Machines
26
41
 
27
- ## Goal
28
-
29
42
  Carry your Aitne identity to a new machine without losing
30
- context-file history.
43
+ context-file history or activity logs.
44
+
45
+ ## What Moves and What Doesn't
46
+
47
+ | Carries cleanly | Re-do on the new machine |
48
+ |---|---|
49
+ | `~/.personal-agent/context/` (Markdown memory) | OS-keychain secrets (Anthropic / OpenAI / Google API keys) |
50
+ | `~/.personal-agent/data/personal_agent.db` (sessions, actions, observations, FTS) | Messaging pairing tokens (Slack / Telegram / Discord / WhatsApp) |
51
+ | `~/.personal-agent/logs/` (optional — for reference) | Integration OAuth grants (Gmail / Google Calendar / Notion) |
52
+
53
+ The DB carries cleanly even across daemon versions: at boot, Aitne
54
+ runs forward-only migrations from `packages/daemon/src/db/migrations.ts`
55
+ that bring older schemas up to the current shape. As long as you're
56
+ upgrading (not downgrading), the same DB works.
31
57
 
32
58
  ## Steps
33
59
 
34
- 1. On the old machine: `pa stop`.
35
- 2. Copy `~/.personal-agent/context/` to the new machine.
36
- 3. On the new machine: install per [Install and Run](install-and-run.md).
37
- 4. Optionally copy `data/personal_agent.db` (skip if upgrading daemon versions).
38
- 5. Re-pair messaging apps and re-authorize integrations.
60
+ 1. **On the old machine:** stop the daemon.
61
+ ```bash
62
+ aitne stop
63
+ ```
64
+ 2. **Copy the data directory** to the new machine — context plus DB.
65
+ ```bash
66
+ rsync -av ~/.personal-agent/ user@new-host:~/.personal-agent/
67
+ ```
68
+ (Or rsync just `context/` and `data/` if you want to skip logs.)
69
+ 3. **On the new machine:** install per [Install and Run](install-and-run.md).
70
+ 4. **Re-register secrets and re-pair messaging** through the dashboard:
71
+ - Re-register each backend's API key, or re-run its CLI auth flow for
72
+ the subscription path: `claude auth login`, `codex login`, or for
73
+ Gemini run `gemini` and choose **Sign in with Google**.
74
+ - Walk the setup wizard's messaging pairing steps for each app you
75
+ had paired.
76
+ - Re-authorize each integration's OAuth grant (Gmail / Calendar /
77
+ Notion are the common ones).
78
+ 5. Start the daemon.
79
+ ```bash
80
+ aitne start
81
+ ```
82
+
83
+ On first boot the migration runner brings the carried DB up to the
84
+ new daemon's schema. Check the daemon log if you want to see exactly
85
+ which migrations applied:
86
+
87
+ ```bash
88
+ aitne logs -n 200 | grep -i migration
89
+ ```
39
90
 
40
- ## Verification
91
+ ## Verify
41
92
 
42
- - Context files match.
43
- - Routines fire on the new machine's schedule.
93
+ - `aitne status` reports today's action count and spend, the connected
94
+ platforms, and uptime confirming the daemon booted against the
95
+ carried DB.
96
+ - The dashboard's activity feed contains your historical rows; `aitne
97
+ audit --since 30d` lists the same past actions you had on the old
98
+ machine.
99
+ - Routines fire on the new machine's local schedule (timezone follows
100
+ the OS).
44
101
 
45
102
  ## If It Fails
46
103
 
47
- - OS-keychain credentials don't move automatically — re-authorize
48
- each backend on the new machine.
104
+ - **OS-keychain credentials don't move automatically**Step 4 is the
105
+ fix.
106
+ - **The daemon won't start with a SQLite error.** Read
107
+ `aitne logs -n 200` for the failing migration. If the DB is genuinely
108
+ corrupt, the last resort is
109
+ [Reinstall Cleanly](reinstall-cleanly.md) — but context files survive
110
+ that, so you only lose action history.
111
+ - **You downgraded the daemon by accident.** Migrations are forward-
112
+ only; reinstall the newer version (`npm i -g @aitne-sh/aitne`) and
113
+ retry.
49
114
 
50
115
  ## Related
51
116
 
52
- - [Backup and Restore](backup-and-restore.md)
117
+ - [Backup and Restore](backup-and-restore.md) — the source for the data
118
+ you carry.
119
+ - [Install and Run](install-and-run.md) — Step 3 in detail.
120
+ - [Schema Migration](../glossary.md#schema-migration)