@aitne-sh/aitne 0.1.8 → 0.1.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (276) hide show
  1. package/README.md +218 -161
  2. package/agent-assets/agent-profiles/_safety.md +3 -3
  3. package/agent-assets/agent-profiles/browser-task.md +108 -0
  4. package/agent-assets/agent-profiles/conversational.md +3 -3
  5. package/agent-assets/agent-profiles/profile-importer.md +2 -2
  6. package/agent-assets/agent-profiles/routine-fetch-window.md +30 -19
  7. package/agent-assets/agents/context-index-reconcile/agent.md +52 -0
  8. package/agent-assets/agents/evening-review/agent.md +53 -0
  9. package/agent-assets/agents/hourly-check/agent.md +62 -0
  10. package/agent-assets/agents/monthly-review/agent.md +55 -0
  11. package/agent-assets/agents/morning-routine/agent.md +78 -0
  12. package/agent-assets/agents/roadmap-maintenance/agent.md +52 -0
  13. package/agent-assets/agents/skill-curation/agent.md +52 -0
  14. package/agent-assets/agents/user-profile-sweep-evening/agent.md +48 -0
  15. package/agent-assets/agents/user-profile-sweep-morning/agent.md +53 -0
  16. package/agent-assets/agents/weekly-review/agent.md +51 -0
  17. package/agent-assets/docs/concepts/agent-day.md +13 -11
  18. package/agent-assets/docs/concepts/auth-health.md +47 -10
  19. package/agent-assets/docs/concepts/backends-and-tiers.md +66 -31
  20. package/agent-assets/docs/concepts/costs-and-quotas.md +50 -15
  21. package/agent-assets/docs/concepts/delegated-mode.md +52 -13
  22. package/agent-assets/docs/concepts/memory-model.md +72 -32
  23. package/agent-assets/docs/concepts/observations.md +49 -11
  24. package/agent-assets/docs/concepts/process-keys.md +56 -22
  25. package/agent-assets/docs/concepts/routines.md +60 -33
  26. package/agent-assets/docs/concepts/safety-and-execution.md +50 -21
  27. package/agent-assets/docs/concepts/safety-model.md +42 -34
  28. package/agent-assets/docs/concepts/skills.md +33 -17
  29. package/agent-assets/docs/features/integrations/browser-history.md +195 -0
  30. package/agent-assets/docs/features/integrations/calendar.md +39 -29
  31. package/agent-assets/docs/features/integrations/git.md +18 -7
  32. package/agent-assets/docs/features/integrations/github.md +84 -33
  33. package/agent-assets/docs/features/integrations/mail.md +59 -16
  34. package/agent-assets/docs/features/integrations/notion.md +18 -6
  35. package/agent-assets/docs/features/integrations/obsidian.md +28 -5
  36. package/agent-assets/docs/features/lifestyle/git.md +42 -38
  37. package/agent-assets/docs/features/lifestyle/reading.md +50 -22
  38. package/agent-assets/docs/features/lifestyle/receipts.md +51 -21
  39. package/agent-assets/docs/features/lifestyle/travel-bookings.md +76 -14
  40. package/agent-assets/docs/features/memory-files/agent-journal.md +111 -50
  41. package/agent-assets/docs/features/memory-files/projects.md +71 -17
  42. package/agent-assets/docs/features/memory-files/roadmap.md +50 -10
  43. package/agent-assets/docs/features/memory-files/schedule.md +113 -70
  44. package/agent-assets/docs/features/memory-files/today.md +46 -21
  45. package/agent-assets/docs/features/memory-files/user-profile.md +63 -33
  46. package/agent-assets/docs/features/messaging/bang-commands.md +113 -36
  47. package/agent-assets/docs/features/messaging/dashboard-chat.md +43 -21
  48. package/agent-assets/docs/features/messaging/discord.md +35 -4
  49. package/agent-assets/docs/features/messaging/overview.md +37 -19
  50. package/agent-assets/docs/features/messaging/pairing-and-magic-phrase.md +94 -27
  51. package/agent-assets/docs/features/messaging/slack.md +67 -14
  52. package/agent-assets/docs/features/messaging/telegram.md +18 -5
  53. package/agent-assets/docs/features/messaging/whatsapp.md +71 -17
  54. package/agent-assets/docs/features/operations/activity-and-conversations.md +44 -15
  55. package/agent-assets/docs/features/operations/approvals.md +48 -16
  56. package/agent-assets/docs/features/operations/backend-routing.md +68 -16
  57. package/agent-assets/docs/features/operations/cost-tracking.md +84 -17
  58. package/agent-assets/docs/features/operations/managed-chromium.md +221 -0
  59. package/agent-assets/docs/features/operations/notifications.md +52 -11
  60. package/agent-assets/docs/features/operations/quiet-hours.md +63 -40
  61. package/agent-assets/docs/features/operations/schedule-approaching.md +54 -24
  62. package/agent-assets/docs/features/routines/custom-routines.md +88 -20
  63. package/agent-assets/docs/features/routines/evening-review.md +74 -21
  64. package/agent-assets/docs/features/routines/hourly-check.md +149 -29
  65. package/agent-assets/docs/features/routines/morning-routine.md +53 -35
  66. package/agent-assets/docs/features/routines/weekly-review.md +40 -21
  67. package/agent-assets/docs/features/wiki/commands.md +26 -16
  68. package/agent-assets/docs/features/wiki/cost-and-approval.md +240 -0
  69. package/agent-assets/docs/features/wiki/dashboard.md +255 -0
  70. package/agent-assets/docs/features/wiki/overview.md +68 -10
  71. package/agent-assets/docs/features/wiki/search.md +248 -0
  72. package/agent-assets/docs/features/wiki/workspaces.md +254 -0
  73. package/agent-assets/docs/getting-started/01-what-is-this.md +34 -23
  74. package/agent-assets/docs/getting-started/02-first-steps.md +13 -8
  75. package/agent-assets/docs/getting-started/03-what-can-this-do.md +25 -14
  76. package/agent-assets/docs/getting-started/04-first-day.md +38 -20
  77. package/agent-assets/docs/glossary.md +235 -24
  78. package/agent-assets/docs/guides/add-a-custom-routine.md +63 -23
  79. package/agent-assets/docs/guides/backup-and-restore.md +80 -16
  80. package/agent-assets/docs/guides/budget-and-cost-for-wiki.md +56 -25
  81. package/agent-assets/docs/guides/build-your-wiki.md +22 -9
  82. package/agent-assets/docs/guides/change-which-model-handles-x.md +64 -10
  83. package/agent-assets/docs/guides/connect-a-new-mail-account.md +64 -15
  84. package/agent-assets/docs/guides/explore-with-trace-and-connect.md +28 -11
  85. package/agent-assets/docs/guides/import-knowledge-file.md +50 -40
  86. package/agent-assets/docs/guides/install-and-run.md +48 -19
  87. package/agent-assets/docs/guides/maintain-wiki-health.md +35 -10
  88. package/agent-assets/docs/guides/migrate-machines.md +74 -18
  89. package/agent-assets/docs/guides/multiple-wikis-for-multiple-domains.md +111 -60
  90. package/agent-assets/docs/guides/pause-the-agent.md +65 -24
  91. package/agent-assets/docs/guides/reinstall-cleanly.md +88 -18
  92. package/agent-assets/docs/guides/setup-wizard.md +113 -54
  93. package/agent-assets/docs/guides/switch-default-backend.md +62 -16
  94. package/agent-assets/docs/guides/use-an-existing-obsidian-vault.md +26 -10
  95. package/agent-assets/docs/reference/api.md +143 -32
  96. package/agent-assets/docs/reference/cli-commands.md +38 -17
  97. package/agent-assets/docs/reference/config.md +224 -49
  98. package/agent-assets/docs/reference/disallowed-tools.md +29 -10
  99. package/agent-assets/docs/reference/keyboard-shortcuts.md +34 -10
  100. package/agent-assets/docs/reference/knowledge-layout.md +620 -0
  101. package/agent-assets/docs/reference/process-keys.md +61 -5
  102. package/agent-assets/docs/reference/skills.md +38 -12
  103. package/agent-assets/docs/troubleshooting/auth-failed.md +48 -19
  104. package/agent-assets/docs/troubleshooting/dashboard-shows-degraded.md +90 -28
  105. package/agent-assets/docs/troubleshooting/fallback-keeps-firing.md +86 -22
  106. package/agent-assets/docs/troubleshooting/messaging-not-pairing.md +68 -24
  107. package/agent-assets/docs/troubleshooting/morning-routine-didnt-run.md +80 -20
  108. package/agent-assets/docs/troubleshooting/observation-not-detected.md +73 -21
  109. package/agent-assets/docs/troubleshooting/quota-exhausted.md +29 -5
  110. package/agent-assets/docs/troubleshooting/wiki-ingest-full-blocked.md +126 -54
  111. package/agent-assets/docs/troubleshooting/wiki-write-failed.md +29 -12
  112. package/agent-assets/optimizer-skills/drift-analysis/SKILL.md +1 -1
  113. package/agent-assets/optimizer-skills/knowledge-map/SKILL.md +1 -1
  114. package/agent-assets/optimizer-skills/skill-curation/SKILL.md +1 -1
  115. package/agent-assets/sandbox/linux/aitne-chromium.apparmor +91 -0
  116. package/agent-assets/sandbox/macos/aitne-chromium.sb +156 -0
  117. package/agent-assets/skills/agent-actions/SKILL.md +2 -2
  118. package/agent-assets/skills/agent-create/SKILL.md +149 -0
  119. package/agent-assets/skills/attach/SKILL.md +2 -2
  120. package/agent-assets/skills/browser-history/SKILL.md +198 -0
  121. package/agent-assets/skills/browser-history-respond/SKILL.md +106 -0
  122. package/agent-assets/skills/browser-task/SKILL.md +169 -0
  123. package/agent-assets/skills/context/SKILL.md +12 -12
  124. package/agent-assets/skills/context/curation.json +2 -2
  125. package/agent-assets/skills/context/references/api.md +43 -31
  126. package/agent-assets/skills/context/references/required-frontmatter.md +3 -3
  127. package/agent-assets/skills/context/references/snapshot-files.md +6 -6
  128. package/agent-assets/skills/context/seeds/file-responsibilities.seed.json +3 -3
  129. package/agent-assets/skills/docs-search/SKILL.md +4 -3
  130. package/agent-assets/skills/external-services/SKILL.delegated.claude.md +11 -21
  131. package/agent-assets/skills/external-services/SKILL.delegated.codex.md +11 -21
  132. package/agent-assets/skills/external-services/SKILL.delegated.gemini.md +11 -21
  133. package/agent-assets/skills/external-services/SKILL.md +3 -3
  134. package/agent-assets/skills/external-services/SKILL.native.claude.md +5 -5
  135. package/agent-assets/skills/external-services/SKILL.native.codex.md +7 -7
  136. package/agent-assets/skills/external-services/SKILL.native.gemini.md +4 -4
  137. package/agent-assets/skills/external-services/references/calendar-apple.md +2 -2
  138. package/agent-assets/skills/external-services/references/calendar-outlook.md +1 -1
  139. package/agent-assets/skills/external-services/references/obsidian.md +2 -2
  140. package/agent-assets/skills/gmail-lifestyle/SKILL.md +9 -82
  141. package/agent-assets/skills/mail/SKILL.delegated.claude.md +14 -5
  142. package/agent-assets/skills/mail/SKILL.delegated.codex.md +8 -4
  143. package/agent-assets/skills/mail/SKILL.delegated.gemini.md +8 -4
  144. package/agent-assets/skills/mail/references/api.md +4 -2
  145. package/agent-assets/skills/mail/references/providers.md +1 -1
  146. package/agent-assets/skills/managed-tasks/SKILL.md +9 -9
  147. package/agent-assets/skills/managed-tasks/references/errors.md +9 -6
  148. package/agent-assets/skills/managed-tasks/references/recurrence-rule.md +1 -1
  149. package/agent-assets/skills/management-policy/SKILL.md +32 -31
  150. package/agent-assets/skills/management-policy/curation.json +1 -1
  151. package/agent-assets/skills/management-policy/references/policy-workflow.md +9 -9
  152. package/agent-assets/skills/management-policy/seeds/policy-file-shape.seed.json +1 -1
  153. package/agent-assets/skills/notify/SKILL.md +4 -4
  154. package/agent-assets/skills/notify/references/priority.md +9 -4
  155. package/agent-assets/skills/notion/SKILL.delegated.claude.md +1 -1
  156. package/agent-assets/skills/notion/SKILL.delegated.codex.md +1 -1
  157. package/agent-assets/skills/notion/SKILL.delegated.gemini.md +1 -1
  158. package/agent-assets/skills/notion/SKILL.native.claude.md +10 -6
  159. package/agent-assets/skills/notion/SKILL.native.codex.md +9 -4
  160. package/agent-assets/skills/notion/SKILL.native.gemini.md +9 -4
  161. package/agent-assets/skills/observations/SKILL.md +24 -8
  162. package/agent-assets/skills/project-doc/SKILL.md +1 -1
  163. package/agent-assets/skills/project-doc/curation.json +3 -3
  164. package/agent-assets/skills/project-doc/seeds/project-shape.seed.json +7 -4
  165. package/agent-assets/skills/project-doc/seeds/slug-grammar.seed.json +3 -3
  166. package/agent-assets/skills/reading/SKILL.md +10 -0
  167. package/agent-assets/skills/reading/references/reading-taste.md +2 -2
  168. package/agent-assets/skills/roadmap/SKILL.md +5 -5
  169. package/agent-assets/skills/roadmap/curation.json +1 -1
  170. package/agent-assets/skills/roadmap/references/api.md +7 -7
  171. package/agent-assets/skills/roadmap/references/cross-check.md +15 -8
  172. package/agent-assets/skills/roadmap/references/migration.md +4 -4
  173. package/agent-assets/skills/roadmap/seeds/entry-types.seed.json +1 -1
  174. package/agent-assets/skills/schedule/SKILL.md +42 -34
  175. package/agent-assets/skills/schedule/references/batch.md +2 -2
  176. package/agent-assets/skills/schedule/references/errors.md +7 -4
  177. package/agent-assets/skills/schedule/references/model-selection.md +3 -3
  178. package/agent-assets/skills/schedule/references/recurrence-rule.md +1 -1
  179. package/agent-assets/skills/scheduled-managed-task/SKILL.md +46 -36
  180. package/agent-assets/skills/today/SKILL.md +9 -9
  181. package/agent-assets/skills/today/curation.json +3 -3
  182. package/agent-assets/skills/today/references/agent-plan-lifecycle.md +6 -5
  183. package/agent-assets/skills/today/seeds/section-shape.seed.json +1 -1
  184. package/agent-assets/skills/user-interview/SKILL.md +12 -9
  185. package/agent-assets/skills/user-interview/references/op-briefing.md +2 -2
  186. package/agent-assets/skills/user-interview/references/sweep-and-fallback.md +8 -0
  187. package/agent-assets/skills/user-profile/SKILL.md +17 -17
  188. package/agent-assets/skills/user-profile/curation.json +2 -2
  189. package/agent-assets/skills/user-profile/references/character-preferences.md +2 -2
  190. package/agent-assets/skills/user-profile/seeds/routing-table.seed.json +8 -8
  191. package/agent-assets/skills/user-profile/seeds/topic-files.seed.json +6 -6
  192. package/agent-assets/skills/wiki/wiki-compile/SKILL.md +4 -4
  193. package/agent-assets/system-prompts/routine-fetch-window.md +22 -12
  194. package/agent-assets/task-flows/_partials/calendar-acquire.google_calendar.md +4 -2
  195. package/agent-assets/task-flows/_partials/calendar-acquire.outlook_calendar.md +4 -2
  196. package/agent-assets/task-flows/_partials/capture-user-info.md +2 -2
  197. package/agent-assets/task-flows/_partials/dm-intent.long-horizon.md +1 -1
  198. package/agent-assets/task-flows/_partials/dm-intent.project.md +9 -9
  199. package/agent-assets/task-flows/_partials/mail-acquire.outlook_mail.md +3 -2
  200. package/agent-assets/task-flows/_partials/notion-acquire.notion.md +10 -5
  201. package/agent-assets/task-flows/browser_task.md +84 -0
  202. package/agent-assets/task-flows/github.assigned.md +1 -1
  203. package/agent-assets/task-flows/github.pull_request.review_requested.md +2 -2
  204. package/agent-assets/task-flows/github.workflow_run.failed.md +2 -2
  205. package/agent-assets/task-flows/knowledge.import.md +14 -14
  206. package/agent-assets/task-flows/message.received.dm.md +9 -4
  207. package/agent-assets/task-flows/message.received.dm_first.md +3 -3
  208. package/agent-assets/task-flows/routine.custom.md +3 -3
  209. package/agent-assets/task-flows/routine.evening_review.md +8 -8
  210. package/agent-assets/task-flows/routine.fetch_window.md +2 -2
  211. package/agent-assets/task-flows/routine.hourly_check.md +16 -12
  212. package/agent-assets/task-flows/routine.monthly_review.md +21 -21
  213. package/agent-assets/task-flows/routine.morning_routine_journal.md +119 -97
  214. package/agent-assets/task-flows/routine.morning_routine_today.md +43 -43
  215. package/agent-assets/task-flows/routine.research_cluster_update.md +35 -0
  216. package/agent-assets/task-flows/routine.research_dispatch.md +38 -0
  217. package/agent-assets/task-flows/routine.research_offer_dm.md +125 -0
  218. package/agent-assets/task-flows/routine.research_wiki_summary.md +53 -0
  219. package/agent-assets/task-flows/routine.roadmap_refresh.md +10 -10
  220. package/agent-assets/task-flows/routine.today_refresh.md +4 -4
  221. package/agent-assets/task-flows/routine.user_profile_sweep.md +10 -10
  222. package/agent-assets/task-flows/routine.weekly_review.md +93 -24
  223. package/agent-assets/task-flows/schedule.approaching.md +0 -1
  224. package/agent-assets/task-flows/scheduled.dm.md +5 -5
  225. package/agent-assets/task-flows/scheduled.task.md +4 -4
  226. package/agent-assets/task-flows/setup.initial.md +21 -21
  227. package/agent-assets/task-flows/setup.update.md +2 -2
  228. package/agent-assets/templates/README.md +27 -20
  229. package/agent-assets/templates/_index.md +42 -26
  230. package/agent-assets/templates/_manifest.json +34 -99
  231. package/agent-assets/templates/{user → identity}/_index.md +1 -1
  232. package/agent-assets/templates/{user → identity}/profile.md +2 -2
  233. package/agent-assets/templates/{dossiers → knowledge/dossiers}/_index.md +1 -1
  234. package/agent-assets/templates/{projects → plans/projects}/_active.base +1 -1
  235. package/agent-assets/templates/policies/_index.md +21 -0
  236. package/agent-assets/templates/{rules → policies}/journal-export.md +1 -1
  237. package/agent-assets/templates/{rules → policies}/journal-format.md +5 -5
  238. package/agent-assets/templates/{rules/policies → policies/management-captures}/_index.md +2 -2
  239. package/agent-assets/templates/{rules → policies}/management.md +3 -3
  240. package/agent-assets/templates/{rules → policies}/mcp.md +1 -1
  241. package/agent-assets/templates/{rules → policies}/redaction.md +1 -1
  242. package/agent-assets/templates/{routines → policies/routines}/_index.md +1 -1
  243. package/agent-assets/templates/{routines → policies/routines}/evening.md +2 -2
  244. package/agent-assets/templates/{routines → policies/routines}/hourly.md +1 -1
  245. package/agent-assets/templates/{routines → policies/routines}/monthly.md +2 -2
  246. package/bin/aitne.mjs +13 -4
  247. package/package.json +5 -4
  248. package/scripts/commands/doctor.mjs +14 -8
  249. package/scripts/commands/run-now.mjs +6 -21
  250. package/scripts/lib/ports.d.mts +27 -0
  251. package/scripts/lib/ports.mjs +36 -0
  252. package/scripts/lib/read-api-token.mjs +176 -0
  253. package/scripts/start.mjs +2 -1
  254. package/agent-assets/docs/features/lifestyle/travel-time.md +0 -58
  255. package/agent-assets/skills/gmail-lifestyle/references/travel-time-api.md +0 -59
  256. package/agent-assets/skills/schedule/references/recurring.md +0 -185
  257. package/agent-assets/templates/context-index.md +0 -42
  258. package/agent-assets/templates/rules/_index.md +0 -19
  259. /package/agent-assets/templates/{user → identity}/expertise.md +0 -0
  260. /package/agent-assets/templates/{user → identity}/goals.md +0 -0
  261. /package/agent-assets/templates/{user → identity}/people.md +0 -0
  262. /package/agent-assets/templates/{user → identity}/personal.md +0 -0
  263. /package/agent-assets/templates/{user → identity}/work.md +0 -0
  264. /package/agent-assets/templates/{agent/journal.md → journal/agent.md} +0 -0
  265. /package/agent-assets/templates/{dossiers → knowledge/dossiers}/evening.md +0 -0
  266. /package/agent-assets/templates/{dossiers → knowledge/dossiers}/hourly.md +0 -0
  267. /package/agent-assets/templates/{dossiers → knowledge/dossiers}/monthly.md +0 -0
  268. /package/agent-assets/templates/{dossiers → knowledge/dossiers}/morning.md +0 -0
  269. /package/agent-assets/templates/{dossiers → knowledge/dossiers}/roadmap.md +0 -0
  270. /package/agent-assets/templates/{dossiers → knowledge/dossiers}/weekly.md +0 -0
  271. /package/agent-assets/templates/{projects → plans/projects}/_index.md +0 -0
  272. /package/agent-assets/templates/{roadmap.md → plans/roadmap.md} +0 -0
  273. /package/agent-assets/templates/{routines → policies/routines}/morning.md +0 -0
  274. /package/agent-assets/templates/{routines → policies/routines}/weekly.md +0 -0
  275. /package/agent-assets/templates/{agent → state}/profile-questions.md +0 -0
  276. /package/agent-assets/templates/{today.md → state/today.md} +0 -0
