pi-task-tracker 0.1.6 → 0.1.7
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 +28 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -17,7 +17,34 @@ Task workflow tracking for the [pi coding agent](https://www.npmjs.com/package/@
|
|
|
17
17
|
- **Pre-existing double tracking respected** — if a file is already tracked by both an outer repo and a nested repo, changes go to the nested repo (innermost wins), pi never untracks the outer copy, and `/rollback` never lets the outer repo restore its stale copy over the inner worktree.
|
|
18
18
|
- **Subdirectory start** — start pi in a subdirectory of an existing repo and no fresh `.git` is created there: all session changes (including TODO.md / README.md) are recorded in the enclosing repository, and `/rollback` restores the enclosing repo scoped to the session subtree.
|
|
19
19
|
- **Subagent-safe** — `.pi-subagents/` session artifacts are never recorded, listed, or committed.
|
|
20
|
-
|
|
20
|
+
|
|
21
|
+
## Lightweight by design (measured, not claimed)
|
|
22
|
+
|
|
23
|
+
The model never knows this extension exists. Every cost number below is measured on a real Windows machine (git spawn baseline ≈ 10 ms).
|
|
24
|
+
|
|
25
|
+
**Zero token footprint** — the only overhead that compounds is context, and this extension adds exactly **0 tokens per turn**:
|
|
26
|
+
|
|
27
|
+
- nothing injected into the system prompt (the `before_agent_start` system-prompt hook is never used)
|
|
28
|
+
- zero custom tools registered (tool descriptions are what usually bloat context)
|
|
29
|
+
- `/rollback` executes locally; its UI prompts never reach the model
|
|
30
|
+
- task history lives in git objects, not in your conversation
|
|
31
|
+
|
|
32
|
+
And it is token-*negative* in the failure-retry loop: `/rollback` rewinds the conversation branch, so a failed attempt's tokens leave the active context instead of piling up forever.
|
|
33
|
+
|
|
34
|
+
**Idle = 0** — no file watchers, no daemons, no timers. Pure event handlers; when pi is idle the extension does nothing.
|
|
35
|
+
|
|
36
|
+
**Bounded, spawn-bound runtime cost** — the cost is a handful of short `git` child processes, and it does **not grow with repository size** (`git status` on a 20-file repo ≈ a 5,000-file repo ≈ 20 ms):
|
|
37
|
+
|
|
38
|
+
| Event | git calls | Measured cost |
|
|
39
|
+
|---|---|---|
|
|
40
|
+
| Session start (once) | 3–6 | ~50–100 ms |
|
|
41
|
+
| Each bash/powershell command | 2 status snapshots | ~40 ms |
|
|
42
|
+
| Task commit (per completed task) | add + diff + commit | ~60–80 ms |
|
|
43
|
+
| Idle / between events | 0 | **0** |
|
|
44
|
+
|
|
45
|
+
**Bounded memory** — snapshots hold only the dirty-file set and are freed as soon as the command's result arrives; `TODO.md` stays tiny (entries are removed when tasks complete — it starts at 8 bytes).
|
|
46
|
+
|
|
47
|
+
**Zero dependencies, one file, no config** — drop it in `extensions/`, done. No setup, no keys, no services.
|
|
21
48
|
|
|
22
49
|
## /rollback
|
|
23
50
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pi-task-tracker",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.7",
|
|
4
4
|
"description": "Task workflow tracking for the pi coding agent: TODO/README maintenance, per-task git auto-commits as checkpoints, and an interactive /rollback. Hashline-aware, nested-repo aware, subagent-artifact-safe.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"pi-package",
|