@curie-agent/core 0.2.4 → 0.3.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 (111) hide show
  1. package/LICENSE +179 -0
  2. package/dist/.tsbuildinfo +1 -1
  3. package/dist/src/channel-router.js +1 -1
  4. package/dist/src/channel-router.js.map +1 -1
  5. package/dist/src/context.d.ts +11 -0
  6. package/dist/src/context.d.ts.map +1 -0
  7. package/dist/src/context.js +80 -0
  8. package/dist/src/context.js.map +1 -0
  9. package/dist/src/cron-manager.d.ts +27 -8
  10. package/dist/src/cron-manager.d.ts.map +1 -1
  11. package/dist/src/cron-manager.js +121 -33
  12. package/dist/src/cron-manager.js.map +1 -1
  13. package/dist/src/event-bus.d.ts +71 -0
  14. package/dist/src/event-bus.d.ts.map +1 -1
  15. package/dist/src/event-bus.js.map +1 -1
  16. package/dist/src/heartbeat-delivery.d.ts +2 -0
  17. package/dist/src/heartbeat-delivery.d.ts.map +1 -1
  18. package/dist/src/heartbeat-delivery.js +20 -3
  19. package/dist/src/heartbeat-delivery.js.map +1 -1
  20. package/dist/src/heartbeat-executor.d.ts +36 -2
  21. package/dist/src/heartbeat-executor.d.ts.map +1 -1
  22. package/dist/src/heartbeat-executor.js +32 -40
  23. package/dist/src/heartbeat-executor.js.map +1 -1
  24. package/dist/src/identity-files.d.ts +29 -0
  25. package/dist/src/identity-files.d.ts.map +1 -0
  26. package/dist/src/identity-files.js +59 -0
  27. package/dist/src/identity-files.js.map +1 -0
  28. package/dist/src/index.d.ts +19 -4
  29. package/dist/src/index.d.ts.map +1 -1
  30. package/dist/src/index.js +13 -2
  31. package/dist/src/index.js.map +1 -1
  32. package/dist/src/pricing.d.ts +29 -0
  33. package/dist/src/pricing.d.ts.map +1 -0
  34. package/dist/src/pricing.js +85 -0
  35. package/dist/src/pricing.js.map +1 -0
  36. package/dist/src/safety/command-guard.d.ts.map +1 -1
  37. package/dist/src/safety/command-guard.js +35 -1
  38. package/dist/src/safety/command-guard.js.map +1 -1
  39. package/dist/src/safety/path-guard.d.ts +7 -3
  40. package/dist/src/safety/path-guard.d.ts.map +1 -1
  41. package/dist/src/safety/path-guard.js +14 -5
  42. package/dist/src/safety/path-guard.js.map +1 -1
  43. package/dist/src/safety/snapshot.js +1 -1
  44. package/dist/src/safety/snapshot.js.map +1 -1
  45. package/dist/src/session-store.d.ts +3 -1
  46. package/dist/src/session-store.d.ts.map +1 -1
  47. package/dist/src/session-store.js +24 -1
  48. package/dist/src/session-store.js.map +1 -1
  49. package/dist/src/settings.d.ts +98 -1
  50. package/dist/src/settings.d.ts.map +1 -1
  51. package/dist/src/settings.js +363 -83
  52. package/dist/src/settings.js.map +1 -1
  53. package/dist/src/shell-detect.d.ts +12 -0
  54. package/dist/src/shell-detect.d.ts.map +1 -0
  55. package/dist/src/shell-detect.js +31 -0
  56. package/dist/src/shell-detect.js.map +1 -0
  57. package/dist/src/subagent-executor.d.ts +68 -0
  58. package/dist/src/subagent-executor.d.ts.map +1 -0
  59. package/dist/src/subagent-executor.js +289 -0
  60. package/dist/src/subagent-executor.js.map +1 -0
  61. package/dist/src/task-executor.d.ts +31 -0
  62. package/dist/src/task-executor.d.ts.map +1 -0
  63. package/dist/src/task-executor.js +91 -0
  64. package/dist/src/task-executor.js.map +1 -0
  65. package/dist/src/task-manager.d.ts +83 -0
  66. package/dist/src/task-manager.d.ts.map +1 -0
  67. package/dist/src/task-manager.js +308 -0
  68. package/dist/src/task-manager.js.map +1 -0
  69. package/dist/src/task-migration.d.ts +10 -0
  70. package/dist/src/task-migration.d.ts.map +1 -0
  71. package/dist/src/task-migration.js +144 -0
  72. package/dist/src/task-migration.js.map +1 -0
  73. package/dist/src/task-summary.d.ts +7 -0
  74. package/dist/src/task-summary.d.ts.map +1 -0
  75. package/dist/src/task-summary.js +34 -0
  76. package/dist/src/task-summary.js.map +1 -0
  77. package/dist/src/template-utils.d.ts +16 -0
  78. package/dist/src/template-utils.d.ts.map +1 -0
  79. package/dist/src/template-utils.js +72 -0
  80. package/dist/src/template-utils.js.map +1 -0
  81. package/dist/src/token-monitor.d.ts +50 -0
  82. package/dist/src/token-monitor.d.ts.map +1 -0
  83. package/dist/src/token-monitor.js +119 -0
  84. package/dist/src/token-monitor.js.map +1 -0
  85. package/dist/src/turn-loop.d.ts +10 -1
  86. package/dist/src/turn-loop.d.ts.map +1 -1
  87. package/dist/src/turn-loop.js +152 -23
  88. package/dist/src/turn-loop.js.map +1 -1
  89. package/dist/src/unified-task.d.ts +76 -0
  90. package/dist/src/unified-task.d.ts.map +1 -0
  91. package/dist/src/unified-task.js +196 -0
  92. package/dist/src/unified-task.js.map +1 -0
  93. package/package.json +16 -11
  94. package/templates/AGENTS.md +53 -0
  95. package/templates/HEARTBEAT.md +37 -0
  96. package/templates/MEMORY.md +29 -0
  97. package/templates/SOUL.md +28 -0
  98. package/templates/TOOLS.md +29 -0
  99. package/templates/USER.md +35 -0
  100. package/templates/WIKI.md +146 -0
  101. package/templates/settings.json +90 -0
  102. package/templates/skills/deep-research/SKILL.md +273 -0
  103. package/templates/skills/deep-research/references/report-structure.md +149 -0
  104. package/templates/skills/deep-research/references/topic-guides.md +151 -0
  105. package/templates/skills/planning/SKILL.md +222 -0
  106. package/templates/skills/planning/references/business.md +82 -0
  107. package/templates/skills/planning/references/creative.md +111 -0
  108. package/templates/skills/planning/references/events.md +109 -0
  109. package/templates/skills/planning/references/personal.md +107 -0
  110. package/templates/skills/planning/references/templates.md +279 -0
  111. package/templates/skills/wiki/SKILL.md +70 -0
