You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jun 12, 2026. It is now read-only.
-`permissions`: senpi-compatible last-match-wins rule evaluation for task policy.
13
13
-`runtime`: task state, result store, runners, resume reconciliation, and model fallback.
14
14
-`tools`: `task`, `task_status`, `task_cancel`.
15
15
-`ui`: compact status and widget rendering.
@@ -22,6 +22,18 @@ Process mode uses `ProcessTaskRunner` and `ProcessRunner`. It launches a separat
22
22
23
23
`CompositeTaskRunner` routes by `task.executionMode`, so both modes share persistence, logging, cancellation, status UI, and fallback handling.
24
24
25
+
## Agent Definition And Task Policy
26
+
27
+
Markdown agents are loaded from project and user `.pi` / `.senpi` locations, including `~/.senpi/agents/agents`. Code can also define agents by importing `defineAgent()` or `registerAgent()` from `pi-task`.
28
+
29
+
Nested tasks are enforced before a task record is created:
30
+
31
+
- Top-level parent sessions may create depth-1 tasks.
32
+
- Default `maxDepth` is `1`.
33
+
- A parent agent's `allowedSubagents` permits the named target even beyond depth.
34
+
- Frontmatter task permissions can allow or deny `task:<agent>` or `task` patterns.
35
+
- Denied delegations return a `denied` status and do not start a runner.
36
+
25
37
## Persistence And Resume
26
38
27
39
Task records are atomically written to `~/.senpi/task/tasks/<task-id>.json`. Final responses and errors remain available through `task_status` after the task finishes.
Copy file name to clipboardExpand all lines: package.json
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
{
2
2
"name": "pi-task",
3
-
"version": "0.1.0",
3
+
"version": "0.1.1",
4
4
"description": "Task subagent extension for the pi coding agent with background lifecycle visibility, resume, process supervision, and final-result retrieval.",
0 commit comments