@piagent/platform 1.8.0 → 1.9.0
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/AGENTS.md +7 -0
- package/CHANGELOG.md +97 -1
- package/README.md +45 -70
- package/README.vi.md +34 -61
- package/architecture/layers.json +16 -3
- package/catalog/capabilities.json +14 -7
- package/catalog/claude-model-additions.json +42 -0
- package/docs/auto-delegation-policy.md +2 -0
- package/docs/command-reference-vietnamese.md +68 -90
- package/docs/context-window-policy.md +5 -5
- package/docs/distribution-standard.md +13 -16
- package/docs/en/architecture.md +9 -1
- package/docs/herdr-workflow.md +2 -3
- package/docs/languages.json +4 -4
- package/docs/managed-local-acceptance.md +403 -0
- package/docs/mcp-and-tools.md +5 -7
- package/docs/memory-policy.md +3 -3
- package/docs/model-options.md +2 -2
- package/docs/oauth-providers.md +1 -1
- package/docs/operator-manual-vietnamese.md +82 -127
- package/docs/package-architecture-notes.md +4 -4
- package/docs/piagent-core-improvement-plan.md +3 -5
- package/docs/piagent-core-plan-checkpoint-2026-09-06.json +2 -13
- package/docs/piagent-runtime-benchmark-execution-plan.md +10 -8
- package/docs/project-adapters.md +3 -3
- package/docs/project-onboarding.md +15 -16
- package/docs/publishing-for-teams.md +2 -1
- package/docs/quality-benchmark.md +2 -0
- package/docs/quickstart-vietnamese.md +23 -24
- package/docs/release-install-policy.md +3 -2
- package/docs/research/harness-next-evidence-review.md +7 -7
- package/docs/runtime-harness-standard.md +2 -0
- package/docs/runtime-policy-design.md +2 -0
- package/docs/runtime-quality-baseline.md +2 -0
- package/docs/subagent-orchestration-capabilities.md +1 -1
- package/docs/subagents-and-multiagent.md +10 -8
- package/docs/task-implementation-contract.md +2 -0
- package/docs/task-lifecycle-vietnamese.md +2 -0
- package/docs/team-onboarding.md +28 -59
- package/docs/usage-observability.md +2 -2
- package/docs/vi/architecture.md +9 -1
- package/docs/workflow-recipes.md +6 -10
- package/docs-site/architecture.html +4 -3
- package/docs-site/assets/docs.css +80 -0
- package/docs-site/benchmark.html +7 -1
- package/docs-site/commands.html +37 -23
- package/docs-site/content/architecture.html +2 -2
- package/docs-site/content/benchmark.html +5 -0
- package/docs-site/content/commands.html +35 -22
- package/docs-site/content/ecosystem.html +144 -0
- package/docs-site/content/en/architecture.html +1 -1
- package/docs-site/content/en/benchmark.html +5 -0
- package/docs-site/content/en/commands.html +30 -13
- package/docs-site/content/en/ecosystem.html +144 -0
- package/docs-site/content/en/index.html +24 -9
- package/docs-site/content/en/quickstart.html +10 -12
- package/docs-site/content/en/security.html +1 -1
- package/docs-site/content/en/team.html +2 -2
- package/docs-site/content/en/whats-new.html +77 -1
- package/docs-site/content/en/workflows.html +29 -31
- package/docs-site/content/index.html +24 -9
- package/docs-site/content/quickstart.html +10 -12
- package/docs-site/content/security.html +2 -2
- package/docs-site/content/team.html +2 -2
- package/docs-site/content/whats-new.html +77 -1
- package/docs-site/content/workflows.html +36 -38
- package/docs-site/context-engine.html +2 -1
- package/docs-site/ecosystem.html +283 -0
- package/docs-site/en/architecture.html +3 -2
- package/docs-site/en/benchmark.html +7 -1
- package/docs-site/en/commands.html +32 -14
- package/docs-site/en/context-engine.html +2 -1
- package/docs-site/en/ecosystem.html +283 -0
- package/docs-site/en/index.html +30 -14
- package/docs-site/en/mcp-approval.html +2 -1
- package/docs-site/en/mcp-auth.html +2 -1
- package/docs-site/en/mcp-servers.html +2 -1
- package/docs-site/en/mcp.html +2 -1
- package/docs-site/en/permissions.html +2 -1
- package/docs-site/en/profiles.html +2 -1
- package/docs-site/en/quickstart.html +17 -18
- package/docs-site/en/runtime.html +2 -1
- package/docs-site/en/scope.html +2 -1
- package/docs-site/en/security.html +6 -5
- package/docs-site/en/team.html +4 -3
- package/docs-site/en/whats-new.html +85 -8
- package/docs-site/en/workflows.html +34 -35
- package/docs-site/index.html +30 -14
- package/docs-site/mcp-approval.html +2 -1
- package/docs-site/mcp-auth.html +2 -1
- package/docs-site/mcp-servers.html +2 -1
- package/docs-site/mcp.html +2 -1
- package/docs-site/permissions.html +2 -1
- package/docs-site/profiles.html +2 -1
- package/docs-site/quickstart.html +17 -18
- package/docs-site/runtime.html +2 -1
- package/docs-site/scope.html +2 -1
- package/docs-site/security.html +7 -6
- package/docs-site/team.html +4 -3
- package/docs-site/whats-new.html +85 -8
- package/docs-site/workflows.html +41 -42
- package/evals/fs5-causal-arm.v1.json +2 -2
- package/evals/private-holdout-v1/CURRENT_BOUNDARY.md +17 -0
- package/evals/private-holdout-v1/public-exposure.v2.json +2 -2
- package/package.json +8 -7
- package/packages/piagent-core/README.md +15 -23
- package/packages/piagent-core/docs/context-efficiency-improvement-plan.md +2 -0
- package/packages/piagent-core/extensions/experiment-loop-policy.ts +75 -0
- package/packages/piagent-core/extensions/local-state-path.js +15 -0
- package/packages/piagent-core/extensions/piagent-guard.ts +108 -960
- package/packages/piagent-core/extensions/policy-core.js +2 -2
- package/packages/piagent-core/extensions/source-checkout-paths.ts +54 -0
- package/packages/piagent-core/managed/broker-client.mjs +49 -0
- package/packages/piagent-core/managed/capabilities.mjs +28 -0
- package/packages/piagent-core/managed/compaction.mjs +63 -0
- package/packages/piagent-core/managed/doctor.mjs +107 -0
- package/packages/piagent-core/managed/native-catalog.mjs +42 -0
- package/packages/piagent-core/managed/patch-snapshot.mjs +48 -0
- package/packages/piagent-core/managed/repository-operation.mjs +84 -0
- package/packages/piagent-core/managed/request-stream.mjs +129 -0
- package/packages/piagent-core/managed/resource-loader.mjs +42 -0
- package/packages/piagent-core/managed/review-snapshot-worker.mjs +27 -0
- package/packages/piagent-core/managed/sandbox-diagnostic.mjs +12 -0
- package/packages/piagent-core/managed/search-fallback.mjs +93 -0
- package/packages/piagent-core/managed/session.mjs +472 -0
- package/packages/piagent-core/managed/store.d.mts +3 -0
- package/packages/piagent-core/managed/store.mjs +64 -0
- package/packages/piagent-core/managed/tool-boundary.mjs +243 -0
- package/packages/piagent-core/managed/tool-worker.mjs +36 -0
- package/packages/piagent-core/managed/toolchain.mjs +120 -0
- package/packages/piagent-core/managed/web-fetch.mjs +105 -0
- package/packages/piagent-core/managed/web-search.mjs +96 -0
- package/packages/piagent-core/managed/workflow.mjs +299 -0
- package/packages/piagent-core/package.json +2 -5
- package/packages/piagent-core/policies/base-policy.json +80 -26
- package/packages/piagent-core/runtime/hooks/agent-start-hook.ts +3 -3
- package/packages/piagent-core/runtime/hooks/input-hook.ts +35 -196
- package/packages/piagent-core/runtime/hooks/session-start-hook.ts +2 -0
- package/packages/piagent-core/runtime/inspection/approval-broker.ts +9 -1
- package/packages/piagent-core/runtime/managed-failure.d.mts +10 -0
- package/packages/piagent-core/runtime/managed-failure.mjs +164 -0
- package/packages/piagent-core/runtime/orchestration/minimal-delegation-policy.ts +8 -29
- package/packages/piagent-core/runtime/orchestration/owned-work-budget.ts +1 -1
- package/packages/piagent-core/runtime/policy/block-remedy.ts +5 -3
- package/packages/piagent-core/runtime/registration/context-commands.ts +1 -1
- package/packages/piagent-core/runtime/registration/knowledge-tools.ts +7 -7
- package/packages/piagent-core/runtime/registration/policy-tools.ts +2 -2
- package/packages/piagent-core/runtime/registration/session-commands.ts +11 -26
- package/packages/piagent-core/runtime/registration/task-evidence-tools.ts +1 -1
- package/packages/piagent-core/runtime/session/system-prompt.ts +6 -7
- package/packages/piagent-core/runtime/workflows/webui-runtime-command.ts +6 -6
- package/packages/piagent-core/runtime/workflows/webui-workflow.ts +6 -11
- package/packages/piagent-core/security/sensitive-text.js +9 -0
- package/packages/piagent-core/skills/piagent-ops/SKILL.md +8 -10
- package/packages/piagent-core/skills/test-audit/SKILL.md +101 -0
- package/packages/piagent-core/subagents/piagent-planner.md +1 -1
- package/packages/piagent-webui/dist/client/assets/{MarkdownMessage-DMU7Xe_O.js → MarkdownMessage-Dd9wPk-v.js} +1 -1
- package/packages/piagent-webui/dist/client/assets/index-7I-50Q2U.js +228 -0
- package/packages/piagent-webui/dist/client/assets/{index-DVahUVWy.css → index-DgSmcnP8.css} +1 -1
- package/packages/piagent-webui/dist/client/index.html +2 -2
- package/packages/piagent-webui/extension/piagent-webui.ts +11 -11
- package/packages/piagent-webui/extension/session-stream-adapter.ts +3 -1
- package/packages/piagent-webui/extension/terminal-session-adapter.ts +6 -1
- package/packages/piagent-webui/gateway/company-relay.ts +308 -0
- package/packages/piagent-webui/gateway/control-socket.ts +39 -12
- package/packages/piagent-webui/gateway/gateway-service.ts +109 -28
- package/packages/piagent-webui/gateway/gateway-session-stream.ts +58 -2
- package/packages/piagent-webui/gateway/managed-gateway.mjs +41 -0
- package/packages/piagent-webui/gateway/managed-launch.ts +145 -0
- package/packages/piagent-webui/gateway/managed-projection.ts +20 -0
- package/packages/piagent-webui/gateway/pi-host.ts +22 -4
- package/packages/piagent-webui/gateway/runtime-session-controls.ts +5 -2
- package/packages/piagent-webui/gateway/session-approval-authority.ts +28 -0
- package/packages/piagent-webui/gateway/session-catalog.ts +11 -3
- package/packages/piagent-webui/gateway/session-command-controller.ts +8 -2
- package/packages/piagent-webui/gateway/session-file-facts.ts +25 -0
- package/packages/piagent-webui/gateway/session-inspection-registry.ts +40 -9
- package/packages/piagent-webui/gateway/session-list-cache.ts +68 -0
- package/packages/piagent-webui/gateway/session-runtime-ownership.ts +8 -1
- package/packages/piagent-webui/gateway/session-runtime-supervisor.ts +20 -27
- package/packages/piagent-webui/ownership/managed-terminal-lease.ts +27 -0
- package/packages/piagent-webui/ownership/profile-state.ts +2 -0
- package/packages/piagent-webui/ownership/session-lease-store.ts +22 -1
- package/packages/piagent-webui/server/approval-projection.ts +9 -0
- package/packages/piagent-webui/server/core-inspection-provider.ts +4 -9
- package/packages/piagent-webui/server/loopback-server.ts +37 -1
- package/packages/piagent-webui/server/message-stop-reason.ts +11 -0
- package/packages/piagent-webui/server/tool-call-summary.ts +185 -0
- package/packages/piagent-webui/server/transcript-projection.ts +86 -3
- package/packs/engineering-base/pack.json +4 -0
- package/schemas/piagent-webui/runtime-command-v1.schema.json +1 -2
- package/schemas/piagent-webui/session-catalog-v1.schema.json +8 -0
- package/schemas/piagent-webui/transcript-v1.schema.json +94 -1
- package/scripts/build-docs-site.mjs +23 -12
- package/scripts/check-public-wording.mjs +5 -6
- package/scripts/check-runtime-advisories.mjs +23 -6
- package/scripts/claude-model-additions.mjs +33 -0
- package/scripts/configure-model-scope.sh +30 -6
- package/scripts/configure-subagents.sh +1 -1
- package/scripts/explain-command.mjs +5 -6
- package/scripts/model-scope-prune.mjs +75 -0
- package/scripts/phase-tools-evaluation.mjs +9 -4
- package/scripts/piagent-cli.mjs +51 -2
- package/scripts/piagent-dashboard.mjs +27 -4
- package/scripts/piagent-installations.mjs +26 -0
- package/scripts/piagent-studio.mjs +155 -0
- package/scripts/runtime-advisory-exceptions.json +29 -0
- package/scripts/team-doctor.sh +20 -1
- package/scripts/typescript-loader.mjs +6 -0
- package/scripts/verify-local.sh +2 -2
- package/templates/global/settings.json +3 -1
- package/templates/project/.pi/project-context.md +3 -3
- package/templates/project/AGENTS.md +4 -5
- package/docs/piagent-core-reasoning-research-2026-09-06.md +0 -225
- package/docs/piagent-core-research-sources-2026-09-06.json +0 -416
- package/packages/piagent-webui/dist/client/assets/index-Cui9AAV_.js +0 -176
package/docs/workflow-recipes.md
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
## Mục tiêu
|
|
5
5
|
|
|
6
|
-
Các recipe này biến những bài toán lặp lại thành
|
|
6
|
+
Các recipe này biến những bài toán lặp lại thành cách yêu cầu rõ ràng, dùng được cho project khác mà không phụ thuộc một project nội bộ cụ thể. Từ bản 1.9.0 không còn `/workflow` hay `/onboard`: mỗi recipe là một yêu cầu bằng lời thường.
|
|
7
7
|
|
|
8
8
|
## Recipe 1 — Platform improvement
|
|
9
9
|
|
|
@@ -12,11 +12,11 @@ Dùng khi muốn cải tiến setup, prompt, MCP, model scope, memory, runtime p
|
|
|
12
12
|
Lệnh trong Pi:
|
|
13
13
|
|
|
14
14
|
```text
|
|
15
|
-
|
|
16
|
-
/onboard run
|
|
17
|
-
/workflow platform-improve Improve <target behavior> in <platform area>.
|
|
15
|
+
Improve <target behavior> in <platform area>.
|
|
18
16
|
```
|
|
19
17
|
|
|
18
|
+
Nếu project chưa onboard, nhờ agent "đọc project (chỉ đọc) và ghi lại project context" trước.
|
|
19
|
+
|
|
20
20
|
Input tối thiểu:
|
|
21
21
|
|
|
22
22
|
- source docs URL hoặc repo URL nếu task cần external context;
|
|
@@ -60,9 +60,7 @@ Setup project generic:
|
|
|
60
60
|
Lệnh trong Pi:
|
|
61
61
|
|
|
62
62
|
```text
|
|
63
|
-
/
|
|
64
|
-
/onboard run
|
|
65
|
-
/workflow be-to-fe Implement FE from BE spec: <endpoint/spec/change>
|
|
63
|
+
Implement FE from BE spec: <endpoint/spec/change>. Backend is read-only.
|
|
66
64
|
```
|
|
67
65
|
|
|
68
66
|
Input tối thiểu:
|
|
@@ -115,8 +113,6 @@ Rule:
|
|
|
115
113
|
Dùng khi muốn giảm scout lại giữa các session mà không bật auto memory.
|
|
116
114
|
|
|
117
115
|
```text
|
|
118
|
-
/onboard
|
|
119
|
-
/onboard run
|
|
120
116
|
/context index
|
|
121
117
|
/context search auth
|
|
122
118
|
```
|
|
@@ -126,4 +122,4 @@ Rule:
|
|
|
126
122
|
1. Context index là advisory map, không phải source of truth.
|
|
127
123
|
2. Node/edge phải ngắn và có citation tới file/doc/task đã verify.
|
|
128
124
|
3. Không lưu raw transcript, secret, token, session, hoặc source excerpt dài.
|
|
129
|
-
4. Nếu index stale so với profile/tech/onboarding snapshot,
|
|
125
|
+
4. Nếu index stale so với profile/tech/onboarding snapshot, nhờ agent onboard lại hoặc record lại bằng `piagent_context_index_record`.
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
<span>Pi Agent Platform</span>
|
|
31
31
|
</a>
|
|
32
32
|
<div class="top-actions">
|
|
33
|
-
<span class="pill"><span class="pill-dot"></span>v1.
|
|
33
|
+
<span class="pill"><span class="pill-dot"></span>v1.9.0 docs · VI</span>
|
|
34
34
|
<nav class="language-switch" aria-label="Ngôn ngữ">
|
|
35
35
|
<a class="language-option current" href="/architecture" hreflang="vi" lang="vi" aria-current="true">VI</a>
|
|
36
36
|
<a class="language-option" href="/en/architecture" hreflang="en" lang="en">EN</a>
|
|
@@ -59,6 +59,7 @@
|
|
|
59
59
|
<div class="nav-group">
|
|
60
60
|
<p class="nav-title">Get started</p>
|
|
61
61
|
<a class="nav-link" href="/">Overview</a>
|
|
62
|
+
<a class="nav-link" href="/ecosystem">Hệ sinh thái</a>
|
|
62
63
|
<a class="nav-link" href="/quickstart">Quickstart</a>
|
|
63
64
|
<a class="nav-link" href="/whats-new">Có gì mới</a>
|
|
64
65
|
<a class="nav-link" href="/scope">Phạm vi platform</a>
|
|
@@ -147,8 +148,8 @@
|
|
|
147
148
|
<p><span class="inline-code">runtime/context/adaptive-planner.ts</span> chọn budget, retrieval lane, code inclusion và plan receipt theo phase, context pressure, model capability và thinking level.</p>
|
|
148
149
|
</article>
|
|
149
150
|
<article class="card">
|
|
150
|
-
<h3>
|
|
151
|
-
<p><span class="inline-code">extensions/task-journal.js</span>
|
|
151
|
+
<h3>Lịch sử task cũ</h3>
|
|
152
|
+
<p><span class="inline-code">extensions/task-journal.js</span> vẫn đọc checkpoint của các task tạo trước bản 1.9.0 để xem lại; session mới không ghi task nữa.</p>
|
|
152
153
|
</article>
|
|
153
154
|
<article class="card">
|
|
154
155
|
<h3>Repository memory</h3>
|
|
@@ -1457,3 +1457,83 @@ h3[id] {
|
|
|
1457
1457
|
display: none;
|
|
1458
1458
|
}
|
|
1459
1459
|
}
|
|
1460
|
+
|
|
1461
|
+
/* Screenshots and diagrams. Screenshots are taken from the dashboard in dark
|
|
1462
|
+
mode so they sit on the page without a bright frame. */
|
|
1463
|
+
.shot {
|
|
1464
|
+
margin: 28px 0 0;
|
|
1465
|
+
border: 1px solid var(--line);
|
|
1466
|
+
border-radius: 18px;
|
|
1467
|
+
overflow: hidden;
|
|
1468
|
+
background: var(--panel);
|
|
1469
|
+
box-shadow: var(--shadow);
|
|
1470
|
+
}
|
|
1471
|
+
|
|
1472
|
+
.shot img {
|
|
1473
|
+
display: block;
|
|
1474
|
+
width: 100%;
|
|
1475
|
+
height: auto;
|
|
1476
|
+
}
|
|
1477
|
+
|
|
1478
|
+
.shot figcaption {
|
|
1479
|
+
padding: 12px 18px 14px;
|
|
1480
|
+
border-top: 1px solid var(--line-soft);
|
|
1481
|
+
color: var(--muted);
|
|
1482
|
+
font-size: 0.92rem;
|
|
1483
|
+
}
|
|
1484
|
+
|
|
1485
|
+
.shot-grid {
|
|
1486
|
+
display: grid;
|
|
1487
|
+
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
1488
|
+
gap: 20px;
|
|
1489
|
+
margin-top: 24px;
|
|
1490
|
+
}
|
|
1491
|
+
|
|
1492
|
+
.shot-grid .shot {
|
|
1493
|
+
margin: 0;
|
|
1494
|
+
}
|
|
1495
|
+
|
|
1496
|
+
.diagram {
|
|
1497
|
+
margin: 24px 0 0;
|
|
1498
|
+
padding: 18px;
|
|
1499
|
+
border: 1px solid var(--line);
|
|
1500
|
+
border-radius: var(--radius);
|
|
1501
|
+
background: var(--bg-soft);
|
|
1502
|
+
overflow-x: auto;
|
|
1503
|
+
}
|
|
1504
|
+
|
|
1505
|
+
.diagram svg {
|
|
1506
|
+
display: block;
|
|
1507
|
+
width: 100%;
|
|
1508
|
+
min-width: 720px;
|
|
1509
|
+
height: auto;
|
|
1510
|
+
}
|
|
1511
|
+
|
|
1512
|
+
.diagram-hint {
|
|
1513
|
+
display: none;
|
|
1514
|
+
margin-top: 8px;
|
|
1515
|
+
color: var(--muted-2);
|
|
1516
|
+
font-size: 0.85rem;
|
|
1517
|
+
}
|
|
1518
|
+
|
|
1519
|
+
@media (max-width: 860px) {
|
|
1520
|
+
.shot-grid {
|
|
1521
|
+
grid-template-columns: 1fr;
|
|
1522
|
+
}
|
|
1523
|
+
|
|
1524
|
+
.diagram-hint {
|
|
1525
|
+
display: block;
|
|
1526
|
+
}
|
|
1527
|
+
|
|
1528
|
+
.diagram {
|
|
1529
|
+
padding: 10px;
|
|
1530
|
+
}
|
|
1531
|
+
}
|
|
1532
|
+
|
|
1533
|
+
/* Long unbroken tokens (commit hashes, run ids) in running text wrap instead
|
|
1534
|
+
of widening the page on a phone. */
|
|
1535
|
+
p code,
|
|
1536
|
+
li code,
|
|
1537
|
+
td code {
|
|
1538
|
+
overflow-wrap: anywhere;
|
|
1539
|
+
}
|
package/docs-site/benchmark.html
CHANGED
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
<span>Pi Agent Platform</span>
|
|
31
31
|
</a>
|
|
32
32
|
<div class="top-actions">
|
|
33
|
-
<span class="pill"><span class="pill-dot"></span>v1.
|
|
33
|
+
<span class="pill"><span class="pill-dot"></span>v1.9.0 docs · VI</span>
|
|
34
34
|
<nav class="language-switch" aria-label="Ngôn ngữ">
|
|
35
35
|
<a class="language-option current" href="/benchmark" hreflang="vi" lang="vi" aria-current="true">VI</a>
|
|
36
36
|
<a class="language-option" href="/en/benchmark" hreflang="en" lang="en">EN</a>
|
|
@@ -59,6 +59,7 @@
|
|
|
59
59
|
<div class="nav-group">
|
|
60
60
|
<p class="nav-title">Get started</p>
|
|
61
61
|
<a class="nav-link" href="/">Overview</a>
|
|
62
|
+
<a class="nav-link" href="/ecosystem">Hệ sinh thái</a>
|
|
62
63
|
<a class="nav-link" href="/quickstart">Quickstart</a>
|
|
63
64
|
<a class="nav-link" href="/whats-new">Có gì mới</a>
|
|
64
65
|
<a class="nav-link" href="/scope">Phạm vi platform</a>
|
|
@@ -102,6 +103,11 @@
|
|
|
102
103
|
<h1>Bằng chứng chất lượng và hiệu suất</h1>
|
|
103
104
|
<p>Production benchmark so sánh Piagent với surface codex-cli trên cùng model, cùng thinking level, 18 nhóm bài và 108 session được chấm tự động.</p>
|
|
104
105
|
</div>
|
|
106
|
+
<div class="callout">
|
|
107
|
+
<strong>Số liệu lịch sử</strong>
|
|
108
|
+
<p>Phép đo này chạy ở v1.6.0, khi session còn task contract và các lệnh workflow. Bản 1.9.0 làm việc theo lời thường và chưa đo lại; đừng dùng các con số dưới đây cho 1.9.0.</p>
|
|
109
|
+
</div>
|
|
110
|
+
|
|
105
111
|
<section class="benchmark-summary" aria-labelledby="benchmark-verdict">
|
|
106
112
|
<div class="benchmark-verdict">
|
|
107
113
|
<div>
|
package/docs-site/commands.html
CHANGED
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
<span>Pi Agent Platform</span>
|
|
31
31
|
</a>
|
|
32
32
|
<div class="top-actions">
|
|
33
|
-
<span class="pill"><span class="pill-dot"></span>v1.
|
|
33
|
+
<span class="pill"><span class="pill-dot"></span>v1.9.0 docs · VI</span>
|
|
34
34
|
<nav class="language-switch" aria-label="Ngôn ngữ">
|
|
35
35
|
<a class="language-option current" href="/commands" hreflang="vi" lang="vi" aria-current="true">VI</a>
|
|
36
36
|
<a class="language-option" href="/en/commands" hreflang="en" lang="en">EN</a>
|
|
@@ -59,6 +59,7 @@
|
|
|
59
59
|
<div class="nav-group">
|
|
60
60
|
<p class="nav-title">Get started</p>
|
|
61
61
|
<a class="nav-link" href="/">Overview</a>
|
|
62
|
+
<a class="nav-link" href="/ecosystem">Hệ sinh thái</a>
|
|
62
63
|
<a class="nav-link" href="/quickstart">Quickstart</a>
|
|
63
64
|
<a class="nav-link" href="/whats-new">Có gì mới</a>
|
|
64
65
|
<a class="nav-link" href="/scope">Phạm vi platform</a>
|
|
@@ -110,7 +111,6 @@
|
|
|
110
111
|
<div class="tag-list">
|
|
111
112
|
<span class="tag">/login</span>
|
|
112
113
|
<span class="tag">/model</span>
|
|
113
|
-
<span class="tag">/commands</span>
|
|
114
114
|
<span class="tag">/piagent-status</span>
|
|
115
115
|
<span class="tag">/piagent-inspector</span>
|
|
116
116
|
<span class="tag">/piagent-orchestration</span>
|
|
@@ -119,10 +119,10 @@
|
|
|
119
119
|
<span class="tag">/task-preflight</span>
|
|
120
120
|
<span class="tag">/context preflight</span>
|
|
121
121
|
<span class="tag">/name</span>
|
|
122
|
-
<span class="tag">/
|
|
122
|
+
<span class="tag">/new</span>
|
|
123
123
|
<span class="tag">/session</span>
|
|
124
124
|
</div>
|
|
125
|
-
<p>Dùng để setup session, chọn model, xem profile/usage/orchestration và quyết định có cần
|
|
125
|
+
<p>Dùng để setup session, chọn model, xem profile/usage/orchestration và quyết định có cần mở session mới (<span class="inline-code">/new</span>) trước việc lớn không.</p>
|
|
126
126
|
</article>
|
|
127
127
|
<article class="card">
|
|
128
128
|
<h3 id="project-profile">Project profile</h3>
|
|
@@ -139,35 +139,32 @@
|
|
|
139
139
|
<p>Áp profile trực tiếp hoặc mở select option để chọn profile/tech stack. Output ngắn, không yêu cầu model giải thích dài.</p>
|
|
140
140
|
</article>
|
|
141
141
|
<article class="card">
|
|
142
|
-
<h3 id="implementation-workflow">
|
|
142
|
+
<h3 id="implementation-workflow">Giao việc</h3>
|
|
143
143
|
<div class="tag-list">
|
|
144
|
-
<span class="tag"
|
|
145
|
-
<span class="tag"
|
|
146
|
-
<span class="tag"
|
|
147
|
-
<span class="tag"
|
|
148
|
-
<span class="tag">/workflow scout</span>
|
|
149
|
-
<span class="tag">/workflow discuss</span>
|
|
144
|
+
<span class="tag">lời thường</span>
|
|
145
|
+
<span class="tag">chỉ đọc, không sửa</span>
|
|
146
|
+
<span class="tag">lập plan trước</span>
|
|
147
|
+
<span class="tag">review diff</span>
|
|
150
148
|
</div>
|
|
151
|
-
<p>
|
|
149
|
+
<p>Từ bản 1.9.0 không còn <span class="inline-code">/workflow</span>, <span class="inline-code">/task</span> hay task contract: nói việc cần làm bằng lời thường; guard kiểm tra từng tool call.</p>
|
|
152
150
|
</article>
|
|
153
151
|
<article class="card">
|
|
154
152
|
<h3 id="git-handoff">Git handoff</h3>
|
|
155
153
|
<div class="tag-list">
|
|
156
|
-
<span class="tag"
|
|
157
|
-
<span class="tag"
|
|
154
|
+
<span class="tag">commit bằng lời thường</span>
|
|
155
|
+
<span class="tag">draft PR bằng lời thường</span>
|
|
158
156
|
<span class="tag">git status</span>
|
|
159
157
|
<span class="tag">git diff</span>
|
|
160
158
|
</div>
|
|
161
|
-
<p>Không cần namespace <span class="inline-code">/git</span>. Commit/PR
|
|
159
|
+
<p>Không cần namespace <span class="inline-code">/git</span>. Commit/PR là yêu cầu thường; push, ghi lên GitHub và stage rộng như <span class="inline-code">git add -A</span> cần xác nhận.</p>
|
|
162
160
|
</article>
|
|
163
161
|
<article class="card">
|
|
164
|
-
<h3 id="fresh-sessions">
|
|
162
|
+
<h3 id="fresh-sessions">Session mới</h3>
|
|
165
163
|
<div class="tag-list">
|
|
166
|
-
<span class="tag">/
|
|
167
|
-
<span class="tag">/
|
|
168
|
-
<span class="tag">/fresh be-to-fe</span>
|
|
164
|
+
<span class="tag">/new</span>
|
|
165
|
+
<span class="tag">/compact</span>
|
|
169
166
|
</div>
|
|
170
|
-
<p>Dùng khi context đã nặng hoặc cần một session sạch cho
|
|
167
|
+
<p>Dùng khi context đã nặng hoặc cần một session sạch cho việc mới (<span class="inline-code">/fresh</span> đã bỏ từ bản 1.9.0).</p>
|
|
171
168
|
</article>
|
|
172
169
|
<article class="card">
|
|
173
170
|
<h3 id="mcp">MCP</h3>
|
|
@@ -201,9 +198,9 @@
|
|
|
201
198
|
<p>Xem intent, risk, scope, runtime, solver route, phase, tool/helper recommendation, backend, approval và blocker trước khi bắt đầu.</p>
|
|
202
199
|
</article>
|
|
203
200
|
<article class="command-card">
|
|
204
|
-
<header><span>
|
|
201
|
+
<header><span>Trạng thái session</span><button class="clip-btn" data-clip="/piagent-status">Lấy lệnh</button></header>
|
|
205
202
|
<pre><code>/piagent-status</code></pre>
|
|
206
|
-
<p
|
|
203
|
+
<p>Profile, guard, runtime và model đang dùng của session. Không sửa file, không chạy lại check và không mở lượt model.</p>
|
|
207
204
|
</article>
|
|
208
205
|
<article class="command-card">
|
|
209
206
|
<header><span>Activity, diff và context</span><button class="clip-btn" data-clip="/piagent-inspector">Lấy lệnh</button></header>
|
|
@@ -223,7 +220,24 @@
|
|
|
223
220
|
</div>
|
|
224
221
|
<div class="callout">
|
|
225
222
|
<strong>Diff rõ nguồn, token không ước lượng.</strong>
|
|
226
|
-
<p>Footer status dùng file
|
|
223
|
+
<p>Footer status dùng các file đã quan sát trong session để cập nhật nhanh; view <span class="inline-code">files</span> tính exact snapshot delta và đánh dấu <span class="inline-code">mixed-working-tree</span> nếu lượt làm việc đụng file đã dirty từ trước. Pi chỉ cung cấp model usage theo turn/session, nên token theo từng built-in tool luôn hiện unavailable.</p>
|
|
224
|
+
</div>
|
|
225
|
+
</section>
|
|
226
|
+
|
|
227
|
+
<section class="section">
|
|
228
|
+
<p class="section-kicker">Skill và package tùy chọn</p>
|
|
229
|
+
<h2 id="skill-va-package">Kiểm tra chất lượng test, chạy vòng thử nghiệm</h2>
|
|
230
|
+
<div class="command-grid">
|
|
231
|
+
<article class="command-card">
|
|
232
|
+
<header><span>Rà soát test</span><button class="clip-btn" data-clip="/skill:test-audit rà soát test của module thanh toán">Lấy lệnh</button></header>
|
|
233
|
+
<pre><code>/skill:test-audit rà soát test của module thanh toán</code></pre>
|
|
234
|
+
<p>Skill <span class="inline-code">test-audit</span> đi kèm Piagent: chặn test mới không bảo vệ hành vi nào, tìm test trùng, test bám vào cách cài đặt và code chỉ tồn tại để phục vụ test. Agent tự dùng khi viết hay sửa test; gõ lệnh trên để rà cả một vùng.</p>
|
|
235
|
+
</article>
|
|
236
|
+
<article class="command-card">
|
|
237
|
+
<header><span>Vòng thử nghiệm</span><button class="clip-btn" data-clip="git switch -c experiment/toc-do-test">Lấy lệnh</button></header>
|
|
238
|
+
<pre><code>git switch -c experiment/toc-do-test</code></pre>
|
|
239
|
+
<p>Nếu cài thêm package có vòng thử nghiệm tự động (<span class="inline-code">run_experiment</span>, <span class="inline-code">log_experiment</span>): guard kiểm lệnh thử như mọi lệnh shell, và chỉ cho vòng lặp chạy trên nhánh <span class="inline-code">experiment/</span> hoặc worktree riêng, bắt đầu khi không còn thay đổi chưa commit, vì mỗi lần bỏ một ý tưởng nó xóa mọi thay đổi chưa commit.</p>
|
|
240
|
+
</article>
|
|
227
241
|
</div>
|
|
228
242
|
</section>
|
|
229
243
|
<nav class="pager" aria-label="Trang kế tiếp">
|
|
@@ -43,8 +43,8 @@
|
|
|
43
43
|
<p><span class="inline-code">runtime/context/adaptive-planner.ts</span> chọn budget, retrieval lane, code inclusion và plan receipt theo phase, context pressure, model capability và thinking level.</p>
|
|
44
44
|
</article>
|
|
45
45
|
<article class="card">
|
|
46
|
-
<h3>
|
|
47
|
-
<p><span class="inline-code">extensions/task-journal.js</span>
|
|
46
|
+
<h3>Lịch sử task cũ</h3>
|
|
47
|
+
<p><span class="inline-code">extensions/task-journal.js</span> vẫn đọc checkpoint của các task tạo trước bản 1.9.0 để xem lại; session mới không ghi task nữa.</p>
|
|
48
48
|
</article>
|
|
49
49
|
<article class="card">
|
|
50
50
|
<h3>Repository memory</h3>
|
|
@@ -1,3 +1,8 @@
|
|
|
1
|
+
<div class="callout">
|
|
2
|
+
<strong>Số liệu lịch sử</strong>
|
|
3
|
+
<p>Phép đo này chạy ở v1.6.0, khi session còn task contract và các lệnh workflow. Bản 1.9.0 làm việc theo lời thường và chưa đo lại; đừng dùng các con số dưới đây cho 1.9.0.</p>
|
|
4
|
+
</div>
|
|
5
|
+
|
|
1
6
|
<section class="benchmark-summary" aria-labelledby="benchmark-verdict">
|
|
2
7
|
<div class="benchmark-verdict">
|
|
3
8
|
<div>
|
|
@@ -6,7 +6,6 @@
|
|
|
6
6
|
<div class="tag-list">
|
|
7
7
|
<span class="tag">/login</span>
|
|
8
8
|
<span class="tag">/model</span>
|
|
9
|
-
<span class="tag">/commands</span>
|
|
10
9
|
<span class="tag">/piagent-status</span>
|
|
11
10
|
<span class="tag">/piagent-inspector</span>
|
|
12
11
|
<span class="tag">/piagent-orchestration</span>
|
|
@@ -15,10 +14,10 @@
|
|
|
15
14
|
<span class="tag">/task-preflight</span>
|
|
16
15
|
<span class="tag">/context preflight</span>
|
|
17
16
|
<span class="tag">/name</span>
|
|
18
|
-
<span class="tag">/
|
|
17
|
+
<span class="tag">/new</span>
|
|
19
18
|
<span class="tag">/session</span>
|
|
20
19
|
</div>
|
|
21
|
-
<p>Dùng để setup session, chọn model, xem profile/usage/orchestration và quyết định có cần
|
|
20
|
+
<p>Dùng để setup session, chọn model, xem profile/usage/orchestration và quyết định có cần mở session mới (<span class="inline-code">/new</span>) trước việc lớn không.</p>
|
|
22
21
|
</article>
|
|
23
22
|
<article class="card">
|
|
24
23
|
<h3 id="project-profile">Project profile</h3>
|
|
@@ -35,35 +34,32 @@
|
|
|
35
34
|
<p>Áp profile trực tiếp hoặc mở select option để chọn profile/tech stack. Output ngắn, không yêu cầu model giải thích dài.</p>
|
|
36
35
|
</article>
|
|
37
36
|
<article class="card">
|
|
38
|
-
<h3 id="implementation-workflow">
|
|
37
|
+
<h3 id="implementation-workflow">Giao việc</h3>
|
|
39
38
|
<div class="tag-list">
|
|
40
|
-
<span class="tag"
|
|
41
|
-
<span class="tag"
|
|
42
|
-
<span class="tag"
|
|
43
|
-
<span class="tag"
|
|
44
|
-
<span class="tag">/workflow scout</span>
|
|
45
|
-
<span class="tag">/workflow discuss</span>
|
|
39
|
+
<span class="tag">lời thường</span>
|
|
40
|
+
<span class="tag">chỉ đọc, không sửa</span>
|
|
41
|
+
<span class="tag">lập plan trước</span>
|
|
42
|
+
<span class="tag">review diff</span>
|
|
46
43
|
</div>
|
|
47
|
-
<p>
|
|
44
|
+
<p>Từ bản 1.9.0 không còn <span class="inline-code">/workflow</span>, <span class="inline-code">/task</span> hay task contract: nói việc cần làm bằng lời thường; guard kiểm tra từng tool call.</p>
|
|
48
45
|
</article>
|
|
49
46
|
<article class="card">
|
|
50
47
|
<h3 id="git-handoff">Git handoff</h3>
|
|
51
48
|
<div class="tag-list">
|
|
52
|
-
<span class="tag"
|
|
53
|
-
<span class="tag"
|
|
49
|
+
<span class="tag">commit bằng lời thường</span>
|
|
50
|
+
<span class="tag">draft PR bằng lời thường</span>
|
|
54
51
|
<span class="tag">git status</span>
|
|
55
52
|
<span class="tag">git diff</span>
|
|
56
53
|
</div>
|
|
57
|
-
<p>Không cần namespace <span class="inline-code">/git</span>. Commit/PR
|
|
54
|
+
<p>Không cần namespace <span class="inline-code">/git</span>. Commit/PR là yêu cầu thường; push, ghi lên GitHub và stage rộng như <span class="inline-code">git add -A</span> cần xác nhận.</p>
|
|
58
55
|
</article>
|
|
59
56
|
<article class="card">
|
|
60
|
-
<h3 id="fresh-sessions">
|
|
57
|
+
<h3 id="fresh-sessions">Session mới</h3>
|
|
61
58
|
<div class="tag-list">
|
|
62
|
-
<span class="tag">/
|
|
63
|
-
<span class="tag">/
|
|
64
|
-
<span class="tag">/fresh be-to-fe</span>
|
|
59
|
+
<span class="tag">/new</span>
|
|
60
|
+
<span class="tag">/compact</span>
|
|
65
61
|
</div>
|
|
66
|
-
<p>Dùng khi context đã nặng hoặc cần một session sạch cho
|
|
62
|
+
<p>Dùng khi context đã nặng hoặc cần một session sạch cho việc mới (<span class="inline-code">/fresh</span> đã bỏ từ bản 1.9.0).</p>
|
|
67
63
|
</article>
|
|
68
64
|
<article class="card">
|
|
69
65
|
<h3 id="mcp">MCP</h3>
|
|
@@ -97,9 +93,9 @@
|
|
|
97
93
|
<p>Xem intent, risk, scope, runtime, solver route, phase, tool/helper recommendation, backend, approval và blocker trước khi bắt đầu.</p>
|
|
98
94
|
</article>
|
|
99
95
|
<article class="command-card">
|
|
100
|
-
<header><span>
|
|
96
|
+
<header><span>Trạng thái session</span><button class="clip-btn" data-clip="/piagent-status">Lấy lệnh</button></header>
|
|
101
97
|
<pre><code>/piagent-status</code></pre>
|
|
102
|
-
<p
|
|
98
|
+
<p>Profile, guard, runtime và model đang dùng của session. Không sửa file, không chạy lại check và không mở lượt model.</p>
|
|
103
99
|
</article>
|
|
104
100
|
<article class="command-card">
|
|
105
101
|
<header><span>Activity, diff và context</span><button class="clip-btn" data-clip="/piagent-inspector">Lấy lệnh</button></header>
|
|
@@ -119,6 +115,23 @@
|
|
|
119
115
|
</div>
|
|
120
116
|
<div class="callout">
|
|
121
117
|
<strong>Diff rõ nguồn, token không ước lượng.</strong>
|
|
122
|
-
<p>Footer status dùng file
|
|
118
|
+
<p>Footer status dùng các file đã quan sát trong session để cập nhật nhanh; view <span class="inline-code">files</span> tính exact snapshot delta và đánh dấu <span class="inline-code">mixed-working-tree</span> nếu lượt làm việc đụng file đã dirty từ trước. Pi chỉ cung cấp model usage theo turn/session, nên token theo từng built-in tool luôn hiện unavailable.</p>
|
|
119
|
+
</div>
|
|
120
|
+
</section>
|
|
121
|
+
|
|
122
|
+
<section class="section">
|
|
123
|
+
<p class="section-kicker">Skill và package tùy chọn</p>
|
|
124
|
+
<h2 id="skill-va-package">Kiểm tra chất lượng test, chạy vòng thử nghiệm</h2>
|
|
125
|
+
<div class="command-grid">
|
|
126
|
+
<article class="command-card">
|
|
127
|
+
<header><span>Rà soát test</span><button class="clip-btn" data-clip="/skill:test-audit rà soát test của module thanh toán">Lấy lệnh</button></header>
|
|
128
|
+
<pre><code>/skill:test-audit rà soát test của module thanh toán</code></pre>
|
|
129
|
+
<p>Skill <span class="inline-code">test-audit</span> đi kèm Piagent: chặn test mới không bảo vệ hành vi nào, tìm test trùng, test bám vào cách cài đặt và code chỉ tồn tại để phục vụ test. Agent tự dùng khi viết hay sửa test; gõ lệnh trên để rà cả một vùng.</p>
|
|
130
|
+
</article>
|
|
131
|
+
<article class="command-card">
|
|
132
|
+
<header><span>Vòng thử nghiệm</span><button class="clip-btn" data-clip="git switch -c experiment/toc-do-test">Lấy lệnh</button></header>
|
|
133
|
+
<pre><code>git switch -c experiment/toc-do-test</code></pre>
|
|
134
|
+
<p>Nếu cài thêm package có vòng thử nghiệm tự động (<span class="inline-code">run_experiment</span>, <span class="inline-code">log_experiment</span>): guard kiểm lệnh thử như mọi lệnh shell, và chỉ cho vòng lặp chạy trên nhánh <span class="inline-code">experiment/</span> hoặc worktree riêng, bắt đầu khi không còn thay đổi chưa commit, vì mỗi lần bỏ một ý tưởng nó xóa mọi thay đổi chưa commit.</p>
|
|
135
|
+
</article>
|
|
123
136
|
</div>
|
|
124
137
|
</section>
|
|
@@ -0,0 +1,144 @@
|
|
|
1
|
+
<section class="section">
|
|
2
|
+
<p class="section-kicker">Toàn cảnh</p>
|
|
3
|
+
<h2 id="toan-canh">Một dashboard, hai cách dùng model</h2>
|
|
4
|
+
<p class="section-lead">Piagent chạy trên máy từng thành viên. Ở chế độ cá nhân, nó dùng tài khoản model của chính bạn. Ở chế độ công ty, nó đi qua Agent Watch trên máy bạn và Agent Studio của công ty: công ty giữ key, chọn model và đặt quy trình kiểm tra cho cả team.</p>
|
|
5
|
+
<figure class="diagram">
|
|
6
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1120 560" role="img" aria-labelledby="eco-title eco-desc" class="eco-diagram">
|
|
7
|
+
<title id="eco-title">Hệ sinh thái Piagent</title>
|
|
8
|
+
<desc id="eco-desc">Máy của thành viên chạy Piagent (Terminal và Dashboard) với guard kiểm tra mọi tool call. Chế độ cá nhân gọi thẳng model bằng tài khoản riêng. Chế độ công ty đi qua Agent Watch giữ key trong Keychain và Agent Studio của công ty, nơi chọn model và Harness cho từng lượt.</desc>
|
|
9
|
+
<defs>
|
|
10
|
+
<marker id="eco-arrow" viewBox="0 0 10 10" refX="9" refY="5" markerWidth="7" markerHeight="7" orient="auto-start-reverse"><path d="M0 0 L10 5 L0 10 z" fill="#8be9c8"/></marker>
|
|
11
|
+
<marker id="eco-arrow-lime" viewBox="0 0 10 10" refX="9" refY="5" markerWidth="7" markerHeight="7" orient="auto-start-reverse"><path d="M0 0 L10 5 L0 10 z" fill="#d8ff7a"/></marker>
|
|
12
|
+
</defs>
|
|
13
|
+
<style>
|
|
14
|
+
.eco-box { fill: #101114; stroke: #2c2f37; stroke-width: 1.5; }
|
|
15
|
+
.eco-zone { fill: rgba(255,255,255,0.015); stroke: #24262d; stroke-width: 1.2; stroke-dasharray: 6 6; }
|
|
16
|
+
.eco-h { fill: #f4f4ef; font: 600 17px "Be Vietnam Pro", system-ui, sans-serif; }
|
|
17
|
+
.eco-t { fill: #a4a6ad; font: 400 13.5px "Be Vietnam Pro", system-ui, sans-serif; }
|
|
18
|
+
.eco-k { fill: #71747d; font: 600 12px "Be Vietnam Pro", system-ui, sans-serif; letter-spacing: .12em; text-transform: uppercase; }
|
|
19
|
+
.eco-chip { fill: rgba(216,255,122,0.08); stroke: rgba(216,255,122,0.35); }
|
|
20
|
+
.eco-chip-t { fill: #d8ff7a; font: 600 12.5px "JetBrains Mono", ui-monospace, monospace; }
|
|
21
|
+
.eco-line { stroke: #8be9c8; stroke-width: 1.8; fill: none; }
|
|
22
|
+
.eco-line-lime { stroke: #d8ff7a; stroke-width: 1.8; fill: none; stroke-dasharray: 7 6; }
|
|
23
|
+
.eco-label { fill: #8be9c8; font: 500 12.5px "Be Vietnam Pro", system-ui, sans-serif; }
|
|
24
|
+
.eco-label-lime { fill: #d8ff7a; font: 500 12.5px "Be Vietnam Pro", system-ui, sans-serif; }
|
|
25
|
+
</style>
|
|
26
|
+
<rect class="eco-zone" x="16" y="16" width="420" height="528" rx="22"/>
|
|
27
|
+
<text class="eco-k" x="40" y="48">Máy của thành viên</text>
|
|
28
|
+
<rect class="eco-box" x="40" y="68" width="372" height="96" rx="16"/>
|
|
29
|
+
<text class="eco-h" x="62" y="102">Piagent · Terminal và Dashboard</text>
|
|
30
|
+
<text class="eco-t" x="62" y="128">Nói việc bằng lời thường; cùng một lịch sử</text>
|
|
31
|
+
<text class="eco-t" x="62" y="148">trong Terminal (pi) và trình duyệt.</text>
|
|
32
|
+
<rect class="eco-box" x="40" y="184" width="372" height="116" rx="16"/>
|
|
33
|
+
<text class="eco-h" x="62" y="218">Guard</text>
|
|
34
|
+
<text class="eco-t" x="62" y="244">Kiểm tra mọi tool call: file bảo vệ, profile</text>
|
|
35
|
+
<text class="eco-t" x="62" y="264">quyền, file quá lớn, sửa trên bản đã cũ;</text>
|
|
36
|
+
<text class="eco-t" x="62" y="284">push, publish, lệnh có mạng chờ bạn duyệt.</text>
|
|
37
|
+
<rect class="eco-box" x="40" y="320" width="372" height="96" rx="16"/>
|
|
38
|
+
<text class="eco-h" x="62" y="354">Sandbox của chế độ công ty</text>
|
|
39
|
+
<text class="eco-t" x="62" y="380">Lệnh chạy không mạng, không đọc Keychain,</text>
|
|
40
|
+
<text class="eco-t" x="62" y="400">.env hay SSH key; mạng chỉ mở theo lần duyệt.</text>
|
|
41
|
+
<rect class="eco-chip" x="40" y="440" width="176" height="34" rx="17"/>
|
|
42
|
+
<text class="eco-chip-t" x="58" y="462">piagent dashboard</text>
|
|
43
|
+
<rect class="eco-chip" x="226" y="440" width="186" height="34" rx="17"/>
|
|
44
|
+
<text class="eco-chip-t" x="244" y="462">piagent studio --web</text>
|
|
45
|
+
<rect class="eco-chip" x="40" y="486" width="76" height="34" rx="17"/>
|
|
46
|
+
<text class="eco-chip-t" x="64" y="508">pi</text>
|
|
47
|
+
<rect class="eco-chip" x="126" y="486" width="186" height="34" rx="17"/>
|
|
48
|
+
<text class="eco-chip-t" x="144" y="508">piagent-doctor</text>
|
|
49
|
+
<rect class="eco-box" x="500" y="68" width="250" height="96" rx="18"/>
|
|
50
|
+
<text class="eco-h" x="522" y="102">Model cá nhân</text>
|
|
51
|
+
<text class="eco-t" x="522" y="128">Đăng nhập bằng tài khoản</text>
|
|
52
|
+
<text class="eco-t" x="522" y="148">riêng: Codex, Claude, Copilot…</text>
|
|
53
|
+
<rect class="eco-box" x="500" y="184" width="250" height="232" rx="18"/>
|
|
54
|
+
<text class="eco-k" x="522" y="216">Ứng dụng macOS</text>
|
|
55
|
+
<text class="eco-h" x="522" y="244">Agent Watch</text>
|
|
56
|
+
<text class="eco-t" x="522" y="272">Giữ key công ty trong</text>
|
|
57
|
+
<text class="eco-t" x="522" y="292">Keychain; nhập cấu hình</text>
|
|
58
|
+
<text class="eco-t" x="522" y="312">cho Piagent; cấp quyền</text>
|
|
59
|
+
<text class="eco-t" x="522" y="332">ngắn hạn cho từng lượt.</text>
|
|
60
|
+
<text class="eco-t" x="522" y="364">Model không bao giờ thấy</text>
|
|
61
|
+
<text class="eco-t" x="522" y="384">key.</text>
|
|
62
|
+
<rect class="eco-zone" x="800" y="16" width="304" height="528" rx="22"/>
|
|
63
|
+
<text class="eco-k" x="824" y="48">Máy chủ công ty</text>
|
|
64
|
+
<rect class="eco-box" x="824" y="68" width="256" height="300" rx="18"/>
|
|
65
|
+
<text class="eco-h" x="846" y="102">Agent Studio</text>
|
|
66
|
+
<text class="eco-t" x="846" y="132">Thành viên, key, ngân sách</text>
|
|
67
|
+
<text class="eco-t" x="846" y="152">và usage theo ngày.</text>
|
|
68
|
+
<text class="eco-t" x="846" y="186">Harness của team:</text>
|
|
69
|
+
<text class="eco-label-lime" x="846" y="210">kế hoạch · check · review</text>
|
|
70
|
+
<text class="eco-t" x="846" y="244">Chọn model cho từng vai:</text>
|
|
71
|
+
<text class="eco-label-lime" x="846" y="268">main · research · review</text>
|
|
72
|
+
<text class="eco-t" x="846" y="302">Mỗi vai một model riêng,</text>
|
|
73
|
+
<text class="eco-t" x="846" y="322">thinking theo Harness.</text>
|
|
74
|
+
<rect class="eco-box" x="824" y="392" width="256" height="128" rx="18"/>
|
|
75
|
+
<text class="eco-h" x="846" y="426">Model của công ty</text>
|
|
76
|
+
<text class="eco-t" x="846" y="454">Claude, GPT, DeepSeek, Kimi,</text>
|
|
77
|
+
<text class="eco-t" x="846" y="474">GLM, Qwen… qua key công ty;</text>
|
|
78
|
+
<text class="eco-t" x="846" y="494">key chỉ nằm trên máy chủ.</text>
|
|
79
|
+
<path class="eco-line" d="M412 300 L 500 300" marker-end="url(#eco-arrow)"/>
|
|
80
|
+
<text class="eco-label" x="424" y="290">công ty</text>
|
|
81
|
+
<path class="eco-line" d="M750 300 C 790 300, 790 220, 824 220" marker-end="url(#eco-arrow)"/>
|
|
82
|
+
<text class="eco-label" x="748" y="348">lượt có hạn</text>
|
|
83
|
+
<path class="eco-line" d="M952 368 L952 392" marker-end="url(#eco-arrow)"/>
|
|
84
|
+
<path class="eco-line-lime" d="M412 116 L 500 116" marker-end="url(#eco-arrow-lime)"/>
|
|
85
|
+
<text class="eco-label-lime" x="420" y="106">cá nhân</text>
|
|
86
|
+
</svg>
|
|
87
|
+
<figcaption class="diagram-hint">Vuốt ngang để xem hết sơ đồ.</figcaption>
|
|
88
|
+
</figure>
|
|
89
|
+
</section>
|
|
90
|
+
|
|
91
|
+
<section class="section">
|
|
92
|
+
<p class="section-kicker">Thành phần</p>
|
|
93
|
+
<h2 id="thanh-phan">Mỗi phần làm một việc</h2>
|
|
94
|
+
<div class="grid cols-2">
|
|
95
|
+
<article class="card">
|
|
96
|
+
<h3 id="piagent">Piagent</h3>
|
|
97
|
+
<p>Coding agent trong Terminal (<span class="inline-code">pi</span>) và trên trình duyệt (<span class="inline-code">piagent dashboard</span>). Hai nơi dùng chung lịch sử: bắt đầu ở Terminal, xem tiếp trên trình duyệt.</p>
|
|
98
|
+
</article>
|
|
99
|
+
<article class="card">
|
|
100
|
+
<h3 id="guard">Guard</h3>
|
|
101
|
+
<p>Kiểm tra từng tool call trước khi chạy: file bảo vệ như <span class="inline-code">.env</span>, profile quyền, file quá lớn, sửa trên bản đã cũ. Push, publish và lệnh có mạng chờ bạn duyệt đúng một lần.</p>
|
|
102
|
+
</article>
|
|
103
|
+
<article class="card">
|
|
104
|
+
<h3 id="agent-watch">Agent Watch</h3>
|
|
105
|
+
<p>Ứng dụng macOS giữ key công ty trong Keychain và nhập cấu hình cho Piagent. Mỗi lượt nhận quyền ngắn hạn; model và các lệnh không bao giờ đọc được key.</p>
|
|
106
|
+
</article>
|
|
107
|
+
<article class="card">
|
|
108
|
+
<h3 id="agent-studio">Agent Studio</h3>
|
|
109
|
+
<p>Máy chủ của công ty: thành viên, key, ngân sách, usage theo ngày và Harness của team. Studio chọn model cho từng vai (main, research, review) và mức suy luận.</p>
|
|
110
|
+
</article>
|
|
111
|
+
</div>
|
|
112
|
+
</section>
|
|
113
|
+
|
|
114
|
+
<section class="section">
|
|
115
|
+
<p class="section-kicker">Một lượt ở chế độ công ty</p>
|
|
116
|
+
<h2 id="mot-luot">Từ tin nhắn tới "Check đã qua · Review không có lỗi chặn"</h2>
|
|
117
|
+
<div class="steps">
|
|
118
|
+
<article class="step"><div><h3>Bạn nhắn việc cần làm</h3><p>Viết như nói với đồng nghiệp, chọn model <span class="inline-code">agent-watch-auto</span> trong nhóm Công ty.</p></div></article>
|
|
119
|
+
<article class="step"><div><h3>Studio cấp một lượt</h3><p>Agent Watch xin quyền ngắn hạn; Studio chọn model cho agent chính theo Harness của team.</p></div></article>
|
|
120
|
+
<article class="step"><div><h3>Agent làm trong sandbox</h3><p>Đọc, sửa và chạy lệnh trong project, không có mạng. Cần mạng thì xin bạn duyệt đúng một lệnh.</p></div></article>
|
|
121
|
+
<article class="step"><div><h3>Harness kiểm tra</h3><p>Chưa có check nào qua trên code cuối thì yêu cầu chạy; rồi một subagent review bản sửa. Lỗi chặn được gửi lại cho agent, tối đa số vòng team đặt.</p></div></article>
|
|
122
|
+
<article class="step"><div><h3>Kết quả ghi dưới câu trả lời</h3><p>Ví dụ "Check đã qua trên code cuối · Review không có lỗi chặn". Bạn có thể Dừng bất cứ lúc nào và Tiếp tục sau.</p></div></article>
|
|
123
|
+
</div>
|
|
124
|
+
<figure class="shot">
|
|
125
|
+
<img src="/assets/shots/company-review-running.jpg" alt="Đang review: thanh trên ghi Subagent 1/2, nút Dừng vẫn còn" loading="lazy" width="1600" height="1000">
|
|
126
|
+
<figcaption>Lúc review đang chạy: thanh trên ghi Subagent 1/2, cột Workspace ghi 1/2 đang chạy, nút Dừng vẫn hoạt động.</figcaption>
|
|
127
|
+
</figure>
|
|
128
|
+
</section>
|
|
129
|
+
|
|
130
|
+
<section class="section">
|
|
131
|
+
<p class="section-kicker">Chọn chế độ</p>
|
|
132
|
+
<h2 id="chon-che-do">Khi nào dùng cá nhân, khi nào dùng công ty</h2>
|
|
133
|
+
<div class="table-wrap"><table>
|
|
134
|
+
<thead><tr><th></th><th>Cá nhân</th><th>Công ty</th></tr></thead>
|
|
135
|
+
<tbody>
|
|
136
|
+
<tr><td>Model</td><td>Tài khoản bạn đăng nhập (Codex, Claude, Copilot…)</td><td>Model công ty chọn trong Studio, theo vai</td></tr>
|
|
137
|
+
<tr><td>Key</td><td>Do Pi quản lý trên máy bạn</td><td>Nằm trên máy chủ và trong Keychain, không vào project</td></tr>
|
|
138
|
+
<tr><td>Kiểm tra</td><td>Guard; bạn quyết định khi nào chạy test</td><td>Guard, sandbox, và Harness tự yêu cầu check, review</td></tr>
|
|
139
|
+
<tr><td>Mạng khi chạy lệnh</td><td>Như trên máy bạn; push và publish chờ duyệt</td><td>Tắt; mở cho đúng một lệnh khi bạn duyệt</td></tr>
|
|
140
|
+
<tr><td>Chi phí</td><td>Theo gói của bạn</td><td>Theo ngân sách công ty, xem usage trong Studio</td></tr>
|
|
141
|
+
</tbody>
|
|
142
|
+
</table></div>
|
|
143
|
+
<div class="callout ok-callout"><strong>Bắt đầu</strong><p>Cá nhân: cài theo <a href="/quickstart">Quickstart</a> rồi chạy <span class="inline-code">piagent dashboard</span>. Công ty: mở Agent Watch, tab Studio, kết nối key và nhập cấu hình cho Piagent; model <span class="inline-code">agent-watch-auto</span> sẽ có trong nhóm Công ty.</p></div>
|
|
144
|
+
</section>
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
</div>
|
|
22
22
|
<div class="grid cols-3">
|
|
23
23
|
<article class="card"><h3>Context planner</h3><p><span class="inline-code">runtime/context/adaptive-planner.ts</span> chooses budget, retrieval lane, code inclusion, and a plan receipt from phase, context pressure, model capability, and thinking level.</p></article>
|
|
24
|
-
<article class="card"><h3>
|
|
24
|
+
<article class="card"><h3>Earlier task history</h3><p><span class="inline-code">extensions/task-journal.js</span> still reads checkpoints of tasks created before 1.9.0 for review; new sessions no longer write tasks.</p></article>
|
|
25
25
|
<article class="card"><h3>Repository memory</h3><p><span class="inline-code">extensions/repository-memory.js</span> stores only cited, expiring facts and rejects raw prompts, outputs, OAuth material, API keys, and secrets. Hints use only unused context-plan budget.</p></article>
|
|
26
26
|
<article class="card"><h3>Model capability</h3><p><span class="inline-code">runtime/model/capabilities.ts</span> reads model family, context window, and thinking level as budget signals without switching providers or requiring API keys.</p></article>
|
|
27
27
|
<article class="card"><h3>Verification intelligence</h3><p><span class="inline-code">extensions/verification-intelligence.js</span> classifies failures and chooses a targeted verifier from task scope; mixed frontend/backend scope uses the full source verifier.</p></article>
|