@piagent/platform 1.2.2 → 1.2.3
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 +18 -0
- package/README.md +34 -27
- package/catalog/capabilities.json +8 -8
- package/docs/auto-delegation-policy.md +4 -4
- package/docs/command-reference-vietnamese.md +119 -85
- package/docs/context-window-policy.md +7 -7
- package/docs/distribution-standard.md +27 -10
- package/docs/herdr-workflow.md +3 -2
- package/docs/memory-policy.md +6 -3
- package/docs/operator-manual-vietnamese.md +81 -72
- package/docs/package-architecture-notes.md +6 -6
- package/docs/project-adapters.md +4 -4
- package/docs/project-onboarding.md +12 -11
- package/docs/publishing-for-teams.md +2 -2
- package/docs/quickstart-vietnamese.md +25 -23
- package/docs/release-install-policy.md +6 -6
- package/docs/runtime-harness-standard.md +7 -7
- package/docs/runtime-policy-design.md +1 -1
- package/docs/runtime-quality-baseline.md +1 -1
- package/docs/security-threat-model.md +1 -1
- package/docs/subagent-orchestration-capabilities.md +3 -3
- package/docs/subagents-and-multiagent.md +4 -4
- package/docs/task-implementation-contract.md +4 -4
- package/docs/task-lifecycle-vietnamese.md +2 -2
- package/docs/team-onboarding.md +22 -18
- package/docs/usage-observability.md +13 -12
- package/docs/workflow-recipes.md +12 -9
- package/docs-site/architecture.html +1 -1
- package/docs-site/commands.html +19 -15
- package/docs-site/content/commands.html +18 -14
- package/docs-site/content/permissions.html +11 -11
- package/docs-site/content/quickstart.html +12 -11
- package/docs-site/content/team.html +1 -1
- package/docs-site/content/workflows.html +17 -17
- package/docs-site/index.html +1 -1
- package/docs-site/mcp-approval.html +1 -1
- package/docs-site/mcp-auth.html +1 -1
- package/docs-site/mcp-servers.html +1 -1
- package/docs-site/mcp.html +1 -1
- package/docs-site/permissions.html +12 -12
- package/docs-site/profiles.html +1 -1
- package/docs-site/quickstart.html +13 -12
- package/docs-site/runtime.html +1 -1
- package/docs-site/scope.html +1 -1
- package/docs-site/security.html +1 -1
- package/docs-site/team.html +2 -2
- package/docs-site/workflows.html +18 -18
- package/package.json +1 -1
- package/packages/piagent-core/README.md +27 -27
- package/packages/piagent-core/extensions/piagent-guard.ts +1055 -190
- package/packages/piagent-core/package.json +1 -1
- package/packages/piagent-core/prompts/be-to-fe.md +3 -3
- package/packages/piagent-core/prompts/discuss.md +2 -2
- package/packages/piagent-core/prompts/plan.md +1 -1
- package/packages/piagent-core/prompts/platform-improve.md +1 -1
- package/packages/piagent-core/prompts/pr.md +1 -1
- package/packages/piagent-core/prompts/review.md +1 -1
- package/packages/piagent-core/prompts/scout.md +2 -2
- package/packages/piagent-core/prompts/task.md +2 -2
- package/scripts/init-project.sh +4 -3
- package/scripts/install-global.sh +47 -1
- package/scripts/profile-doctor.sh +1 -1
- package/scripts/setup.sh +4 -3
- package/scripts/team-doctor.sh +6 -8
- package/scripts/verify-local.sh +18 -17
- package/templates/project/.pi/context-index.json +2 -2
- package/templates/project/.pi/project-context.md +3 -3
- package/templates/project/AGENTS.md +4 -4
- package/packages/piagent-core/prompts/memory-policy.md +0 -52
- package/packages/piagent-core/prompts/model-options.md +0 -68
- package/packages/piagent-core/prompts/onboard-project.md +0 -147
- package/packages/piagent-core/prompts/piagent-commands.md +0 -69
package/docs/workflow-recipes.md
CHANGED
|
@@ -11,8 +11,9 @@ Dùng khi muốn cải tiến setup, prompt, MCP, model scope, memory, runtime p
|
|
|
11
11
|
Lệnh trong Pi:
|
|
12
12
|
|
|
13
13
|
```text
|
|
14
|
-
/onboard
|
|
15
|
-
/
|
|
14
|
+
/onboard
|
|
15
|
+
/onboard run
|
|
16
|
+
/workflow platform-improve Improve <target behavior> in <platform area>.
|
|
16
17
|
```
|
|
17
18
|
|
|
18
19
|
Input tối thiểu:
|
|
@@ -58,8 +59,9 @@ Setup project generic:
|
|
|
58
59
|
Lệnh trong Pi:
|
|
59
60
|
|
|
60
61
|
```text
|
|
61
|
-
/onboard
|
|
62
|
-
/
|
|
62
|
+
/onboard
|
|
63
|
+
/onboard run
|
|
64
|
+
/workflow be-to-fe Implement FE from BE spec: <endpoint/spec/change>
|
|
63
65
|
```
|
|
64
66
|
|
|
65
67
|
Input tối thiểu:
|
|
@@ -96,7 +98,7 @@ Không dùng `auto` để suy ra `be-readonly-fe`, vì BE read-only là policy d
|
|
|
96
98
|
Dùng khi muốn Pi nhớ durable facts/decisions/preferences giữa các session mà không phải scout lại từ đầu.
|
|
97
99
|
|
|
98
100
|
```text
|
|
99
|
-
/memory
|
|
101
|
+
/memory
|
|
100
102
|
Remember: this repo uses pnpm, never npm.
|
|
101
103
|
```
|
|
102
104
|
|
|
@@ -112,9 +114,10 @@ Rule:
|
|
|
112
114
|
Dùng khi muốn giảm scout lại giữa các session mà không bật auto memory.
|
|
113
115
|
|
|
114
116
|
```text
|
|
115
|
-
/onboard
|
|
116
|
-
/
|
|
117
|
-
/context
|
|
117
|
+
/onboard
|
|
118
|
+
/onboard run
|
|
119
|
+
/context index
|
|
120
|
+
/context search auth
|
|
118
121
|
```
|
|
119
122
|
|
|
120
123
|
Rule:
|
|
@@ -122,4 +125,4 @@ Rule:
|
|
|
122
125
|
1. Context index là advisory map, không phải source of truth.
|
|
123
126
|
2. Node/edge phải ngắn và có citation tới file/doc/task đã verify.
|
|
124
127
|
3. Không lưu raw transcript, secret, token, session, hoặc source excerpt dài.
|
|
125
|
-
4. Nếu index stale so với profile/tech/onboarding snapshot, chạy lại `/onboard
|
|
128
|
+
4. Nếu index stale so với profile/tech/onboarding snapshot, chạy lại `/onboard run` hoặc record lại bằng `piagent_context_index_record`.
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
<span>Pi Agent Platform</span>
|
|
28
28
|
</a>
|
|
29
29
|
<div class="top-actions">
|
|
30
|
-
<span class="pill"><span class="pill-dot"></span>v1.2.
|
|
30
|
+
<span class="pill"><span class="pill-dot"></span>v1.2.3 docs</span>
|
|
31
31
|
<a class="button social" href="https://github.com/Vt-mmm/piagent" target="_blank" rel="noopener noreferrer" aria-label="Mở GitHub repository">
|
|
32
32
|
<svg viewBox="0 0 24 24" fill="none" aria-hidden="true">
|
|
33
33
|
<path d="M7 17 17 7M9 7h8v8" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" />
|
package/docs-site/commands.html
CHANGED
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
<span>Pi Agent Platform</span>
|
|
28
28
|
</a>
|
|
29
29
|
<div class="top-actions">
|
|
30
|
-
<span class="pill"><span class="pill-dot"></span>v1.2.
|
|
30
|
+
<span class="pill"><span class="pill-dot"></span>v1.2.3 docs</span>
|
|
31
31
|
<a class="button social" href="https://github.com/Vt-mmm/piagent" target="_blank" rel="noopener noreferrer" aria-label="Mở GitHub repository">
|
|
32
32
|
<svg viewBox="0 0 24 24" fill="none" aria-hidden="true">
|
|
33
33
|
<path d="M7 17 17 7M9 7h8v8" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" />
|
|
@@ -100,11 +100,14 @@
|
|
|
100
100
|
<div class="tag-list">
|
|
101
101
|
<span class="tag">/login</span>
|
|
102
102
|
<span class="tag">/model</span>
|
|
103
|
-
<span class="tag">/
|
|
103
|
+
<span class="tag">/commands</span>
|
|
104
104
|
<span class="tag">/piagent-status</span>
|
|
105
105
|
<span class="tag">/piagent-orchestration</span>
|
|
106
|
-
<span class="tag">/
|
|
107
|
-
<span class="tag">/
|
|
106
|
+
<span class="tag">/usage</span>
|
|
107
|
+
<span class="tag">/context preflight</span>
|
|
108
|
+
<span class="tag">/name</span>
|
|
109
|
+
<span class="tag">/fresh</span>
|
|
110
|
+
<span class="tag">/session</span>
|
|
108
111
|
</div>
|
|
109
112
|
<p>Dùng để setup session, chọn model, xem profile/usage/orchestration và quyết định có cần fresh session trước task lớn không.</p>
|
|
110
113
|
</article>
|
|
@@ -125,30 +128,31 @@
|
|
|
125
128
|
<article class="card">
|
|
126
129
|
<h3 id="implementation-workflow">Implementation workflow</h3>
|
|
127
130
|
<div class="tag-list">
|
|
128
|
-
<span class="tag">/
|
|
129
|
-
<span class="tag">/
|
|
130
|
-
<span class="tag">/
|
|
131
|
-
<span class="tag">/
|
|
132
|
-
<span class="tag">/
|
|
131
|
+
<span class="tag">/workflow</span>
|
|
132
|
+
<span class="tag">/workflow task</span>
|
|
133
|
+
<span class="tag">/workflow plan</span>
|
|
134
|
+
<span class="tag">/workflow review</span>
|
|
135
|
+
<span class="tag">/workflow scout</span>
|
|
136
|
+
<span class="tag">/workflow discuss</span>
|
|
133
137
|
</div>
|
|
134
138
|
<p>Gói sẵn read context, task contract, implementation, verify evidence và final handoff.</p>
|
|
135
139
|
</article>
|
|
136
140
|
<article class="card">
|
|
137
141
|
<h3 id="git-handoff">Git handoff</h3>
|
|
138
142
|
<div class="tag-list">
|
|
139
|
-
<span class="tag">/commit</span>
|
|
140
|
-
<span class="tag">/pr</span>
|
|
143
|
+
<span class="tag">/workflow commit</span>
|
|
144
|
+
<span class="tag">/workflow pr</span>
|
|
141
145
|
<span class="tag">git status</span>
|
|
142
146
|
<span class="tag">git diff</span>
|
|
143
147
|
</div>
|
|
144
|
-
<p>Không cần namespace <span class="inline-code">/git</span>. Commit/PR đi qua
|
|
148
|
+
<p>Không cần namespace <span class="inline-code">/git</span>. Commit/PR đi qua workflow guard; push và stage rộng như <span class="inline-code">git add -A</span> cần xác nhận.</p>
|
|
145
149
|
</article>
|
|
146
150
|
<article class="card">
|
|
147
151
|
<h3 id="fresh-sessions">Fresh sessions</h3>
|
|
148
152
|
<div class="tag-list">
|
|
149
|
-
<span class="tag">/fresh
|
|
150
|
-
<span class="tag">/fresh
|
|
151
|
-
<span class="tag">/fresh
|
|
153
|
+
<span class="tag">/fresh task</span>
|
|
154
|
+
<span class="tag">/fresh scout</span>
|
|
155
|
+
<span class="tag">/fresh be-to-fe</span>
|
|
152
156
|
</div>
|
|
153
157
|
<p>Dùng khi context đã nặng hoặc cần một session sạch cho workflow mới.</p>
|
|
154
158
|
</article>
|
|
@@ -6,11 +6,14 @@
|
|
|
6
6
|
<div class="tag-list">
|
|
7
7
|
<span class="tag">/login</span>
|
|
8
8
|
<span class="tag">/model</span>
|
|
9
|
-
<span class="tag">/
|
|
9
|
+
<span class="tag">/commands</span>
|
|
10
10
|
<span class="tag">/piagent-status</span>
|
|
11
11
|
<span class="tag">/piagent-orchestration</span>
|
|
12
|
-
<span class="tag">/
|
|
13
|
-
<span class="tag">/
|
|
12
|
+
<span class="tag">/usage</span>
|
|
13
|
+
<span class="tag">/context preflight</span>
|
|
14
|
+
<span class="tag">/name</span>
|
|
15
|
+
<span class="tag">/fresh</span>
|
|
16
|
+
<span class="tag">/session</span>
|
|
14
17
|
</div>
|
|
15
18
|
<p>Dùng để setup session, chọn model, xem profile/usage/orchestration và quyết định có cần fresh session trước task lớn không.</p>
|
|
16
19
|
</article>
|
|
@@ -31,30 +34,31 @@
|
|
|
31
34
|
<article class="card">
|
|
32
35
|
<h3 id="implementation-workflow">Implementation workflow</h3>
|
|
33
36
|
<div class="tag-list">
|
|
34
|
-
<span class="tag">/
|
|
35
|
-
<span class="tag">/
|
|
36
|
-
<span class="tag">/
|
|
37
|
-
<span class="tag">/
|
|
38
|
-
<span class="tag">/
|
|
37
|
+
<span class="tag">/workflow</span>
|
|
38
|
+
<span class="tag">/workflow task</span>
|
|
39
|
+
<span class="tag">/workflow plan</span>
|
|
40
|
+
<span class="tag">/workflow review</span>
|
|
41
|
+
<span class="tag">/workflow scout</span>
|
|
42
|
+
<span class="tag">/workflow discuss</span>
|
|
39
43
|
</div>
|
|
40
44
|
<p>Gói sẵn read context, task contract, implementation, verify evidence và final handoff.</p>
|
|
41
45
|
</article>
|
|
42
46
|
<article class="card">
|
|
43
47
|
<h3 id="git-handoff">Git handoff</h3>
|
|
44
48
|
<div class="tag-list">
|
|
45
|
-
<span class="tag">/commit</span>
|
|
46
|
-
<span class="tag">/pr</span>
|
|
49
|
+
<span class="tag">/workflow commit</span>
|
|
50
|
+
<span class="tag">/workflow pr</span>
|
|
47
51
|
<span class="tag">git status</span>
|
|
48
52
|
<span class="tag">git diff</span>
|
|
49
53
|
</div>
|
|
50
|
-
<p>Không cần namespace <span class="inline-code">/git</span>. Commit/PR đi qua
|
|
54
|
+
<p>Không cần namespace <span class="inline-code">/git</span>. Commit/PR đi qua workflow guard; push và stage rộng như <span class="inline-code">git add -A</span> cần xác nhận.</p>
|
|
51
55
|
</article>
|
|
52
56
|
<article class="card">
|
|
53
57
|
<h3 id="fresh-sessions">Fresh sessions</h3>
|
|
54
58
|
<div class="tag-list">
|
|
55
|
-
<span class="tag">/fresh
|
|
56
|
-
<span class="tag">/fresh
|
|
57
|
-
<span class="tag">/fresh
|
|
59
|
+
<span class="tag">/fresh task</span>
|
|
60
|
+
<span class="tag">/fresh scout</span>
|
|
61
|
+
<span class="tag">/fresh be-to-fe</span>
|
|
58
62
|
</div>
|
|
59
63
|
<p>Dùng khi context đã nặng hoặc cần một session sạch cho workflow mới.</p>
|
|
60
64
|
</article>
|
|
@@ -15,19 +15,19 @@
|
|
|
15
15
|
<td><span class="inline-code">read-only</span></td>
|
|
16
16
|
<td>Scout, audit, mapping, review không chỉnh source.</td>
|
|
17
17
|
<td>Cho read, grep, find, ls và piagent tools; chặn shell/write/unknown tools.</td>
|
|
18
|
-
<td><span class="inline-code">/read-only</span></td>
|
|
18
|
+
<td><span class="inline-code">/permission read-only</span></td>
|
|
19
19
|
</tr>
|
|
20
20
|
<tr>
|
|
21
21
|
<td><span class="inline-code">workspace-write</span></td>
|
|
22
22
|
<td>Implementation bình thường trong repo.</td>
|
|
23
23
|
<td>Default guarded mode; giữ protected path, shell policy, capability và verify gate.</td>
|
|
24
|
-
<td><span class="inline-code">/workspace-write</span></td>
|
|
24
|
+
<td><span class="inline-code">/permission workspace-write</span></td>
|
|
25
25
|
</tr>
|
|
26
26
|
<tr>
|
|
27
27
|
<td><span class="inline-code">trusted-full-access</span></td>
|
|
28
28
|
<td>Automation trên repo đã tin và task đã rõ.</td>
|
|
29
29
|
<td>Nới autonomy trong guard, nhưng vẫn giữ protected path, redaction, lock và confirmation.</td>
|
|
30
|
-
<td><span class="inline-code">/full-access</span></td>
|
|
30
|
+
<td><span class="inline-code">/permission full-access</span></td>
|
|
31
31
|
</tr>
|
|
32
32
|
</tbody>
|
|
33
33
|
</table>
|
|
@@ -35,20 +35,20 @@
|
|
|
35
35
|
|
|
36
36
|
<div class="command-grid">
|
|
37
37
|
<article class="command-card">
|
|
38
|
-
<header><span>Xem permission</span><button class="clip-btn" data-clip="/permission
|
|
39
|
-
<pre><code>/permission
|
|
38
|
+
<header><span>Xem permission</span><button class="clip-btn" data-clip="/permission status">Lấy lệnh</button></header>
|
|
39
|
+
<pre><code>/permission status</code></pre>
|
|
40
40
|
</article>
|
|
41
41
|
<article class="command-card">
|
|
42
|
-
<header><span>Read-only session</span><button class="clip-btn" data-clip="/read-only">Lấy lệnh</button></header>
|
|
43
|
-
<pre><code>/read-only</code></pre>
|
|
42
|
+
<header><span>Read-only session</span><button class="clip-btn" data-clip="/permission read-only">Lấy lệnh</button></header>
|
|
43
|
+
<pre><code>/permission read-only</code></pre>
|
|
44
44
|
</article>
|
|
45
45
|
<article class="command-card">
|
|
46
|
-
<header><span>Workspace write</span><button class="clip-btn" data-clip="/workspace-write">Lấy lệnh</button></header>
|
|
47
|
-
<pre><code>/workspace-write</code></pre>
|
|
46
|
+
<header><span>Workspace write</span><button class="clip-btn" data-clip="/permission workspace-write">Lấy lệnh</button></header>
|
|
47
|
+
<pre><code>/permission workspace-write</code></pre>
|
|
48
48
|
</article>
|
|
49
49
|
<article class="command-card">
|
|
50
|
-
<header><span>Full-access + task</span><button class="clip-btn" data-clip="/full-access Run the trusted local verification suite.">Lấy lệnh</button></header>
|
|
51
|
-
<pre><code>/full-access Run the trusted local verification suite.</code></pre>
|
|
50
|
+
<header><span>Full-access + task</span><button class="clip-btn" data-clip="/permission full-access Run the trusted local verification suite.">Lấy lệnh</button></header>
|
|
51
|
+
<pre><code>/permission full-access Run the trusted local verification suite.</code></pre>
|
|
52
52
|
</article>
|
|
53
53
|
</div>
|
|
54
54
|
</section>
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
<article class="step">
|
|
5
5
|
<div>
|
|
6
6
|
<h3 id="cai-hai-lenh">Cài — hai lệnh</h3>
|
|
7
|
-
<p>Cần Node.js 22.19.0 trở lên. Không cần cài Pi Coding Agent trước: <span class="inline-code">piagent-setup</span> tự cài đúng bản <span class="inline-code">0.82.0</span> mà release <span class="inline-code">v1.2.
|
|
7
|
+
<p>Cần Node.js 22.19.0 trở lên. Không cần cài Pi Coding Agent trước: <span class="inline-code">piagent-setup</span> tự cài đúng bản <span class="inline-code">0.82.0</span> mà release <span class="inline-code">v1.2.3</span> đang pin. Chạy nó ngay trong thư mục project — nó cài Pi package, khởi tạo <span class="inline-code">.pi/</span>, cài MCP baseline cùng subagents, rồi chạy doctor. Thêm <span class="inline-code">--no-mcp</span>, <span class="inline-code">--no-subagents</span>, <span class="inline-code">--no-herdr</span> hoặc <span class="inline-code">--global-only</span> để bỏ bớt.</p>
|
|
8
8
|
<div class="table-wrap compact-table">
|
|
9
9
|
<table>
|
|
10
10
|
<thead>
|
|
@@ -66,10 +66,11 @@ pi</code></pre>
|
|
|
66
66
|
<article class="step">
|
|
67
67
|
<div>
|
|
68
68
|
<h3 id="onboard-context">Onboard context</h3>
|
|
69
|
-
<p>Chạy một lần ở repo mới để ghi context, verify matrix và protected areas vào <span class="inline-code">.pi/</span
|
|
69
|
+
<p>Chạy một lần ở repo mới để ghi context, verify matrix và protected areas vào <span class="inline-code">.pi/</span>. <span class="inline-code">/onboard</span> mở menu/status; <span class="inline-code">run</span> mới launch workflow đọc project.</p>
|
|
70
70
|
<div class="command-card">
|
|
71
|
-
<header><span>Onboard</span><button class="clip-btn" data-clip="/onboard
|
|
72
|
-
<pre><code>/onboard
|
|
71
|
+
<header><span>Onboard</span><button class="clip-btn" data-clip="/onboard /onboard run">Lấy lệnh</button></header>
|
|
72
|
+
<pre><code>/onboard
|
|
73
|
+
/onboard run</code></pre>
|
|
73
74
|
</div>
|
|
74
75
|
</div>
|
|
75
76
|
</article>
|
|
@@ -91,9 +92,9 @@ pi</code></pre>
|
|
|
91
92
|
<h3 id="chon-permission">Chọn permission</h3>
|
|
92
93
|
<p>Scout thì read-only, code bình thường thì workspace-write, automation tin cậy thì full-access có guard.</p>
|
|
93
94
|
<div class="command-card">
|
|
94
|
-
<header><span>Permission</span><button class="clip-btn" data-clip="/workspace-write">Lấy lệnh</button></header>
|
|
95
|
-
<pre><code>/permission
|
|
96
|
-
/workspace-write</code></pre>
|
|
95
|
+
<header><span>Permission</span><button class="clip-btn" data-clip="/permission status /permission workspace-write">Lấy lệnh</button></header>
|
|
96
|
+
<pre><code>/permission status
|
|
97
|
+
/permission workspace-write</code></pre>
|
|
97
98
|
</div>
|
|
98
99
|
</div>
|
|
99
100
|
</article>
|
|
@@ -103,10 +104,10 @@ pi</code></pre>
|
|
|
103
104
|
<h3 id="chay-workflow">Chạy workflow</h3>
|
|
104
105
|
<p>Dùng command đúng mục tiêu để agent không phải diễn giải quá dài. Task nào nặng context thì dùng fresh session.</p>
|
|
105
106
|
<div class="command-card">
|
|
106
|
-
<header><span>Workflow</span><button class="clip-btn" data-clip="/task Implement the requested bounded change.">Lấy lệnh</button></header>
|
|
107
|
-
<pre><code>/task Implement the requested bounded change.
|
|
108
|
-
/review
|
|
109
|
-
/fresh
|
|
107
|
+
<header><span>Workflow</span><button class="clip-btn" data-clip="/workflow task Implement the requested bounded change. /workflow review current diff /fresh task Implement the requested bounded change.">Lấy lệnh</button></header>
|
|
108
|
+
<pre><code>/workflow task Implement the requested bounded change.
|
|
109
|
+
/workflow review current diff
|
|
110
|
+
/fresh task Implement the requested bounded change.</code></pre>
|
|
110
111
|
</div>
|
|
111
112
|
</div>
|
|
112
113
|
</article>
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
<div class="split">
|
|
4
4
|
<article class="card">
|
|
5
5
|
<h3 id="viec-nen-lam">Việc nên làm</h3>
|
|
6
|
-
<p>Chạy <span class="inline-code">/onboard
|
|
6
|
+
<p>Chạy <span class="inline-code">/onboard run</span>, áp <span class="inline-code">/profile auto</span>, dùng <span class="inline-code">/workflow</span>, verify thật và ghi blockers rõ ràng.</p>
|
|
7
7
|
</article>
|
|
8
8
|
<article class="card">
|
|
9
9
|
<h3 id="viec-nen-tranh">Việc nên tránh</h3>
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<section class="section">
|
|
2
2
|
<div class="callout ok-callout">
|
|
3
3
|
<strong>Git trong Pi Agent</strong>
|
|
4
|
-
<p>Không có namespace <span class="inline-code">/git</span> riêng. Dùng <span class="inline-code">/commit</span> để commit local đã review, dùng <span class="inline-code">/pr</span> để chuẩn bị PR. Các hành động như <span class="inline-code">git push</span> hoặc stage rộng <span class="inline-code">git add -A</span> vẫn cần operator xác nhận.</p>
|
|
4
|
+
<p>Không có namespace <span class="inline-code">/git</span> riêng. Dùng <span class="inline-code">/workflow commit</span> để commit local đã review, dùng <span class="inline-code">/workflow pr</span> để chuẩn bị PR. Các hành động như <span class="inline-code">git push</span> hoặc stage rộng <span class="inline-code">git add -A</span> vẫn cần operator xác nhận.</p>
|
|
5
5
|
</div>
|
|
6
6
|
|
|
7
7
|
<div class="callout">
|
|
@@ -11,37 +11,37 @@
|
|
|
11
11
|
|
|
12
12
|
<div class="command-grid">
|
|
13
13
|
<article class="command-card">
|
|
14
|
-
<header><span>Implementation bounded</span><button class="clip-btn" data-clip="/task Fix the failing checkout test and verify.">Lấy lệnh</button></header>
|
|
15
|
-
<pre><code>/task Fix the failing checkout test and verify.</code></pre>
|
|
14
|
+
<header><span>Implementation bounded</span><button class="clip-btn" data-clip="/workflow task Fix the failing checkout test and verify.">Lấy lệnh</button></header>
|
|
15
|
+
<pre><code>/workflow task Fix the failing checkout test and verify.</code></pre>
|
|
16
16
|
</article>
|
|
17
17
|
<article class="command-card">
|
|
18
|
-
<header><span>Read-only scout</span><button class="clip-btn" data-clip="/scout Map the auth flow and risk areas.">Lấy lệnh</button></header>
|
|
19
|
-
<pre><code>/scout Map the auth flow and risk areas.</code></pre>
|
|
18
|
+
<header><span>Read-only scout</span><button class="clip-btn" data-clip="/workflow scout Map the auth flow and risk areas.">Lấy lệnh</button></header>
|
|
19
|
+
<pre><code>/workflow scout Map the auth flow and risk areas.</code></pre>
|
|
20
20
|
</article>
|
|
21
21
|
<article class="command-card">
|
|
22
|
-
<header><span>Plan trước khi code</span><button class="clip-btn" data-clip="/plan Add multi-tenant billing support.">Lấy lệnh</button></header>
|
|
23
|
-
<pre><code>/plan Add multi-tenant billing support.</code></pre>
|
|
22
|
+
<header><span>Plan trước khi code</span><button class="clip-btn" data-clip="/workflow plan Add multi-tenant billing support.">Lấy lệnh</button></header>
|
|
23
|
+
<pre><code>/workflow plan Add multi-tenant billing support.</code></pre>
|
|
24
24
|
</article>
|
|
25
25
|
<article class="command-card">
|
|
26
|
-
<header><span>Review diff</span><button class="clip-btn" data-clip="/review">Lấy lệnh</button></header>
|
|
27
|
-
<pre><code>/review</code></pre>
|
|
26
|
+
<header><span>Review diff</span><button class="clip-btn" data-clip="/workflow review current diff">Lấy lệnh</button></header>
|
|
27
|
+
<pre><code>/workflow review current diff</code></pre>
|
|
28
28
|
</article>
|
|
29
29
|
<article class="command-card">
|
|
30
|
-
<header><span>Commit local có guard</span><button class="clip-btn" data-clip="/commit "feat: add guarded git workflow"">Lấy lệnh</button></header>
|
|
31
|
-
<pre><code>/commit "feat: add guarded git workflow"</code></pre>
|
|
30
|
+
<header><span>Commit local có guard</span><button class="clip-btn" data-clip="/workflow commit "feat: add guarded git workflow"">Lấy lệnh</button></header>
|
|
31
|
+
<pre><code>/workflow commit "feat: add guarded git workflow"</code></pre>
|
|
32
32
|
</article>
|
|
33
33
|
<article class="command-card">
|
|
34
|
-
<header><span>Chuẩn bị pull request</span><button class="clip-btn" data-clip="/pr "Prepare PR for guarded git workflow"">Lấy lệnh</button></header>
|
|
35
|
-
<pre><code>/pr "Prepare PR for guarded git workflow"</code></pre>
|
|
34
|
+
<header><span>Chuẩn bị pull request</span><button class="clip-btn" data-clip="/workflow pr "Prepare PR for guarded git workflow"">Lấy lệnh</button></header>
|
|
35
|
+
<pre><code>/workflow pr "Prepare PR for guarded git workflow"</code></pre>
|
|
36
36
|
</article>
|
|
37
37
|
<article class="command-card">
|
|
38
|
-
<header><span>Backend spec sang frontend</span><button class="clip-btn" data-clip="/be-to-fe Implement frontend support for the new user status endpoint.">Lấy lệnh</button></header>
|
|
38
|
+
<header><span>Backend spec sang frontend</span><button class="clip-btn" data-clip="/profile be-readonly-fe /workflow be-to-fe Implement frontend support for the new user status endpoint.">Lấy lệnh</button></header>
|
|
39
39
|
<pre><code>/profile be-readonly-fe
|
|
40
|
-
/be-to-fe Implement frontend support for the new user status endpoint.</code></pre>
|
|
40
|
+
/workflow be-to-fe Implement frontend support for the new user status endpoint.</code></pre>
|
|
41
41
|
</article>
|
|
42
42
|
<article class="command-card">
|
|
43
|
-
<header><span>Cải thiện platform</span><button class="clip-btn" data-clip="/platform-improve Harden command docs and run verification.">Lấy lệnh</button></header>
|
|
44
|
-
<pre><code>/platform-improve Harden command docs and run verification.</code></pre>
|
|
43
|
+
<header><span>Cải thiện platform</span><button class="clip-btn" data-clip="/workflow platform-improve Harden command docs and run verification.">Lấy lệnh</button></header>
|
|
44
|
+
<pre><code>/workflow platform-improve Harden command docs and run verification.</code></pre>
|
|
45
45
|
</article>
|
|
46
46
|
</div>
|
|
47
47
|
</section>
|
package/docs-site/index.html
CHANGED
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
<span>Pi Agent Platform</span>
|
|
28
28
|
</a>
|
|
29
29
|
<div class="top-actions">
|
|
30
|
-
<span class="pill"><span class="pill-dot"></span>v1.2.
|
|
30
|
+
<span class="pill"><span class="pill-dot"></span>v1.2.3 docs</span>
|
|
31
31
|
<a class="button social" href="https://github.com/Vt-mmm/piagent" target="_blank" rel="noopener noreferrer" aria-label="Mở GitHub repository">
|
|
32
32
|
<svg viewBox="0 0 24 24" fill="none" aria-hidden="true">
|
|
33
33
|
<path d="M7 17 17 7M9 7h8v8" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" />
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
<span>Pi Agent Platform</span>
|
|
28
28
|
</a>
|
|
29
29
|
<div class="top-actions">
|
|
30
|
-
<span class="pill"><span class="pill-dot"></span>v1.2.
|
|
30
|
+
<span class="pill"><span class="pill-dot"></span>v1.2.3 docs</span>
|
|
31
31
|
<a class="button social" href="https://github.com/Vt-mmm/piagent" target="_blank" rel="noopener noreferrer" aria-label="Mở GitHub repository">
|
|
32
32
|
<svg viewBox="0 0 24 24" fill="none" aria-hidden="true">
|
|
33
33
|
<path d="M7 17 17 7M9 7h8v8" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" />
|
package/docs-site/mcp-auth.html
CHANGED
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
<span>Pi Agent Platform</span>
|
|
28
28
|
</a>
|
|
29
29
|
<div class="top-actions">
|
|
30
|
-
<span class="pill"><span class="pill-dot"></span>v1.2.
|
|
30
|
+
<span class="pill"><span class="pill-dot"></span>v1.2.3 docs</span>
|
|
31
31
|
<a class="button social" href="https://github.com/Vt-mmm/piagent" target="_blank" rel="noopener noreferrer" aria-label="Mở GitHub repository">
|
|
32
32
|
<svg viewBox="0 0 24 24" fill="none" aria-hidden="true">
|
|
33
33
|
<path d="M7 17 17 7M9 7h8v8" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" />
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
<span>Pi Agent Platform</span>
|
|
28
28
|
</a>
|
|
29
29
|
<div class="top-actions">
|
|
30
|
-
<span class="pill"><span class="pill-dot"></span>v1.2.
|
|
30
|
+
<span class="pill"><span class="pill-dot"></span>v1.2.3 docs</span>
|
|
31
31
|
<a class="button social" href="https://github.com/Vt-mmm/piagent" target="_blank" rel="noopener noreferrer" aria-label="Mở GitHub repository">
|
|
32
32
|
<svg viewBox="0 0 24 24" fill="none" aria-hidden="true">
|
|
33
33
|
<path d="M7 17 17 7M9 7h8v8" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" />
|
package/docs-site/mcp.html
CHANGED
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
<span>Pi Agent Platform</span>
|
|
28
28
|
</a>
|
|
29
29
|
<div class="top-actions">
|
|
30
|
-
<span class="pill"><span class="pill-dot"></span>v1.2.
|
|
30
|
+
<span class="pill"><span class="pill-dot"></span>v1.2.3 docs</span>
|
|
31
31
|
<a class="button social" href="https://github.com/Vt-mmm/piagent" target="_blank" rel="noopener noreferrer" aria-label="Mở GitHub repository">
|
|
32
32
|
<svg viewBox="0 0 24 24" fill="none" aria-hidden="true">
|
|
33
33
|
<path d="M7 17 17 7M9 7h8v8" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" />
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
<span>Pi Agent Platform</span>
|
|
28
28
|
</a>
|
|
29
29
|
<div class="top-actions">
|
|
30
|
-
<span class="pill"><span class="pill-dot"></span>v1.2.
|
|
30
|
+
<span class="pill"><span class="pill-dot"></span>v1.2.3 docs</span>
|
|
31
31
|
<a class="button social" href="https://github.com/Vt-mmm/piagent" target="_blank" rel="noopener noreferrer" aria-label="Mở GitHub repository">
|
|
32
32
|
<svg viewBox="0 0 24 24" fill="none" aria-hidden="true">
|
|
33
33
|
<path d="M7 17 17 7M9 7h8v8" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" />
|
|
@@ -109,19 +109,19 @@
|
|
|
109
109
|
<td><span class="inline-code">read-only</span></td>
|
|
110
110
|
<td>Scout, audit, mapping, review không chỉnh source.</td>
|
|
111
111
|
<td>Cho read, grep, find, ls và piagent tools; chặn shell/write/unknown tools.</td>
|
|
112
|
-
<td><span class="inline-code">/read-only</span></td>
|
|
112
|
+
<td><span class="inline-code">/permission read-only</span></td>
|
|
113
113
|
</tr>
|
|
114
114
|
<tr>
|
|
115
115
|
<td><span class="inline-code">workspace-write</span></td>
|
|
116
116
|
<td>Implementation bình thường trong repo.</td>
|
|
117
117
|
<td>Default guarded mode; giữ protected path, shell policy, capability và verify gate.</td>
|
|
118
|
-
<td><span class="inline-code">/workspace-write</span></td>
|
|
118
|
+
<td><span class="inline-code">/permission workspace-write</span></td>
|
|
119
119
|
</tr>
|
|
120
120
|
<tr>
|
|
121
121
|
<td><span class="inline-code">trusted-full-access</span></td>
|
|
122
122
|
<td>Automation trên repo đã tin và task đã rõ.</td>
|
|
123
123
|
<td>Nới autonomy trong guard, nhưng vẫn giữ protected path, redaction, lock và confirmation.</td>
|
|
124
|
-
<td><span class="inline-code">/full-access</span></td>
|
|
124
|
+
<td><span class="inline-code">/permission full-access</span></td>
|
|
125
125
|
</tr>
|
|
126
126
|
</tbody>
|
|
127
127
|
</table>
|
|
@@ -129,20 +129,20 @@
|
|
|
129
129
|
|
|
130
130
|
<div class="command-grid">
|
|
131
131
|
<article class="command-card">
|
|
132
|
-
<header><span>Xem permission</span><button class="clip-btn" data-clip="/permission
|
|
133
|
-
<pre><code>/permission
|
|
132
|
+
<header><span>Xem permission</span><button class="clip-btn" data-clip="/permission status">Lấy lệnh</button></header>
|
|
133
|
+
<pre><code>/permission status</code></pre>
|
|
134
134
|
</article>
|
|
135
135
|
<article class="command-card">
|
|
136
|
-
<header><span>Read-only session</span><button class="clip-btn" data-clip="/read-only">Lấy lệnh</button></header>
|
|
137
|
-
<pre><code>/read-only</code></pre>
|
|
136
|
+
<header><span>Read-only session</span><button class="clip-btn" data-clip="/permission read-only">Lấy lệnh</button></header>
|
|
137
|
+
<pre><code>/permission read-only</code></pre>
|
|
138
138
|
</article>
|
|
139
139
|
<article class="command-card">
|
|
140
|
-
<header><span>Workspace write</span><button class="clip-btn" data-clip="/workspace-write">Lấy lệnh</button></header>
|
|
141
|
-
<pre><code>/workspace-write</code></pre>
|
|
140
|
+
<header><span>Workspace write</span><button class="clip-btn" data-clip="/permission workspace-write">Lấy lệnh</button></header>
|
|
141
|
+
<pre><code>/permission workspace-write</code></pre>
|
|
142
142
|
</article>
|
|
143
143
|
<article class="command-card">
|
|
144
|
-
<header><span>Full-access + task</span><button class="clip-btn" data-clip="/full-access Run the trusted local verification suite.">Lấy lệnh</button></header>
|
|
145
|
-
<pre><code>/full-access Run the trusted local verification suite.</code></pre>
|
|
144
|
+
<header><span>Full-access + task</span><button class="clip-btn" data-clip="/permission full-access Run the trusted local verification suite.">Lấy lệnh</button></header>
|
|
145
|
+
<pre><code>/permission full-access Run the trusted local verification suite.</code></pre>
|
|
146
146
|
</article>
|
|
147
147
|
</div>
|
|
148
148
|
</section>
|
package/docs-site/profiles.html
CHANGED
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
<span>Pi Agent Platform</span>
|
|
28
28
|
</a>
|
|
29
29
|
<div class="top-actions">
|
|
30
|
-
<span class="pill"><span class="pill-dot"></span>v1.2.
|
|
30
|
+
<span class="pill"><span class="pill-dot"></span>v1.2.3 docs</span>
|
|
31
31
|
<a class="button social" href="https://github.com/Vt-mmm/piagent" target="_blank" rel="noopener noreferrer" aria-label="Mở GitHub repository">
|
|
32
32
|
<svg viewBox="0 0 24 24" fill="none" aria-hidden="true">
|
|
33
33
|
<path d="M7 17 17 7M9 7h8v8" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" />
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
<span>Pi Agent Platform</span>
|
|
28
28
|
</a>
|
|
29
29
|
<div class="top-actions">
|
|
30
|
-
<span class="pill"><span class="pill-dot"></span>v1.2.
|
|
30
|
+
<span class="pill"><span class="pill-dot"></span>v1.2.3 docs</span>
|
|
31
31
|
<a class="button social" href="https://github.com/Vt-mmm/piagent" target="_blank" rel="noopener noreferrer" aria-label="Mở GitHub repository">
|
|
32
32
|
<svg viewBox="0 0 24 24" fill="none" aria-hidden="true">
|
|
33
33
|
<path d="M7 17 17 7M9 7h8v8" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" />
|
|
@@ -98,7 +98,7 @@
|
|
|
98
98
|
<article class="step">
|
|
99
99
|
<div>
|
|
100
100
|
<h3 id="cai-hai-lenh">Cài — hai lệnh</h3>
|
|
101
|
-
<p>Cần Node.js 22.19.0 trở lên. Không cần cài Pi Coding Agent trước: <span class="inline-code">piagent-setup</span> tự cài đúng bản <span class="inline-code">0.82.0</span> mà release <span class="inline-code">v1.2.
|
|
101
|
+
<p>Cần Node.js 22.19.0 trở lên. Không cần cài Pi Coding Agent trước: <span class="inline-code">piagent-setup</span> tự cài đúng bản <span class="inline-code">0.82.0</span> mà release <span class="inline-code">v1.2.3</span> đang pin. Chạy nó ngay trong thư mục project — nó cài Pi package, khởi tạo <span class="inline-code">.pi/</span>, cài MCP baseline cùng subagents, rồi chạy doctor. Thêm <span class="inline-code">--no-mcp</span>, <span class="inline-code">--no-subagents</span>, <span class="inline-code">--no-herdr</span> hoặc <span class="inline-code">--global-only</span> để bỏ bớt.</p>
|
|
102
102
|
<div class="table-wrap compact-table">
|
|
103
103
|
<table>
|
|
104
104
|
<thead>
|
|
@@ -160,10 +160,11 @@ pi</code></pre>
|
|
|
160
160
|
<article class="step">
|
|
161
161
|
<div>
|
|
162
162
|
<h3 id="onboard-context">Onboard context</h3>
|
|
163
|
-
<p>Chạy một lần ở repo mới để ghi context, verify matrix và protected areas vào <span class="inline-code">.pi/</span
|
|
163
|
+
<p>Chạy một lần ở repo mới để ghi context, verify matrix và protected areas vào <span class="inline-code">.pi/</span>. <span class="inline-code">/onboard</span> mở menu/status; <span class="inline-code">run</span> mới launch workflow đọc project.</p>
|
|
164
164
|
<div class="command-card">
|
|
165
|
-
<header><span>Onboard</span><button class="clip-btn" data-clip="/onboard
|
|
166
|
-
<pre><code>/onboard
|
|
165
|
+
<header><span>Onboard</span><button class="clip-btn" data-clip="/onboard /onboard run">Lấy lệnh</button></header>
|
|
166
|
+
<pre><code>/onboard
|
|
167
|
+
/onboard run</code></pre>
|
|
167
168
|
</div>
|
|
168
169
|
</div>
|
|
169
170
|
</article>
|
|
@@ -185,9 +186,9 @@ pi</code></pre>
|
|
|
185
186
|
<h3 id="chon-permission">Chọn permission</h3>
|
|
186
187
|
<p>Scout thì read-only, code bình thường thì workspace-write, automation tin cậy thì full-access có guard.</p>
|
|
187
188
|
<div class="command-card">
|
|
188
|
-
<header><span>Permission</span><button class="clip-btn" data-clip="/workspace-write">Lấy lệnh</button></header>
|
|
189
|
-
<pre><code>/permission
|
|
190
|
-
/workspace-write</code></pre>
|
|
189
|
+
<header><span>Permission</span><button class="clip-btn" data-clip="/permission status /permission workspace-write">Lấy lệnh</button></header>
|
|
190
|
+
<pre><code>/permission status
|
|
191
|
+
/permission workspace-write</code></pre>
|
|
191
192
|
</div>
|
|
192
193
|
</div>
|
|
193
194
|
</article>
|
|
@@ -197,10 +198,10 @@ pi</code></pre>
|
|
|
197
198
|
<h3 id="chay-workflow">Chạy workflow</h3>
|
|
198
199
|
<p>Dùng command đúng mục tiêu để agent không phải diễn giải quá dài. Task nào nặng context thì dùng fresh session.</p>
|
|
199
200
|
<div class="command-card">
|
|
200
|
-
<header><span>Workflow</span><button class="clip-btn" data-clip="/task Implement the requested bounded change.">Lấy lệnh</button></header>
|
|
201
|
-
<pre><code>/task Implement the requested bounded change.
|
|
202
|
-
/review
|
|
203
|
-
/fresh
|
|
201
|
+
<header><span>Workflow</span><button class="clip-btn" data-clip="/workflow task Implement the requested bounded change. /workflow review current diff /fresh task Implement the requested bounded change.">Lấy lệnh</button></header>
|
|
202
|
+
<pre><code>/workflow task Implement the requested bounded change.
|
|
203
|
+
/workflow review current diff
|
|
204
|
+
/fresh task Implement the requested bounded change.</code></pre>
|
|
204
205
|
</div>
|
|
205
206
|
</div>
|
|
206
207
|
</article>
|
package/docs-site/runtime.html
CHANGED
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
<span>Pi Agent Platform</span>
|
|
28
28
|
</a>
|
|
29
29
|
<div class="top-actions">
|
|
30
|
-
<span class="pill"><span class="pill-dot"></span>v1.2.
|
|
30
|
+
<span class="pill"><span class="pill-dot"></span>v1.2.3 docs</span>
|
|
31
31
|
<a class="button social" href="https://github.com/Vt-mmm/piagent" target="_blank" rel="noopener noreferrer" aria-label="Mở GitHub repository">
|
|
32
32
|
<svg viewBox="0 0 24 24" fill="none" aria-hidden="true">
|
|
33
33
|
<path d="M7 17 17 7M9 7h8v8" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" />
|
package/docs-site/scope.html
CHANGED
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
<span>Pi Agent Platform</span>
|
|
28
28
|
</a>
|
|
29
29
|
<div class="top-actions">
|
|
30
|
-
<span class="pill"><span class="pill-dot"></span>v1.2.
|
|
30
|
+
<span class="pill"><span class="pill-dot"></span>v1.2.3 docs</span>
|
|
31
31
|
<a class="button social" href="https://github.com/Vt-mmm/piagent" target="_blank" rel="noopener noreferrer" aria-label="Mở GitHub repository">
|
|
32
32
|
<svg viewBox="0 0 24 24" fill="none" aria-hidden="true">
|
|
33
33
|
<path d="M7 17 17 7M9 7h8v8" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" />
|