@narumitw/pi-goal 0.1.3 → 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 +37 -10
- package/package.json +6 -1
package/README.md
CHANGED
|
@@ -1,16 +1,27 @@
|
|
|
1
|
-
# pi-goal
|
|
1
|
+
# 🎯 pi-goal — Goal Mode for the Pi Coding Agent
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
[](https://www.npmjs.com/package/@narumitw/pi-goal) [](https://pi.dev) [](./LICENSE)
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
`@narumitw/pi-goal` is a native [Pi coding agent](https://pi.dev) extension that adds `/goal <goal_to_complete>` and a `goal_complete` tool for autonomous, verifiable task completion.
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
Goal mode keeps sending automatic follow-up messages until the agent calls `goal_complete`, so tasks such as `/goal implement snake game` continue past planning, partial progress, and intermediate tool calls.
|
|
8
|
+
|
|
9
|
+
## ✨ Features
|
|
10
|
+
|
|
11
|
+
- Adds `/goal <goal_to_complete>` to start goal mode.
|
|
12
|
+
- Adds `/goal-status` to show the active goal.
|
|
13
|
+
- Adds `/goal-stop` to cancel the active goal loop.
|
|
14
|
+
- Registers a `goal_complete` tool for explicit completion.
|
|
15
|
+
- Automatically prompts the agent to continue if a turn ends early.
|
|
16
|
+
- Encourages verification before the goal is marked complete.
|
|
17
|
+
|
|
18
|
+
## 📦 Install
|
|
8
19
|
|
|
9
20
|
```bash
|
|
10
21
|
pi install npm:@narumitw/pi-goal
|
|
11
22
|
```
|
|
12
23
|
|
|
13
|
-
Try without installing:
|
|
24
|
+
Try without installing permanently:
|
|
14
25
|
|
|
15
26
|
```bash
|
|
16
27
|
pi -e npm:@narumitw/pi-goal
|
|
@@ -22,9 +33,9 @@ Try this package locally from the repository root:
|
|
|
22
33
|
pi -e ./extensions/pi-goal
|
|
23
34
|
```
|
|
24
35
|
|
|
25
|
-
## Commands
|
|
36
|
+
## 🚀 Commands
|
|
26
37
|
|
|
27
|
-
```
|
|
38
|
+
```text
|
|
28
39
|
/goal implement snake game
|
|
29
40
|
/goal-status
|
|
30
41
|
/goal-stop
|
|
@@ -34,13 +45,21 @@ pi -e ./extensions/pi-goal
|
|
|
34
45
|
- `/goal-status` shows the active goal.
|
|
35
46
|
- `/goal-stop` cancels the active goal loop.
|
|
36
47
|
|
|
37
|
-
## How completion works
|
|
48
|
+
## ✅ How completion works
|
|
38
49
|
|
|
39
50
|
The extension registers a `goal_complete` tool. While a goal is active, the system prompt tells the agent to keep working, verify the result, and call `goal_complete` only when the goal is fully done.
|
|
40
51
|
|
|
41
52
|
If an agent turn ends before `goal_complete` is called, the extension automatically sends a follow-up prompt to continue the same goal.
|
|
42
53
|
|
|
43
|
-
##
|
|
54
|
+
## 🧠 Use cases
|
|
55
|
+
|
|
56
|
+
- Finish implementation tasks without stopping at a plan.
|
|
57
|
+
- Keep debugging until the bug is verified fixed.
|
|
58
|
+
- Run refactors that require multiple tool cycles.
|
|
59
|
+
- Encourage agents to test, lint, or typecheck before completion.
|
|
60
|
+
- Make long-running Pi coding sessions more autonomous.
|
|
61
|
+
|
|
62
|
+
## 🗂️ Package layout
|
|
44
63
|
|
|
45
64
|
```txt
|
|
46
65
|
extensions/pi-goal/
|
|
@@ -52,7 +71,7 @@ extensions/pi-goal/
|
|
|
52
71
|
└── package.json
|
|
53
72
|
```
|
|
54
73
|
|
|
55
|
-
The package exposes its extension through `package.json`:
|
|
74
|
+
The package exposes its Pi extension through `package.json`:
|
|
56
75
|
|
|
57
76
|
```json
|
|
58
77
|
{
|
|
@@ -61,3 +80,11 @@ The package exposes its extension through `package.json`:
|
|
|
61
80
|
}
|
|
62
81
|
}
|
|
63
82
|
```
|
|
83
|
+
|
|
84
|
+
## 🔎 Keywords
|
|
85
|
+
|
|
86
|
+
Pi extension, Pi coding agent, goal mode, autonomous coding agent, AI agent workflow, task completion, agent loop, verification, TypeScript Pi package.
|
|
87
|
+
|
|
88
|
+
## 📄 License
|
|
89
|
+
|
|
90
|
+
MIT. See [`LICENSE`](./LICENSE).
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@narumitw/pi-goal",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.9",
|
|
4
4
|
"description": "Pi extension that keeps working on a /goal until the agent marks it complete.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -34,5 +34,10 @@
|
|
|
34
34
|
"@biomejs/biome": "2.4.14",
|
|
35
35
|
"@mariozechner/pi-coding-agent": "0.73.0",
|
|
36
36
|
"typescript": "6.0.3"
|
|
37
|
+
},
|
|
38
|
+
"repository": {
|
|
39
|
+
"type": "git",
|
|
40
|
+
"url": "https://github.com/narumiruna/pi-extensions",
|
|
41
|
+
"directory": "extensions/pi-goal"
|
|
37
42
|
}
|
|
38
43
|
}
|