@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
@@ -10,13 +10,15 @@ aliases:
10
10
  category: guides
11
11
  summary: |
12
12
  Run more than one wiki workspace inside the same daemon. Address
13
- them from DMs with `@<workspace>`, manage them independently from
14
- /settings/wiki, and keep their file trees isolated on disk.
15
- section: multiple-wikis-for-multiple-domains
13
+ them from DMs with `@<workspace>`, create and configure additional
14
+ workspaces through the daemon API, and keep their file trees isolated
15
+ on disk.
16
+ section: guides
16
17
  tags:
17
- - guide
18
+ - guides
18
19
  - wiki
19
- - multi-workspace
20
+ - workspaces
21
+ - knowledge
20
22
  status: stable
21
23
  ask_examples:
22
24
  - How do I run multiple wikis?
@@ -24,26 +26,49 @@ ask_examples:
24
26
  - What does `@research` do before a wiki command?
25
27
  locale: en-US
26
28
  created: 2026-05-12
27
- updated: 2026-05-12
29
+ updated: 2026-05-28
28
30
  keywords:
29
31
  - multi-workspace
30
32
  - wiki workspace
31
33
  - default workspace
32
- - @workspace token
34
+ - "@workspace token"
33
35
  related:
34
36
  - features/wiki/overview
37
+ - features/wiki/workspaces
35
38
  - features/wiki/commands
36
39
  - guides/build-your-wiki
37
40
  - guides/use-an-existing-obsidian-vault
41
+ ui_anchors:
42
+ - /settings/wiki
43
+ api_endpoints:
44
+ - /api/wiki/workspaces
45
+ - /api/wiki/workspaces/probe
46
+ - /api/wiki/workspaces/:workspace
47
+ - /api/wiki/workspaces/:workspace/archive
48
+ process_keys:
49
+ - wiki.ingest_url
50
+ - wiki.compile
51
+ - wiki.ask
52
+ - wiki.lint
53
+ - wiki.trace
54
+ - wiki.connect
38
55
  ---
39
56
 
40
57
  # Multiple Wikis for Multiple Domains
41
58
 
42
- Phase 5 lifted Aitne's single-workspace ceiling. If you keep distinct
43
- knowledge bases — say, a research vault, a parenting journal, and an
44
- ops runbook — you can run each as its own wiki workspace inside the
45
- same daemon. The DM agent routes commands per workspace; the file
46
- trees never overlap.
59
+ Aitne can run more than one wiki workspace inside the same daemon. If
60
+ you keep distinct knowledge bases — say, a research vault, a parenting
61
+ journal, and an ops runbook — each can be its own wiki workspace. The
62
+ DM agent routes commands per workspace; the file trees never overlap.
63
+
64
+ > **Where this lives today.** The multi-workspace machinery is real at
65
+ > the daemon, API, and DM layers: you address any workspace from a DM
66
+ > with an `@<workspace>` token, and each row carries its own per-
67
+ > workspace settings. The dashboard's `/settings/wiki` page, however,
68
+ > currently manages only the **one active workspace** — it has no
69
+ > workspace picker and no "Add Workspace" button. Additional
70
+ > workspaces are created and archived through the daemon API
71
+ > (`POST /api/wiki/workspaces`), described below.
47
72
 
48
73
  ## Why you might want this
49
74
 
@@ -52,9 +77,9 @@ trees never overlap.
52
77
  separate `_index.md` and `20_wiki/` trees so the agent never has to
53
78
  filter across domains.
54
79
  - **Different audiences.** A workspace synced via Obsidian to a shared
55
- iCloud folder for a team is governed differently from a private
56
- workspace in `$PA_DATA_DIR`. Per-workspace settings handle the
57
- asymmetry.
80
+ iCloud folder for a team is governed differently from the daemon's
81
+ internal workspace under its data directory. Per-workspace settings
82
+ handle the asymmetry.
58
83
  - **Different cadences.** A "current project" wiki gets multiple
59
84
  ingests per day; a long-term commonplace book may compile weekly.
60
85
  Per-workspace dispatch / cost / approval thresholds let you tune
@@ -62,21 +87,35 @@ trees never overlap.
62
87
 
63
88
  ## Creating a second workspace
64
89
 
