@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,287 @@
1
+ ---
2
+ schema_version: 1
3
+ slug: getting-started/04-first-day
4
+ title: Your First Day
5
+ id: first-day
6
+ category: getting-started
7
+ summary: |
8
+ Turn the freshly-installed agent into one that actually helps you —
9
+ teach it about you, connect the tools you use, and describe the work
10
+ you want it to do.
11
+ section: getting-started
12
+ tags:
13
+ - core
14
+ - getting-started
15
+ status: stable
16
+ ask_examples:
17
+ - What should I do on my first day?
18
+ - How do I make the agent useful?
19
+ - How do I tell the agent about myself?
20
+ - Can I import my history from ChatGPT?
21
+ - How do I connect an app that isn't on the integrations list?
22
+ - Can I teach the agent a multi-step morning task?
23
+ locale: en-US
24
+ created: 2026-04-25
25
+ updated: 2026-04-27
26
+ related:
27
+ - getting-started/02-first-steps
28
+ - getting-started/03-what-can-this-do
29
+ - guides/setup-wizard
30
+ - guides/import-knowledge-file
31
+ - features/routines/morning-routine
32
+ - features/routines/custom-routines
33
+ - features/memory-files/user-profile
34
+ - concepts/delegated-mode
35
+ - concepts/skills
36
+ ---
37
+
38
+ # Your First Day
39
+
40
+ ## Goal
41
+
42
+ Get the agent past cold start. Right after setup it knows almost
43
+ nothing about you, sees none of the tools you actually use, and has
44
+ no idea what work you want it to do for you. Day one is when you
45
+ fix all three.
46
+
47
+ ## Prerequisites
48
+
49
+ - Setup wizard complete (`/setup`).
50
+ - At least one messaging app paired and a DM exchanged.
51
+
52
+ ## The shape of day one
53
+
54
+ Three things make the difference between an agent that produces a
55
+ sparse skeleton and one that actively helps you:
56
+
57
+ 1. **Teach it about you** — who you are, what matters, how to talk
58
+ to you.
59
+ 2. **Connect the tools you live in** — mail, calendar, notes, the
60
+ apps you check every day.
61
+ 3. **Show it the work you want done** — described in plain English,
62
+ then promoted to a routine once it works.
63
+
64
+ Walk down the page in that order. Each step compounds — the agent's
65
+ output on step 3 is only as good as how much you put in on steps 1
66
+ and 2.
67
+
68
+ ---
69
+
70
+ ## 1. Teach the agent about you
71
+
72
+ The agent reads
73
+ [`user/profile.md`](../features/memory-files/user-profile.md) and
74
+ the rest of the `user/*.md` Context Files at the start of every
75
+ session. The faster those files have real content, the faster every
76
+ reply gets useful.
77
+
78
+ ### Quickest path: just DM it
79
+
80
+ Send 3–5 DMs that read like introductions to a new assistant:
81
+
82
+ - *"My name is X. I lead Y at Z. I'm currently focused on A and B."*
83
+ - *"I work in Asia/Tokyo and I sleep between 1am and 9am — never
84
+ ping me there."*
85
+ - *"My partner is K, my closest collaborators are M and N — when you
86
+ see them on my calendar, treat the meeting as 1:1."*
87
+ - *"I prefer terse replies in English. Don't summarize what I just
88
+ said back to me."*
89
+
90
+ The agent appends each fact to the right `user/*.md` file (work
91
+ facts → `user/work.md`, people → `user/people.md`, preferences →
92
+ `user/personal.md`, and so on). Identity-class facts (legal name,
93
+ primary timezone) are deferred for your explicit confirmation
94
+ rather than auto-written.
95
+
96
+ ### Bootstrap from ChatGPT, Gemini, or anywhere else
97
+
98
+ If you've been using ChatGPT or Gemini for a while, those services
99
+ already hold a profile of you. Ask them to dump it as Markdown and
100
+ upload the file under **Knowledge → Upload**.
101
+
102
+ The full recipes — the exact prompt to paste into ChatGPT, the
103
+ Google Takeout path for a comprehensive history, the format the
104
+ upload accepts — live in
105
+ [Import a Knowledge File](../guides/import-knowledge-file.md).
106
+
107
+ You can run the recipe more than once: a small "work facts only"
108
+ file first, verify the result under **Knowledge → Context Files**,
109
+ then a separate file for personal facts. Duplicate facts on the
110
+ second upload are skipped automatically.
111
+
112
+ ### Verify what landed
113
+
114
+ Open **Knowledge → Context Files** and skim each `user/*.md` file.
115
+ If a bullet is wrong, edit it directly — the agent reads your edit
116
+ on its next turn. The journal entry the import session writes
117
+ (`agent/journal.md`) lists everything that was deferred or flagged
118
+ as a conflict.
119
+
120
+ → [user/profile.md](../features/memory-files/user-profile.md) ·
121
+ [Memory Model](../concepts/memory-model.md)
122
+
123
+ ---
124
+
125
+ ## 2. Connect the tools you actually use
126
+
127
+ The agent only knows about apps you've connected. There are three
128
+ ways in.
129
+
130
+ ### Built-in integrations
131
+
132
+ Open **Connections** and connect the ones you live in:
133
+
134
+ | Integration | What it gives the agent |
135
+ |---|---|
136
+ | [Mail](../features/integrations/mail.md) | Reads and locally searches your inbox (Gmail, Outlook, Yahoo, iCloud, IMAP). Auto-files reading lists, receipts, travel bookings. |
137
+ | [Calendar](../features/integrations/calendar.md) | Sees today's and upcoming events. Pre-meeting nudges, plus travel-time lookups. |
138
+ | [Obsidian](../features/integrations/obsidian.md) | Watches a vault for new notes — references them in the morning plan. |
139
+ | [Notion](../features/integrations/notion.md) | Watches selected pages and databases for changes. |
140
+ | [Git](../features/integrations/git.md) / [GitHub](../features/integrations/github.md) | Watches local repos and tracked GitHub repos. |
141
+
142
+ Connect only what you use. Empty integrations are noise — skipping
143
+ ones you don't need is the right default.
144
+
145
+ ### Anything else: connectors and MCP
146
+
147
+ If your important app isn't in the list above — Linear, Asana, a
148
+ private CRM, Google Drive, your bank's CSV exporter, anything —
149
+ you have two ways to wire it in without waiting for first-party
150
+ support.
151
+
152
+ - **Backend connectors.** Sign into a connector that ships with your
153
+ backend (claude.ai for Claude, ChatGPT for Codex, Google for
154
+ Gemini) and let the agent reach the service through the backend's
155
+ native MCP tools. Same-backend calls go directly to the connector;
156
+ cross-backend calls proxy through the daemon. Flip a built-in
157
+ integration to **delegated** mode under **Connections → Mail /
158
+ Calendar** to use a connector instead of the daemon's own
159
+ credentials. Background:
160
+ [Delegated Mode](../concepts/delegated-mode.md).
161
+ - **Custom MCP servers.** Anything that ships an MCP server (and the
162
+ catalog is exploding — Drive, Slack, Linear, Figma, Notion, Jira,
163
+ even your own scripts) can be attached under **Connections →
164
+ MCP**. Once attached, every backend that supports MCP can call its
165
+ tools as if they were built in.
166
+
167
+ Picking between them: prefer a built-in if it exists, then a
168
+ connector if your backend already ships one, then a custom MCP
169
+ server.
170
+
171
+ → [Skills and MCP](../concepts/skills.md) ·
172
+ [Delegated Mode](../concepts/delegated-mode.md)
173
+
174
+ ---
175
+
176
+ ## 3. Describe the work you want done
177
+
178
+ You don't have to write any code. The fastest way to teach the
179
+ agent a new task is to DM it the task in plain English. If the
180
+ result is good, ask it to keep doing this on a schedule and you
181
+ have a routine.
182
+
183
+ ### Start with one-off requests
184
+
185
+ DM the agent things you'd send to a competent assistant:
186
+
187
+ - *"Pull the last week of my Gmail and tell me which threads I owe a
188
+ reply on."*
189
+ - *"For tomorrow's meeting with Acme, summarize what we last
190
+ discussed (search my Notion + my Obsidian vault) and any news from
191
+ Acme in the last month."*
192
+ - *"Read today's Drive files in
193
+ drive.google.com/drive/folders/<id> and give me a 90-second
194
+ speaker outline for the afternoon presentation."*
195
+
196
+ The agent will either do it or tell you what's missing — a
197
+ connection it needs, a credential, a file it can't reach. Either
198
+ way you've just learned what to fix next.
199
+
200
+ ### Promote a working request to a routine
201
+
202
+ Once a request gives you a result you like, two paths make it
203
+ recurring:
204
+
205
+ - **Scheduled DMs** — *"Every weekday at 9:30 PT, do exactly that
206
+ and message me on WhatsApp."* The agent stores a recurring
207
+ schedule and runs the same prompt at the same cron. Best for
208
+ per-channel reminders and small recurring asks.
209
+ - **Custom routines** — heavier, multi-step jobs that should write
210
+ to Markdown memory and DM you with a summary. Add one under
211
+ **Settings → Routines → Add custom routine**, or DM the agent the
212
+ cron + steps and ask it to save the routine. See
213
+ [Custom Routines](../features/routines/custom-routines.md) and
214
+ [Add a Custom Routine](../guides/add-a-custom-routine.md).
215
+
216
+ ### A worked example: a richer morning routine
217
+
218
+ Suppose you want a morning routine that, every weekday at 7am:
219
+
220
+ 1. Creates a Notion daily-note for today's date and seeds it with a
221
+ TODO list pulled from your open tasks.
222
+ 2. For every meeting on today's calendar, researches the attendee's
223
+ company online and writes a one-paragraph brief into the same
224
+ Notion note.
225
+ 3. DMs the brief list to you on WhatsApp.
226
+ 4. Looks at the Drive folder you keep today's deck in, reads the
227
+ slides, and drafts speaker notes — saved under a `## Speaker
228
+ notes` heading in the same Notion daily note.
229
+
230
+ Shortest path from zero to that:
231
+
232
+ 1. **Run each step as a one-off DM first.** "Create a Notion page
233
+ for today named …" / "List today's calendar events and research
234
+ each company …" / "Read the slides at … and draft speaker
235
+ notes." This makes the gaps obvious — Notion not connected?
236
+ Calendar not connected? WhatsApp not paired? Drive not reachable
237
+ through a connector or MCP server? Fix them as they show up.
238
+ 2. **Once each piece works standalone**, open **Settings → Routines
239
+ → Add custom routine**:
240
+ - Slug: `morning-deep-prep`
241
+ - Cron: `0 7 * * 1-5`
242
+ - Backend tier: `heavy`
243
+ - Max budget USD: `0.20`
244
+ - Description: paste the four numbered steps above verbatim.
245
+ 3. **Watch the next firing in Activity** and iterate. The vault file
246
+ at `~/.personal-agent/context/routines/custom/morning-deep-prep.md`
247
+ is a plain Markdown file — edit the `## Checks` section directly
248
+ to refine the wording or change the schedule. The watcher picks
249
+ up changes without a restart.
250
+
251
+ → [Custom Routines](../features/routines/custom-routines.md) ·
252
+ [Add a Custom Routine](../guides/add-a-custom-routine.md)
253
+
254
+ ---
255
+
256
+ ## Verification
257
+
258
+ By end of day one you should have:
259
+
260
+ - At least 5–10 facts in `user/*.md` (DM and/or upload).
261
+ - Two or more **Connections** connected and showing recent polls in
262
+ **Activity**.
263
+ - One DM whose answer references something only your connected
264
+ apps could have told the agent.
265
+ - (Stretch) one custom routine or recurring schedule in **Settings
266
+ → Routines** that you'd be sad to lose.
267
+
268
+ ## If it fails
269
+
270
+ - Replies never reference anything specific to you → `user/*.md` is
271
+ still mostly empty. DM more, or run a Knowledge upload.
272
+ - A connected integration shows no observations after an hour →
273
+ [Observation Not Detected](../troubleshooting/observation-not-detected.md).
274
+ - A blank `today.md` after the morning routine →
275
+ [Morning Routine Didn't Run](../troubleshooting/morning-routine-didnt-run.md).
276
+ - A Knowledge upload returns `409 setup_incomplete` → finish the
277
+ setup wizard at `/setup` first.
278
+
279
+ ## Related
280
+
281
+ - [Import a Knowledge File](../guides/import-knowledge-file.md)
282
+ - [Morning Routine](../features/routines/morning-routine.md)
283
+ - [Custom Routines](../features/routines/custom-routines.md)
284
+ - [Add a Custom Routine](../guides/add-a-custom-routine.md)
285
+ - [Delegated Mode](../concepts/delegated-mode.md)
286
+ - [Skills and MCP](../concepts/skills.md)
287
+ - [user/profile.md](../features/memory-files/user-profile.md)
@@ -0,0 +1,116 @@
1
+ ---
2
+ schema_version: 1
3
+ slug: glossary
4
+ title: Glossary
5
+ id: glossary
6
+ category: glossary
7
+ summary: |
8
+ Single flat term list for Aitne vocabulary. Cross-references
9
+ link to a single canonical anchor here so concept docs do not drift.
10
+ status: stable
11
+ ask_examples:
12
+ - What is a ProcessKey?
13
+ - What does heavy tier mean?
14
+ - What is the difference between light and heavy tiers?
15
+ locale: en-US
16
+ created: 2026-04-25
17
+ updated: 2026-04-25
18
+ keywords:
19
+ - terminology
20
+ - vocabulary
21
+ - glossary
22
+ related:
23
+ - concepts/agent-day
24
+ - features/routines/morning-routine
25
+ ---
26
+
27
+ # Glossary
28
+
29
+ A single flat list of Aitne vocabulary. Concept docs link to
30
+ anchors here rather than redefining terms inline.
31
+
32
+ ## Agent Day
33
+
34
+ The 24-hour window starting at the configured day-boundary hour (default
35
+ 04:00 local). See [Agent Day](concepts/agent-day.md) for the full rule
36
+ and rationale.
37
+
38
+ ## Backend
39
+
40
+ One of the model providers Aitne can dispatch to: `claude`
41
+ (Claude Code SDK), `codex` (Codex CLI), or `gemini` (Gemini CLI). Each
42
+ backend is configured per-installation; one is the **main backend**, and
43
+ the others can be enabled as fallbacks.
44
+
45
+ ## Backend Router
46
+
47
+ The component that resolves a `ProcessKey` to a concrete `(backend,
48
+ model, maxTurns, maxBudgetUsd)` binding at dispatch time. Lives in
49
+ `packages/daemon/src/core/backends/backend-router.ts`. Routing reads
50
+ `process_backend_config` (per-process pins) layered over
51
+ `backend_global_defaults` (installation-wide defaults).
52
+
53
+ ## Citation Pill
54
+
55
+ The clickable inline UI element rendered from a `[doc:slug#anchor]`
56
+ token in a QA reply. Clicking scrolls the docs content pane to the
57
+ matching anchor.
58
+
59
+ ## Day Boundary
60
+
61
+ The hour-of-day at which the agent day rolls over. Configured via
62
+ `dayBoundaryHour` (default `4`).
63
+
64
+ ## Heavy Tier
65
+
66
+ The expensive, high-quality model lane on each backend (Claude Opus
67
+ 4.7, GPT-5.5, Gemini 3 Pro). Reserved by default for processes whose
68
+ output quality directly drives the agent's daily decision-making —
69
+ primarily `routine.morning_routine` and the one-shot
70
+ `routine.morning_routine_initial` plus `setup`.
71
+
72
+ ## Light Tier
73
+
74
+ The cheaper, fast model lane on each backend (Claude Sonnet 4.6,
75
+ GPT-5.4-mini, Gemini 3 Flash). Default for owner DMs, dashboard chat,
76
+ the hourly check, and the evening / weekly / monthly review routines.
77
+
78
+ ## ProcessKey
79
+
80
+ The branded string identifier for a class of agent invocation, e.g.
81
+ `routine.morning_routine`, `message.dm`, `dashboard.docs_qa`. Drives
82
+ backend selection, skill manifest, agent profile, and task-flow
83
+ template lookup. Defined in `packages/shared/src/process-key.ts`.
84
+
85
+ ## QA Panel
86
+
87
+ The right-side pane on `/docs` and the bottom of the `?`-button
88
+ slide-over that runs grounded question answering over the docs corpus.
89
+ Runs on the operator's DM-bound backend at the **light tier** —
90
+ inherited from `message.dm`'s binding via the cascade-write helper.
91
+
92
+ ## Skill
93
+
94
+ A read-only or scoped tool surface defined as `agent-assets/skills/<slug>/SKILL.md`.
95
+ Skills are the only way the agent reaches the daemon API or external
96
+ services. The skill manifest per ProcessKey controls which skills load.
97
+
98
+ ## Slug
99
+
100
+ The path-style canonical identity of a doc, e.g.
101
+ `features/routines/morning-routine`. Used as the URL under `/docs/<slug>`,
102
+ the row key in `fts_docs`, and the first half of every
103
+ `[doc:slug#anchor]` citation.
104
+
105
+ ## Tier
106
+
107
+ Short for **model tier**: `light` or `heavy`. Each ProcessKey has a
108
+ default tier; per-process pins and per-call requested-tier overrides can
109
+ deviate from that default.
110
+
111
+ ## Today.md
112
+
113
+ The current agent day's main memory file under
114
+ `~/.personal-agent/context/today.md`. Rebuilt once per day by the
115
+ morning routine and edited by every DM, observation, and routine that
116
+ needs to record state for the day.
@@ -0,0 +1,71 @@
1
+ ---
2
+ schema_version: 1
3
+ slug: guides/add-a-custom-routine
4
+ title: Add a Custom Routine
5
+ id: add-a-custom-routine
6
+ category: guides
7
+ summary: |
8
+ Define a new autonomous routine — slug, cron expression, tier, and
9
+ budget cap — via /settings/routines. The form writes a vault file at
10
+ routines/custom/<slug>.md.
11
+ section: add-a-custom-routine
12
+ tags:
13
+ - guide
14
+ - routines
15
+ status: stable
16
+ ask_examples:
17
+ - How do I add a custom routine?
18
+ - What can a custom routine do?
19
+ locale: en-US
20
+ created: 2026-04-25
21
+ updated: 2026-04-25
22
+ related:
23
+ - features/routines/custom-routines
24
+ - concepts/routines
25
+ ---
26
+
27
+ # Add a Custom Routine
28
+
29
+ ## Goal
30
+
31
+ Make the agent fire a particular kind of work on a schedule you pick.
32
+
33
+ ## Prerequisites
34
+
35
+ - Daemon running.
36
+
37
+ ## Steps
38
+
39
+ 1. Open `/settings/routines` (the older `/connections/routines` URL
40
+ redirects here).
41
+ 2. Click "Add custom routine".
42
+ 3. Fill the form:
43
+ - **Slug** — kebab-case (e.g. `tuesday-notion-sweep`); becomes the
44
+ ProcessKey `routine.custom.<slug>` and the file name
45
+ `routines/custom/<slug>.md`.
46
+ - **Cron expression** — standard 5-field cron (e.g. `0 11 * * 2`).
47
+ The form previews the next three fires.
48
+ - **Backend tier** — `light` or `heavy`. Custom routines have no
49
+ concrete model picker; tier determines which model the
50
+ BackendRouter resolves at fire time.
51
+ - **Max budget USD** — per-execute cap (default `0.05`).
52
+ - **Description** — free-text. Becomes the body of the generated
53
+ vault file under `## Checks`. Edit the file later to refine the
54
+ check list.
55
+ 4. Save. The dashboard writes the vault file; the next-fire timestamp
56
+ appears in the routine table.
57
+
58
+ ## Verification
59
+
60
+ - Wait for the cron to fire; check Activity for the row tagged
61
+ `routine.custom.<slug>`.
62
+
63
+ ## If It Fails
64
+
65
+ - A cron that resolves to "never": the dashboard refuses to save it.
66
+ - A prompt that hits absolute-block guardrails: the routine fires
67
+ but the offending tool call is logged as `blocked_absolute`.
68
+
69
+ ## Related
70
+
71
+ - [Custom Routines](../features/routines/custom-routines.md)
@@ -0,0 +1,54 @@
1
+ ---
2
+ schema_version: 1
3
+ slug: guides/backup-and-restore
4
+ title: Backup and Restore
5
+ id: backup-and-restore
6
+ category: guides
7
+ summary: |
8
+ Aitne's data lives in two places — the SQLite database and
9
+ the context Markdown files. Back both up and restoration is a tar
10
+ extract.
11
+ section: backup-and-restore
12
+ tags:
13
+ - guide
14
+ - operations
15
+ status: stable
16
+ ask_examples:
17
+ - How do I back up Aitne?
18
+ - Can I restore on a new machine?
19
+ locale: en-US
20
+ created: 2026-04-25
21
+ updated: 2026-04-25
22
+ related:
23
+ - guides/reinstall-cleanly
24
+ - guides/migrate-machines
25
+ ---
26
+
27
+ # Backup and Restore
28
+
29
+ ## Goal
30
+
31
+ Capture all Aitne state in a tar that you can restore later.
32
+
33
+ ## Steps
34
+
35
+ 1. `pa stop`.
36
+ 2. `tar -czf personal-agent-backup-$(date +%F).tgz ~/.personal-agent/`.
37
+ 3. To restore: extract the tar to your home directory, then `pa start`.
38
+
39
+ ## Verification
40
+
41
+ - Activity feed shows historical rows after restore.
42
+ - Context files match the originals.
43
+
44
+ ## If It Fails
45
+
46
+ - A schema-version mismatch: Aitne's policy is "clean
47
+ reinstall, no data migration" — if the restored DB is from an
48
+ older daemon version, drop the DB and re-seed from the context
49
+ files.
50
+
51
+ ## Related
52
+
53
+ - [Reinstall Cleanly](reinstall-cleanly.md)
54
+ - [Migrate Machines](migrate-machines.md)
@@ -0,0 +1,47 @@
1
+ ---
2
+ schema_version: 1
3
+ slug: guides/change-which-model-handles-x
4
+ title: Change Which Model Handles X
5
+ id: change-which-model-handles-x
6
+ aliases:
7
+ - per-process tier
8
+ - per-process model
9
+ category: guides
10
+ summary: |
11
+ Pin a specific ProcessKey to a non-default backend / tier — for
12
+ example, run morning routine on Sonnet to save Opus tokens.
13
+ section: change-which-model-handles-x
14
+ tags:
15
+ - guide
16
+ - backends
17
+ status: stable
18
+ ask_examples:
19
+ - How do I make my morning routine use Sonnet instead of Opus?
20
+ locale: en-US
21
+ created: 2026-04-25
22
+ updated: 2026-04-25
23
+ related:
24
+ - guides/switch-default-backend
25
+ - concepts/backends-and-tiers
26
+ ---
27
+
28
+ # Change Which Model Handles X
29
+
30
+ ## Goal
31
+
32
+ Override the default tier or backend on a single ProcessKey.
33
+
34
+ ## Steps
35
+
36
+ 1. Open `/settings/models`.
37
+ 2. Find the ProcessKey row in the table.
38
+ 3. Pick its main backend and tier explicitly.
39
+ 4. Save.
40
+
41
+ ## Verification
42
+
43
+ - The next fire of that ProcessKey shows the new model in Activity.
44
+
45
+ ## Related
46
+
47
+ - [Switch the Default Backend](switch-default-backend.md)
@@ -0,0 +1,59 @@
1
+ ---
2
+ schema_version: 1
3
+ slug: guides/connect-a-new-mail-account
4
+ title: Connect a New Mail Account
5
+ id: connect-a-new-mail-account
6
+ category: guides
7
+ summary: |
8
+ Add a Gmail / Outlook / Yahoo / iCloud account to the mail
9
+ integration. Each provider has its own credential shape.
10
+ section: connect-a-new-mail-account
11
+ tags:
12
+ - guide
13
+ - mail
14
+ status: stable
15
+ ask_examples:
16
+ - How do I add another Gmail account?
17
+ - What mail providers does Aitne support?
18
+ locale: en-US
19
+ created: 2026-04-25
20
+ updated: 2026-04-25
21
+ related:
22
+ - features/integrations/mail
23
+ ---
24
+
25
+ # Connect a New Mail Account
26
+
27
+ ## Goal
28
+
29
+ Wire a new mailbox into Aitne so the agent can read, label,
30
+ and search it.
31
+
32
+ ## Prerequisites
33
+
34
+ - The provider's OAuth or app password is available.
35
+
36
+ ## Steps
37
+
38
+ 1. Open `/connections/mail`.
39
+ 2. Click "Add account".
40
+ 3. Pick the provider kind. The supported set is `gmail`, `outlook`,
41
+ `yahoo`, `icloud` — the registry deliberately stops at hosted
42
+ providers, so a generic IMAP server is not a separate kind.
43
+ 4. Step through the OAuth flow (Gmail / Outlook) or paste the
44
+ provider-specific app password (Yahoo / iCloud).
45
+ 5. Save. The first poll runs within a minute.
46
+
47
+ ## Verification
48
+
49
+ - The account row turns green on the auth-health card.
50
+ - The mail count updates on `/connections/mail`.
51
+
52
+ ## If It Fails
53
+
54
+ - OAuth that does not return: confirm the redirect URL matches the
55
+ daemon's API port (default 8321).
56
+
57
+ ## Related
58
+
59
+ - [Mail](../features/integrations/mail.md)