@piagent/platform 1.2.2 → 1.2.4
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 +28 -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 +123 -86
- package/docs/context-window-policy.md +7 -7
- package/docs/distribution-standard.md +49 -11
- 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 +23 -7
- 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 +39 -19
- 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/update-global.mjs +207 -11
- 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
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
Không nhồi toàn bộ repo vào context. Agent phải load đúng lớp context theo task.
|
|
6
6
|
|
|
7
|
-
Lần đầu gắn project vào platform, chạy `/onboard
|
|
7
|
+
Lần đầu gắn project vào platform, chạy `/onboard run` sau login/model selection để tạo `.pi/project-context.md` và `.pi/context-index.json`. Các task sau dùng context index như bản đồ nhỏ để tìm đúng vùng cần đọc, rồi vẫn verify bằng files task-specific hiện tại.
|
|
8
8
|
|
|
9
9
|
## Context order
|
|
10
10
|
|
|
@@ -29,11 +29,11 @@ piagent_context_index_status
|
|
|
29
29
|
Trước task lớn/risk cao trong Pi TUI:
|
|
30
30
|
|
|
31
31
|
```text
|
|
32
|
-
/
|
|
33
|
-
/
|
|
32
|
+
/context preflight
|
|
33
|
+
/context compact
|
|
34
34
|
```
|
|
35
35
|
|
|
36
|
-
Nếu recommendation là `fresh-session`, dùng `/fresh
|
|
36
|
+
Nếu recommendation là `fresh-session`, dùng `/fresh task`, `/fresh scout`, hoặc `/fresh be-to-fe` thay vì tiếp tục nhồi context vào session hiện tại.
|
|
37
37
|
|
|
38
38
|
## Context manifest
|
|
39
39
|
|
|
@@ -71,12 +71,12 @@ Pi settings template dùng:
|
|
|
71
71
|
- Nếu task là source-write, phải biết verify command trước khi sửa.
|
|
72
72
|
- Không paste full mandatory-flow boilerplate vào task hằng ngày; platform prompts/tools đã chứa flow đó.
|
|
73
73
|
- Nếu context vượt budget, tạo summary theo module thay vì nhồi full files.
|
|
74
|
-
- Dùng `/context
|
|
75
|
-
- Không raw-read hoặc raw-edit `.pi/context-index.json` trong task thường ngày. Runtime coi index là advisory state, sanitize khi đọc qua tool/command, và ghi qua `/onboard
|
|
74
|
+
- Dùng `/context search` hoặc `piagent_context_index_search` để tìm điểm vào repo, nhưng không dùng index thay thế việc đọc source thật.
|
|
75
|
+
- Không raw-read hoặc raw-edit `.pi/context-index.json` trong task thường ngày. Runtime coi index là advisory state, sanitize khi đọc qua tool/command, và ghi qua `/onboard run` hoặc `piagent_context_index_record`.
|
|
76
76
|
- File context vượt hard cap phải được summarize hoặc đọc targeted slices, không inject full.
|
|
77
77
|
- Nếu input quá dài thật, lưu intake vào file project/local gitignored rồi reference file; không dán toàn bộ spec vào một turn.
|
|
78
78
|
- Nếu input chứa local screenshot/image path, để input guard attach thành `[image1]` thay vì đọc ảnh như text context. Ảnh lớn hơn giới hạn chat nên dùng Pi `read` để resize.
|
|
79
|
-
- Tool output dài chỉ nên hiện preview. Dùng `/
|
|
79
|
+
- Tool output dài chỉ nên hiện preview. Dùng `/logs` hoặc command targeted hơn để debug; không paste full test/build log vào chat/final.
|
|
80
80
|
- Memory chỉ là hint. Phải verify bằng source hiện tại trước khi sửa code.
|
|
81
81
|
- Context index cũng chỉ là hint. Nó có node/edge/citation để giảm scout lại, không phải security boundary hoặc source of truth.
|
|
82
82
|
|
|
@@ -14,9 +14,9 @@ Repo này phải chạy được cho nhiều project/domain khác nhau. Vì vậ
|
|
|
14
14
|
|
|
15
15
|
| Use case | Package source |
|
|
16
16
|
|---|---|
|
|
17
|
-
| Team pinned release | `git:github.com/Vt-mmm/piagent@v1.2.
|
|
17
|
+
| Team pinned release | `git:github.com/Vt-mmm/piagent@v1.2.4` |
|
|
18
18
|
| Personal/sandbox dev | `git:github.com/Vt-mmm/piagent` |
|
|
19
|
-
| Registry distribution | `npm:@piagent/platform@1.2.
|
|
19
|
+
| Registry distribution | `npm:@piagent/platform@1.2.4` |
|
|
20
20
|
| Enterprise npm (fork under another scope) | `npm:@your-scope/platform@x.y.z` |
|
|
21
21
|
| Local platform dev | `/path/to/piagent` |
|
|
22
22
|
|
|
@@ -26,7 +26,7 @@ Latest tiện cho máy cá nhân muốn nhận cập nhật nhanh. Pin tag/commi
|
|
|
26
26
|
|
|
27
27
|
| Channel | Command | Target | Policy |
|
|
28
28
|
|---|---|---|---|
|
|
29
|
-
| `stable` | `bash scripts/install-global.sh --stable` | Helper release tag resolved to commit SHA, currently `v1.2.
|
|
29
|
+
| `stable` | `bash scripts/install-global.sh --stable` | Helper release tag resolved to commit SHA, currently `v1.2.4` | Install the Pi package matching the helper. |
|
|
30
30
|
| `exact` | `bash scripts/install-global.sh --version vX.Y.Z --resolve-tag` | Requested tag resolved to commit SHA | Pi-package-only rollout, rollback, and incident recovery. |
|
|
31
31
|
| `dev` | `bash scripts/install-global.sh --dev` | Moving Git source | Personal/sandbox only; do not commit into project settings. |
|
|
32
32
|
| `local` | `bash scripts/install-global.sh --local` | Current checkout path | Platform development only. |
|
|
@@ -53,7 +53,7 @@ Root `package.json` có `pi` manifest trỏ tới:
|
|
|
53
53
|
Do đó team có thể:
|
|
54
54
|
|
|
55
55
|
```bash
|
|
56
|
-
pi install git:github.com/Vt-mmm/piagent@v1.2.
|
|
56
|
+
pi install git:github.com/Vt-mmm/piagent@v1.2.4
|
|
57
57
|
```
|
|
58
58
|
|
|
59
59
|
Không cần biết internal folder `packages/piagent-core`. Source không pin chỉ dành cho personal/sandbox như bảng channel ở trên.
|
|
@@ -65,12 +65,12 @@ Team nên install global package một lần:
|
|
|
65
65
|
```bash
|
|
66
66
|
node --version # >= 22.19.0
|
|
67
67
|
npm install -g --ignore-scripts @earendil-works/pi-coding-agent@0.82.0
|
|
68
|
-
npm install -g --ignore-scripts @piagent/platform@1.2.
|
|
68
|
+
npm install -g --ignore-scripts @piagent/platform@1.2.4
|
|
69
69
|
piagent-install --stable --dry-run
|
|
70
70
|
piagent-install --stable
|
|
71
71
|
```
|
|
72
72
|
|
|
73
|
-
`pi install git:github.com/Vt-mmm/piagent@v1.2.
|
|
73
|
+
`pi install git:github.com/Vt-mmm/piagent@v1.2.4` vẫn hợp lệ nếu chỉ cần cài Pi package. Lệnh đó không tự tạo các binary terminal `piagent-*`; muốn có helper global thì dùng `npm install -g --ignore-scripts @piagent/platform@1.2.4`.
|
|
74
74
|
|
|
75
75
|
Support matrix hiện tại: macOS Apple Silicon + Bash và Linux x64 + Bash đã được verify; macOS Intel + Bash và Linux ARM64 + Bash là supported target cần chạy smoke trước rollout; native Windows chưa phải target rollout team; WSL2 experimental. Chi tiết và version runtime nằm trong [release/install policy](release-install-policy.md).
|
|
76
76
|
|
|
@@ -81,7 +81,7 @@ cd /path/to/project
|
|
|
81
81
|
pi
|
|
82
82
|
```
|
|
83
83
|
|
|
84
|
-
Project profile được chọn trong Pi bằng `/onboard
|
|
84
|
+
Project profile được chọn trong Pi bằng `/onboard` hoặc `/profile`, không bắt buộc chạy bash init. `/onboard` là menu runtime; dùng `/onboard run` khi muốn model đọc project lần đầu và ghi snapshot.
|
|
85
85
|
|
|
86
86
|
Sau setup, bước first-run trong Pi là:
|
|
87
87
|
|
|
@@ -90,12 +90,29 @@ Sau setup, bước first-run trong Pi là:
|
|
|
90
90
|
<select provider/model>
|
|
91
91
|
/mcp
|
|
92
92
|
/subagents-doctor
|
|
93
|
-
/onboard
|
|
93
|
+
/onboard
|
|
94
|
+
/onboard run
|
|
95
|
+
/context index
|
|
96
|
+
/memory
|
|
94
97
|
```
|
|
95
98
|
|
|
96
|
-
`/onboard
|
|
99
|
+
`/onboard run` ghi `.pi/project-context.md`; đây là snapshot context dùng chung cho các task sau.
|
|
97
100
|
Nó cũng ghi `.pi/context-index.json`; đây là compact advisory map có citation để agent tìm đúng điểm vào repo mà không scout rộng lại.
|
|
98
101
|
|
|
102
|
+
Command hằng ngày nên dạy theo namespace mới:
|
|
103
|
+
|
|
104
|
+
```text
|
|
105
|
+
/commands
|
|
106
|
+
/workflow task <request>
|
|
107
|
+
/workflow scout <read-only request>
|
|
108
|
+
/name <task/session name>
|
|
109
|
+
/fresh task <request>
|
|
110
|
+
/context preflight
|
|
111
|
+
/usage
|
|
112
|
+
```
|
|
113
|
+
|
|
114
|
+
Các alias cũ như `/task`, `/scout`, `/context index`, `/fresh-task` vẫn chạy để không gãy session cũ, nhưng không dùng làm đường onboard chính cho team mới.
|
|
115
|
+
|
|
99
116
|
## Optional preseed setup
|
|
100
117
|
|
|
101
118
|
Nếu muốn commit sẵn `.pi/piagent-profile.json` vào repo hoặc bootstrap bằng CI:
|
|
@@ -103,7 +120,7 @@ Nếu muốn commit sẵn `.pi/piagent-profile.json` vào repo hoặc bootstrap
|
|
|
103
120
|
```bash
|
|
104
121
|
bash scripts/setup.sh /path/to/project \
|
|
105
122
|
--profile be-readonly-fe \
|
|
106
|
-
--package-source git:github.com/Vt-mmm/piagent@v1.2.
|
|
123
|
+
--package-source git:github.com/Vt-mmm/piagent@v1.2.4 \
|
|
107
124
|
--mcp-preset core \
|
|
108
125
|
--subagents-preset safe
|
|
109
126
|
```
|
|
@@ -172,13 +189,34 @@ Files không commit:
|
|
|
172
189
|
|
|
173
190
|
[Release/install policy](release-install-policy.md) là checklist canonical duy nhất. Production docs chỉ được promote sau khi tag đã tồn tại và stable dry-run resolve đúng commit SHA.
|
|
174
191
|
|
|
175
|
-
Full platform update phải đồng bộ Pi host, npm-global helper và Pi package:
|
|
192
|
+
Full platform update phải đồng bộ Pi host, npm-global helper và Pi package cho cả máy:
|
|
193
|
+
|
|
194
|
+
```bash
|
|
195
|
+
piagent-update --version X.Y.Z
|
|
196
|
+
```
|
|
197
|
+
|
|
198
|
+
Máy chưa có helper dùng bootstrap all-in-one:
|
|
199
|
+
|
|
200
|
+
```bash
|
|
201
|
+
npm exec -y --package @piagent/platform@X.Y.Z -- piagent-update --version X.Y.Z --force
|
|
202
|
+
```
|
|
203
|
+
|
|
204
|
+
Máy bị khóa npm global ở `/usr/local` không cần `sudo`: updater sẽ dùng prefix user-local `~/.pi/npm-global` hoặc maintainer có thể truyền `--npm-prefix <path>`.
|
|
205
|
+
|
|
206
|
+
Project migration/doctor là bước kiểm tra sau global update, chỉ chạy cho repo cần xác minh:
|
|
207
|
+
|
|
208
|
+
```bash
|
|
209
|
+
piagent-update --version X.Y.Z --project /path/to/project
|
|
210
|
+
```
|
|
211
|
+
|
|
212
|
+
Sequence thủ công tương đương:
|
|
176
213
|
|
|
177
214
|
```bash
|
|
178
215
|
npm install -g --ignore-scripts @earendil-works/pi-coding-agent@0.82.0
|
|
179
216
|
npm install -g --ignore-scripts @piagent/platform@X.Y.Z
|
|
180
217
|
piagent-install --stable --dry-run
|
|
181
218
|
piagent-install --stable
|
|
219
|
+
piagent-migrate /path/to/project --apply --remove-old
|
|
182
220
|
piagent-doctor /path/to/project --strict-share
|
|
183
221
|
```
|
|
184
222
|
|
package/docs/herdr-workflow.md
CHANGED
|
@@ -50,10 +50,11 @@ Lần đầu trong project, mở pane Pi rồi chạy:
|
|
|
50
50
|
```text
|
|
51
51
|
/login
|
|
52
52
|
<select provider/model>
|
|
53
|
-
/onboard
|
|
53
|
+
/onboard
|
|
54
|
+
/onboard run
|
|
54
55
|
```
|
|
55
56
|
|
|
56
|
-
Sau khi `.pi/project-context.md` đã được ghi, mới chạy `/task` cho implementation.
|
|
57
|
+
Sau khi `.pi/project-context.md` đã được ghi, mới chạy `/workflow task` cho implementation.
|
|
57
58
|
|
|
58
59
|
Pane đề xuất:
|
|
59
60
|
|
package/docs/memory-policy.md
CHANGED
|
@@ -110,10 +110,13 @@ Mode hiện tại:
|
|
|
110
110
|
|
|
111
111
|
```text
|
|
112
112
|
/login
|
|
113
|
-
/onboard
|
|
114
|
-
/
|
|
113
|
+
/onboard
|
|
114
|
+
/onboard run
|
|
115
|
+
/memory
|
|
115
116
|
```
|
|
116
117
|
|
|
118
|
+
`/memory-policy` vẫn là alias để xem cùng runtime status.
|
|
119
|
+
|
|
117
120
|
### Ghi nhớ explicit
|
|
118
121
|
|
|
119
122
|
```text
|
|
@@ -125,7 +128,7 @@ Agent nên gọi `piagent_memory_note` với category `preference`.
|
|
|
125
128
|
### Trước implementation
|
|
126
129
|
|
|
127
130
|
1. `piagent_context`
|
|
128
|
-
2. `piagent_context_index_status` hoặc `/context
|
|
131
|
+
2. `piagent_context_index_status` hoặc `/context index` để lấy điểm vào repo nếu đã onboard
|
|
129
132
|
3. `piagent_memory_status`
|
|
130
133
|
4. `piagent_memory_search` nếu task có keyword liên quan
|
|
131
134
|
5. đọc repo files hiện tại để verify
|
|
@@ -18,12 +18,12 @@ Support matrix release hiện tại: macOS Apple Silicon + Bash và Linux x64 +
|
|
|
18
18
|
```bash
|
|
19
19
|
node --version # >= 22.19.0
|
|
20
20
|
npm install -g --ignore-scripts @earendil-works/pi-coding-agent@0.82.0
|
|
21
|
-
npm install -g --ignore-scripts @piagent/platform@1.2.
|
|
21
|
+
npm install -g --ignore-scripts @piagent/platform@1.2.4
|
|
22
22
|
piagent-install --stable --dry-run
|
|
23
23
|
piagent-install --stable
|
|
24
24
|
```
|
|
25
25
|
|
|
26
|
-
Khi seed `.pi/settings.json` cho team/repo cần audit lặp lại, giữ package source dạng pinned tag như `git:github.com/Vt-mmm/piagent@v1.2.
|
|
26
|
+
Khi seed `.pi/settings.json` cho team/repo cần audit lặp lại, giữ package source dạng pinned tag như `git:github.com/Vt-mmm/piagent@v1.2.4`. Máy cá nhân có thể dùng `git:github.com/Vt-mmm/piagent` để theo latest.
|
|
27
27
|
|
|
28
28
|
Nếu đang ở source checkout của platform, dùng helper theo channel để preview trước khi đổi:
|
|
29
29
|
|
|
@@ -99,7 +99,7 @@ install package once
|
|
|
99
99
|
|
|
100
100
|
```bash
|
|
101
101
|
npm install -g --ignore-scripts @earendil-works/pi-coding-agent@0.82.0
|
|
102
|
-
npm install -g --ignore-scripts @piagent/platform@1.2.
|
|
102
|
+
npm install -g --ignore-scripts @piagent/platform@1.2.4
|
|
103
103
|
piagent-install --stable --dry-run
|
|
104
104
|
piagent-install --stable
|
|
105
105
|
```
|
|
@@ -204,14 +204,15 @@ Gợi ý:
|
|
|
204
204
|
Sau `/login` và `/model`, chạy:
|
|
205
205
|
|
|
206
206
|
```text
|
|
207
|
-
/
|
|
207
|
+
/commands
|
|
208
208
|
/mcp
|
|
209
209
|
/subagents-doctor
|
|
210
|
-
/onboard
|
|
211
|
-
/
|
|
210
|
+
/onboard
|
|
211
|
+
/onboard run
|
|
212
|
+
/memory
|
|
212
213
|
```
|
|
213
214
|
|
|
214
|
-
`/onboard
|
|
215
|
+
`/onboard` mở menu/status runtime. `/onboard run` sẽ:
|
|
215
216
|
|
|
216
217
|
1. đọc repo theo context budget;
|
|
217
218
|
2. detect profile phù hợp;
|
|
@@ -233,7 +234,7 @@ File chính được tạo/cập nhật:
|
|
|
233
234
|
.pi/memory/MEMORY.md
|
|
234
235
|
```
|
|
235
236
|
|
|
236
|
-
Nếu `.pi/project-context.md` còn `Generated: not yet`, hoặc `/context
|
|
237
|
+
Nếu `.pi/project-context.md` còn `Generated: not yet`, hoặc `/context index` báo index đang pending/stale, không nên chạy `/workflow task` implementation lớn. Chạy lại `/onboard run` trước.
|
|
237
238
|
|
|
238
239
|
### Đổi profile sau này
|
|
239
240
|
|
|
@@ -281,7 +282,7 @@ Không phải daily default. Dùng khi muốn tạo sẵn `.pi` files cho projec
|
|
|
281
282
|
bash /path/to/piagent/scripts/setup.sh /path/to/project \
|
|
282
283
|
--project-only \
|
|
283
284
|
--profile auto \
|
|
284
|
-
--package-source git:github.com/Vt-mmm/piagent@v1.2.
|
|
285
|
+
--package-source git:github.com/Vt-mmm/piagent@v1.2.4 \
|
|
285
286
|
--mcp-preset core \
|
|
286
287
|
--subagents-preset safe
|
|
287
288
|
```
|
|
@@ -307,37 +308,37 @@ bash /path/to/piagent/scripts/configure-subagents.sh --preset safe
|
|
|
307
308
|
### Requirement chưa rõ
|
|
308
309
|
|
|
309
310
|
```text
|
|
310
|
-
/discuss Cải tiến workflow onboarding cho team mới. Chưa implement, chỉ hỏi phần thiếu và đề xuất plan.
|
|
311
|
+
/workflow discuss Cải tiến workflow onboarding cho team mới. Chưa implement, chỉ hỏi phần thiếu và đề xuất plan.
|
|
311
312
|
```
|
|
312
313
|
|
|
313
314
|
### Cần plan trước
|
|
314
315
|
|
|
315
316
|
```text
|
|
316
|
-
/plan Implement header sale menu hover stabilization. Include scope, files, verify commands, and risks.
|
|
317
|
+
/workflow plan Implement header sale menu hover stabilization. Include scope, files, verify commands, and risks.
|
|
317
318
|
```
|
|
318
319
|
|
|
319
320
|
### Task rõ, cho implement
|
|
320
321
|
|
|
321
322
|
```text
|
|
322
|
-
/task Implement header sale menu hover stabilization. Add component tests and run relevant verify.
|
|
323
|
+
/workflow task Implement header sale menu hover stabilization. Add component tests and run relevant verify.
|
|
323
324
|
```
|
|
324
325
|
|
|
325
326
|
### Scout/audit read-only
|
|
326
327
|
|
|
327
328
|
```text
|
|
328
|
-
/scout Scout payment FE mapping vs BE contract. Backend read-only. Do not edit source.
|
|
329
|
+
/workflow scout Scout payment FE mapping vs BE contract. Backend read-only. Do not edit source.
|
|
329
330
|
```
|
|
330
331
|
|
|
331
|
-
Use `/scout` cho payment/auth/data/contract mapping khi mục tiêu là chốt evidence trước, chưa sửa code.
|
|
332
|
+
Use `/workflow scout` cho payment/auth/data/contract mapping khi mục tiêu là chốt evidence trước, chưa sửa code.
|
|
332
333
|
|
|
333
334
|
### Task mới khi session đã nặng
|
|
334
335
|
|
|
335
|
-
Nếu `/
|
|
336
|
+
Nếu `/usage` cho thấy context cao, hoặc Pi báo context overflow, dùng fresh workflow:
|
|
336
337
|
|
|
337
338
|
```text
|
|
338
|
-
/fresh
|
|
339
|
-
/fresh
|
|
340
|
-
/fresh
|
|
339
|
+
/fresh scout Scout payment FE mapping vs BE contract. Backend read-only. Do not edit source.
|
|
340
|
+
/fresh task Implement <bounded task>.
|
|
341
|
+
/fresh be-to-fe Implement FE support for <BE contract>. Backend read-only.
|
|
341
342
|
```
|
|
342
343
|
|
|
343
344
|
Các command này tự mở session mới và replay prompt workflow ngắn. Anh không cần tự chạy `pi --name ...` rồi paste lại.
|
|
@@ -349,7 +350,7 @@ Input guard của platform cũng tự collapse prompt có full `Mandatory flow`
|
|
|
349
350
|
Nếu Pi/chat box không tạo native image attachment mà chỉ hiện local path kiểu `/var/folders/.../Ảnh màn hình ...png`, cứ để nguyên path trong prompt:
|
|
350
351
|
|
|
351
352
|
```text
|
|
352
|
-
/scout Scout UI issue from screenshot /var/folders/.../screenshot.png
|
|
353
|
+
/workflow scout Scout UI issue from screenshot /var/folders/.../screenshot.png
|
|
353
354
|
```
|
|
354
355
|
|
|
355
356
|
Piagent guard sẽ xử lý trước khi model nhận input:
|
|
@@ -367,19 +368,19 @@ Nếu ảnh quá lớn, lưu ảnh nhỏ hơn hoặc yêu cầu agent dùng Pi `
|
|
|
367
368
|
|
|
368
369
|
```text
|
|
369
370
|
/profile be-readonly-fe
|
|
370
|
-
/be-to-fe Implement frontend support from backend endpoint/spec <name>. Backend is read-only.
|
|
371
|
+
/workflow be-to-fe Implement frontend support from backend endpoint/spec <name>. Backend is read-only.
|
|
371
372
|
```
|
|
372
373
|
|
|
373
374
|
### Cải tiến platform
|
|
374
375
|
|
|
375
376
|
```text
|
|
376
|
-
/platform-improve Improve MCP setup docs and subagent command guidance for team usage.
|
|
377
|
+
/workflow platform-improve Improve MCP setup docs and subagent command guidance for team usage.
|
|
377
378
|
```
|
|
378
379
|
|
|
379
380
|
### Review trước final
|
|
380
381
|
|
|
381
382
|
```text
|
|
382
|
-
/review current diff
|
|
383
|
+
/workflow review current diff
|
|
383
384
|
```
|
|
384
385
|
|
|
385
386
|
### Commit và pull request
|
|
@@ -387,11 +388,11 @@ Nếu ảnh quá lớn, lưu ảnh nhỏ hơn hoặc yêu cầu agent dùng Pi `
|
|
|
387
388
|
Git trong Pi Agent là capability + guard, không có namespace `/git-*`. Khi muốn gom việc hiện tại:
|
|
388
389
|
|
|
389
390
|
```text
|
|
390
|
-
/commit docs: update onboarding notes
|
|
391
|
-
/pr Add guarded git workflow
|
|
391
|
+
/workflow commit docs: update onboarding notes
|
|
392
|
+
/workflow pr Add guarded git workflow
|
|
392
393
|
```
|
|
393
394
|
|
|
394
|
-
`/commit` inspect status/diff, stage đúng scope, verify phù hợp, rồi commit local; không push. `/pr` inspect branch/diff/commit rồi hỏi xác nhận trước khi `git push` hoặc tạo/cập nhật GitHub PR. Các lệnh stage rộng như `git add .`, `git add -A`, `git add --all`, `git add -- .`, `git add :/` cũng phải qua confirmation.
|
|
395
|
+
`/workflow commit` inspect status/diff, stage đúng scope, verify phù hợp, rồi commit local; không push. `/workflow pr` inspect branch/diff/commit rồi hỏi xác nhận trước khi `git push` hoặc tạo/cập nhật GitHub PR. Alias `/commit` và `/pr` vẫn chạy cho power user. Các lệnh stage rộng như `git add .`, `git add -A`, `git add --all`, `git add -- .`, `git add :/` cũng phải qua confirmation.
|
|
395
396
|
|
|
396
397
|
## 5. Control flow của một task chuẩn
|
|
397
398
|
|
|
@@ -474,16 +475,16 @@ High-risk action phải human-gate:
|
|
|
474
475
|
### Trong Pi
|
|
475
476
|
|
|
476
477
|
```text
|
|
477
|
-
/
|
|
478
|
-
/
|
|
479
|
-
/
|
|
480
|
-
/
|
|
478
|
+
/usage
|
|
479
|
+
/context preflight
|
|
480
|
+
/context compact
|
|
481
|
+
/usage logs
|
|
481
482
|
/session
|
|
482
483
|
```
|
|
483
484
|
|
|
484
|
-
`/
|
|
485
|
+
`/context preflight` cho biết task tiếp theo nên chạy trực tiếp, compact trước, hay mở fresh session. `/context compact` dùng khi muốn Pi nén session có hướng dẫn giữ lại decisions/open blockers/verify command. Alias `/context preflight` và `/logs` vẫn chạy.
|
|
485
486
|
|
|
486
|
-
`/
|
|
487
|
+
`/usage` cho biết:
|
|
487
488
|
|
|
488
489
|
- session file;
|
|
489
490
|
- session id/name;
|
|
@@ -502,7 +503,7 @@ Piagent giữ nguyên output nhỏ. Khi `bash/grep/find/ls` hoặc tool result k
|
|
|
502
503
|
- ghi capture local vào `.pi/piagent-state/tool-results/YYYY-MM-DD/*.log`;
|
|
503
504
|
- ghi index `.pi/piagent-state/tool-results/index.jsonl` để Agent Watch/report đọc theo session/tool.
|
|
504
505
|
|
|
505
|
-
Trong Pi, chạy `/
|
|
506
|
+
Trong Pi, chạy `/logs` để xem policy compact và các capture mới nhất. Không paste full test/build log vào chat trừ khi user thật sự cần một đoạn cụ thể; dùng command targeted hoặc đọc capture/report ở ngoài Pi để debug sâu.
|
|
506
507
|
|
|
507
508
|
### Từ terminal khác
|
|
508
509
|
|
|
@@ -554,14 +555,14 @@ History mode đọc trực tiếp `~/.pi/agent/sessions/**/*.jsonl`. Mặc đị
|
|
|
554
555
|
|---|---|
|
|
555
556
|
| `< 50%` | Bình thường. |
|
|
556
557
|
| `50-75%` | Tránh đọc file lớn không cần thiết. |
|
|
557
|
-
| `> 75%` | Cân nhắc `/compact` trước task dài tiếp theo. |
|
|
558
|
+
| `> 75%` | Cân nhắc `/context compact` trước task dài tiếp theo. |
|
|
558
559
|
| Task chuyển từ implement sang deploy monitor | Nên tách session mới hoặc compact. |
|
|
559
560
|
| Task đã xong nhưng CI cần follow lâu | Tách session monitor riêng để không kéo context cũ. |
|
|
560
561
|
|
|
561
562
|
Trong Pi:
|
|
562
563
|
|
|
563
564
|
```text
|
|
564
|
-
/compact
|
|
565
|
+
/context compact
|
|
565
566
|
```
|
|
566
567
|
|
|
567
568
|
Sau compact, agent phải đọc lại context quan trọng trước khi sửa tiếp.
|
|
@@ -632,17 +633,18 @@ pi --name "ABC-123 V-Nexus header menu fix"
|
|
|
632
633
|
Nếu đã vào Pi rồi mới nhớ cần đổi tên, dùng command ngắn trong Pi:
|
|
633
634
|
|
|
634
635
|
```text
|
|
635
|
-
/
|
|
636
|
+
/name ABC-123 V-Nexus header menu fix
|
|
636
637
|
```
|
|
637
638
|
|
|
638
639
|
Trong Pi:
|
|
639
640
|
|
|
640
641
|
```text
|
|
641
642
|
/session
|
|
642
|
-
/
|
|
643
|
+
/usage live
|
|
644
|
+
/usage
|
|
643
645
|
```
|
|
644
646
|
|
|
645
|
-
`/session` kiểm tra tên/id hiện tại. `/
|
|
647
|
+
`/session` kiểm tra tên/id hiện tại. `/usage live` và `/usage` in session id/name và session file. Ghi lại khi task dài hoặc có nhiều pane Herdr. Alias `/setname` vẫn chạy nếu muốn gõ thật ngắn.
|
|
646
648
|
|
|
647
649
|
Nếu tắt terminal/app rồi mở lại:
|
|
648
650
|
|
|
@@ -651,7 +653,7 @@ cd /path/to/project
|
|
|
651
653
|
pi --continue
|
|
652
654
|
```
|
|
653
655
|
|
|
654
|
-
Nếu `--continue` không đúng phiên cần làm, mở selector bằng `pi --resume`, chọn theo session name đã đặt. Khi resume đúng session cũ, tên session vẫn là tên đã set; nếu cần chỉnh lại cho khớp task nội bộ thì chạy `/
|
|
656
|
+
Nếu `--continue` không đúng phiên cần làm, mở selector bằng `pi --resume`, chọn theo session name đã đặt. Khi resume đúng session cũ, tên session vẫn là tên đã set; nếu cần chỉnh lại cho khớp task nội bộ thì chạy `/name <new name>` ngay trước khi làm tiếp.
|
|
655
657
|
|
|
656
658
|
### Khi nào nên resume, continue, fork
|
|
657
659
|
|
|
@@ -659,9 +661,9 @@ Nếu `--continue` không đúng phiên cần làm, mở selector bằng `pi --r
|
|
|
659
661
|
|---|---|
|
|
660
662
|
| Tắt nhầm, muốn quay lại phiên gần nhất | `pi --continue` |
|
|
661
663
|
| Không nhớ phiên nào | `pi --resume` |
|
|
662
|
-
| Có session id/file từ `/
|
|
664
|
+
| Có session id/file từ `/usage` | `pi --session <id-or-file>` |
|
|
663
665
|
| Muốn thử hướng mới nhưng giữ history cũ | `pi --fork <id-or-file>` |
|
|
664
|
-
| Muốn đổi tên phiên đang mở | `/
|
|
666
|
+
| Muốn đổi tên phiên đang mở | `/name <task/session name>` |
|
|
665
667
|
| Muốn session mới sạch sau task quá dài | `pi --name "<new task>"` |
|
|
666
668
|
|
|
667
669
|
## 9. MCP setup và cách dùng
|
|
@@ -792,7 +794,7 @@ Default safe config:
|
|
|
792
794
|
|
|
793
795
|
### Auto-delegation
|
|
794
796
|
|
|
795
|
-
Với `/task`, `/be-to-fe`, `/platform-improve`, `/plan`, `/review`, parent agent dùng solo-first orchestration: lập task tree/review lenses trước, rồi chỉ spawn subagent khi có phần việc độc lập và đáng token.
|
|
797
|
+
Với `/workflow task`, `/workflow be-to-fe`, `/workflow platform-improve`, `/workflow plan`, `/workflow review`, parent agent dùng solo-first orchestration: lập task tree/review lenses trước, rồi chỉ spawn subagent khi có phần việc độc lập và đáng token. Alias cũ như `/task` vẫn giữ cùng policy.
|
|
796
798
|
|
|
797
799
|
Kiểm tra nhanh policy:
|
|
798
800
|
|
|
@@ -892,8 +894,8 @@ Watchdog là optional adversarial reviewer ở cuối turn, không bật mặc
|
|
|
892
894
|
|
|
893
895
|
| Command | Dùng để |
|
|
894
896
|
|---|---|
|
|
895
|
-
| `npm install -g --ignore-scripts @piagent/platform@1.2.
|
|
896
|
-
| `pi install git:github.com/Vt-mmm/piagent@v1.2.
|
|
897
|
+
| `npm install -g --ignore-scripts @piagent/platform@1.2.4` | Cài terminal helper `piagent-*` từ release tag hiện tại. |
|
|
898
|
+
| `pi install git:github.com/Vt-mmm/piagent@v1.2.4` | Install pinned release cho reproducible team setup. |
|
|
897
899
|
| `pi install git:github.com/Vt-mmm/piagent` | Install latest platform package cho máy cá nhân/sandbox. |
|
|
898
900
|
| Cài exact Pi host của release, rồi `npm install -g --ignore-scripts @piagent/platform@X.Y.Z` và `piagent-install --stable` | Full update: đồng bộ host, terminal helper và Pi package. Mỗi release pin một Pi host chính xác; lấy đúng version của release đang cài trong [release/install policy](release-install-policy.md). |
|
|
899
901
|
| Cài exact Pi host ghi trong release cũ, rồi helper `vPREVIOUS` và `piagent-install --stable` | Full rollback; đánh giá lại dependency findings của host cũ trước khi hạ version. |
|
|
@@ -936,15 +938,19 @@ Watchdog là optional adversarial reviewer ở cuối turn, không bật mặc
|
|
|
936
938
|
| `/model` / `Ctrl+L` | Chọn model. |
|
|
937
939
|
| `Ctrl+P` | Cycle scoped models. |
|
|
938
940
|
| `Shift+Tab` | Cycle thinking level. |
|
|
939
|
-
| `/
|
|
940
|
-
| `/
|
|
941
|
-
| `/
|
|
942
|
-
| `/
|
|
943
|
-
| `/
|
|
944
|
-
| `/
|
|
945
|
-
| `/
|
|
946
|
-
| `/
|
|
947
|
-
| `/
|
|
941
|
+
| `/commands` | Menu/help command runtime theo topic. |
|
|
942
|
+
| `/workflow` | Menu task/scout/review/git/onboard workflow. |
|
|
943
|
+
| `/permission` | Menu permission status/read-only/workspace-write/full-access. |
|
|
944
|
+
| `/permission status` | Xem permission profile hiện tại. |
|
|
945
|
+
| `/permission read-only` | Chuyển session sang read-only. |
|
|
946
|
+
| `/permission workspace-write` | Chuyển session sang write chuẩn. |
|
|
947
|
+
| `/permission full-access` | Bật trusted full-access cho session hiện tại. |
|
|
948
|
+
| `/permission full-access <task>` | Bật trusted full-access rồi gửi `<task>` cho agent làm tiếp. |
|
|
949
|
+
| `/onboard` | Menu/status onboarding runtime. |
|
|
950
|
+
| `/onboard run` | Onboard/read project lần đầu. |
|
|
951
|
+
| `/context` | Menu context index/search/preflight/compact. |
|
|
952
|
+
| `/context index` | Xem compact context index, không gọi model follow-up. |
|
|
953
|
+
| `/context search <keyword>` | Tìm node/edge/citation trong context index. |
|
|
948
954
|
| `/profile` | Xem profile ngắn, không gọi model follow-up. |
|
|
949
955
|
| `/profile list` | Xem profile có sẵn dạng compact. |
|
|
950
956
|
| `/profile <profile>` | Áp profile ngay và cập nhật lock. |
|
|
@@ -953,28 +959,31 @@ Watchdog là optional adversarial reviewer ở cuối turn, không bật mặc
|
|
|
953
959
|
| `/profile tech` | Xem tech stack và Context7 status hiện tại. |
|
|
954
960
|
| `/profile tech setup [profile]` | Chọn tech theo role; fullstack chọn FE/BE/DB. |
|
|
955
961
|
| `/profile tech apply ...` | Apply profile/tech bằng một lệnh deterministic. |
|
|
956
|
-
| `/memory
|
|
957
|
-
| `/
|
|
958
|
-
| `/
|
|
959
|
-
| `/
|
|
962
|
+
| `/memory` | Xem memory policy. |
|
|
963
|
+
| `/context preflight` | Check context trước task lớn/risk cao. |
|
|
964
|
+
| `/context compact` | Compact session có hướng dẫn. |
|
|
965
|
+
| `/usage` | Snapshot context/session. |
|
|
966
|
+
| `/usage logs` | Xem capture output dài đã compact. |
|
|
967
|
+
| `/name` | Đặt/đổi tên session theo task để report dễ map. |
|
|
968
|
+
| `/fresh` | Mở session mới cho task/scout/be-to-fe khi phiên hiện tại nặng. |
|
|
969
|
+
| `/name <name>` | Đổi tên session cho resume/report. |
|
|
960
970
|
| `/session` | Pi native session stats/info. |
|
|
961
|
-
| `/compact` | Nén context. |
|
|
962
971
|
| `/mcp` / `/mcp tools` | Check MCP. |
|
|
963
972
|
| `/subagents-doctor` | Check subagent setup. |
|
|
964
973
|
| `/subagents-fleet` | Follow child sessions. |
|
|
965
974
|
| `/subagent-cost` | Check subagent token/cost. |
|
|
966
|
-
| `/discuss
|
|
967
|
-
| `/plan
|
|
968
|
-
| `/scout
|
|
969
|
-
| `/fresh
|
|
970
|
-
| `/fresh
|
|
971
|
-
| `/fresh
|
|
972
|
-
| `/task
|
|
973
|
-
| `/be-to-fe
|
|
974
|
-
| `/platform-improve
|
|
975
|
-
| `/review` | Review diff/source. |
|
|
976
|
-
| `/commit [message/scope]` | Commit local qua workflow có guard. |
|
|
977
|
-
| `/pr [title/request]` | Chuẩn bị PR, hỏi trước khi push/GitHub write. |
|
|
975
|
+
| `/workflow discuss <request>` | Làm rõ, không sửa. |
|
|
976
|
+
| `/workflow plan <goal>` | Lập plan. |
|
|
977
|
+
| `/workflow scout <request>` | Scout/audit read-only. |
|
|
978
|
+
| `/fresh scout <request>` | Tự mở session mới rồi chạy scout workflow. |
|
|
979
|
+
| `/fresh task <request>` | Tự mở session mới rồi chạy task workflow. |
|
|
980
|
+
| `/fresh be-to-fe <request>` | Tự mở session mới rồi chạy BE-to-FE workflow. |
|
|
981
|
+
| `/workflow task <request>` | Implement task. |
|
|
982
|
+
| `/workflow be-to-fe <request>` | BE read-only, FE implementation. |
|
|
983
|
+
| `/workflow platform-improve <request>` | Cải tiến platform. |
|
|
984
|
+
| `/workflow review [scope]` | Review diff/source. |
|
|
985
|
+
| `/workflow commit [message/scope]` | Commit local qua workflow có guard. |
|
|
986
|
+
| `/workflow pr [title/request]` | Chuẩn bị PR, hỏi trước khi push/GitHub write. |
|
|
978
987
|
|
|
979
988
|
## 12. Troubleshooting
|
|
980
989
|
|
|
@@ -993,7 +1002,7 @@ Mở lại Pi session sau khi install.
|
|
|
993
1002
|
Cài lại terminal helper đúng release rồi kiểm tra `PATH`:
|
|
994
1003
|
|
|
995
1004
|
```bash
|
|
996
|
-
npm install -g --ignore-scripts @piagent/platform@1.2.
|
|
1005
|
+
npm install -g --ignore-scripts @piagent/platform@1.2.4
|
|
997
1006
|
command -v piagent-install
|
|
998
1007
|
```
|
|
999
1008
|
|
|
@@ -1053,7 +1062,7 @@ bash /path/to/piagent/scripts/configure-subagents.sh --preset safe
|
|
|
1053
1062
|
### Context quá cao
|
|
1054
1063
|
|
|
1055
1064
|
```text
|
|
1056
|
-
/
|
|
1065
|
+
/usage
|
|
1057
1066
|
/session
|
|
1058
1067
|
```
|
|
1059
1068
|
|
|
@@ -1071,7 +1080,7 @@ pi --name "Deploy monitor"
|
|
|
1071
1080
|
|
|
1072
1081
|
### Resume không đúng session
|
|
1073
1082
|
|
|
1074
|
-
Lấy session id/file từ `/
|
|
1083
|
+
Lấy session id/file từ `/usage`, rồi:
|
|
1075
1084
|
|
|
1076
1085
|
```bash
|
|
1077
1086
|
pi --session <session-id>
|
|
@@ -80,13 +80,13 @@ Manifest data never executes code. Invalid paths, symbolic links, dependency cyc
|
|
|
80
80
|
|
|
81
81
|
| Capability | Implementation |
|
|
82
82
|
|---|---|
|
|
83
|
-
| Project onboarding | `/onboard
|
|
84
|
-
| Project context index | `/context
|
|
83
|
+
| Project onboarding | `/onboard run` + `piagent_project_onboarding_record` |
|
|
84
|
+
| Project context index | `/context` + `piagent_context_index_*` |
|
|
85
85
|
| Profile switching | `/profile` + `piagent_profile_options` / `piagent_profile_apply` |
|
|
86
|
-
| Explicit memory | `/memory
|
|
87
|
-
| Task lifecycle | `/task` + task/context/verify/trace tools |
|
|
88
|
-
| Platform workflow | `/platform-improve` |
|
|
89
|
-
| Backend-readonly to frontend | `/be-to-fe` |
|
|
86
|
+
| Explicit memory | `/memory` + `piagent_memory_*` |
|
|
87
|
+
| Task lifecycle | `/workflow task` + task/context/verify/trace tools |
|
|
88
|
+
| Platform workflow | `/workflow platform-improve` |
|
|
89
|
+
| Backend-readonly to frontend | `/workflow be-to-fe` |
|
|
90
90
|
| Source cache | `piagent-source-cache` + `piagent_source_checkout` |
|
|
91
91
|
| Subagent roles | `piagent-scout`, `piagent-planner`, `piagent-worker`, `piagent-reviewer`, `piagent-oracle` |
|
|
92
92
|
| Quality benchmark | `scripts/quality-benchmark.sh` |
|
package/docs/project-adapters.md
CHANGED
|
@@ -91,7 +91,7 @@ Quy tắc:
|
|
|
91
91
|
- Mọi key project tự khai **thay thế nguyên key** của adapter, không merge từng phần tử. Khai `protectedPaths` nghĩa là project sở hữu list đó và không nhận thay đổi từ adapter nữa.
|
|
92
92
|
- Không khai `extends` thì profile giữ nguyên hành vi cũ, self-contained.
|
|
93
93
|
|
|
94
|
-
`scripts/init-project.sh` và `/onboard
|
|
94
|
+
`scripts/init-project.sh` và `/onboard` ghi dạng `extends` khi profile đến từ built-in adapter. Update platform sau đó không cần chạm vào project nào.
|
|
95
95
|
|
|
96
96
|
## Monorepo và workspace
|
|
97
97
|
|
|
@@ -133,7 +133,7 @@ Rule nằm ở `packages/piagent-core/extensions/project-shape.js`. Cả `piagen
|
|
|
133
133
|
Default UX không bắt buộc chạy bash để set profile. Sau global install, vào project chạy:
|
|
134
134
|
|
|
135
135
|
```text
|
|
136
|
-
/onboard
|
|
136
|
+
/onboard
|
|
137
137
|
```
|
|
138
138
|
|
|
139
139
|
Nếu chưa có `.pi/piagent-profile.json`, onboarding nên dùng select-style setup: chọn profile trước, rồi chọn tech theo role. Native command là:
|
|
@@ -158,7 +158,7 @@ Kết quả ghi:
|
|
|
158
158
|
|
|
159
159
|
Sau khi agent đọc Context7 cho tech tương ứng, chỉ record snapshot ngắn bằng `piagent_profile_tech_context_record`; không lưu nguyên văn docs dài.
|
|
160
160
|
|
|
161
|
-
`/onboard
|
|
161
|
+
`/onboard run` cũng tạo `.pi/context-index.json`. Đây là advisory node/edge/citation map cho profile, tech, verify command, docs, risk và memory pointer; không dùng thay thế source hiện tại hoặc guard policy.
|
|
162
162
|
|
|
163
163
|
Đổi profile sau này:
|
|
164
164
|
|
|
@@ -185,7 +185,7 @@ Sau khi agent đọc Context7 cho tech tương ứng, chỉ record snapshot ng
|
|
|
185
185
|
|
|
186
186
|
Auto detect là bootstrap convenience, không phải policy cuối cùng. Sau init, `.pi/piagent-profile.json` là source of truth của project.
|
|
187
187
|
|
|
188
|
-
Mọi built-in adapter đều đưa `.pi/project-context.md` vào `requiredContext`. File này được tạo dạng placeholder khi init project, rồi được model thay bằng snapshot thật sau `/onboard
|
|
188
|
+
Mọi built-in adapter đều đưa `.pi/project-context.md` vào `requiredContext`. File này được tạo dạng placeholder khi init project, rồi được model thay bằng snapshot thật sau `/onboard run`.
|
|
189
189
|
|
|
190
190
|
## Khi nào cần custom profile
|
|
191
191
|
|