65
- 1. Open `/settings/wiki`. You will see your current (default)
66
- workspace.
67
- 2. Scroll to **Add Workspace** (Phase 5 surface). Choose either:
68
- - **Internal**, which lives under `$PA_DATA_DIR/wiki-<name>/`. Best
69
- for private notes you never sync to another device.
70
- - **External**, which points at an existing folder on disk (your
71
- Obsidian vault, an iCloud-synced directory, a git working copy).
72
- 3. Pick a unique `name` (lowercase letters, digits, `.`, `_`, `-`). The
73
- name is what you address from DMs.
74
- 4. The wizard probes the candidate path against §2.1.1 collision rules
75
- it refuses to nest a wiki inside your primary vault, the data
76
- directory, or another active wiki. Iterate until the probe is green.
77
- 5. Click **Create**. The vault skeleton (`00_inbox/`, `10_raw/`,
78
- `20_wiki/`, `30_outputs/`, `90_meta/`) is seeded and the workspace
79
- joins the active set.
90
+ The first workspace the one named `default` — can be **internal**
91
+ (managed by the daemon under its own data directory at
92
+ `<contextDir>/knowledge/wiki/`) or **external** (an existing folder you
93
+ own). You pick that during initial setup on `/settings/wiki`.
94
+
95
+ Every *additional* workspace must be **external** it points at a
96
+ folder on disk (an Obsidian vault, an iCloud-synced directory, a git
97
+ working copy). Only `default` is internal. Create a second workspace by
98
+ POSTing to the daemon API:
99
+
100
+ curl -X POST http://localhost:8321/api/wiki/workspaces \
101
+ -H 'content-type: application/json' \
102
+ -d '{"kind":"external","name":"research","rootPath":"/Users/you/vaults/research"}'
103
+
104
+ - **`name`** unique, 1–64 chars matching `[A-Za-z0-9][A-Za-z0-9._-]*`
105
+ (letters, digits, `.`, `_`, `-`). This is what you address from DMs.
106
+ - **`rootPath`** — required for external workspaces. The daemon
107
+ validates it before creating the row: it refuses to nest a wiki
108
+ inside your primary vault, the data directory, or another active wiki
109
+ (see [Path collision rules](#path-collision-rules-recap)). A failed
110
+ validation returns a `4xx` with the collision reason — fix the path
111
+ and retry.
112
+ - **`language`** (optional) — defaults to the daemon's wiki language.
113
+
114
+ Use `POST /api/wiki/workspaces/probe` with `{ "rootPath": "…" }` first
115
+ if you want the read-only collision diagnostics before committing the
116
+ row. On success the vault skeleton (`00_inbox/`, `10_raw/`, `20_wiki/`,
117
+ `30_outputs/`, `90_meta/`) is seeded into the folder and the workspace
118
+ joins the active set.
80
119
 
81
120
  ## Addressing a workspace from DMs
82
121
 
@@ -122,17 +161,23 @@ you which workspace `!ask` (with no `@`) will route to.
122
161
 
123
162
  ## Configuring each workspace independently
124
163
 
125
- `/settings/wiki` shows a workspace picker at the top once you have
126
- more than one. Each workspace's panel carries its own:
164
+ Each workspace row carries its own settings:
127
165
 
128
166
  - language (`en`, `ja`, …)
129
167
  - dispatch mode (parallel / serial) and concurrency cap
130
168
  - write strategy (`fs` / `cli` / `auto`) — external mode only
131
169
  - full-compile approval threshold (USD)
132
170
  - git pre-compile auto-commit toggle (external git vaults only)
133
- - bridge feature gate + measurement mode + min confidence (Phase 5)
171
+ - bridge feature gate + measurement mode + min confidence
134
172
  - DM-agent bridge write toggle
135
173
 
174
+ The dashboard's `/settings/wiki` page edits these for the single active
175
+ workspace it surfaces. For any other workspace, PATCH the row directly:
176
+
177
+ curl -X PATCH http://localhost:8321/api/wiki/workspaces/research \
178
+ -H 'content-type: application/json' \
179
+ -d '{"dispatchMode":"serial","fullCompileApprovalThresholdUsd":2.0}'
180
+
136
181
  `POST /api/backends/apply-defaults` re-seeds the per-process backend /
137
182
  model / budget rows but leaves the per-workspace columns alone — those
138
183
  are operator preferences, not install defaults.
@@ -146,34 +191,38 @@ bound to each key applies across all workspaces — they share the
146
191
  binding because the daemon resolves the row by process key, not by
147
192
  workspace.
148
193
 
149
- If you need a research vault on Opus 4.7 and a parenting journal on
150
- Haiku 4.5 at the same time, the supported path today is:
194
+ There is no per-workspace model binding today. If you want a research
195
+ vault on Opus 4.8 and a parenting journal on Haiku 4.5 at the same
196
+ time, you cannot — the `wiki.ask` row resolves to one backend/model for
197
+ every workspace. The pragmatic shape is:
151
198
 
152
- - Bind `wiki.ask` to medium-tier Sonnet (a sensible cross-workspace
153
- default).
154
- - Use the workspace-aware `!ask @research` for the research vault and
155
- rely on per-workspace token budgets via the cost ceiling.
199
+ - Bind `wiki.ask` to its medium-tier default (Sonnet 4.6), a sensible
200
+ cross-workspace balance of cost and quality.
201
+ - Keep cost differences per workspace through each workspace's own
202
+ full-compile approval threshold (see above).
156
203
 
157
- A future enhancement is per-workspace model bindings; the present
158
- shape was chosen to keep `/settings/models` legible without a
159
- workspace dimension.
204
+ Per-workspace model bindings are a possible future enhancement; the
205
+ present shape keeps `/settings/models` legible without a workspace
206
+ dimension.
160
207
 
161
208
  ## Archiving a workspace
162
209
 
163
- The dashboard's **Archive** button on a workspace card flips its
164
- `active` column to `0`. Archived workspaces:
210
+ `POST /api/wiki/workspaces/<name>/archive` flips a workspace's `active`
211
+ column to `0`. (The dashboard exposes a Stop/Remove control for the one
212
+ active workspace it surfaces; other workspaces are archived via the API
213
+ call.) Archived workspaces:
165
214
 
166
215
  - disappear from `!wiki` listings,
167
- - reject all daemon API requests with `wiki_not_enabled`,
216
+ - reject daemon API requests with `wiki_not_enabled`,
168
217
  - drop out of `/search` and `/index`,
169
218
  - keep their files on disk (you can re-activate later with no data
170
219
  loss),
171
220
  - have their `fts_wiki` rows cleared eagerly so a same-id re-enable
172
221
  re-indexes from disk.
173
222
 
174
- `DELETE /wiki/workspaces/:name` removes the row entirely (filesystem
175
- contents are preserved — the daemon never deletes vault content). Use
176
- this when you are sure you will not re-enable.
223
+ `DELETE /api/wiki/workspaces/<name>` removes the row entirely
224
+ (filesystem contents are preserved — the daemon never deletes vault
225
+ content). Use this when you are sure you will not re-enable.
177
226
 
178
227
  ## Path collision rules (recap)
179
228
 
@@ -181,21 +230,23 @@ Two active wiki workspaces cannot point at overlapping paths. Neither
181
230
  can overlap:
182
231
 
183
232
  - `primaryVaultPath` — your reactive-memory vault (`knowledge/`,
184
- `today.md`, etc.).
233
+ `state/today.md`, etc.).
185
234
  - `externalObsidianVaultPath` — your owner-facing Obsidian vault.
186
235
  - `$PA_DATA_DIR` — the daemon's data home.
187
236
 
188
- The wizard's pre-create probe enforces this; PATCH cannot widen past
189
- it. If you want to migrate a workspace to a new disk location, archive
190
- the old row, create a fresh row pointing at the new path, then
191
- manually copy the vault contents.
237
+ The pre-create validation (`POST /api/wiki/workspaces` and the
238
+ `/probe` endpoint) enforces this, and PATCH cannot widen past it. If
239
+ you want to migrate a workspace to a new disk location, archive the old
240
+ row, create a fresh row pointing at the new path, then manually copy
241
+ the vault contents.
192
242
 
193
243
  ## See also
194
244
 
195
- - `docs/design/23-wiki-builder.md`Phase summary table for the
196
- overall wiki feature.
197
- - `docs/design/appendices/wiki-external-vault.md`write strategy,
198
- iCloud handling, snapshot exclusion.
199
- - `docs/design/appendices/wiki-bridge-mechanism.md`Phase 5 bridge
200
- capture from DMs into a workspace's raw layer.
201
- - `docs/user/features/wiki/commands.md`full bang command reference.
245
+ - **features/wiki/overview**what the wiki feature is and the four
246
+ vault layers.
247
+ - **features/wiki/workspaces**workspace lifecycle, internal vs
248
+ external, and per-workspace settings in depth.
249
+ - **features/wiki/commands**full bang-command reference, including
250
+ the `@<workspace>` token.
251
+ - **guides/use-an-existing-obsidian-vault**pointing a workspace at a
252
+ folder you already own.
@@ -8,31 +8,41 @@ aliases:
8
8
  - disable routines
9
9
  category: guides
10
10
  summary: |
11
- Stop the agent from acting (without uninstalling it) by disabling
12
- routines and entering an extended quiet hours window.
11
+ Stop the agent from acting without uninstalling it DM !stop to pause
12
+ every routine, or use dashboard toggles and quiet hours for finer control.
13
13
  section: pause-the-agent
14
14
  tags:
15
- - guide
15
+ - guides
16
16
  - operations
17
17
  - messaging
18
+ - autonomous
19
+ - scheduler
18
20
  status: stable
19
21
  ask_examples:
20
22
  - How do I pause the agent without uninstalling?
21
23
  - Can I disable everything for a week?
22
24
  locale: en-US
23
25
  created: 2026-04-25
24
- updated: 2026-04-25
26
+ updated: 2026-05-28
25
27
  keywords:
26
28
  - pause agent
27
29
  - stop agent
28
- - !stop
29
- - !start
30
+ - "!stop"
31
+ - "!start"
30
32
  - disable autonomous
31
33
  - go silent
32
34
  related:
33
35
  - features/operations/quiet-hours
34
36
  - features/messaging/bang-commands
35
37
  - concepts/routines
38
+ ui_anchors:
39
+ - /settings/schedule
40
+ - /settings/routines
41
+ config_keys:
42
+ - hourlyCheckEnabled
43
+ - monthlyReviewEnabled
44
+ - quietHoursStart
45
+ - quietHoursEnd
36
46
  ---
37
47
 
38
48
  # Pause the Agent
@@ -46,32 +56,63 @@ losing your install.
46
56
 
47
57
  - Daemon running.
48
58
 
49
- ## Steps
50
-
51
- 1. **For a short pause from your phone**: DM `!stop` to the agent on
52
- any paired messaging app. Autonomous work pauses immediately; the
53
- daemon keeps running so you can `!start` to resume. See
54
- [Bang Commands](../features/messaging/bang-commands.md).
55
- 2. **Disable the hourly check** from `/settings/routines` toggle
56
- `hourlyCheckEnabled` off. Morning, evening, and weekly reviews
57
- fire at fixed times in code, so they cannot be toggled from the
58
- dashboard; the most reliable mute is `aitne stop`.
59
- 3. **Set an extended quiet hours window** on `/settings/schedule` —
60
- e.g. `quietHoursStart: "00:00"`, `quietHoursEnd: "23:59"`. Both
61
- fields take an `HH:MM` string. This silences notifications while
62
- keeping routines running.
63
- 4. **Optionally** stop the daemon entirely with `aitne stop`. This is
64
- the only way to fully suppress the fixed-schedule routines.
59
+ ## The fastest pause: `!stop`
60
+
61
+ DM `!stop` to the agent on any paired messaging app. This is the
62
+ recommended way to go silent and the only one you need for most cases:
63
+
64
+ - It pauses **every** cron-driven routine — morning, evening, weekly,
65
+ monthly, and the hourly check not just one of them.
66
+ - Non-command DMs are declined with a paused notice (no LLM cost)
67
+ until you resume.
68
+ - The paused state is persisted, so a daemon restart does **not**
69
+ silently resume autonomous work.
70
+ - In-flight runs are not aborted; the pause takes effect from the next
71
+ scheduled tick.
72
+
73
+ Resume with `!start` whenever you want the agent active again. See
74
+ [Bang Commands](../features/messaging/bang-commands.md).
75
+
76
+ ## Finer-grained control from the dashboard
77
+
78
+ If you want to mute specific behaviour rather than pause everything, use
79
+ `/settings/schedule`:
80
+
81
+ 1. **Disable the hourly check** — toggle `hourlyCheckEnabled` off. This
82
+ leaves the morning, evening, weekly, and monthly routines running.
83
+ 2. **Disable the monthly review** — toggle `monthlyReviewEnabled` off
84
+ (it ships off by default).
85
+ 3. **Silence notifications without pausing work** — set an extended
86
+ quiet hours window: e.g. `quietHoursStart: "00:00"`,
87
+ `quietHoursEnd: "23:59"`. Both fields take an `HH:MM` string.
88
+ Routines still run; they just don't notify you.
89
+
90
+ Morning (fires at the day boundary, default 04:00), evening (18:00),
91
+ and weekly (Fri 18:00) reviews have no per-routine enable toggle in the
92
+ dashboard — to stop them, use `!stop` above. You can still edit each
93
+ routine's instructions on `/settings/routines`, but that page does not
94
+ turn them on or off.
95
+
96
+ ## Last resort: stop the daemon
97
+
98
+ `aitne stop` shuts the daemon down entirely (graceful SIGTERM, then
99
+ SIGKILL after 10 seconds). Nothing runs — no routines, no messaging, no
100
+ dashboard. Use this only when you want the agent fully offline; for a
101
+ temporary pause that survives across days, prefer `!stop`. Restart with
102
+ `aitne start`.
65
103
 
66
104
  ## Verification
67
105
 
68
106
  - The Activity feed shows no new routine fires.
69
107
  - No notifications arrive.
108
+ - A DM to a paused agent is declined with a "paused" notice.
70
109
 
71
110
  ## If It Fails
72
111
 
73
- - A routine that still fires: confirm the toggle saved on
74
- `/settings/routines`. The dashboard's "Save" button must be clicked.
112
+ - A routine still fires after `!stop`: confirm the pause registered by
113
+ checking `!help` or the dashboard banner; re-send `!stop`.
114
+ - A toggle on `/settings/schedule` did not take effect: confirm it
115
+ saved — the dashboard's "Save" button must be clicked.
75
116
 
76
117
  ## Related
77
118
 
@@ -11,21 +11,26 @@ aliases:
11
11
  - fresh install
12
12
  category: guides
13
13
  summary: |
14
- Aitne's policy is "clean reinstall, no data migration".
15
- Stop the daemon, delete the data directory, re-launch the setup
16
- wizard re-seeds.
14
+ Last-resort escape hatch stop the daemon, delete the database, re-launch.
15
+ Almost never needed; Aitne upgrades via forward-only schema migrations
16
+ applied automatically at boot. Use this only when migrations fail or the
17
+ DB is genuinely corrupt.
17
18
  section: reinstall-cleanly
18
19
  tags:
19
20
  - guide
20
21
  - operations
21
22
  - reinstall
23
+ - migration
24
+ - backup
22
25
  status: stable
23
26
  ask_examples:
24
27
  - How do I reinstall Aitne?
28
+ - My DB seems corrupt — how do I start over?
25
29
  - What does a clean reinstall delete?
30
+ - Do I need to wipe the DB to upgrade Aitne?
26
31
  locale: en-US
27
32
  created: 2026-04-25
28
- updated: 2026-04-25
33
+ updated: 2026-05-28
29
34
  keywords:
30
35
  - reinstall
31
36
  - factory reset
@@ -33,35 +38,100 @@ keywords:
33
38
  - fresh install
34
39
  - PA_DATA_DIR
35
40
  - aitne uninstall
41
+ - schema migration
42
+ - corrupt database
43
+ - clean-context
36
44
  related:
37
45
  - guides/backup-and-restore
46
+ - guides/migrate-machines
47
+ - guides/pause-the-agent
48
+ - glossary
38
49
  ---
39
50
 
40
51
  # Reinstall Cleanly
41
52
 
42
- ## Goal
53
+ ## You Almost Never Need This
43
54
 
44
- Reset Aitne's state without losing your context files.
55
+ Aitne upgrades through **forward-only schema migrations** applied at
56
+ daemon boot — your DB and context files survive every
57
+ `npm install -g @aitne-sh/aitne@latest` upgrade. If you're reading this
58
+ because you just upgraded, **don't run the steps below**; restart the
59
+ daemon and let the migration runner do its job.
45
60
 
46
- ## Prerequisites
61
+ This guide is the last-resort escape hatch for:
47
62
 
48
- - A backup of `~/.personal-agent/context/` if you want it back.
63
+ - The DB is genuinely corrupt and `aitne start` fails with a SQLite
64
+ error you can't recover.
65
+ - You want to start over with a fresh setup wizard pass for an
66
+ unrelated reason (handing the install to someone else, debugging a
67
+ reproducible setup bug).
49
68
 
50
- ## Steps
69
+ For everything else, prefer:
51
70
 
52
- 1. `aitne stop`.
53
- 2. `cp -R ~/.personal-agent/context backup/` (optional).
54
- 3. `rm ~/.personal-agent/data/personal_agent.db*` (the SQLite file
55
- lives inside `data/`, not at the top of the data dir; the `*`
56
- also clears the `-shm`/`-wal` companions left behind by WAL mode).
57
- 4. `aitne start`.
58
- 5. Walk the setup wizard again.
71
+ - **Moving to a new machine** → [Migrate Machines](migrate-machines.md).
72
+ - **Recovering from accidental edits**
73
+ [Backup and Restore](backup-and-restore.md).
74
+ - **Just pausing the agent** [Pause the Agent](pause-the-agent.md).
59
75
 
60
- ## Verification
76
+ ## Pick the Right Reset
77
+
78
+ This guide wipes **only the SQLite database** (sessions, actions,
79
+ observations) and keeps your context Markdown. Three other resets exist
80
+ with different scopes — make sure you're running the one you mean:
81
+
82
+ | You want to… | Run | Wipes |
83
+ |---|---|---|
84
+ | Reset the DB, keep memory | this guide (`rm …/personal_agent.db*`) | SQLite only |
85
+ | Reset memory, keep the DB | `aitne restart --clean-context` | `context/` + `md_file_snapshots` (tarball backup first; type `CLEAN` to confirm) |
86
+ | Remove Aitne entirely | `aitne uninstall --wipe-data` | the whole `~/.personal-agent` data dir |
87
+ | Keep all data, just remove the binary | `aitne uninstall --keep-data` | nothing under the data dir |
88
+
89
+ ## Before You Wipe
90
+
91
+ 1. **Read the daemon log** (`aitne logs -n 200`) and copy the failing
92
+ line. If it's a migration error, the fix is usually upstream — file
93
+ an issue rather than wiping the DB and losing your history.
94
+ 2. **Back up context.**
95
+ ```bash
96
+ cp -R ~/.personal-agent/context backup/
97
+ ```
98
+ Context Markdown is what makes the agent know who you are; the DB is
99
+ recoverable, context is not.
100
+ 3. **Back up the DB** if there's any chance you'll want to recover it
101
+ later:
102
+ ```bash
103
+ cp ~/.personal-agent/data/personal_agent.db backup/
104
+ ```
105
+
106
+ ## The Reset
107
+
108
+ 1. Stop the daemon.
109
+ ```bash
110
+ aitne stop
111
+ ```
112
+ 2. Delete the SQLite file and its WAL/SHM companions.
113
+ ```bash
114
+ rm ~/.personal-agent/data/personal_agent.db*
115
+ ```
116
+ (The `*` glob clears `-shm` / `-wal` left behind by WAL mode. The DB
117
+ lives inside `data/`, not at the top of the data dir.)
118
+ 3. Start the daemon.
119
+ ```bash
120
+ aitne start
121
+ ```
122
+ 4. Walk the setup wizard again. Your context files are still there;
123
+ the wizard re-pairs messaging, re-registers backends, and re-seeds
124
+ the schema from scratch.
125
+
126
+ ## Verify
61
127
 
62
128
  - A new `data/personal_agent.db` is created on launch.
63
- - Setup wizard prompts you for credentials and pairing again.
129
+ - `aitne status` shows the daemon and dashboard both running.
130
+ - The setup wizard prompts you for credentials and pairing again.
64
131
 
65
132
  ## Related
66
133
 
67
134
  - [Backup and Restore](backup-and-restore.md)
135
+ - [Migrate Machines](migrate-machines.md)
136
+ - [Schema Migration](../glossary.md#schema-migration) — the boring
137
+ alternative to this guide that runs automatically on every boot.