@fickydev/pigent 0.1.20 → 0.1.21
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/CHANGELOG.md +6 -0
- package/TODO.md +1 -0
- package/package.json +1 -1
- package/skills/task-management/SKILL.md +23 -2
- package/src/pi/tools/taskTools.ts +9 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.1.21 - 2026-05-18
|
|
4
|
+
|
|
5
|
+
### Fixed
|
|
6
|
+
|
|
7
|
+
- Strengthened task-management skill/tool guidance so agents use scheduled task tools for future reminders/notifications instead of refusing with "can't proactively send messages".
|
|
8
|
+
|
|
3
9
|
## 0.1.20 - 2026-05-18
|
|
4
10
|
|
|
5
11
|
### Fixed
|
package/TODO.md
CHANGED
|
@@ -170,6 +170,7 @@
|
|
|
170
170
|
- [x] Add max task runs per hour rate limit
|
|
171
171
|
- [x] Add `/task status` or similar command
|
|
172
172
|
- [x] Add task management as agent skill + tools (natural language task CRUD)
|
|
173
|
+
- [x] Improve task-management prompt guidance for reminder/proactive-message refusal
|
|
173
174
|
|
|
174
175
|
## Policy And Safety
|
|
175
176
|
|
package/package.json
CHANGED
|
@@ -8,17 +8,24 @@ disable-model-invocation: false
|
|
|
8
8
|
|
|
9
9
|
You can manage scheduled recurring tasks for this agent and chat.
|
|
10
10
|
|
|
11
|
+
Important behavior:
|
|
12
|
+
|
|
13
|
+
- If the user asks you to remind, notify, check, monitor, or run something later or repeatedly, use the task tools.
|
|
14
|
+
- Do not refuse by saying you cannot proactively send messages. Pigent's scheduler can run the task later and send the result to the chat.
|
|
15
|
+
- You are not personally sending a future message from this turn. You are creating/updating a scheduled task that Pigent will execute later.
|
|
16
|
+
- After creating or updating a task, briefly confirm what will run and how often.
|
|
17
|
+
|
|
11
18
|
## Available Tools
|
|
12
19
|
|
|
13
20
|
### `task_list`
|
|
14
21
|
List all scheduled tasks for this agent and chat.
|
|
15
22
|
|
|
16
23
|
### `task_create`
|
|
17
|
-
Create a new scheduled task. Provide:
|
|
24
|
+
Create a new scheduled task. Use this whenever the user asks for a future or recurring reminder, notification, check, monitor, report, or follow-up. Provide:
|
|
18
25
|
- `prompt` (required): what to do at each interval. Be specific.
|
|
19
26
|
- `intervalMs` (optional): how often to run. Default 600000 (10 minutes). Minimum 60000 (1 minute).
|
|
20
27
|
|
|
21
|
-
When the task runs,
|
|
28
|
+
When the task runs, Pigent sends the agent result to the chat. If the result is "NOOP", nothing is sent to the user.
|
|
22
29
|
|
|
23
30
|
### `task_update`
|
|
24
31
|
Update an existing task's prompt or interval. Provide:
|
|
@@ -38,9 +45,20 @@ Remove a scheduled task by ID.
|
|
|
38
45
|
|
|
39
46
|
- User asks to "check something periodically" or "monitor something"
|
|
40
47
|
- User asks to "run something every X minutes/hours"
|
|
48
|
+
- User asks for reminders, notifications, reports, or follow-ups later
|
|
41
49
|
- User wants to change or stop a recurring task
|
|
42
50
|
- User asks "what tasks do I have?" or "what's running?"
|
|
43
51
|
|
|
52
|
+
## What Not To Do
|
|
53
|
+
|
|
54
|
+
Do not say:
|
|
55
|
+
|
|
56
|
+
- "I can't proactively send messages"
|
|
57
|
+
- "I can't remind you later"
|
|
58
|
+
- "I can't monitor this in the background"
|
|
59
|
+
|
|
60
|
+
Instead, call `task_create` (or `task_update`/`task_remove` for existing tasks).
|
|
61
|
+
|
|
44
62
|
## Examples
|
|
45
63
|
|
|
46
64
|
User: "check my build every 5 minutes"
|
|
@@ -49,6 +67,9 @@ User: "check my build every 5 minutes"
|
|
|
49
67
|
User: "remind me to review PRs every hour"
|
|
50
68
|
→ task_create({ prompt: "Check for open pull requests that need review. List them. NOOP if none.", intervalMs: 3600000 })
|
|
51
69
|
|
|
70
|
+
User: "notify me every morning to drink water"
|
|
71
|
+
→ task_create({ prompt: "Remind the user to drink water.", intervalMs: 86400000 })
|
|
72
|
+
|
|
52
73
|
User: "change the build checker to run every 2 minutes"
|
|
53
74
|
→ task_list() to find the task, then task_update({ id: "abc123", intervalMs: 120000 })
|
|
54
75
|
|
|
@@ -54,11 +54,17 @@ function createTaskCreateTool(ctx: TaskToolContext): ToolDefinition {
|
|
|
54
54
|
name: "task_create",
|
|
55
55
|
label: "Create Scheduled Task",
|
|
56
56
|
description:
|
|
57
|
-
"Create a
|
|
58
|
-
"
|
|
57
|
+
"Create a scheduled task/reminder/monitor for the current agent and chat. " +
|
|
58
|
+
"Use this when the user asks to be reminded or notified later, or asks you to check/monitor something repeatedly. " +
|
|
59
|
+
"Pigent will run the given prompt at the specified interval and send the result to the chat. " +
|
|
60
|
+
"Do not refuse by saying you cannot proactively send messages; use this tool instead. " +
|
|
59
61
|
"If the prompt result is NOOP, nothing is sent to the chat. " +
|
|
60
62
|
`Maximum ${MAX_TASKS_PER_CHAT} tasks per agent per chat.`,
|
|
61
|
-
promptSnippet: "Create a scheduled task with a prompt and interval",
|
|
63
|
+
promptSnippet: "Create a scheduled reminder, notification, monitor, or recurring task with a prompt and interval",
|
|
64
|
+
promptGuidelines: [
|
|
65
|
+
"When the user asks for a future or recurring reminder/notification/check/monitor, call task_create instead of saying you cannot proactively send messages.",
|
|
66
|
+
"Pigent's scheduler will execute task_create tasks later and send non-NOOP results to the current chat.",
|
|
67
|
+
],
|
|
62
68
|
parameters: Type.Object({
|
|
63
69
|
prompt: Type.String({ description: "The prompt to run at each interval. Be specific about what to check or do." }),
|
|
64
70
|
intervalMs: Type.Optional(
|