@aitne-sh/aitne 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (249) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +464 -0
  3. package/agent-assets/agent-profiles/_safety.md +26 -0
  4. package/agent-assets/agent-profiles/conversational.md +33 -0
  5. package/agent-assets/agent-profiles/docs-qa.md +24 -0
  6. package/agent-assets/agent-profiles/observer.md +28 -0
  7. package/agent-assets/agent-profiles/profile-importer.md +63 -0
  8. package/agent-assets/agent-profiles/proxy.md +28 -0
  9. package/agent-assets/agent-profiles/routine.md +16 -0
  10. package/agent-assets/agent-profiles/task.md +18 -0
  11. package/agent-assets/docs/concepts/agent-day.md +88 -0
  12. package/agent-assets/docs/concepts/auth-health.md +75 -0
  13. package/agent-assets/docs/concepts/backends-and-tiers.md +126 -0
  14. package/agent-assets/docs/concepts/costs-and-quotas.md +103 -0
  15. package/agent-assets/docs/concepts/delegated-mode.md +223 -0
  16. package/agent-assets/docs/concepts/memory-model.md +118 -0
  17. package/agent-assets/docs/concepts/observations.md +80 -0
  18. package/agent-assets/docs/concepts/process-keys.md +89 -0
  19. package/agent-assets/docs/concepts/routines.md +108 -0
  20. package/agent-assets/docs/concepts/safety-and-execution.md +109 -0
  21. package/agent-assets/docs/concepts/safety-model.md +279 -0
  22. package/agent-assets/docs/concepts/skills.md +100 -0
  23. package/agent-assets/docs/features/integrations/calendar.md +92 -0
  24. package/agent-assets/docs/features/integrations/git.md +95 -0
  25. package/agent-assets/docs/features/integrations/github.md +170 -0
  26. package/agent-assets/docs/features/integrations/mail.md +106 -0
  27. package/agent-assets/docs/features/integrations/notion.md +69 -0
  28. package/agent-assets/docs/features/integrations/obsidian.md +71 -0
  29. package/agent-assets/docs/features/lifestyle/git.md +178 -0
  30. package/agent-assets/docs/features/lifestyle/reading.md +93 -0
  31. package/agent-assets/docs/features/lifestyle/receipts.md +71 -0
  32. package/agent-assets/docs/features/lifestyle/travel-bookings.md +44 -0
  33. package/agent-assets/docs/features/lifestyle/travel-time.md +52 -0
  34. package/agent-assets/docs/features/memory-files/agent-journal.md +105 -0
  35. package/agent-assets/docs/features/memory-files/projects.md +56 -0
  36. package/agent-assets/docs/features/memory-files/roadmap.md +61 -0
  37. package/agent-assets/docs/features/memory-files/schedule.md +112 -0
  38. package/agent-assets/docs/features/memory-files/today.md +73 -0
  39. package/agent-assets/docs/features/memory-files/user-profile.md +81 -0
  40. package/agent-assets/docs/features/messaging/dashboard-chat.md +93 -0
  41. package/agent-assets/docs/features/messaging/discord.md +50 -0
  42. package/agent-assets/docs/features/messaging/overview.md +111 -0
  43. package/agent-assets/docs/features/messaging/pairing-and-magic-phrase.md +69 -0
  44. package/agent-assets/docs/features/messaging/slack.md +51 -0
  45. package/agent-assets/docs/features/messaging/telegram.md +63 -0
  46. package/agent-assets/docs/features/messaging/whatsapp.md +48 -0
  47. package/agent-assets/docs/features/operations/activity-and-conversations.md +105 -0
  48. package/agent-assets/docs/features/operations/approvals.md +58 -0
  49. package/agent-assets/docs/features/operations/backend-routing.md +62 -0
  50. package/agent-assets/docs/features/operations/cost-tracking.md +59 -0
  51. package/agent-assets/docs/features/operations/notifications.md +69 -0
  52. package/agent-assets/docs/features/operations/quiet-hours.md +106 -0
  53. package/agent-assets/docs/features/operations/schedule-approaching.md +60 -0
  54. package/agent-assets/docs/features/routines/custom-routines.md +101 -0
  55. package/agent-assets/docs/features/routines/evening-review.md +81 -0
  56. package/agent-assets/docs/features/routines/hourly-check.md +85 -0
  57. package/agent-assets/docs/features/routines/monthly-review.md +65 -0
  58. package/agent-assets/docs/features/routines/morning-routine.md +123 -0
  59. package/agent-assets/docs/features/routines/weekly-review.md +70 -0
  60. package/agent-assets/docs/getting-started/01-what-is-this.md +192 -0
  61. package/agent-assets/docs/getting-started/02-first-steps.md +80 -0
  62. package/agent-assets/docs/getting-started/03-what-can-this-do.md +110 -0
  63. package/agent-assets/docs/getting-started/04-first-day.md +287 -0
  64. package/agent-assets/docs/glossary.md +116 -0
  65. package/agent-assets/docs/guides/add-a-custom-routine.md +71 -0
  66. package/agent-assets/docs/guides/backup-and-restore.md +54 -0
  67. package/agent-assets/docs/guides/change-which-model-handles-x.md +47 -0
  68. package/agent-assets/docs/guides/connect-a-new-mail-account.md +59 -0
  69. package/agent-assets/docs/guides/import-knowledge-file.md +275 -0
  70. package/agent-assets/docs/guides/install-and-run.md +72 -0
  71. package/agent-assets/docs/guides/migrate-machines.md +52 -0
  72. package/agent-assets/docs/guides/pause-the-agent.md +65 -0
  73. package/agent-assets/docs/guides/reinstall-cleanly.md +52 -0
  74. package/agent-assets/docs/guides/setup-wizard.md +107 -0
  75. package/agent-assets/docs/guides/switch-default-backend.md +60 -0
  76. package/agent-assets/docs/reference/api.md +51 -0
  77. package/agent-assets/docs/reference/cli-commands.md +121 -0
  78. package/agent-assets/docs/reference/config.md +74 -0
  79. package/agent-assets/docs/reference/disallowed-tools.md +76 -0
  80. package/agent-assets/docs/reference/keyboard-shortcuts.md +39 -0
  81. package/agent-assets/docs/reference/process-keys.md +59 -0
  82. package/agent-assets/docs/reference/skills.md +50 -0
  83. package/agent-assets/docs/troubleshooting/auth-failed.md +57 -0
  84. package/agent-assets/docs/troubleshooting/dashboard-shows-degraded.md +55 -0
  85. package/agent-assets/docs/troubleshooting/fallback-keeps-firing.md +54 -0
  86. package/agent-assets/docs/troubleshooting/messaging-not-pairing.md +53 -0
  87. package/agent-assets/docs/troubleshooting/morning-routine-didnt-run.md +75 -0
  88. package/agent-assets/docs/troubleshooting/observation-not-detected.md +57 -0
  89. package/agent-assets/docs/troubleshooting/quota-exhausted.md +57 -0
  90. package/agent-assets/optimizer-skills/drift-analysis/SKILL.md +75 -0
  91. package/agent-assets/optimizer-skills/knowledge-map/SKILL.md +71 -0
  92. package/agent-assets/optimizer-skills/skill-curation/SKILL.md +108 -0
  93. package/agent-assets/project-doc-templates/git-repo.md +21 -0
  94. package/agent-assets/project-doc-templates/project.md +38 -0
  95. package/agent-assets/skills/attach/SKILL.md +104 -0
  96. package/agent-assets/skills/context/SKILL.md +257 -0
  97. package/agent-assets/skills/context/curation.json +37 -0
  98. package/agent-assets/skills/context/seeds/file-responsibilities.seed.json +13 -0
  99. package/agent-assets/skills/context/seeds/frontmatter-requirements.seed.json +40 -0
  100. package/agent-assets/skills/docs-search/SKILL.md +176 -0
  101. package/agent-assets/skills/external-services/SKILL.delegated.claude.md +369 -0
  102. package/agent-assets/skills/external-services/SKILL.delegated.codex.md +349 -0
  103. package/agent-assets/skills/external-services/SKILL.delegated.gemini.md +347 -0
  104. package/agent-assets/skills/external-services/SKILL.md +371 -0
  105. package/agent-assets/skills/mail/SKILL.delegated.claude.md +284 -0
  106. package/agent-assets/skills/mail/SKILL.delegated.codex.md +261 -0
  107. package/agent-assets/skills/mail/SKILL.delegated.gemini.md +255 -0
  108. package/agent-assets/skills/mail/SKILL.md +313 -0
  109. package/agent-assets/skills/mail/references/errors.md +17 -0
  110. package/agent-assets/skills/mail/references/providers.md +40 -0
  111. package/agent-assets/skills/mail/references/query-grammar.md +24 -0
  112. package/agent-assets/skills/management-policy/SKILL.md +307 -0
  113. package/agent-assets/skills/management-policy/curation.json +13 -0
  114. package/agent-assets/skills/management-policy/seeds/policy-file-shape.seed.json +16 -0
  115. package/agent-assets/skills/management-task-modify/SKILL.md +202 -0
  116. package/agent-assets/skills/management-task-register/SKILL.md +330 -0
  117. package/agent-assets/skills/management-task-stop/SKILL.md +166 -0
  118. package/agent-assets/skills/notify/SKILL.md +196 -0
  119. package/agent-assets/skills/notion/SKILL.delegated.claude.md +254 -0
  120. package/agent-assets/skills/notion/SKILL.delegated.codex.md +195 -0
  121. package/agent-assets/skills/notion/SKILL.delegated.gemini.md +194 -0
  122. package/agent-assets/skills/notion/SKILL.md +86 -0
  123. package/agent-assets/skills/observations/SKILL.md +234 -0
  124. package/agent-assets/skills/observations/curation.json +13 -0
  125. package/agent-assets/skills/observations/seeds/source-namespacing.seed.json +20 -0
  126. package/agent-assets/skills/project-doc/SKILL.md +86 -0
  127. package/agent-assets/skills/project-doc/curation.json +21 -0
  128. package/agent-assets/skills/project-doc/seeds/project-shape.seed.json +25 -0
  129. package/agent-assets/skills/project-doc/seeds/slug-grammar.seed.json +20 -0
  130. package/agent-assets/skills/reading/SKILL.md +198 -0
  131. package/agent-assets/skills/reading/references/reading-taste.md +197 -0
  132. package/agent-assets/skills/receipts/SKILL.md +134 -0
  133. package/agent-assets/skills/roadmap/SKILL.md +276 -0
  134. package/agent-assets/skills/roadmap/curation.json +13 -0
  135. package/agent-assets/skills/roadmap/references/horizon-tags.md +40 -0
  136. package/agent-assets/skills/roadmap/references/preparation-timeline.md +47 -0
  137. package/agent-assets/skills/roadmap/seeds/entry-types.seed.json +16 -0
  138. package/agent-assets/skills/schedule/SKILL.md +228 -0
  139. package/agent-assets/skills/scheduled-managed-task/SKILL.md +392 -0
  140. package/agent-assets/skills/today/SKILL.md +198 -0
  141. package/agent-assets/skills/today/curation.json +21 -0
  142. package/agent-assets/skills/today/seeds/agent-notes-flavors.seed.json +17 -0
  143. package/agent-assets/skills/today/seeds/section-shape.seed.json +17 -0
  144. package/agent-assets/skills/travel/SKILL.md +132 -0
  145. package/agent-assets/skills/travel-time/SKILL.md +149 -0
  146. package/agent-assets/skills/user-interview/SKILL.md +323 -0
  147. package/agent-assets/skills/user-interview/references/sweep-and-fallback.md +94 -0
  148. package/agent-assets/skills/user-profile/SKILL.md +210 -0
  149. package/agent-assets/skills/user-profile/curation.json +29 -0
  150. package/agent-assets/skills/user-profile/seeds/learned-context-format.seed.json +14 -0
  151. package/agent-assets/skills/user-profile/seeds/routing-table.seed.json +53 -0
  152. package/agent-assets/skills/user-profile/seeds/topic-files.seed.json +27 -0
  153. package/agent-assets/task-flows/dashboard.docs_qa.md +43 -0
  154. package/agent-assets/task-flows/default.md +11 -0
  155. package/agent-assets/task-flows/git.branch.created.md +25 -0
  156. package/agent-assets/task-flows/git.lifecycle.poll.md +52 -0
  157. package/agent-assets/task-flows/git.local_ahead.stale.md +34 -0
  158. package/agent-assets/task-flows/git.merge_to_default.md +30 -0
  159. package/agent-assets/task-flows/git.project.refresh_architecture.md +100 -0
  160. package/agent-assets/task-flows/git.project.retemplate.md +73 -0
  161. package/agent-assets/task-flows/git.push.detected.md +32 -0
  162. package/agent-assets/task-flows/git.push.force_pushed.md +36 -0
  163. package/agent-assets/task-flows/git.tag.created.md +24 -0
  164. package/agent-assets/task-flows/github.assigned.md +43 -0
  165. package/agent-assets/task-flows/github.pull_request.review_requested.md +57 -0
  166. package/agent-assets/task-flows/github.security_alert.md +45 -0
  167. package/agent-assets/task-flows/github.workflow_run.failed.md +57 -0
  168. package/agent-assets/task-flows/knowledge.import.md +161 -0
  169. package/agent-assets/task-flows/message.received.dm.md +142 -0
  170. package/agent-assets/task-flows/message.received.dm_first.md +117 -0
  171. package/agent-assets/task-flows/message.received.md +14 -0
  172. package/agent-assets/task-flows/routine.custom.md +38 -0
  173. package/agent-assets/task-flows/routine.evening_review.md +323 -0
  174. package/agent-assets/task-flows/routine.hourly_check.delegated.claude.md +405 -0
  175. package/agent-assets/task-flows/routine.hourly_check.delegated.codex.md +400 -0
  176. package/agent-assets/task-flows/routine.hourly_check.delegated.gemini.md +404 -0
  177. package/agent-assets/task-flows/routine.hourly_check.md +184 -0
  178. package/agent-assets/task-flows/routine.hourly_check.triage.md +93 -0
  179. package/agent-assets/task-flows/routine.monthly_review.md +250 -0
  180. package/agent-assets/task-flows/routine.morning_routine.md +300 -0
  181. package/agent-assets/task-flows/routine.morning_routine_initial.md +184 -0
  182. package/agent-assets/task-flows/routine.roadmap_refresh.md +275 -0
  183. package/agent-assets/task-flows/routine.today_refresh.md +172 -0
  184. package/agent-assets/task-flows/routine.user_profile_sweep.md +242 -0
  185. package/agent-assets/task-flows/routine.weekly_review.md +247 -0
  186. package/agent-assets/task-flows/schedule.approaching.md +124 -0
  187. package/agent-assets/task-flows/scheduled.dm.md +391 -0
  188. package/agent-assets/task-flows/scheduled.task.md +141 -0
  189. package/agent-assets/task-flows/setup.initial.md +277 -0
  190. package/agent-assets/task-flows/setup.update.md +53 -0
  191. package/agent-assets/templates/README.md +85 -0
  192. package/agent-assets/templates/_index.md +39 -0
  193. package/agent-assets/templates/_manifest.json +103 -0
  194. package/agent-assets/templates/agent/journal.md +10 -0
  195. package/agent-assets/templates/agent/profile-questions.md +74 -0
  196. package/agent-assets/templates/context-index.md +42 -0
  197. package/agent-assets/templates/dossiers/_index.md +22 -0
  198. package/agent-assets/templates/dossiers/evening.md +23 -0
  199. package/agent-assets/templates/dossiers/hourly.md +23 -0
  200. package/agent-assets/templates/dossiers/monthly.md +23 -0
  201. package/agent-assets/templates/dossiers/morning.md +23 -0
  202. package/agent-assets/templates/dossiers/roadmap.md +23 -0
  203. package/agent-assets/templates/dossiers/weekly.md +23 -0
  204. package/agent-assets/templates/projects/_active.base +14 -0
  205. package/agent-assets/templates/projects/_index.md +29 -0
  206. package/agent-assets/templates/roadmap.md +15 -0
  207. package/agent-assets/templates/routines/_index.md +20 -0
  208. package/agent-assets/templates/routines/evening.md +22 -0
  209. package/agent-assets/templates/routines/hourly.md +30 -0
  210. package/agent-assets/templates/routines/monthly.md +25 -0
  211. package/agent-assets/templates/routines/morning.md +26 -0
  212. package/agent-assets/templates/routines/weekly.md +23 -0
  213. package/agent-assets/templates/rules/_index.md +19 -0
  214. package/agent-assets/templates/rules/journal-export.md +41 -0
  215. package/agent-assets/templates/rules/journal-format.md +61 -0
  216. package/agent-assets/templates/rules/management.md +48 -0
  217. package/agent-assets/templates/rules/mcp.md +40 -0
  218. package/agent-assets/templates/rules/policies/_index.md +22 -0
  219. package/agent-assets/templates/rules/redaction.md +30 -0
  220. package/agent-assets/templates/today.md +13 -0
  221. package/agent-assets/templates/user/_index.md +16 -0
  222. package/agent-assets/templates/user/expertise.md +7 -0
  223. package/agent-assets/templates/user/goals.md +7 -0
  224. package/agent-assets/templates/user/people.md +7 -0
  225. package/agent-assets/templates/user/personal.md +7 -0
  226. package/agent-assets/templates/user/profile.md +28 -0
  227. package/agent-assets/templates/user/work.md +7 -0
  228. package/bin/aitne.mjs +1096 -0
  229. package/package.json +78 -0
  230. package/personal-agent.mjs +39 -0
  231. package/scripts/browser.mjs +99 -0
  232. package/scripts/check-redaction-coverage.mjs +109 -0
  233. package/scripts/commands/audit.mjs +309 -0
  234. package/scripts/commands/doctor.mjs +437 -0
  235. package/scripts/commands/open.mjs +40 -0
  236. package/scripts/commands/setup.mjs +21 -0
  237. package/scripts/commands/uninstall.mjs +114 -0
  238. package/scripts/commands/update.mjs +96 -0
  239. package/scripts/commands/version.mjs +62 -0
  240. package/scripts/commands.md +0 -0
  241. package/scripts/lib/sqlite-loader.mjs +49 -0
  242. package/scripts/message-discipline-digest.mjs +535 -0
  243. package/scripts/poc/google-connector-inheritance/REPORT.md +197 -0
  244. package/scripts/poc/google-connector-inheritance/claude-sdk-probe.mjs +79 -0
  245. package/scripts/remint-roadmap-ids.mjs +257 -0
  246. package/scripts/rm-paths.mjs +22 -0
  247. package/scripts/run-node.mjs +223 -0
  248. package/scripts/smoke-obsidian-api.mjs +166 -0
  249. package/scripts/start.mjs +160 -0