@@ -11,15 +11,13 @@ aliases:
11
11
  category: guides
12
12
  summary: |
13
13
  Upload a Markdown or text file of personal facts so the agent folds
14
- it into your user/*.md Context Files. Includes step-by-step recipes
15
- 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.
16
16
  section: import-knowledge-file
17
17
  tags:
18
- - guide
18
+ - guides
19
19
  - knowledge
20
20
  - import
21
- - chatgpt
22
- - gemini
23
21
  - memory
24
22
  status: stable
25
23
  ask_examples:
@@ -29,15 +27,23 @@ ask_examples:
29
27
  - What format does the Knowledge upload accept?
30
28
  locale: en-US
31
29
  created: 2026-04-28
32
- updated: 2026-04-28
30
+ updated: 2026-05-28
33
31
  ui_anchors:
34
32
  - /knowledge
35
33
  keywords:
36
34
  - import
37
35
  - chatgpt history
38
36
  - gemini history
39
- - json import
40
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
41
47
  related:
42
48
  - concepts/memory-model
43
49
  - features/memory-files/user-profile
@@ -51,20 +57,21 @@ related:
51
57
  Bring a single Markdown (`.md`, `.markdown`) or plain-text (`.txt`)
52
58
  file you wrote elsewhere — a hand-written profile, an Obsidian or
53
59
  Notion export, or a summary you produced in ChatGPT / Gemini — into
54
- Aitne's `user/*.md` Context Files. The agent reads the file once and
55
- appends each fact verbatim into the right topic file. Existing bullets
56
- are never overwritten; identity-class facts are deferred for your
57
- 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.
58
64
 
59
65
  ## Prerequisites
60
66
 
61
- - Initial setup is complete (`rules/management.md` saved). Pre-setup
67
+ - Initial setup is complete (`policies/management.md` saved). Pre-setup
62
68
  imports are rejected with `409 setup_incomplete` because the
63
- `user/*.md` skeleton has not been seeded yet.
64
- - At least one backend (Claude, Codex, or Gemini CLI) is authenticated
65
- with a CLI binary on `PATH`.
66
- - The file is at most **64 KB after UTF-8 encoding** (Japanese / non-
67
- 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).
68
75
  - The file does not contain private keys, API tokens, or credentials.
69
76
  The route rejects these at upload time and never persists them.
70
77
 
@@ -73,12 +80,12 @@ explicit confirmation.
73
80
  | Class of fact | Target Context File |
74
81
  |---|---|
75
82
  | Identity (legal name, primary timezone, primary language, DOB, primary email/phone) | **Deferred for confirmation** — surfaced in the closing journal entry; never auto-written. |
76
- | Relationships (family, partners, close friends) | `user/people.md` |
77
- | Work, employer, role, colleagues | `user/work.md` |
78
- | Skills, expertise, languages spoken | `user/expertise.md` |
79
- | Lifestyle, hobbies, preferences, health | `user/personal.md` |
80
- | Goals, aspirations, current focus | `user/goals.md` |
81
- | 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` |
82
89
 
83
90
  Conflicts (a source bullet that contradicts an existing bullet) land in
84
91
  a `## Pending Conflicts` section on the affected file with the upload
@@ -98,7 +105,8 @@ date inline, so you can resolve them later without losing data.
98
105
  have at least one model available. Pick `Use default routing` to
99
106
  let the daemon's main backend run it.
100
107
  5. Click **Import**. The form returns immediately with a 202 + trace id
101
- — the heavy-tier session runs in the background.
108
+ — the import session (`knowledge.import`, medium tier) runs in the
109
+ background.
102
110
  6. Watch progress under the linked **Activity** view (filtered by the
103
111
  trace id) and review the resulting bullets under
104
112
  `/knowledge?tab=context-files` once the run finishes.
@@ -111,11 +119,11 @@ date inline, so you can resolve them later without losing data.
111
119
  session completes (typically 30 s to 2 min depending on file size
112
120
  and backend).
113
121
  - The agent appends a single `## YYYY-MM-DD knowledge import` block to
114
- `agent/journal.md` summarising the run — counts of facts written /
122
+ `journal/agent.md` summarising the run — counts of facts written /
115
123
  skipped, pending conflicts, and identity-class facts awaiting
116
124
  confirmation.
117
- - Open each affected `user/*.md` file under Context Files. New bullets
118
- 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.
119
127
 
120
128
  ## If It Fails
121
129
 
@@ -130,16 +138,18 @@ date inline, so you can resolve them later without losing data.
130
138
  - **`409 setup_incomplete`** — finish the setup wizard first
131
139
  (`/setup`).
132
140
  - **`No authenticated backends`** in the Execution agent dropdown —
133
- 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`.
134
144
 
135
145
  ---
136
146
 
137
- # Recipe: Export your profile from ChatGPT
147
+ ## Recipe: Export your profile from ChatGPT
138
148
 
139
149
  OpenAI does not ship a one-click "export as Markdown" button, but the
140
150
  following two paths produce a file that uploads cleanly.
141
151
 
142
- ## Recommended: ask ChatGPT to write it for you (≈ 2 min)
152
+ ### Recommended: ask ChatGPT to write it for you (≈ 2 min)
143
153
 
144
154
  Works against ChatGPT's *Memory* feature — the model already holds a
145
155
  list of personal facts about you. This procedure asks it to dump them
@@ -181,7 +191,7 @@ in the exact format the upload expects.
181
191
  imported — the upload writes facts verbatim.
182
192
  5. Upload via Knowledge → Upload, with **Source** = `Other`.
183
193
 
184
- ## Comprehensive: official Data Export → convert (≈ 30 min, large)
194
+ ### Comprehensive: official Data Export → convert (≈ 30 min, large)
185
195
 
186
196
  Use this when you want to seed Aitne with the *complete* history.
187
197
  Output is bulky and requires manual filtering.
@@ -204,7 +214,7 @@ Output is bulky and requires manual filtering.
204
214
  upload one at a time.
205
215
  5. Upload via Knowledge → Upload, with **Source** = `Other`.
206
216
 
207
- ## Bonus: copy your saved memory list
217
+ ### Bonus: copy your saved memory list
208
218
 
209
219
  ChatGPT's Memory page exposes the structured fact list directly.
210
220
 
@@ -216,13 +226,13 @@ ChatGPT's Memory page exposes the structured fact list directly.
216
226
 
217
227
  ---
218
228
 
219
- # Recipe: Export your profile from Gemini
229
+ ## Recipe: Export your profile from Gemini
220
230
 
221
231
  Google Gemini's options mirror ChatGPT's at a high level — no native
222
232
  Markdown export, but the in-conversation prompt method works the same
223
233
  way, and Google Takeout produces a comprehensive archive.
224
234
 
225
- ## Recommended: ask Gemini to write it for you (≈ 2 min)
235
+ ### Recommended: ask Gemini to write it for you (≈ 2 min)
226
236
 
227
237
  1. Open <https://gemini.google.com> and start a **new conversation**.
228
238
  The model uses **Saved info** (the Gemini equivalent of ChatGPT's
@@ -233,7 +243,7 @@ way, and Google Takeout produces a comprehensive archive.
233
243
  3. Copy the response into `gemini-profile.md`, skim, and upload via
234
244
  Knowledge → Upload with **Source** = `Other`.
235
245
 
236
- ## Comprehensive: Google Takeout (≈ 1 hr, archive may take longer)
246
+ ### Comprehensive: Google Takeout (≈ 1 hr, archive may take longer)
237
247
 
238
248
  1. Visit <https://takeout.google.com>.
239
249
  2. **Deselect all**, then check **Gemini Apps Activity** (and
@@ -248,7 +258,7 @@ way, and Google Takeout produces a comprehensive archive.
248
258
  them under the right H2 headings, save as `gemini-export.md`,
249
259
  keep under 64 KB, upload.
250
260
 
251
- ## Bonus: copy your Saved info list
261
+ ### Bonus: copy your Saved info list
252
262
 
253
263
  1. Open Gemini → click your avatar / settings → **Saved info**.
254
264
  2. Copy each saved row into a new `gemini-saved-info.md` under the
@@ -265,11 +275,11 @@ way, and Google Takeout produces a comprehensive archive.
265
275
  for personal facts. This is easier to review than one large mixed
266
276
  upload.
267
277
  - **Edit before you upload.** The agent writes verbatim. Anything in
268
- the file *will* land in `user/*.md` (after dedup and identity-class
269
- deferral). Trim aggressively.
278
+ the file *will* land in `identity/*.md` (after dedup and
279
+ identity-class deferral). Trim aggressively.
270
280
  - **Identity is special.** Even if your file says
271
281
  `- Name: <Your Name>`, the agent will *not* write it to
272
- `user/profile.md`. It surfaces in the journal entry instead, where
282
+ `identity/profile.md`. It surfaces in the journal entry instead, where
273
283
  you can confirm and accept it via the dashboard.
274
284
  - **Conflicts are flagged, not merged.** If your file contradicts an
275
285
  existing bullet, the agent appends the new bullet to a
@@ -282,5 +292,5 @@ way, and Google Takeout produces a comprehensive archive.
282
292
  ## Related
283
293
 
284
294
  - [Memory Model](../concepts/memory-model.md)
285
- - [user/profile.md](../features/memory-files/user-profile.md)
295
+ - [identity/profile.md](../features/memory-files/user-profile.md)
286
296
  - [First Day](../getting-started/04-first-day.md)
@@ -12,11 +12,11 @@ aliases:
12
12
  category: guides
13
13
  summary: |
14
14
  Install Aitne via the npm package (or clone the repo for development),
15
- start the daemon and dashboard, and open the dashboard at :3000.
15
+ start the daemon and dashboard, and open the dashboard at :8322.
16
16
  section: install-and-run
17
17
  tags:
18
18
  - core
19
- - guide
19
+ - guides
20
20
  - getting-started
21
21
  - install
22
22
  - setup
@@ -29,12 +29,12 @@ ask_examples:
29
29
  - How do I install the aitne npm package?
30
30
  locale: en-US
31
31
  created: 2026-04-25
32
- updated: 2026-05-15
32
+ updated: 2026-05-28
33
33
  keywords:
34
34
  - install
35
35
  - first run
36
36
  - pnpm
37
- - npm install aitne
37
+ - npm install -g @aitne-sh/aitne
38
38
  - aitne start
39
39
  - PA_DATA_DIR
40
40
  - node 22
@@ -67,31 +67,60 @@ through the setup wizard.
67
67
  CLI, or Gemini CLI) installed on `PATH`.
68
68
  - ~200 MB of disk for the daemon's local state.
69
69
 
70
- ## Steps
70
+ ## Install
71
71
 
72
- 1. `git clone <repo> personal_agent && cd personal_agent`
73
- 2. `pnpm install`
74
- 3. `pnpm start` — builds (if stale) and launches daemon + dashboard
75
- in the background.
76
- 4. Open `http://localhost:3000` and follow the setup wizard.
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
99
+
100
+ Open `http://localhost:8322` and follow the setup wizard.
77
101
 
78
102
  ## Verification
79
103
 
80
- - `pnpm status` shows two PIDs (daemon + dashboard) and a green health
81
- pill.
82
- - `~/.personal-agent/` has been created with `data/personal_agent.db`,
83
- `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/`.
84
108
 
85
109
  ## If It Fails
86
110
 
87
- - A port conflict — set `PA_API_PORT` (default 8321) or
88
- `PA_DASHBOARD_PORT` (default 3000).
89
- - Build errors during `pnpm start`: run `pnpm clean && pnpm build`
90
- 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.
91
120
 
92
121
  ## Related
93
122
 
94
- - [CLI Commands](../reference/cli-commands.md) — full `pa` command
123
+ - [CLI Commands](../reference/cli-commands.md) — full `aitne` command
95
124
  list and environment overrides.
96
125
  - [Setup Wizard](setup-wizard.md) — what each wizard step does.
97
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,21 +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
32
  keywords:
33
33
  - wiki health
34
34
  - wiki lint
35
35
  - wiki maintenance
36
36
  - wiki freshness
37
37
  - orphan notes
38
+ - taxonomy candidates
38
39
  related:
39
40
  - features/wiki/overview
40
41
  - features/wiki/commands
42
+ - features/wiki/cost-and-approval
41
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
42
53
  ui_anchors:
43
54
  - /wiki
44
55
  - /wiki/timeline
45
56
  - /settings/wiki
57
+ - /settings/wiki/timeline
46
58
  ---
47
59
 
48
60
  # Maintain Wiki Health
@@ -55,9 +67,10 @@ notes itself.
55
67
 
56
68
  ## When to Run
57
69
 
58
- `!lint` is cheap (Sonnet medium tier, default $0.50 envelope) and
59
- non-destructive. Run it whenever you want a snapshot of wiki
60
- 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:
61
74
 
62
75
  - **Weekly**, after a busy ingest week, to catch orphans early.
63
76
  - **Before promoting a candidate** to the taxonomy or graduating
@@ -104,9 +117,8 @@ makes the change visible.
104
117
 
105
118
  Open **My Life → Wiki → Timeline & health** (`/wiki/timeline`). The
106
119
  page is also reachable from a button at the top of `/settings/wiki`,
107
- and the legacy `/settings/wiki/timeline` URL redirects here so old
108
- bookmarks still work. The most-recent report is parsed and rendered
109
- with:
120
+ and the same view is mirrored under `/settings/wiki/timeline`. The
121
+ most-recent report is parsed and rendered with:
110
122
 
111
123
  - A coloured date badge.
112
124
  - The `## Summary` bullets.
@@ -136,6 +148,18 @@ item:
136
148
  update `90_meta/taxonomy.md` manually so future ingests pick the
137
149
  right name.
138
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
+
139
163
  ## Taxonomy Candidates
140
164
 
141
165
  When `!lint` finds a concept appearing repeatedly that isn't yet
@@ -167,8 +191,9 @@ chokepoint, so:
167
191
 
168
192
  - It's visible to `!ask` (you can literally ask "what did the last
169
193
  lint find?").
170
- - The DM read-only surface (`/api/wiki/.../files/90_meta/health/...`)
171
- 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.
172
197
  - Internal-mode workspaces snapshot the previous version into
173
198
  `.snapshots/` before each rewrite; external-mode relies on your
174
199
  git or cloud sync.
@@ -10,19 +10,22 @@ aliases:
10
10
  - move install
11
11
  category: guides
12
12
  summary: |
13
- Move a Aitne install to a new machine — install the daemon,
14
- 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.
15
16
  section: migrate-machines
16
17
  tags:
17
- - guide
18
+ - guides
18
19
  - operations
19
20
  - migration
21
+ - backup
20
22
  status: stable
21
23
  ask_examples:
22
24
  - Can I move Aitne to a new laptop?
25
+ - Will my DB still work after upgrading on the new machine?
23
26
  locale: en-US
24
27
  created: 2026-04-25
25
- updated: 2026-04-25
28
+ updated: 2026-05-28
26
29
  keywords:
27
30
  - migrate
28
31
  - move install
@@ -36,29 +39,82 @@ related:
36
39
 
37
40
  # Migrate Machines
38
41
 
39
- ## Goal
40
-
41
42
  Carry your Aitne identity to a new machine without losing
42
- 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.
43
57
 
44
58
  ## Steps
45
59
 
46
- 1. On the old machine: `aitne stop`.
47
- 2. Copy `~/.personal-agent/context/` to the new machine.
48
- 3. On the new machine: install per [Install and Run](install-and-run.md).
49
- 4. Optionally copy `data/personal_agent.db` (skip if upgrading daemon versions).
50
- 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
+ ```
51
90
 
52
- ## Verification
91
+ ## Verify
53
92
 
54
- - Context files match.
55
- - 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).
56
101
 
57
102
  ## If It Fails
58
103
 
59
- - OS-keychain credentials don't move automatically — re-authorize
60
- 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.
61
114
 
62
115
  ## Related
63
116
 
64
- - [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)