@@ -0,0 +1,107 @@
1
+ # Personal Life, Career & Wellbeing Planning
2
+
3
+ Domain-specific guidance for planning tasks in the personal sphere.
4
+
5
+ ---
6
+
7
+ ## Personal Life Planning Areas
8
+
9
+ ### Career Planning
10
+ Key questions to ask:
11
+ - Where do you want to be in 1 year / 3 years / 5 years?
12
+ - What skills are required to get there?
13
+ - What's missing from your current role or path?
14
+ - Are you optimizing for: money, growth, impact, lifestyle, stability — or some mix?
15
+
16
+ Framework: **Ikigai lens** — what you love, what you're good at, what the world needs, what you can be paid for.
17
+
18
+ Plan structure:
19
+ 1. Current state assessment (skills, experience, network, gaps)
20
+ 2. Target role / state definition
21
+ 3. Gap analysis
22
+ 4. Milestones: certifications, projects, roles, conversations
23
+ 5. 90-day action plan (most important horizon)
24
+
25
+ ### Financial Planning
26
+ > Note: You're not a financial advisor. Help with structure and process, not specific investment or tax advice.
27
+
28
+ Key areas to help plan:
29
+ - Budgeting: income vs. expenses categories
30
+ - Debt payoff ordering (avalanche / snowball method)
31
+ - Savings goals with target dates and monthly contribution
32
+ - Emergency fund building
33
+ - Big purchase planning (home, car, travel)
34
+
35
+ Framework: **50/30/20 rule** (needs / wants / savings) as a starting structure, adjusted for the person.
36
+
37
+ ### Health & Fitness Planning
38
+ Key questions:
39
+ - What is the goal? (lose weight, build strength, run a race, improve energy, manage stress)
40
+ - Current baseline? (activity level, sleep, diet habits)
41
+ - How much time per week is realistic?
42
+ - Any injuries or constraints?
43
+
44
+ Principles:
45
+ - Specificity: "exercise more" → "3x 45-min strength sessions per week"
46
+ - Progressive overload for fitness goals
47
+ - Habit pairing: anchor workouts to existing anchors (commute, lunch)
48
+ - Recovery is part of the plan — don't ignore it
49
+
50
+ ### Relationship & Family Planning
51
+ (Wedding planning, family events, parenting goals, social life)
52
+
53
+ Key considerations:
54
+ - Shared vs. individual priorities
55
+ - Communication and alignment between people involved
56
+ - Logistics (travel, costs, coordination)
57
+ - Emotional load and decision fatigue
58
+
59
+ Keep plans practical, not prescriptive about values.
60
+
61
+ ### Home & Living Planning
62
+ (Moving, renovation, decluttering, purchase decisions)
63
+
64
+ Renovation / home project structure:
65
+ 1. Define scope and must-haves vs. nice-to-haves
66
+ 2. Set budget with 15–20% contingency
67
+ 3. Get quotes before committing to timeline
68
+ 4. Sequence work correctly (structural → plumbing/electrical → surfaces → finishes)
69
+ 5. Plan for disruption to daily life during work
70
+
71
+ ---
72
+
73
+ ## Personal Planning Anti-Patterns
74
+
75
+ - **Planning for your ideal self**: Plan for who you are now, not who you wish you were
76
+ - **Ignoring energy and motivation**: Calendar time ≠ productive time
77
+ - **No review moment**: Personal plans need a weekly or monthly check-in
78
+ - **Too many goals at once**: Pick 1–3 major focus areas per quarter maximum
79
+ - **Planning instead of deciding**: Sometimes the blocker isn't a missing plan, it's an avoided decision
80
+
81
+ ---
82
+
83
+ ## Useful Frameworks for Personal Planning
84
+
85
+ ### The 12-Week Year
86
+ Treat every 12 weeks as a full "year." Set 1–3 goals, plan weekly execution, review at week 13.
87
+ Good for: people who procrastinate until year-end deadlines.
88
+
89
+ ### OKRs (Objectives & Key Results)
90
+ - Objective: Qualitative, inspiring goal
91
+ - Key Results: 2–4 measurable outcomes that prove the objective was met
92
+ Good for: people who need clear measurement.
93
+
94
+ ### Time Blocking
95
+ Assign categories of activity to fixed time slots before the week starts.
96
+ Good for: people who lose time to reactive tasks.
97
+
98
+ ### The One Thing
99
+ Ask: "What's the ONE thing I could do, such that by doing it, everything else becomes easier or unnecessary?"
100
+ Good for: people who are overwhelmed and stuck.
101
+
102
+ ### WOOP (Wish, Outcome, Obstacle, Plan)
103
+ 1. Wish: What do you want?
104
+ 2. Outcome: What would it feel like to achieve it?
105
+ 3. Obstacle: What's the main thing that could get in the way?
106
+ 4. Plan: If [obstacle], then I will [action].
107
+ Good for: behavior change and habit formation.
@@ -0,0 +1,279 @@
1
+ # Planning Templates
2
+
3
+ Output templates for each planning mode. Use these as structural guides — adapt to the user's context.
4
+
5
+ ---
6
+
7
+ ## Roadmap Template
8
+
9
+ ```
10
+ # [Goal Name] Roadmap
11
+
12
+ **Goal**: [One sentence — what does done look like?]
13
+ **Timeframe**: [Start → End]
14
+ **Owner(s)**: [Who is responsible]
15
+
16
+ ---
17
+
18
+ ## Phase 1: [Phase Name] — [Month/Week range]
19
+ **Objective**: [What this phase achieves]
20
+
21
+ Milestones:
22
+ - [ ] [Milestone 1] — [target date]
23
+ - [ ] [Milestone 2] — [target date]
24
+ - [ ] [Milestone 3] — [target date]
25
+
26
+ Key risks: [What could go wrong in this phase]
27
+
28
+ ---
29
+
30
+ ## Phase 2: [Phase Name] — [Month/Week range]
31
+ ...
32
+
33
+ ---
34
+
35
+ ## Success Metrics
36
+ - [How will you know you've achieved the goal?]
37
+
38
+ ## Review Cadence
39
+ - [When and how will you check progress?]
40
+ ```
41
+
42
+ ---
43
+
44
+ ## Timeline Template
45
+
46
+ ```
47
+ # [Project/Goal] Timeline
48
+
49
+ **Deadline**: [Date]
50
+ **Today**: [Date]
51
+ **Time available**: [X weeks / days]
52
+
53
+ ---
54
+
55
+ | Week / Date | Tasks | Time needed | Notes |
56
+ |---|---|---|---|
57
+ | Week 1 (dates) | Task A, Task B | ~X hrs | [context] |
58
+ | Week 2 (dates) | Task C | ~X hrs | Depends on Task A |
59
+ | ... | | | |
60
+ | Final week | Review, polish, submit | ~X hrs | Buffer built in |
61
+
62
+ ---
63
+
64
+ **Critical path** (must not slip): [List items that block everything else]
65
+ **Buffers**: [Where you've built in slack]
66
+ **First action**: [What to do today]
67
+ ```
68
+
69
+ ---
70
+
71
+ ## Goal Decomposition Template
72
+
73
+ ```
74
+ # Breaking Down: [Goal]
75
+
76
+ **Goal stated clearly**: [Concrete version of the goal]
77
+ **Why this matters**: [The user's motivation — keeps them going]
78
+ **Deadline / horizon**: [When]
79
+
80
+ ---
81
+
82
+ ## Outcome 1: [Major outcome needed]
83
+ Actions:
84
+ 1. [Specific action]
85
+ 2. [Specific action]
86
+ 3. [Specific action]
87
+
88
+ ## Outcome 2: [Major outcome needed]
89
+ Actions:
90
+ 1. ...
91
+
92
+ ---
93
+
94
+ ## Blockers & Unknowns
95
+ - [What do you need to figure out before you can move?]
96
+ - [What might stop you?]
97
+
98
+ ## Start Here
99
+ → **First action (do this today/this week)**: [One clear, small, concrete action]
100
+ ```
101
+
102
+ ---
103
+
104
+ ## Project Template
105
+
106
+ ```
107
+ # [Project Name]
108
+
109
+ **Purpose**: [Why this project exists]
110
+ **Owner**: [Who leads it]
111
+ **Team**: [Who else is involved and in what role]
112
+ **Start**: [Date] | **End**: [Date]
113
+ **Budget**: [If applicable]
114
+
115
+ ---
116
+
117
+ ## Scope
118
+ **In scope**: [What this project includes]
119
+ **Out of scope**: [What it explicitly doesn't cover]
120
+
121
+ ---
122
+
123
+ ## Deliverables
124
+ | Deliverable | Owner | Due Date | Status |
125
+ |---|---|---|---|
126
+ | [e.g. Draft report] | [Name] | [Date] | Not started |
127
+ | ... | | | |
128
+
129
+ ---
130
+
131
+ ## Task Breakdown
132
+ ### Phase 1: [Name]
133
+ - [ ] [Task] — [Owner] — [Due]
134
+ - [ ] [Task] — [Owner] — [Due]
135
+
136
+ ### Phase 2: [Name]
137
+ - [ ] ...
138
+
139
+ ---
140
+
141
+ ## Dependencies
142
+ - [Task B] cannot start until [Task A] is done
143
+ - [Milestone X] requires sign-off from [Person]
144
+
145
+ ---
146
+
147
+ ## Risks
148
+ | Risk | Likelihood | Impact | Mitigation |
149
+ |---|---|---|---|
150
+ | [Risk description] | High/Med/Low | High/Med/Low | [How to reduce it] |
151
+
152
+ ---
153
+
154
+ ## Checkpoints
155
+ - [Date]: [What will be reviewed]
156
+ - [Date]: [Go/no-go decision]
157
+ ```
158
+
159
+ ---
160
+
161
+ ## Periodic Planning Template (Weekly)
162
+
163
+ ```
164
+ # Week of [Date]
165
+
166
+ ## Carried over from last week
167
+ - [What didn't get done that still matters]
168
+
169
+ ## Fixed commitments this week
170
+ - [Meeting / appointment / deadline — Mon]
171
+ - [...]
172
+
173
+ ## Top 3 priorities (must happen this week)
174
+ 1. [Priority 1]
175
+ 2. [Priority 2]
176
+ 3. [Priority 3]
177
+
178
+ ## Other tasks (do if time allows)
179
+ - [Task]
180
+ - [Task]
181
+
182
+ ## Time blocks
183
+ | Day | Morning | Afternoon | Evening |
184
+ |---|---|---|---|
185
+ | Mon | [Deep work: X] | [Calls/admin] | [Personal] |
186
+ | Tue | ... | | |
187
+ | ... | | | |
188
+
189
+ ## This week I'll call it a win if...
190
+ [One sentence — the most important thing that could happen]
191
+ ```
192
+
193
+ ---
194
+
195
+ ## Event Planning Template
196
+
197
+ ```
198
+ # [Event Name]
199
+
200
+ **Date**: [Date] | **Time**: [Time]
201
+ **Location**: [Venue / address / online link]
202
+ **Attendees**: [Number and who]
203
+ **Budget**: [Total] | **Spent so far**: [Amount]
204
+
205
+ ---
206
+
207
+ ## Pre-Event Tasks
208
+ | Task | Owner | Deadline | Done? |
209
+ |---|---|---|---|
210
+ | Book venue | [Name] | [Date] | ☐ |
211
+ | Send invitations | | | ☐ |
212
+ | Confirm catering | | | ☐ |
213
+ | Arrange transport | | | ☐ |
214
+ | ... | | | |
215
+
216
+ ## Day-Of Tasks
217
+ | Time | Task | Owner |
218
+ |---|---|---|
219
+ | [Time] | Setup / arrival | |
220
+ | [Time] | Guests arrive | |
221
+ | [Time] | [Activity] | |
222
+ | [Time] | Wrap-up / cleanup | |
223
+
224
+ ## Post-Event
225
+ - [ ] Send thank-you notes / follow-ups
226
+ - [ ] Collect feedback
227
+ - [ ] Settle final invoices
228
+ - [ ] [Other]
229
+
230
+ ## Backup Plans
231
+ - If [X goes wrong]: [fallback]
232
+ - If weather is bad: [fallback]
233
+ ```
234
+
235
+ ---
236
+
237
+ ## Habit & Routine Template
238
+
239
+ ```
240
+ # [Habit / Routine Name]
241
+
242
+ **Goal**: [What this routine is designed to achieve]
243
+ **Duration**: [How long each session] | **Frequency**: [Daily / 3x week / etc.]
244
+ **Starting small**: [The minimum viable version to build from]
245
+
246
+ ---
247
+
248
+ ## Routine Design
249
+
250
+ ### Morning Routine — [Total time: X min]
251
+ | Time | Action | Duration |
252
+ |---|---|---|
253
+ | [Time] | Wake up, water | 5 min |
254
+ | [Time] | [Habit 1] | [X] min |
255
+ | [Time] | [Habit 2] | [X] min |
256
+ | [Time] | [Leave / start work] | — |
257
+
258
+ ### Evening Routine — [Total time: X min]
259
+ | Time | Action | Duration |
260
+ |---|---|---|
261
+ | ... | | |
262
+
263
+ ---
264
+
265
+ ## Habit Stacks
266
+ [New habit] → After [existing habit]
267
+ Example: "After I pour my morning coffee → I open my journal"
268
+
269
+ ## Environment Design
270
+ - [Remove friction]: [e.g., lay out gym clothes the night before]
271
+ - [Add cue]: [e.g., put book on pillow so I see it at night]
272
+
273
+ ## Tracking
274
+ - Method: [App / paper / calendar dot / etc.]
275
+ - Review: [When will you look back at how it's going?]
276
+
277
+ ## What to do when you miss a day
278
+ Never miss twice. One miss is an accident; two misses is a new habit.
279
+ ```
@@ -0,0 +1,70 @@
1
+ ---
2
+ name: wiki
3
+ description: >
4
+ Use this skill when the user wants to build, maintain, or query a personal knowledge wiki.
5
+ Trigger for requests like: "ingest this article into the wiki", "add this to the wiki",
6
+ "what does the wiki say about X", "search the wiki for Y", "query the wiki",
7
+ "lint the wiki", "health check the wiki", "show me the wiki graph",
8
+ "summarize this paper and add it to the wiki", "file this in the wiki",
9
+ "update the wiki with this", "cross-reference this with the wiki",
10
+ "what have I read about X", "compile everything I know about Y",
11
+ "build a wiki page for Z", "what's in the wiki on topic W".
12
+ This skill wraps the Ingest, Query, and Lint workflows from WIKI.md.
13
+ Do NOT trigger for general note-taking, to-do lists, or session memory.
14
+ ---
15
+
16
+ # Wiki Skill
17
+
18
+ A skill for operating curie-agent's compounding knowledge wiki.
19
+ The wiki is a persistent, self-maintaining markdown knowledge base.
20
+
21
+ ---
22
+
23
+ ## On Activation
24
+
25
+ 1. Read `~/.curie-agent/wiki/WIKI.md` (or the wiki path from settings) for the full
26
+ schema, page conventions, and workflow procedures.
27
+ 2. Check `~/.curie-agent/wiki/index.md` to understand what's already in the wiki.
28
+ 3. Determine which workflow applies: **Ingest**, **Query**, or **Lint**.
29
+
30
+ ---
31
+
32
+ ## Ingest
33
+
34
+ Trigger: user provides a source (file, URL, text) and wants it added to the wiki.
35
+
36
+ Follow the **INGEST Workflow** in WIKI.md exactly:
37
+ - Read source → identify entities/concepts → write summary page → update related pages →
38
+ update index entries → append INGEST log.
39
+
40
+ Slug convention: `summaries/YYYY-MM-DD-kebab-title`.
41
+
42
+ ---
43
+
44
+ ## Query
45
+
46
+ Trigger: user asks a question against accumulated wiki knowledge.
47
+
48
+ Follow the **QUERY Workflow** in WIKI.md:
49
+ - Read index → search → read relevant pages → synthesize with `[[citations]]` →
50
+ file novel discoveries back as pages → append QUERY log.
51
+
52
+ ---
53
+
54
+ ## Lint
55
+
56
+ Trigger: user asks to check wiki health, find contradictions, or clean up.
57
+
58
+ Follow the **LINT Workflow** in WIKI.md:
59
+ - `Wiki(op=lint_report)` for deterministic issues → fix broken links / missing-from-index →
60
+ semantic check for contradictions → append LINT log.
61
+
62
+ ---
63
+
64
+ ## Tools to Use
65
+
66
+ - `Wiki` — the primary tool (all wiki operations)
67
+ - `Read` — read local source files
68
+ - `WebFetch` — fetch URL sources
69
+ - `Grep`, `Glob` — supplemental file exploration
70
+ - `Write` — only if writing outside the wiki root (avoid; prefer `Wiki(op=page_put)`)