@@ -0,0 +1,275 @@
1
+ ---
2
+ schema_version: 1
3
+ slug: guides/import-knowledge-file
4
+ title: Import a Knowledge File
5
+ id: import-knowledge-file
6
+ category: guides
7
+ summary: |
8
+ 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.
11
+ section: import-knowledge-file
12
+ tags:
13
+ - guide
14
+ - knowledge
15
+ - import
16
+ - chatgpt
17
+ - gemini
18
+ - memory
19
+ status: stable
20
+ ask_examples:
21
+ - How do I upload a profile file from ChatGPT?
22
+ - How do I export my Gemini conversation history?
23
+ - How do I bring facts from another AI into Aitne?
24
+ - What format does the Knowledge upload accept?
25
+ locale: en-US
26
+ created: 2026-04-28
27
+ updated: 2026-04-28
28
+ ui_anchors:
29
+ - /knowledge
30
+ related:
31
+ - concepts/memory-model
32
+ - features/memory-files/user-profile
33
+ - getting-started/04-first-day
34
+ ---
35
+
36
+ # Import a Knowledge File
37
+
38
+ ## Goal
39
+
40
+ Bring a single Markdown (`.md`, `.markdown`) or plain-text (`.txt`)
41
+ file you wrote elsewhere — a hand-written profile, an Obsidian or
42
+ 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.
47
+
48
+ ## Prerequisites
49
+
50
+ - Initial setup is complete (`rules/management.md` saved). Pre-setup
51
+ 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).
57
+ - The file does not contain private keys, API tokens, or credentials.
58
+ The route rejects these at upload time and never persists them.
59
+
60
+ ## Where the facts land
61
+
62
+ | Class of fact | Target Context File |
63
+ |---|---|
64
+ | 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` |
71
+
72
+ Conflicts (a source bullet that contradicts an existing bullet) land in
73
+ a `## Pending Conflicts` section on the affected file with the upload
74
+ date inline, so you can resolve them later without losing data.
75
+
76
+ ## Steps — uploading the file
77
+
78
+ 1. Open `/knowledge?tab=upload` (Knowledge → Upload tab).
79
+ 2. Click **Choose file** and select your `.md` / `.markdown` / `.txt`
80
+ file.
81
+ 3. Pick the **Source** that matches where the file came from
82
+ (`Wrote it myself`, `Exported from Obsidian`, `Exported from
83
+ Notion`, or `Other`). The label is recorded in the journal entry
84
+ the import session writes when it finishes.
85
+ 4. Pick the **Execution agent**. The dropdown lists only backends that
86
+ are enabled, authenticated, have their CLI binary on `PATH`, and
87
+ have at least one model available. Pick `Use default routing` to
88
+ let the daemon's main backend run it.
89
+ 5. Click **Import**. The form returns immediately with a 202 + trace id
90
+ — the heavy-tier session runs in the background.
91
+ 6. Watch progress under the linked **Activity** view (filtered by the
92
+ trace id) and review the resulting bullets under
93
+ `/knowledge?tab=context-files` once the run finishes.
94
+
95
+ ## Verification
96
+
97
+ - A `knowledge_import_started` row appears in the Activity feed within
98
+ a second of clicking Import.
99
+ - A `knowledge.import` row with a cost / duration follows once the
100
+ session completes (typically 30 s to 2 min depending on file size
101
+ and backend).
102
+ - The agent appends a single `## YYYY-MM-DD knowledge import` block to
103
+ `agent/journal.md` summarising the run — counts of facts written /
104
+ skipped, pending conflicts, and identity-class facts awaiting
105
+ confirmation.
106
+ - Open each affected `user/*.md` file under Context Files. New bullets
107
+ should be verbatim copies of lines in your source file.
108
+
109
+ ## If It Fails
110
+
111
+ - **`415 unsupported_extension`** — the file is not `.md`,
112
+ `.markdown`, or `.txt`. Convert PDFs / DOCX / HTML to plain
113
+ Markdown first.
114
+ - **`413 file_too_large`** — exceed 64 KB. Split the file into
115
+ smaller chunks and upload each separately.
116
+ - **`400 secret_shape_detected`** — the route found content shaped
117
+ like a private key or token. Remove the offending lines and re-
118
+ upload.
119
+ - **`409 setup_incomplete`** — finish the setup wizard first
120
+ (`/setup`).
121
+ - **`No authenticated backends`** in the Execution agent dropdown —
122
+ set up a backend under Connections → Backends, then return.
123
+
124
+ ---
125
+
126
+ # Recipe: Export your profile from ChatGPT
127
+
128
+ OpenAI does not ship a one-click "export as Markdown" button, but the
129
+ following two paths produce a file that uploads cleanly.
130
+
131
+ ## Recommended: ask ChatGPT to write it for you (≈ 2 min)
132
+
133
+ Works against ChatGPT's *Memory* feature — the model already holds a
134
+ list of personal facts about you. This procedure asks it to dump them
135
+ in the exact format the upload expects.
136
+
137
+ 1. Open <https://chatgpt.com> and start a **new conversation**. (Use
138
+ a model with Memory enabled — GPT-4o, GPT-5, etc.)
139
+ 2. Send the prompt below verbatim:
140
+
141
+ ```
142
+ Output a Markdown summary of every personal fact you know about me
143
+ from our past conversations and from your saved memory.
144
+
145
+ Use only these H2 headings, in this order:
146
+
147
+ ## Identity
148
+ ## People
149
+ ## Work
150
+ ## Expertise
151
+ ## Personal
152
+ ## Goals
153
+ ## Misc
154
+
155
+ Rules:
156
+ - One bullet per fact, prefixed with "- ".
157
+ - Verbatim and concise. Do not paraphrase or embellish.
158
+ - Skip any fact you are not certain about.
159
+ - Do not invent or infer beyond what I explicitly told you.
160
+ - Omit any credentials, API keys, passwords, or tokens.
161
+ - If a section has no facts, keep the heading and leave the body empty.
162
+
163
+ Output only the Markdown. No preamble, no explanation, no closing
164
+ remarks.
165
+ ```
166
+
167
+ 3. Copy the entire response (no surrounding ChatGPT chrome) into a new
168
+ file `chatgpt-profile.md`.
169
+ 4. Skim the file before upload. Delete any line you don't want
170
+ imported — the upload writes facts verbatim.
171
+ 5. Upload via Knowledge → Upload, with **Source** = `Other`.
172
+
173
+ ## Comprehensive: official Data Export → convert (≈ 30 min, large)
174
+
175
+ Use this when you want to seed Aitne with the *complete* history.
176
+ Output is bulky and requires manual filtering.
177
+
178
+ 1. In ChatGPT, click your account avatar → **Settings** → **Data
179
+ controls** → **Export data** → **Export**. Confirm via the email
180
+ OpenAI sends; the email's download link expires after 24 h.
181
+ 2. Download the resulting `.zip` (typically 1–50 MB) and unzip. Key
182
+ files inside:
183
+ - `conversations.json` — every chat as JSON, turn-by-turn.
184
+ - `chat.html` — a browseable HTML view.
185
+ - `user.json`, `message_feedback.json`, `model_comparisons.json` —
186
+ metadata, not useful for import.
187
+ 3. The export is JSON, not Markdown. Convert it manually: open
188
+ `chat.html` in a browser, search/skim for personal facts, paste
189
+ them into a new `chatgpt-export.md` under the same H2 headings as
190
+ above. Discard verbose model responses and code snippets — only
191
+ keep facts *you* told ChatGPT.
192
+ 4. Cap the result at 64 KB. If larger, split into multiple files and
193
+ upload one at a time.
194
+ 5. Upload via Knowledge → Upload, with **Source** = `Other`.
195
+
196
+ ## Bonus: copy your saved memory list
197
+
198
+ ChatGPT's Memory page exposes the structured fact list directly.
199
+
200
+ 1. **Settings** → **Personalization** → **Memory** → **Manage**.
201
+ 2. The list shows each saved memory as a separate row.
202
+ 3. Copy the rows into a new file under `## Misc` (or split into the
203
+ right H2 headings yourself), one bullet per row.
204
+ 4. Upload as `chatgpt-memory.md`.
205
+
206
+ ---
207
+
208
+ # Recipe: Export your profile from Gemini
209
+
210
+ Google Gemini's options mirror ChatGPT's at a high level — no native
211
+ Markdown export, but the in-conversation prompt method works the same
212
+ way, and Google Takeout produces a comprehensive archive.
213
+
214
+ ## Recommended: ask Gemini to write it for you (≈ 2 min)
215
+
216
+ 1. Open <https://gemini.google.com> and start a **new conversation**.
217
+ The model uses **Saved info** (the Gemini equivalent of ChatGPT's
218
+ Memory) plus past-conversation context if you have it enabled
219
+ (Settings → **Activity** → conversations are saved).
220
+ 2. Send the same prompt as the ChatGPT recipe — it works as written
221
+ against Gemini.
222
+ 3. Copy the response into `gemini-profile.md`, skim, and upload via
223
+ Knowledge → Upload with **Source** = `Other`.
224
+
225
+ ## Comprehensive: Google Takeout (≈ 1 hr, archive may take longer)
226
+
227
+ 1. Visit <https://takeout.google.com>.
228
+ 2. **Deselect all**, then check **Gemini Apps Activity** (and
229
+ optionally **My Activity** for older Bard / Gemini sessions).
230
+ 3. Click **Next step**, choose `.zip` and a delivery method, then
231
+ **Create export**. Google emails a download link when the archive
232
+ is ready (minutes to hours depending on volume).
233
+ 4. Unzip the archive. Inside `Gemini Apps Activity/`, look for
234
+ `MyActivity.html` (browseable) and `MyActivity.json` (structured).
235
+ 5. Same conversion procedure as the ChatGPT comprehensive recipe:
236
+ open the HTML, harvest the personal facts you told Gemini, paste
237
+ them under the right H2 headings, save as `gemini-export.md`,
238
+ keep under 64 KB, upload.
239
+
240
+ ## Bonus: copy your Saved info list
241
+
242
+ 1. Open Gemini → click your avatar / settings → **Saved info**.
243
+ 2. Copy each saved row into a new `gemini-saved-info.md` under the
244
+ right H2 heading, one bullet per row.
245
+ 3. Upload as above.
246
+
247
+ ---
248
+
249
+ ## Tips that apply to both services
250
+
251
+ - **One round per topic file.** If your file has a lot of work facts
252
+ but few personal facts, you can upload a "work-only" file first,
253
+ verify the result in Context Files, then upload a separate file
254
+ for personal facts. This is easier to review than one large mixed
255
+ upload.
256
+ - **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.
259
+ - **Identity is special.** Even if your file says
260
+ `- Name: <Your Name>`, the agent will *not* write it to
261
+ `user/profile.md`. It surfaces in the journal entry instead, where
262
+ you can confirm and accept it via the dashboard.
263
+ - **Conflicts are flagged, not merged.** If your file contradicts an
264
+ existing bullet, the agent appends the new bullet to a
265
+ `## Pending Conflicts` section on the same file rather than
266
+ overwriting. Reconcile manually under Context Files.
267
+ - **Multiple uploads are fine.** Each session is independent, so you
268
+ can run the same recipe against ChatGPT and Gemini and upload both
269
+ files. Duplicate facts are skipped on the second run.
270
+
271
+ ## Related
272
+
273
+ - [Memory Model](../concepts/memory-model.md)
274
+ - [user/profile.md](../features/memory-files/user-profile.md)
275
+ - [First Day](../getting-started/04-first-day.md)
@@ -0,0 +1,72 @@
1
+ ---
2
+ schema_version: 1
3
+ slug: guides/install-and-run
4
+ title: Install and Run
5
+ id: install-and-run
6
+ category: guides
7
+ 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.
10
+ tags:
11
+ - install
12
+ - setup
13
+ status: stable
14
+ ask_examples:
15
+ - How do I install Aitne?
16
+ - What command starts the daemon?
17
+ - Where does Aitne put its data?
18
+ locale: en-US
19
+ created: 2026-04-25
20
+ updated: 2026-04-27
21
+ keywords:
22
+ - install
23
+ - first run
24
+ - pnpm
25
+ - pa start
26
+ related:
27
+ - reference/cli-commands
28
+ - guides/reinstall-cleanly
29
+ - guides/migrate-machines
30
+ ---
31
+
32
+ # Install and Run
33
+
34
+ ## Goal
35
+
36
+ Get the daemon and dashboard running on your machine so you can step
37
+ through the setup wizard.
38
+
39
+ ## Prerequisites
40
+
41
+ - Node ≥ 22, pnpm 10.x.
42
+ - A Claude Code / Codex / Gemini CLI subscription (at least one).
43
+ - ~200 MB of disk for the daemon's local state.
44
+
45
+ ## Steps
46
+
47
+ 1. `git clone <repo> personal_agent && cd personal_agent`
48
+ 2. `pnpm install`
49
+ 3. `pnpm start` — builds (if stale) and launches daemon + dashboard
50
+ in the background.
51
+ 4. Open `http://localhost:3000` and follow the setup wizard.
52
+
53
+ ## Verification
54
+
55
+ - `pnpm status` shows two PIDs (daemon + dashboard) and a green health
56
+ pill.
57
+ - `~/.personal-agent/` has been created with `data/personal_agent.db`,
58
+ `context/`, and the log directory.
59
+
60
+ ## If It Fails
61
+
62
+ - A port conflict — set `PA_API_PORT` (default 8321) or
63
+ `PA_DASHBOARD_PORT` (default 3000).
64
+ - Build errors during `pnpm start`: run `pnpm clean && pnpm build`
65
+ for verbose output.
66
+
67
+ ## Related
68
+
69
+ - [CLI Commands](../reference/cli-commands.md) — full `pa` command
70
+ list and environment overrides.
71
+ - [Setup Wizard](setup-wizard.md) — what each wizard step does.
72
+ - [Reinstall Cleanly](reinstall-cleanly.md) — wipe and start over.
@@ -0,0 +1,52 @@
1
+ ---
2
+ schema_version: 1
3
+ slug: guides/migrate-machines
4
+ title: Migrate Machines
5
+ id: migrate-machines
6
+ category: guides
7
+ summary: |
8
+ Move a Aitne install to a new machine — install the daemon,
9
+ copy the context directory, re-pair messaging apps.
10
+ section: migrate-machines
11
+ tags:
12
+ - guide
13
+ - operations
14
+ status: stable
15
+ ask_examples:
16
+ - Can I move Aitne to a new laptop?
17
+ locale: en-US
18
+ created: 2026-04-25
19
+ updated: 2026-04-25
20
+ related:
21
+ - guides/backup-and-restore
22
+ - guides/reinstall-cleanly
23
+ ---
24
+
25
+ # Migrate Machines
26
+
27
+ ## Goal
28
+
29
+ Carry your Aitne identity to a new machine without losing
30
+ context-file history.
31
+
32
+ ## Steps
33
+
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.
39
+
40
+ ## Verification
41
+
42
+ - Context files match.
43
+ - Routines fire on the new machine's schedule.
44
+
45
+ ## If It Fails
46
+
47
+ - OS-keychain credentials don't move automatically — re-authorize
48
+ each backend on the new machine.
49
+
50
+ ## Related
51
+
52
+ - [Backup and Restore](backup-and-restore.md)
@@ -0,0 +1,65 @@
1
+ ---
2
+ schema_version: 1
3
+ slug: guides/pause-the-agent
4
+ title: Pause the Agent
5
+ id: pause-the-agent
6
+ aliases:
7
+ - stop notifications
8
+ - disable routines
9
+ category: guides
10
+ summary: |
11
+ Stop the agent from acting (without uninstalling it) by disabling
12
+ routines and entering an extended quiet hours window.
13
+ section: pause-the-agent
14
+ tags:
15
+ - guide
16
+ - operations
17
+ status: stable
18
+ ask_examples:
19
+ - How do I pause the agent without uninstalling?
20
+ - Can I disable everything for a week?
21
+ locale: en-US
22
+ created: 2026-04-25
23
+ updated: 2026-04-25
24
+ related:
25
+ - features/operations/quiet-hours
26
+ - concepts/routines
27
+ ---
28
+
29
+ # Pause the Agent
30
+
31
+ ## Goal
32
+
33
+ Stop autonomous activity for a window — vacation, focus week — without
34
+ losing your install.
35
+
36
+ ## Prerequisites
37
+
38
+ - Daemon running.
39
+
40
+ ## Steps
41
+
42
+ 1. **Disable the hourly check** from `/settings/routines` — toggle
43
+ `hourlyCheckEnabled` off. Morning, evening, weekly, and monthly
44
+ reviews fire at fixed times in code, so they cannot be toggled
45
+ from the dashboard; the most reliable mute is `pa stop`.
46
+ 2. **Set an extended quiet hours window** on `/settings/schedule` —
47
+ e.g. `quietHoursStart: "00:00"`, `quietHoursEnd: "23:59"`. Both
48
+ fields take an `HH:MM` string. This silences notifications while
49
+ keeping routines running.
50
+ 3. **Optionally** stop the daemon entirely with `pa stop`. This is
51
+ the only way to fully suppress the fixed-schedule routines.
52
+
53
+ ## Verification
54
+
55
+ - The Activity feed shows no new routine fires.
56
+ - No notifications arrive.
57
+
58
+ ## If It Fails
59
+
60
+ - A routine that still fires: confirm the toggle saved on
61
+ `/settings/routines`. The dashboard's "Save" button must be clicked.
62
+
63
+ ## Related
64
+
65
+ - [Quiet Hours](../features/operations/quiet-hours.md)
@@ -0,0 +1,52 @@
1
+ ---
2
+ schema_version: 1
3
+ slug: guides/reinstall-cleanly
4
+ title: Reinstall Cleanly
5
+ id: reinstall-cleanly
6
+ category: guides
7
+ summary: |
8
+ Aitne's policy is "clean reinstall, no data migration".
9
+ Stop the daemon, delete the data directory, re-launch — the setup
10
+ wizard re-seeds.
11
+ section: reinstall-cleanly
12
+ tags:
13
+ - guide
14
+ - operations
15
+ status: stable
16
+ ask_examples:
17
+ - How do I reinstall Aitne?
18
+ - What does a clean reinstall delete?
19
+ locale: en-US
20
+ created: 2026-04-25
21
+ updated: 2026-04-25
22
+ related:
23
+ - guides/backup-and-restore
24
+ ---
25
+
26
+ # Reinstall Cleanly
27
+
28
+ ## Goal
29
+
30
+ Reset Aitne's state without losing your context files.
31
+
32
+ ## Prerequisites
33
+
34
+ - A backup of `~/.personal-agent/context/` if you want it back.
35
+
36
+ ## Steps
37
+
38
+ 1. `pa stop`.
39
+ 2. `cp -R ~/.personal-agent/context backup/` (optional).
40
+ 3. `rm ~/.personal-agent/data/personal_agent.db` (the SQLite file lives
41
+ inside `data/`, not at the top of the data dir).
42
+ 4. `pa start`.
43
+ 5. Walk the setup wizard again.
44
+
45
+ ## Verification
46
+
47
+ - A new `data/personal_agent.db` is created on launch.
48
+ - Setup wizard prompts you for credentials and pairing again.
49
+
50
+ ## Related
51
+
52
+ - [Backup and Restore](backup-and-restore.md)
@@ -0,0 +1,107 @@
1
+ ---
2
+ schema_version: 1
3
+ slug: guides/setup-wizard
4
+ title: Setup Wizard Walkthrough
5
+ id: setup-wizard
6
+ aliases:
7
+ - setup wizard
8
+ - first run wizard
9
+ - install wizard
10
+ category: guides
11
+ summary: |
12
+ Walks through the setup wizard step by step: profile, time axis,
13
+ backends and plans, messaging pairing, integrations, execution mode.
14
+ tags:
15
+ - setup
16
+ status: stable
17
+ ask_examples:
18
+ - What does each setup step do?
19
+ - Can I rerun the setup wizard?
20
+ - Do I have to connect every integration to start?
21
+ locale: en-US
22
+ created: 2026-04-25
23
+ updated: 2026-04-27
24
+ keywords:
25
+ - setup
26
+ - wizard
27
+ - first run
28
+ related:
29
+ - getting-started/01-what-is-this
30
+ - getting-started/02-first-steps
31
+ - getting-started/04-first-day
32
+ - concepts/safety-and-execution
33
+ ui_anchors:
34
+ - /setup
35
+ ---
36
+
37
+ # Setup Wizard Walkthrough
38
+
39
+ ## Goal
40
+
41
+ Take a fresh install through the wizard with informed answers at each
42
+ step. The wizard is rerunnable any time (`/setup?mode=update`); skip
43
+ the steps you have already filled in.
44
+
45
+ ## Prerequisites
46
+
47
+ - The daemon is launched (`pa start` or `pnpm start`).
48
+ - The dashboard is reachable at `http://localhost:3000`.
49
+
50
+ ## Steps
51
+
52
+ ### Step 1 — Profile
53
+
54
+ Pick a display name for the agent and (optionally) a character
55
+ prompt. The character is prepended to every session as part of the
56
+ agent profile.
57
+
58
+ ### Step 2 — Time Axis
59
+
60
+ Set your timezone and `dayBoundaryHour` (default 04:00). See
61
+ [Agent Day](../concepts/agent-day.md) for why the boundary is not
62
+ midnight.
63
+
64
+ ### Step 3 — Backends and Plans
65
+
66
+ Pick a main backend (Claude / Codex / Gemini) and the plan you
67
+ subscribe to. You can change this any time on `/settings/models`.
68
+
69
+ ### Step 4 — Execution Mode
70
+
71
+ Choose Safe (recommended) or Allow per backend. The absolute-block
72
+ layer holds in both modes; Safe is the strict-permission posture.
73
+
74
+ ### Step 5 — Messaging
75
+
76
+ Pair at least one messaging app (Telegram is the easiest). Without
77
+ a paired app, the agent has no way to DM you.
78
+
79
+ ### Step 6 — Integrations
80
+
81
+ Optional — connect mail, calendar, git, Notion, Obsidian as you go.
82
+ Each integration is independently re-runnable from `/connections`.
83
+
84
+ ### Step 7 — Routines
85
+
86
+ Toggle which routines are enabled (morning, evening, weekly, monthly,
87
+ hourly check) and pick the hours.
88
+
89
+ ## Verification
90
+
91
+ - The dashboard's Overview shows a green health pill and your paired
92
+ messaging app.
93
+ - Send a DM from the paired app and watch the response.
94
+
95
+ ## If It Fails
96
+
97
+ - A step that errors: check `pa logs` for the underlying daemon
98
+ message. Most failures are credential shape issues.
99
+ - A backend that won't authenticate: see [Auth Failed](../troubleshooting/auth-failed.md).
100
+
101
+ ## Related
102
+
103
+ - [What is Aitne?](../getting-started/01-what-is-this.md)
104
+ - [First Steps](../getting-started/02-first-steps.md) — the orientation
105
+ that points here.
106
+ - [Your First Day](../getting-started/04-first-day.md) — what to do
107
+ after the wizard completes.
@@ -0,0 +1,60 @@
1
+ ---
2
+ schema_version: 1
3
+ slug: guides/switch-default-backend
4
+ title: Switch the Default Backend
5
+ id: switch-default-backend
6
+ category: guides
7
+ summary: |
8
+ Change the main backend the agent uses for most ProcessKeys, plus
9
+ switching the fallback or pinning a specific ProcessKey to a
10
+ different backend.
11
+ section: switch-default-backend
12
+ tags:
13
+ - guide
14
+ - backends
15
+ status: stable
16
+ ask_examples:
17
+ - How do I switch from Claude to Codex?
18
+ - How do I make my morning routine use Gemini?
19
+ locale: en-US
20
+ created: 2026-04-25
21
+ updated: 2026-04-25
22
+ related:
23
+ - concepts/backends-and-tiers
24
+ - features/operations/backend-routing
25
+ - guides/change-which-model-handles-x
26
+ ---
27
+
28
+ # Switch the Default Backend
29
+
30
+ ## Goal
31
+
32
+ Change which backend the agent uses by default, or pin a specific
33
+ ProcessKey to a different one.
34
+
35
+ ## Prerequisites
36
+
37
+ - The new backend is authenticated (Claude credentials, Codex token,
38
+ or Gemini API key).
39
+
40
+ ## Steps
41
+
42
+ 1. Open `/settings/models`.
43
+ 2. Click "Main backend" and pick the new default.
44
+ 3. The cascade-write helper updates inheriting ProcessKeys
45
+ (e.g. `dashboard.docs_qa` follows `message.dm`'s pin).
46
+ 4. Per-ProcessKey overrides happen in the table below — pick a row
47
+ and choose its main / fallback.
48
+
49
+ ## Verification
50
+
51
+ - The Activity feed's next routine row shows the new backend.
52
+
53
+ ## If It Fails
54
+
55
+ - Auth-health card flips amber: see [Auth Failed](../troubleshooting/auth-failed.md).
56
+
57
+ ## Related
58
+
59
+ - [Backends and Tiers](../concepts/backends-and-tiers.md)
60
+ - [Change which model handles X](change-which-model-handles-x.md)