@aitne-sh/aitne 0.1.7 → 0.1.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +256 -833
- package/agent-assets/agent-profiles/_safety.md +52 -20
- package/agent-assets/agent-profiles/browser-task.md +108 -0
- package/agent-assets/agent-profiles/conversational.md +3 -3
- package/agent-assets/agent-profiles/profile-importer.md +3 -3
- package/agent-assets/agent-profiles/routine-fetch-window.md +30 -19
- package/agent-assets/agent-profiles/routine.md +4 -3
- package/agent-assets/agents/context-index-reconcile/agent.md +52 -0
- package/agent-assets/agents/evening-review/agent.md +53 -0
- package/agent-assets/agents/hourly-check/agent.md +62 -0
- package/agent-assets/agents/monthly-review/agent.md +55 -0
- package/agent-assets/agents/morning-routine/agent.md +78 -0
- package/agent-assets/agents/roadmap-maintenance/agent.md +52 -0
- package/agent-assets/agents/skill-curation/agent.md +52 -0
- package/agent-assets/agents/user-profile-sweep-evening/agent.md +48 -0
- package/agent-assets/agents/user-profile-sweep-morning/agent.md +53 -0
- package/agent-assets/agents/weekly-review/agent.md +51 -0
- package/agent-assets/docs/concepts/agent-day.md +18 -11
- package/agent-assets/docs/concepts/auth-health.md +56 -10
- package/agent-assets/docs/concepts/backends-and-tiers.md +110 -41
- package/agent-assets/docs/concepts/costs-and-quotas.md +74 -19
- package/agent-assets/docs/concepts/delegated-mode.md +193 -75
- package/agent-assets/docs/concepts/memory-model.md +79 -34
- package/agent-assets/docs/concepts/observations.md +61 -11
- package/agent-assets/docs/concepts/process-keys.md +66 -17
- package/agent-assets/docs/concepts/routines.md +77 -32
- package/agent-assets/docs/concepts/safety-and-execution.md +50 -21
- package/agent-assets/docs/concepts/safety-model.md +62 -37
- package/agent-assets/docs/concepts/skills.md +38 -17
- package/agent-assets/docs/features/integrations/browser-history.md +195 -0
- package/agent-assets/docs/features/integrations/calendar.md +40 -30
- package/agent-assets/docs/features/integrations/git.md +20 -9
- package/agent-assets/docs/features/integrations/github.md +93 -35
- package/agent-assets/docs/features/integrations/mail.md +60 -17
- package/agent-assets/docs/features/integrations/notion.md +51 -11
- package/agent-assets/docs/features/integrations/obsidian.md +35 -7
- package/agent-assets/docs/features/lifestyle/git.md +45 -44
- package/agent-assets/docs/features/lifestyle/reading.md +50 -22
- package/agent-assets/docs/features/lifestyle/receipts.md +66 -21
- package/agent-assets/docs/features/lifestyle/travel-bookings.md +91 -14
- package/agent-assets/docs/features/memory-files/agent-journal.md +111 -50
- package/agent-assets/docs/features/memory-files/projects.md +75 -15
- package/agent-assets/docs/features/memory-files/roadmap.md +55 -10
- package/agent-assets/docs/features/memory-files/schedule.md +113 -70
- package/agent-assets/docs/features/memory-files/today.md +47 -21
- package/agent-assets/docs/features/memory-files/user-profile.md +67 -31
- package/agent-assets/docs/features/messaging/bang-commands.md +115 -28
- package/agent-assets/docs/features/messaging/dashboard-chat.md +43 -21
- package/agent-assets/docs/features/messaging/discord.md +46 -4
- package/agent-assets/docs/features/messaging/overview.md +40 -19
- package/agent-assets/docs/features/messaging/pairing-and-magic-phrase.md +94 -27
- package/agent-assets/docs/features/messaging/slack.md +79 -14
- package/agent-assets/docs/features/messaging/telegram.md +25 -6
- package/agent-assets/docs/features/messaging/whatsapp.md +79 -14
- package/agent-assets/docs/features/operations/activity-and-conversations.md +45 -16
- package/agent-assets/docs/features/operations/approvals.md +53 -15
- package/agent-assets/docs/features/operations/backend-routing.md +75 -16
- package/agent-assets/docs/features/operations/cost-tracking.md +90 -17
- package/agent-assets/docs/features/operations/managed-chromium.md +221 -0
- package/agent-assets/docs/features/operations/notifications.md +58 -11
- package/agent-assets/docs/features/operations/quiet-hours.md +63 -40
- package/agent-assets/docs/features/operations/schedule-approaching.md +59 -16
- package/agent-assets/docs/features/routines/custom-routines.md +97 -23
- package/agent-assets/docs/features/routines/evening-review.md +75 -22
- package/agent-assets/docs/features/routines/hourly-check.md +150 -30
- package/agent-assets/docs/features/routines/morning-routine.md +60 -33
- package/agent-assets/docs/features/routines/weekly-review.md +65 -20
- package/agent-assets/docs/features/wiki/commands.md +37 -16
- package/agent-assets/docs/features/wiki/cost-and-approval.md +240 -0
- package/agent-assets/docs/features/wiki/dashboard.md +255 -0
- package/agent-assets/docs/features/wiki/overview.md +80 -12
- package/agent-assets/docs/features/wiki/search.md +248 -0
- package/agent-assets/docs/features/wiki/workspaces.md +254 -0
- package/agent-assets/docs/getting-started/01-what-is-this.md +64 -32
- package/agent-assets/docs/getting-started/02-first-steps.md +28 -10
- package/agent-assets/docs/getting-started/03-what-can-this-do.md +42 -21
- package/agent-assets/docs/getting-started/04-first-day.md +52 -20
- package/agent-assets/docs/glossary.md +285 -21
- package/agent-assets/docs/guides/add-a-custom-routine.md +74 -22
- package/agent-assets/docs/guides/backup-and-restore.md +92 -14
- package/agent-assets/docs/guides/budget-and-cost-for-wiki.md +62 -25
- package/agent-assets/docs/guides/build-your-wiki.md +33 -6
- package/agent-assets/docs/guides/change-which-model-handles-x.md +70 -9
- package/agent-assets/docs/guides/connect-a-new-mail-account.md +80 -15
- package/agent-assets/docs/guides/explore-with-trace-and-connect.md +32 -9
- package/agent-assets/docs/guides/import-knowledge-file.md +60 -39
- package/agent-assets/docs/guides/install-and-run.md +64 -19
- package/agent-assets/docs/guides/maintain-wiki-health.md +41 -10
- package/agent-assets/docs/guides/migrate-machines.md +86 -18
- package/agent-assets/docs/guides/multiple-wikis-for-multiple-domains.md +119 -59
- package/agent-assets/docs/guides/pause-the-agent.md +71 -22
- package/agent-assets/docs/guides/reinstall-cleanly.md +102 -17
- package/agent-assets/docs/guides/setup-wizard.md +126 -56
- package/agent-assets/docs/guides/switch-default-backend.md +72 -17
- package/agent-assets/docs/guides/use-an-existing-obsidian-vault.md +31 -10
- package/agent-assets/docs/reference/api.md +162 -23
- package/agent-assets/docs/reference/cli-commands.md +55 -15
- package/agent-assets/docs/reference/config.md +246 -39
- package/agent-assets/docs/reference/disallowed-tools.md +42 -10
- package/agent-assets/docs/reference/keyboard-shortcuts.md +47 -10
- package/agent-assets/docs/reference/knowledge-layout.md +620 -0
- package/agent-assets/docs/reference/process-keys.md +126 -20
- package/agent-assets/docs/reference/skills.md +62 -18
- package/agent-assets/docs/troubleshooting/auth-failed.md +53 -19
- package/agent-assets/docs/troubleshooting/dashboard-shows-degraded.md +96 -22
- package/agent-assets/docs/troubleshooting/fallback-keeps-firing.md +94 -20
- package/agent-assets/docs/troubleshooting/messaging-not-pairing.md +77 -22
- package/agent-assets/docs/troubleshooting/morning-routine-didnt-run.md +87 -22
- package/agent-assets/docs/troubleshooting/observation-not-detected.md +85 -21
- package/agent-assets/docs/troubleshooting/quota-exhausted.md +36 -6
- package/agent-assets/docs/troubleshooting/wiki-ingest-full-blocked.md +128 -51
- package/agent-assets/docs/troubleshooting/wiki-write-failed.md +33 -11
- package/agent-assets/optimizer-skills/drift-analysis/SKILL.md +1 -1
- package/agent-assets/optimizer-skills/knowledge-map/SKILL.md +1 -1
- package/agent-assets/optimizer-skills/skill-curation/SKILL.md +2 -2
- package/agent-assets/sandbox/linux/aitne-chromium.apparmor +91 -0
- package/agent-assets/sandbox/macos/aitne-chromium.sb +156 -0
- package/agent-assets/skills/agent-actions/SKILL.md +122 -0
- package/agent-assets/skills/agent-create/SKILL.md +149 -0
- package/agent-assets/skills/attach/SKILL.md +3 -4
- package/agent-assets/skills/browser-history/SKILL.md +198 -0
- package/agent-assets/skills/browser-history-respond/SKILL.md +106 -0
- package/agent-assets/skills/browser-task/SKILL.md +169 -0
- package/agent-assets/skills/context/SKILL.md +45 -463
- package/agent-assets/skills/context/curation.json +2 -2
- package/agent-assets/skills/context/references/api.md +232 -0
- package/agent-assets/skills/context/references/required-frontmatter.md +73 -0
- package/agent-assets/skills/context/references/snapshot-files.md +103 -0
- package/agent-assets/skills/context/seeds/file-responsibilities.seed.json +4 -4
- package/agent-assets/skills/docs-search/SKILL.md +17 -16
- package/agent-assets/skills/external-services/SKILL.delegated.claude.md +14 -26
- package/agent-assets/skills/external-services/SKILL.delegated.codex.md +14 -26
- package/agent-assets/skills/external-services/SKILL.delegated.gemini.md +14 -26
- package/agent-assets/skills/external-services/SKILL.md +9 -262
- package/agent-assets/skills/external-services/SKILL.native.claude.md +6 -7
- package/agent-assets/skills/external-services/SKILL.native.codex.md +8 -9
- package/agent-assets/skills/external-services/SKILL.native.gemini.md +5 -6
- package/agent-assets/skills/external-services/references/calendar-apple.md +97 -0
- package/agent-assets/skills/external-services/references/calendar-google.md +72 -0
- package/agent-assets/skills/external-services/references/calendar-outlook.md +36 -0
- package/agent-assets/skills/external-services/references/github.md +17 -0
- package/agent-assets/skills/external-services/references/obsidian.md +49 -0
- package/agent-assets/skills/external-services/references/skills-crud.md +27 -0
- package/agent-assets/skills/gmail-lifestyle/SKILL.md +151 -0
- package/agent-assets/skills/gmail-lifestyle/references/receipts-api.md +93 -0
- package/agent-assets/skills/gmail-lifestyle/references/travel-bookings-api.md +75 -0
- package/agent-assets/skills/mail/SKILL.delegated.claude.md +15 -6
- package/agent-assets/skills/mail/SKILL.delegated.codex.md +9 -5
- package/agent-assets/skills/mail/SKILL.delegated.gemini.md +9 -5
- package/agent-assets/skills/mail/SKILL.md +9 -114
- package/agent-assets/skills/mail/SKILL.native.claude.md +1 -1
- package/agent-assets/skills/mail/SKILL.native.codex.md +1 -1
- package/agent-assets/skills/mail/SKILL.native.gemini.md +1 -1
- package/agent-assets/skills/mail/references/api.md +110 -0
- package/agent-assets/skills/mail/references/examples.md +70 -0
- package/agent-assets/skills/mail/references/providers.md +8 -8
- package/agent-assets/skills/managed-tasks/SKILL.md +472 -0
- package/agent-assets/skills/managed-tasks/references/errors.md +73 -0
- package/agent-assets/skills/managed-tasks/references/output-path.md +75 -0
- package/agent-assets/skills/managed-tasks/references/recurrence-rule.md +86 -0
- package/agent-assets/skills/management-policy/SKILL.md +54 -125
- package/agent-assets/skills/management-policy/curation.json +1 -1
- package/agent-assets/skills/management-policy/references/policy-workflow.md +101 -0
- package/agent-assets/skills/management-policy/seeds/policy-file-shape.seed.json +1 -1
- package/agent-assets/skills/notify/SKILL.md +10 -82
- package/agent-assets/skills/notify/references/priority.md +65 -0
- package/agent-assets/skills/notion/SKILL.delegated.claude.md +2 -2
- package/agent-assets/skills/notion/SKILL.delegated.codex.md +2 -2
- package/agent-assets/skills/notion/SKILL.delegated.gemini.md +2 -2
- package/agent-assets/skills/notion/SKILL.md +6 -10
- package/agent-assets/skills/notion/SKILL.native.claude.md +11 -8
- package/agent-assets/skills/notion/SKILL.native.codex.md +10 -6
- package/agent-assets/skills/notion/SKILL.native.gemini.md +10 -6
- package/agent-assets/skills/observations/SKILL.md +25 -14
- package/agent-assets/skills/project-doc/SKILL.md +2 -6
- package/agent-assets/skills/project-doc/curation.json +3 -3
- package/agent-assets/skills/project-doc/seeds/project-shape.seed.json +7 -4
- package/agent-assets/skills/project-doc/seeds/slug-grammar.seed.json +3 -3
- package/agent-assets/skills/reading/SKILL.md +12 -2
- package/agent-assets/skills/reading/references/reading-taste.md +2 -2
- package/agent-assets/skills/roadmap/SKILL.md +43 -141
- package/agent-assets/skills/roadmap/curation.json +1 -1
- package/agent-assets/skills/roadmap/references/api.md +100 -0
- package/agent-assets/skills/roadmap/references/cross-check.md +80 -0
- package/agent-assets/skills/roadmap/references/migration.md +56 -0
- package/agent-assets/skills/roadmap/references/preparation-timeline.md +2 -2
- package/agent-assets/skills/roadmap/seeds/entry-types.seed.json +1 -1
- package/agent-assets/skills/schedule/SKILL.md +76 -104
- package/agent-assets/skills/schedule/references/batch.md +93 -0
- package/agent-assets/skills/schedule/references/errors.md +217 -0
- package/agent-assets/skills/schedule/references/model-selection.md +96 -0
- package/agent-assets/skills/schedule/references/recurrence-rule.md +86 -0
- package/agent-assets/skills/scheduled-managed-task/SKILL.md +59 -51
- package/agent-assets/skills/today/SKILL.md +32 -62
- package/agent-assets/skills/today/curation.json +3 -3
- package/agent-assets/skills/today/references/agent-plan-lifecycle.md +114 -0
- package/agent-assets/skills/today/seeds/section-shape.seed.json +1 -1
- package/agent-assets/skills/user-interview/SKILL.md +23 -67
- package/agent-assets/skills/user-interview/references/op-briefing.md +51 -0
- package/agent-assets/skills/user-interview/references/op-morning.md +59 -0
- package/agent-assets/skills/user-interview/references/sweep-and-fallback.md +9 -1
- package/agent-assets/skills/user-profile/SKILL.md +54 -74
- package/agent-assets/skills/user-profile/curation.json +2 -2
- package/agent-assets/skills/user-profile/references/character-preferences.md +83 -0
- package/agent-assets/skills/user-profile/seeds/routing-table.seed.json +8 -8
- package/agent-assets/skills/user-profile/seeds/topic-files.seed.json +30 -2
- package/agent-assets/skills/wiki/wiki-ask/SKILL.md +0 -1
- package/agent-assets/skills/wiki/wiki-compile/SKILL.md +4 -5
- package/agent-assets/skills/wiki/wiki-connect/SKILL.md +0 -1
- package/agent-assets/skills/wiki/wiki-graduate/SKILL.md +0 -1
- package/agent-assets/skills/wiki/wiki-ingest/SKILL.md +0 -1
- package/agent-assets/skills/wiki/wiki-lint/SKILL.md +0 -1
- package/agent-assets/skills/wiki/wiki-trace/SKILL.md +0 -1
- package/agent-assets/skills/wiki/wiki-vault-rules/SKILL.md +0 -1
- package/agent-assets/system-prompts/routine-fetch-window.md +78 -0
- package/agent-assets/system-prompts/skill-index-instruction.md +26 -0
- package/agent-assets/task-flows/_partials/calendar-acquire.google_calendar.md +20 -11
- package/agent-assets/task-flows/_partials/calendar-acquire.outlook_calendar.md +18 -9
- package/agent-assets/task-flows/_partials/capture-user-info.md +24 -0
- package/agent-assets/task-flows/_partials/confirm-subflow.md +68 -0
- package/agent-assets/task-flows/_partials/dm-intent.long-horizon.md +35 -0
- package/agent-assets/task-flows/_partials/dm-intent.project.md +391 -0
- package/agent-assets/task-flows/_partials/mail-acquire.gmail.md +20 -11
- package/agent-assets/task-flows/_partials/mail-acquire.outlook_mail.md +18 -9
- package/agent-assets/task-flows/_partials/notion-acquire.notion.md +26 -15
- package/agent-assets/task-flows/browser_task.md +84 -0
- package/agent-assets/task-flows/github.assigned.md +1 -1
- package/agent-assets/task-flows/github.pull_request.review_requested.md +2 -2
- package/agent-assets/task-flows/github.workflow_run.failed.md +2 -2
- package/agent-assets/task-flows/knowledge.import.md +15 -15
- package/agent-assets/task-flows/message.received.dm.md +20 -17
- package/agent-assets/task-flows/message.received.dm_first.md +11 -15
- package/agent-assets/task-flows/routine.custom.md +6 -4
- package/agent-assets/task-flows/routine.evening_review.md +46 -170
- package/agent-assets/task-flows/routine.fetch_window.md +19 -14
- package/agent-assets/task-flows/routine.hourly_check.md +27 -15
- package/agent-assets/task-flows/routine.hourly_check.triage.md +1 -1
- package/agent-assets/task-flows/routine.monthly_review.md +67 -25
- package/agent-assets/task-flows/routine.morning_routine_journal.md +135 -0
- package/agent-assets/task-flows/routine.morning_routine_today.md +673 -0
- package/agent-assets/task-flows/routine.research_cluster_update.md +35 -0
- package/agent-assets/task-flows/routine.research_dispatch.md +38 -0
- package/agent-assets/task-flows/routine.research_offer_dm.md +125 -0
- package/agent-assets/task-flows/routine.research_wiki_summary.md +53 -0
- package/agent-assets/task-flows/routine.roadmap_refresh.md +68 -23
- package/agent-assets/task-flows/routine.today_refresh.md +4 -4
- package/agent-assets/task-flows/routine.user_profile_sweep.md +19 -20
- package/agent-assets/task-flows/routine.weekly_review.md +370 -86
- package/agent-assets/task-flows/schedule.approaching.md +0 -1
- package/agent-assets/task-flows/scheduled.dm.md +13 -13
- package/agent-assets/task-flows/scheduled.task.md +9 -9
- package/agent-assets/task-flows/setup.initial.md +171 -251
- package/agent-assets/task-flows/setup.update.md +2 -2
- package/agent-assets/task-flows/wiki.ingest_url.md +1 -1
- package/agent-assets/templates/README.md +27 -20
- package/agent-assets/templates/_index.md +42 -26
- package/agent-assets/templates/_manifest.json +34 -99
- package/agent-assets/templates/{user → identity}/_index.md +1 -1
- package/agent-assets/templates/identity/expertise.md +9 -0
- package/agent-assets/templates/identity/goals.md +9 -0
- package/agent-assets/templates/identity/people.md +13 -0
- package/agent-assets/templates/identity/personal.md +9 -0
- package/agent-assets/templates/{user → identity}/profile.md +2 -2
- package/agent-assets/templates/identity/work.md +9 -0
- package/agent-assets/templates/{dossiers → knowledge/dossiers}/_index.md +2 -2
- package/agent-assets/templates/{projects → plans/projects}/_active.base +1 -1
- package/agent-assets/templates/policies/_index.md +21 -0
- package/agent-assets/templates/{rules → policies}/journal-export.md +1 -1
- package/agent-assets/templates/policies/journal-format.md +168 -0
- package/agent-assets/templates/{rules/policies → policies/management-captures}/_index.md +2 -2
- package/agent-assets/templates/{rules → policies}/management.md +3 -3
- package/agent-assets/templates/{rules → policies}/mcp.md +1 -1
- package/agent-assets/templates/{rules → policies}/redaction.md +1 -1
- package/agent-assets/templates/{routines → policies/routines}/_index.md +1 -1
- package/agent-assets/templates/{routines → policies/routines}/evening.md +2 -2
- package/agent-assets/templates/{routines → policies/routines}/hourly.md +1 -1
- package/agent-assets/templates/{routines → policies/routines}/monthly.md +2 -2
- package/bin/aitne.mjs +21 -5
- package/package.json +5 -4
- package/scripts/commands/doctor.mjs +63 -5
- package/scripts/commands/run-now.mjs +187 -0
- package/scripts/commands/verify.mjs +264 -0
- package/scripts/lib/ports.d.mts +27 -0
- package/scripts/lib/ports.mjs +36 -0
- package/scripts/lib/read-api-token.mjs +176 -0
- package/scripts/start.mjs +2 -1
- package/agent-assets/docs/features/lifestyle/travel-time.md +0 -52
- package/agent-assets/docs/features/routines/monthly-review.md +0 -65
- package/agent-assets/skills/management-task-modify/SKILL.md +0 -203
- package/agent-assets/skills/management-task-register/SKILL.md +0 -330
- package/agent-assets/skills/management-task-stop/SKILL.md +0 -166
- package/agent-assets/skills/receipts/SKILL.md +0 -134
- package/agent-assets/skills/travel/SKILL.md +0 -132
- package/agent-assets/skills/travel-time/SKILL.md +0 -158
- package/agent-assets/task-flows/routine.morning_routine.md +0 -322
- package/agent-assets/task-flows/routine.morning_routine_initial.md +0 -204
- package/agent-assets/templates/context-index.md +0 -42
- package/agent-assets/templates/rules/_index.md +0 -19
- package/agent-assets/templates/rules/journal-format.md +0 -61
- package/agent-assets/templates/user/expertise.md +0 -7
- package/agent-assets/templates/user/goals.md +0 -7
- package/agent-assets/templates/user/people.md +0 -7
- package/agent-assets/templates/user/personal.md +0 -7
- package/agent-assets/templates/user/work.md +0 -7
- /package/agent-assets/templates/{agent/journal.md → journal/agent.md} +0 -0
- /package/agent-assets/templates/{dossiers → knowledge/dossiers}/evening.md +0 -0
- /package/agent-assets/templates/{dossiers → knowledge/dossiers}/hourly.md +0 -0
- /package/agent-assets/templates/{dossiers → knowledge/dossiers}/monthly.md +0 -0
- /package/agent-assets/templates/{dossiers → knowledge/dossiers}/morning.md +0 -0
- /package/agent-assets/templates/{dossiers → knowledge/dossiers}/roadmap.md +0 -0
- /package/agent-assets/templates/{dossiers → knowledge/dossiers}/weekly.md +0 -0
- /package/agent-assets/templates/{projects → plans/projects}/_index.md +0 -0
- /package/agent-assets/templates/{roadmap.md → plans/roadmap.md} +0 -0
- /package/agent-assets/templates/{routines → policies/routines}/morning.md +0 -0
- /package/agent-assets/templates/{routines → policies/routines}/weekly.md +0 -0
- /package/agent-assets/templates/{agent → state}/profile-questions.md +0 -0
- /package/agent-assets/templates/{today.md → state/today.md} +0 -0
|
@@ -1,14 +1,56 @@
|
|
|
1
|
+
<!--
|
|
2
|
+
STATUS: disabled by default (pre-release).
|
|
3
|
+
|
|
4
|
+
The scheduler cron and boot-time catchup in
|
|
5
|
+
`packages/daemon/src/{core/scheduler.ts,bootstrap/schedule-helpers.ts}`
|
|
6
|
+
consult `config.monthlyReviewEnabled` (default `false`) before
|
|
7
|
+
firing this routine. The task flow below is preserved verbatim as
|
|
8
|
+
the design-of-record but is not exercised at runtime until the kill
|
|
9
|
+
switch flips on.
|
|
10
|
+
|
|
11
|
+
Why disabled: the current routine reads ~30 daily files + 4-5 weekly
|
|
12
|
+
files + the agent journal to synthesise a user-facing snapshot whose
|
|
13
|
+
downstream leverage is unimplemented (`<previous_month>` injection
|
|
14
|
+
is documented as "未実装" in docs/design/06-memory.md §6.2.8 and
|
|
15
|
+
weekly-next-week-leverage.md §6 "Out of scope"). Cost lands near the
|
|
16
|
+
per-execute `max_budget_usd: 1.00` ceiling for an output that no
|
|
17
|
+
routine consumes downstream — the cost/value ratio is poor in the
|
|
18
|
+
current shape.
|
|
19
|
+
|
|
20
|
+
Re-enable path: Mirror+Prune redesign.
|
|
21
|
+
1. Drop the 30 × daily/*.md re-read (already aggregated in weekly).
|
|
22
|
+
2. Collapse Wins / Outstanding / Metrics / Risks / Reading sections
|
|
23
|
+
into two atomic outputs:
|
|
24
|
+
- Unit 1 — one trend observation, ≥3 weeks of evidence, 1 line.
|
|
25
|
+
- Unit 2 — aged carry-over decisions (drop/defer/do-now/
|
|
26
|
+
delegate/decide) on Carry Over entries that appeared ≥4
|
|
27
|
+
weeks in a row.
|
|
28
|
+
3. Add `previous-month-digest.ts` so the new-month day-1
|
|
29
|
+
morning_routine receives a `<previous_month>` block (analogous
|
|
30
|
+
to `previous-week-digest.ts`). Without this, monthly remains a
|
|
31
|
+
write-only snapshot.
|
|
32
|
+
4. Default Phase 4 notification to silent; only send when Unit 2
|
|
33
|
+
has at least one `decide` verb or Unit 1 contradicts a
|
|
34
|
+
user-stated commitment.
|
|
35
|
+
5. Drop the agent-internal `## Monthly YYYY-MM` block — weekly's
|
|
36
|
+
12-week journal already covers self-critique signal.
|
|
37
|
+
|
|
38
|
+
When the redesign ships, flip the default to `true` in
|
|
39
|
+
`packages/daemon/src/settings/runtime-settings.ts:monthlyReviewEnabled`
|
|
40
|
+
and re-introduce the docs under `agent-assets/docs/features/routines/`.
|
|
41
|
+
-->
|
|
42
|
+
|
|
1
43
|
{context}
|
|
2
44
|
|
|
3
45
|
## Task: Monthly Review
|
|
4
46
|
|
|
5
47
|
The "Vault policy files" block appended to this prompt includes
|
|
6
|
-
`routines/monthly.md` — run any `### <label>` entries there alongside the
|
|
48
|
+
`policies/routines/monthly.md` — run any `### <label>` entries there alongside the
|
|
7
49
|
built-in review phases below, using the same journaling conventions.
|
|
8
50
|
The "Vault review context" block includes `context-index.md` and
|
|
9
|
-
`dossiers/monthly.md`; consult it during Phase 1 and update the
|
|
51
|
+
`knowledge/dossiers/monthly.md`; consult it during Phase 1 and update the
|
|
10
52
|
dossier's Open items / Last run before finishing. Writes to
|
|
11
|
-
`dossiers/<flow>.md` MUST preserve the existing YAML frontmatter block
|
|
53
|
+
`knowledge/dossiers/<flow>.md` MUST preserve the existing YAML frontmatter block
|
|
12
54
|
(`---\ntype: dossier\nowner: agent\nupdated: <date>\n---`); prefer
|
|
13
55
|
`PATCH` with a section target to mutate a single block, and when doing
|
|
14
56
|
a `PUT` full rewrite keep the frontmatter and only refresh `updated:`
|
|
@@ -17,9 +59,9 @@ a `PUT` full rewrite keep the frontmatter and only refresh `updated:`
|
|
|
17
59
|
Generate the monthly review snapshot for the current month and set up the next month.
|
|
18
60
|
|
|
19
61
|
This routine produces **two separate artifacts** with strict audience boundaries:
|
|
20
|
-
- **User-facing**: `monthly/YYYY-MM.md` + (optionally) a short notification.
|
|
62
|
+
- **User-facing**: `journal/monthly/YYYY-MM.md` + (optionally) a short notification.
|
|
21
63
|
Only real user work, wins, and next-month focus. No agent mechanics.
|
|
22
|
-
- **Agent-internal**: `agent
|
|
64
|
+
- **Agent-internal**: `journal/agent.md` (append). Monthly self-critique,
|
|
23
65
|
recurring filter/schedule failures, cross-week patterns in the agent's
|
|
24
66
|
own behavior, and concrete system improvement proposals. **Never**
|
|
25
67
|
surfaced to the user via notify.
|
|
@@ -29,7 +71,7 @@ workflow; the skill owns the file contract.
|
|
|
29
71
|
|
|
30
72
|
### Phase 1: Gather the month
|
|
31
73
|
1. Determine the target file name from <current_time>:
|
|
32
|
-
`monthly/YYYY-MM.md`.
|
|
74
|
+
`journal/monthly/YYYY-MM.md`.
|
|
33
75
|
|
|
34
76
|
**Pre-pass acquisition (none).** Unlike morning / hourly / today_refresh /
|
|
35
77
|
evening / weekly, monthly_review does NOT trigger an `<acquisition-plan>`
|
|
@@ -43,13 +85,13 @@ state rather than fetching fresh windows. If the dispatcher emitted any
|
|
|
43
85
|
continue.
|
|
44
86
|
2. Fetch source material for the current month:
|
|
45
87
|
- Use GET /api/context/list/daily to discover archived daily files and
|
|
46
|
-
read each `daily/YYYY-MM-DD.md` in the current month.
|
|
88
|
+
read each `journal/daily/YYYY-MM-DD.md` in the current month.
|
|
47
89
|
- Use GET /api/context/list/weekly to read weekly reviews that overlap this month.
|
|
48
|
-
- Read the last ~4 weekly sections of `agent
|
|
90
|
+
- Read the last ~4 weekly sections of `journal/agent.md` via GET — they
|
|
49
91
|
accumulate the agent-internal bucket across the month and are the basis
|
|
50
92
|
for Phase 3b's monthly retrospective.
|
|
51
93
|
- Also locate the **previous month's** `## Monthly YYYY-MM` section in
|
|
52
|
-
`agent
|
|
94
|
+
`journal/agent.md`. Extract its `### Proposed adjustments` bullets —
|
|
53
95
|
these are the improvement proposals you committed to last month. You
|
|
54
96
|
will evaluate their status in Phase 3b.
|
|
55
97
|
- Include <today> if it belongs to the same month.
|
|
@@ -72,13 +114,13 @@ continue.
|
|
|
72
114
|
|
|
73
115
|
### Phase 2: Synthesize — split into two buckets
|
|
74
116
|
5. Build TWO separate mental lists before writing anything:
|
|
75
|
-
a. **User-facing bucket** (goes to `monthly/YYYY-MM.md` and possibly notify):
|
|
117
|
+
a. **User-facing bucket** (goes to `journal/monthly/YYYY-MM.md` and possibly notify):
|
|
76
118
|
- What meaningful user progress happened this month?
|
|
77
119
|
- Which user commitments slipped or stayed open, and why (in terms the
|
|
78
120
|
user cares about, not agent mechanics)?
|
|
79
121
|
- What user-side risks or workload patterns carry into next month?
|
|
80
122
|
- What should the user prioritize next month?
|
|
81
|
-
b. **Agent-internal bucket** (goes to `agent
|
|
123
|
+
b. **Agent-internal bucket** (goes to `journal/agent.md` only):
|
|
82
124
|
- Cross-week patterns in scheduled-task failures / did-not-fire
|
|
83
125
|
- Filter and prioritization failures the agent noticed about itself
|
|
84
126
|
- Notification discipline: over-notify / under-notify patterns
|
|
@@ -91,7 +133,7 @@ continue.
|
|
|
91
133
|
own performance or reliability.
|
|
92
134
|
|
|
93
135
|
### Phase 3a: Write the user-facing review
|
|
94
|
-
7. PUT the review to `monthly/YYYY-MM.md`.
|
|
136
|
+
7. PUT the review to `journal/monthly/YYYY-MM.md`.
|
|
95
137
|
Required structure (user outcomes only — no agent mechanics in any section):
|
|
96
138
|
```
|
|
97
139
|
---
|
|
@@ -122,7 +164,7 @@ continue.
|
|
|
122
164
|
reliability)
|
|
123
165
|
|
|
124
166
|
## Reading
|
|
125
|
-
- Completed this month: N — short list of "Title — Author (
|
|
167
|
+
- Completed this month: N — short list of "Title — Author (rating: N/5)"
|
|
126
168
|
bullets, max 5 lines. Omit the Reading section entirely if N = 0
|
|
127
169
|
AND currently-reading count = 0.
|
|
128
170
|
- Currently reading: up to 3 titles with highlight count.
|
|
@@ -135,15 +177,15 @@ continue.
|
|
|
135
177
|
```
|
|
136
178
|
The `## Metrics` section tracks **user** activity only. Do not add rows
|
|
137
179
|
like "agent plan rows completed", "scheduled tasks fired", "observations
|
|
138
|
-
processed" — those belong in agent
|
|
180
|
+
processed" — those belong in journal/agent.md.
|
|
139
181
|
|
|
140
182
|
Skip the `## Reading` section entirely if the user imported zero books
|
|
141
183
|
and has zero completions this month — an empty reading block is noise.
|
|
142
184
|
8. Update roadmap.md and relevant projects/*.md when the review shows
|
|
143
185
|
milestone drift, completed phases, or a changed next-month focus.
|
|
144
186
|
|
|
145
|
-
### Phase 3b: Append to agent
|
|
146
|
-
9. PATCH-append a monthly retrospective block to `agent
|
|
187
|
+
### Phase 3b: Append to journal/agent.md (internal)
|
|
188
|
+
9. PATCH-append a monthly retrospective block to `journal/agent.md` via
|
|
147
189
|
`mode: "append_to_file"` (no `section` param needed — content is
|
|
148
190
|
appended to the end of the file). This is the cross-week synthesis of
|
|
149
191
|
the weekly sections that accumulated during the month.
|
|
@@ -157,9 +199,9 @@ continue.
|
|
|
157
199
|
### Prior adjustments follow-up
|
|
158
200
|
- (Review EACH bullet from last month's `### Proposed adjustments`.
|
|
159
201
|
For each one, write exactly one of:
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
202
|
+
implemented: [what changed]
|
|
203
|
+
in-progress: [current state]
|
|
204
|
+
dropped: [why]
|
|
163
205
|
Fallback rules:
|
|
164
206
|
- No prior monthly section exists → "- First month — no prior adjustments"
|
|
165
207
|
- Prior section exists but has no `### Proposed adjustments` subsection
|
|
@@ -194,7 +236,7 @@ continue.
|
|
|
194
236
|
cross-week frequency and drop the rest. Single-week anomalies are already
|
|
195
237
|
in that week's journal entry and do not need re-listing.
|
|
196
238
|
|
|
197
|
-
If `agent
|
|
239
|
+
If `journal/agent.md` does not yet exist, PUT a minimal file with
|
|
198
240
|
`# Agent Journal\n\n` header plus this section, in a single call.
|
|
199
241
|
|
|
200
242
|
**Idempotency note**: if a `## Monthly YYYY-MM` section for the current
|
|
@@ -204,7 +246,7 @@ continue.
|
|
|
204
246
|
|
|
205
247
|
### Phase 4: Notify (user-facing only)
|
|
206
248
|
10. The notification is for the USER, not a report of Phases 1–3. Never
|
|
207
|
-
mention monthly/YYYY-MM.md, agent
|
|
249
|
+
mention journal/monthly/YYYY-MM.md, journal/agent.md, "Monthly Review complete",
|
|
208
250
|
agent plan rows, did-not-fire, filter quality, observation processing,
|
|
209
251
|
or any other internal mechanism.
|
|
210
252
|
|
|
@@ -217,8 +259,8 @@ hold:
|
|
|
217
259
|
it in the first morning briefing of the new month anyway)
|
|
218
260
|
- No hard deadline within the next 30 days that is slipping
|
|
219
261
|
When the gate triggers: skip POST /api/notify entirely. The
|
|
220
|
-
monthly/YYYY-MM.md file is still written. Also log one line in the current
|
|
221
|
-
weekly section of agent
|
|
262
|
+
journal/monthly/YYYY-MM.md file is still written. Also log one line in the current
|
|
263
|
+
weekly section of journal/agent.md: `silent monthly wrap-up — nothing
|
|
222
264
|
actionable`.
|
|
223
265
|
|
|
224
266
|
#### 4b. When you DO notify — content rules
|
|
@@ -250,7 +292,7 @@ Good (something worth saying):
|
|
|
250
292
|
Next month's focus: Phase 2 foundation + the Q2 roadmap refresh.
|
|
251
293
|
|
|
252
294
|
Good (silent path — nothing is sent):
|
|
253
|
-
(no POST /api/notify call; one-line note appended to agent
|
|
295
|
+
(no POST /api/notify call; one-line note appended to journal/agent.md)
|
|
254
296
|
|
|
255
297
|
Bad (this is the failure mode this prompt exists to prevent):
|
|
256
298
|
Monthly Review YYYY-MM complete. Wrote monthly/2026-04.md. Metrics:
|
|
@@ -258,4 +300,4 @@ Bad (this is the failure mode this prompt exists to prevent):
|
|
|
258
300
|
processed 82. System improvement ideas logged. Review notification sent.
|
|
259
301
|
|
|
260
302
|
The bad example reports the agent's bookkeeping. Everything in it either
|
|
261
|
-
belongs in agent
|
|
303
|
+
belongs in journal/agent.md or was never worth telling the user.
|
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
{context}
|
|
2
|
+
|
|
3
|
+
## Task: Daily journal author (Stage B of the 04:00 pipeline)
|
|
4
|
+
|
|
5
|
+
You are the Stage B session of the morning-routine pipeline. Stage A is
|
|
6
|
+
running in parallel and owns `state/today.md` / `plans/roadmap.md` / schedule
|
|
7
|
+
fan-out. Your single responsibility is to author the user's diary for
|
|
8
|
+
yesterday — the daemon will write the file for you.
|
|
9
|
+
|
|
10
|
+
> **The daily journal is the user's diary**, not the agent's behavior
|
|
11
|
+
> log. Write what the user did, who they met, what they talked about —
|
|
12
|
+
> in the user's first-person voice. Agent-side telemetry (action
|
|
13
|
+
> counts, retry stats, anomalies) belongs in `journal/agent.md` and is
|
|
14
|
+
> handled by the daemon; do NOT surface it here.
|
|
15
|
+
|
|
16
|
+
> **You have no tools.** No `Bash`, no `Read`, no `Write`, no `Edit`,
|
|
17
|
+
> no `curl`. Your final output is a single assistant message whose
|
|
18
|
+
> tail carries two XML-tagged blocks — that text is your entire
|
|
19
|
+
> deliverable. The daemon's `DailyJournalComposer` extracts the
|
|
20
|
+
> blocks, composes the final `daily/<yesterday>.md` with
|
|
21
|
+
> daemon-owned frontmatter, and writes it atomically to disk.
|
|
22
|
+
|
|
23
|
+
### Inputs (already in your prompt context)
|
|
24
|
+
|
|
25
|
+
- `<journal_skeleton>` — frontmatter the daemon owns + three scratch
|
|
26
|
+
body sections (`## Schedule`, `## Tasks`, `## Conversations`). The
|
|
27
|
+
skeleton's frontmatter is informational here: the daemon will emit
|
|
28
|
+
the final YAML, so do NOT paste the frontmatter into your output.
|
|
29
|
+
- `<browser_digest>` — yesterday's browser activity, when the
|
|
30
|
+
`browser_history` integration is active and the digest is
|
|
31
|
+
available. Omitted silently when the integration is `disabled` or
|
|
32
|
+
the digest is unavailable; in that case skip the
|
|
33
|
+
"Reading / research" surface entirely.
|
|
34
|
+
- `<calendar_events_7d>` — used for resolving `[[wikilink]]` slugs
|
|
35
|
+
when the vault is in Obsidian mode.
|
|
36
|
+
- `<yesterday_handoff_parsed>` — yesterday's `## Handoff` section.
|
|
37
|
+
- `<output_language_policy>` — the language the body prose must be in
|
|
38
|
+
(per `<settings primary_language>`). Section headers and YAML stay
|
|
39
|
+
English regardless.
|
|
40
|
+
|
|
41
|
+
### Output (your final assistant message)
|
|
42
|
+
|
|
43
|
+
Emit your body and frontmatter facts at the END of your message
|
|
44
|
+
inside two namespaced XML wrappers. The daemon's extractor takes the
|
|
45
|
+
**LAST** matched pair of each tag, so any earlier reasoning,
|
|
46
|
+
deliberation, or quoted prose is fine — only the final pair lands on
|
|
47
|
+
disk.
|
|
48
|
+
|
|
49
|
+
```
|
|
50
|
+
<aitne:daily-journal-body>
|
|
51
|
+
# YYYY-MM-DD (Weekday)
|
|
52
|
+
|
|
53
|
+
## Summary
|
|
54
|
+
|
|
55
|
+
... full body in the user's first-person voice, per
|
|
56
|
+
rules/journal-format.md ...
|
|
57
|
+
</aitne:daily-journal-body>
|
|
58
|
+
|
|
59
|
+
<aitne:daily-journal-frontmatter>
|
|
60
|
+
{
|
|
61
|
+
"projects": ["..."],
|
|
62
|
+
"people": ["..."],
|
|
63
|
+
"tags": ["..."]
|
|
64
|
+
}
|
|
65
|
+
</aitne:daily-journal-frontmatter>
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
Rules:
|
|
69
|
+
|
|
70
|
+
- **Wrappers at the END.** Place both blocks at the tail of your
|
|
71
|
+
output. The LAST-pair extractor uses this rule to ignore any earlier
|
|
72
|
+
occurrence of the literal token (e.g. if you quote the tag name
|
|
73
|
+
while documenting Aitne).
|
|
74
|
+
- **Body shape.** Open with `# YYYY-MM-DD (Weekday)`, then follow
|
|
75
|
+
`policies/journal-format.md` for section selection / ordering / tone.
|
|
76
|
+
The skeleton's scratch sections are inputs you may reshape,
|
|
77
|
+
combine, or supersede — they do NOT map 1:1 to template sections.
|
|
78
|
+
- **Frontmatter shape.** A single JSON object with exactly three
|
|
79
|
+
optional fields:
|
|
80
|
+
- `projects` — array of project slugs the user worked on (ordered
|
|
81
|
+
by salience).
|
|
82
|
+
- `people` — array of people referenced in the body.
|
|
83
|
+
- `tags` — array of topical kebab-case tags, no spaces.
|
|
84
|
+
Empty arrays are legal. Extra keys are silently dropped. The
|
|
85
|
+
daemon fills `date` / `weekday` / `calendar_events` /
|
|
86
|
+
`messages_handled` / `updated` / `agent_last_synced_at` /
|
|
87
|
+
`content_hash` from the skeleton — do NOT include them.
|
|
88
|
+
- **Output language.** Body prose follows
|
|
89
|
+
`<output_language_policy>`. Section headers (`## Summary`,
|
|
90
|
+
`## Schedule`, etc.) stay English. Technical terms keep their
|
|
91
|
+
original form.
|
|
92
|
+
- **Wikilinks.** When `<settings vault_mode>` is `obsidian`, render
|
|
93
|
+
project / people references as `[[wikilink]]`s. When `plain`, use
|
|
94
|
+
plain text. Use `<calendar_events_7d>` to resolve attended-event
|
|
95
|
+
slugs.
|
|
96
|
+
- **Redaction.** Apply the `Redaction patterns` and
|
|
97
|
+
`Journal export rules` policy blocks before composing. Never write a
|
|
98
|
+
credential, password, API key, or private token — even paraphrased.
|
|
99
|
+
|
|
100
|
+
### Browser-history surfacing (when `<browser_digest>` is present)
|
|
101
|
+
|
|
102
|
+
- Clusters with `meaningful_visits_in_window ≥ 5` and `daysActive ≥ 2`
|
|
103
|
+
get a short sentence each in a "Reading / research" area of the
|
|
104
|
+
body. Use the cluster `displayName` as-is.
|
|
105
|
+
- Surface `pendingOffers` in a single user-facing line so the user
|
|
106
|
+
sees them at the top of their morning DM ("There's an open offer
|
|
107
|
+
to research X — reply 'research' to accept or 'no thanks' to
|
|
108
|
+
skip"). Max 3.
|
|
109
|
+
- `shopping` is informational — fold into the "Misc" area only when
|
|
110
|
+
`comparisonMinutes ≥ 10`. `reloads` is self-monitoring data, do
|
|
111
|
+
NOT surface.
|
|
112
|
+
- Never surface `topDomains` verbatim — domain lists in a daily
|
|
113
|
+
journal read as surveillance, not memory.
|
|
114
|
+
|
|
115
|
+
### Placeholder branch — `no_journal_export`
|
|
116
|
+
|
|
117
|
+
If the user's `<user>` block (or the skeleton's frontmatter signals)
|
|
118
|
+
indicates `no_journal_export: true` for the day, set the body to
|
|
119
|
+
`[Skipped by user request]` and the frontmatter to
|
|
120
|
+
`{"projects": [], "people": [], "tags": ["skipped"]}`.
|
|
121
|
+
|
|
122
|
+
### Notes
|
|
123
|
+
|
|
124
|
+
- You do NOT have access to `<yesterday>` raw, `<roadmap>`,
|
|
125
|
+
`<active_projects>`, `<management_rules>`, or
|
|
126
|
+
`<routines/morning.md>`. Those are Stage A's territory; you are
|
|
127
|
+
scoped to journal authoring only.
|
|
128
|
+
- You do NOT write `state/today.md`, `plans/roadmap.md`, schedule rows, or
|
|
129
|
+
observations. Your only output is the two-block tagged text above.
|
|
130
|
+
- Your final text is agent-internal — the daemon parses the tagged
|
|
131
|
+
blocks and composes `daily/<yesterday>.md`. The daemon's
|
|
132
|
+
`agent-journal-appender` reads the compose outcome
|
|
133
|
+
(`detail.dailyWrite`) plus the resulting file's frontmatter to
|
|
134
|
+
render the English audit-trail paragraph for `journal/agent.md` —
|
|
135
|
+
no LLM final-text parsing on that side.
|