gentle-pi 3.3.0 → 3.4.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/README.md +63 -59
- package/assets/orchestrator-delegation.md +1 -1
- package/docs/assets/brand/gentle-shell-banner.gif +0 -0
- package/docs/assets/diagrams/odd-workflow.svg +74 -0
- package/docs/assets/features/agents-view.png +0 -0
- package/docs/assets/features/changes-view.png +0 -0
- package/docs/assets/features/command-palette.png +0 -0
- package/docs/assets/features/profiles-routing.png +0 -0
- package/docs/gentle-shell.md +26 -2
- package/docs/readme-reference.md +32 -6
- package/extensions/ask-user-question.ts +210 -0
- package/extensions/gentle-agents.ts +8 -1
- package/extensions/gentle-ai.ts +59 -18
- package/extensions/gentle-shell.ts +99 -10
- package/extensions/quiet-tools.ts +28 -5
- package/extensions/startup-banner.ts +25 -10
- package/lib/animation-policy.ts +52 -0
- package/lib/background-cache-warming.ts +38 -0
- package/lib/command-palette-catalog.ts +1 -0
- package/lib/inprocess-reviewer.ts +38 -1
- package/lib/native-review-cli.ts +36 -10
- package/lib/questionnaire/questionnaire-view.ts +603 -0
- package/lib/questionnaire/schema.ts +82 -0
- package/lib/questionnaire/validate.ts +141 -0
- package/lib/review-candidate-view-owner.ts +20 -5
- package/lib/review-candidate-view.ts +9 -2
- package/lib/review-host-relay.ts +10 -0
- package/lib/review-integration-v2.ts +4 -1
- package/lib/shell-bar.ts +13 -0
- package/lib/shell-sidebar-layout.ts +10 -4
- package/lib/shell-usage-view.ts +5 -2
- package/lib/shell-usage.ts +120 -6
- package/package.json +1 -1
- package/runtime/native-review-cli.mjs +35 -9
- package/runtime/review-integration-v2.mjs +4 -1
- package/scripts/gentle-ai-installer.mjs +10 -10
- package/scripts/verify-package-files.mjs +2 -3
- package/tests/animation-policy.test.ts +42 -0
- package/tests/ask-user-question.test.ts +435 -0
- package/tests/background-cache-warming.test.ts +60 -0
- package/tests/background-subagents.test.ts +68 -0
- package/tests/command-palette.test.ts +9 -0
- package/tests/gentle-agents.test.ts +71 -2
- package/tests/gentle-ai-binary.test.ts +1 -1
- package/tests/gentle-ai-installer.test.ts +47 -47
- package/tests/gentle-ai.test.ts +56 -4
- package/tests/gentle-shell.test.ts +355 -2
- package/tests/inprocess-reviewer.test.ts +92 -0
- package/tests/native-review-capability-contract.test.ts +16 -1
- package/tests/native-review-parity.test.ts +19 -0
- package/tests/package-manifest.test.ts +6 -17
- package/tests/questionnaire-schema.test.ts +274 -0
- package/tests/questionnaire-view.test.ts +446 -0
- package/tests/rdd-status-line.test.ts +21 -4
- package/tests/review-candidate-owner-retry.test.ts +63 -0
- package/tests/review-candidate-view.test.ts +15 -0
- package/tests/review-controller-native-routing.test.ts +86 -0
- package/tests/review-host-relay.test.ts +21 -0
- package/tests/review-integration-v2.test.ts +30 -0
- package/tests/review-ledger-contract.test.ts +1 -2
- package/tests/review-relay-transport-agent.test.ts +107 -2
- package/tests/review-risk-assessment.test.ts +104 -0
- package/tests/shell-bar.test.ts +8 -0
- package/tests/shell-sidebar-layout.test.ts +60 -5
- package/tests/shell-usage.test.ts +129 -0
- package/tests/skill-collision-prefixes.test.ts +1 -1
- package/tests/startup-banner.test.ts +93 -2
- package/docs/assets/brand/gentle-pi-banner.png +0 -0
- package/skills/release/SKILL.md +0 -137
package/README.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<a id="top"></a>
|
|
2
2
|
|
|
3
3
|
<div align="center">
|
|
4
|
-
<img src="docs/assets/brand/gentle-
|
|
4
|
+
<img src="docs/assets/brand/gentle-shell-banner.gif" width="1200" alt="gentle-shell — Ecosystem, Agent, One shell">
|
|
5
5
|
</div>
|
|
6
6
|
|
|
7
7
|
<h1 align="center">gentle-shell™</h1>
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
|
|
35
35
|
<p align="center"><sub>One workspace. A coding agent you direct. A workflow you can inspect.</sub></p>
|
|
36
36
|
|
|
37
|
-
<p align="center"><strong>BUILT FOR PI</strong> · Coding-agent workspace · Focused agents · ODD
|
|
37
|
+
<p align="center"><strong>BUILT FOR PI</strong> · Coding-agent workspace · Focused agents · ODD</p>
|
|
38
38
|
|
|
39
39
|
<p align="center">
|
|
40
40
|
<a href="https://github.com/Gentleman-Programming/gentle-pi/stargazers"><strong>★ Star gentle-shell on GitHub</strong></a>
|
|
@@ -74,122 +74,126 @@
|
|
|
74
74
|
|
|
75
75
|
### gentle-shell — Your coding agent, in the workspace you lead
|
|
76
76
|
|
|
77
|
-
<
|
|
78
|
-
<img src="docs/assets/features/gentle-shell.png" width="1200" alt="gentle-shell showing an SDD agent task, todo list, changes summary, status bar, and usage footer in Pi">
|
|
79
|
-
</p>
|
|
80
|
-
|
|
81
|
-
<strong>A complete workspace for the agent you direct.</strong> gentle-shell is your coding agent, built for Pi, with native workspace features for agent orchestration, usage monitoring for supported provider accounts, and built-in diff views—all in one integrated layout.
|
|
77
|
+
<img width="100%" src="https://github.com/user-attachments/assets/5d9eefc2-7b2a-48f8-b212-1439834ce195" alt="gentle-shell running a live agent session: a header row with branch, model, and context gauge above the transcript, with status, changes, and todo cards in the right rail">
|
|
82
78
|
|
|
83
|
-
|
|
79
|
+
A bare terminal answers "what is the agent doing?" only with scrollback. gentle-shell turns your Pi session into a workspace: agent orchestration, live changes and runtime status, usage monitoring for supported provider accounts, and built-in diff views — so you lead the work instead of chasing it.
|
|
84
80
|
|
|
85
81
|
<p align="center"><sub>gentle-shell in action. Screenshot from <a href="https://raw.githubusercontent.com/Gentleman-Programming/gentle-ai/main/docs/assets/features/gentle-shell.png">Gentle-AI</a>.</sub></p>
|
|
86
82
|
|
|
87
|
-
**[→
|
|
83
|
+
**[Docs →](docs/gentle-shell.md)**
|
|
88
84
|
|
|
89
85
|
---
|
|
90
86
|
|
|
91
87
|
### el Gentleman — Think before you build
|
|
92
88
|
|
|
93
|
-
<
|
|
94
|
-
<img src="docs/assets/diagrams/gentleman-workflow.svg" width="1200" alt="Diagram of el Gentleman turning human intent into clarified scope, a smallest workflow choice, evidence, and a human delivery decision">
|
|
95
|
-
</p>
|
|
96
|
-
|
|
97
|
-
Say what you need once, then keep moving. el Gentleman helps turn intent into clear scope, a sensible next step, and evidence people can review—without making every task feel like a process meeting.
|
|
89
|
+
<img width="100%" src="docs/assets/diagrams/gentleman-workflow.svg" alt="Diagram of el Gentleman turning human intent into clarified scope, a smallest workflow choice, evidence, and a human delivery decision">
|
|
98
90
|
|
|
99
|
-
|
|
91
|
+
Say what you need once, then keep moving. el Gentleman helps turn intent into clear scope, a sensible next step, and evidence people can review — without making every task feel like a process meeting.
|
|
100
92
|
|
|
101
|
-
**[→
|
|
93
|
+
**[Docs →](docs/readme-reference.md#organic-driven-development)**
|
|
102
94
|
|
|
103
95
|
---
|
|
104
96
|
|
|
105
97
|
### Focused agents — Context with a return path
|
|
106
98
|
|
|
107
|
-
<
|
|
108
|
-
<img src="docs/assets/diagrams/agent-orchestration.svg" width="1200" alt="Diagram of one parent session directing bounded map, implementation, and verification work and receiving evidence back">
|
|
109
|
-
</p>
|
|
99
|
+
<img width="100%" src="docs/assets/diagrams/agent-orchestration.svg" alt="Diagram of one parent session directing bounded map, implementation, and verification work and receiving evidence back">
|
|
110
100
|
|
|
111
101
|
Bring in help without losing the thread. Focused package-owned Pi agents can map a codebase, implement a bounded change, or verify it, while one parent stays accountable for the scope, the decisions, and the final summary.
|
|
112
102
|
|
|
113
|
-
**[→
|
|
114
|
-
|
|
115
|
-
- `orchestrator_session_id`, `orchestrator_list`, and `orchestrator_send_message` provide local-profile session notifications. List results advertise IDs only and reachability remains unknown. Sending selects the sole advertised peer or asks the user to choose; a successful ACK means the peer accepted the notification for delivery, not that it read or completed work. This is notification-and-ACK transport only: it has no cross-session queries, offline queue, retries, broadcasts, or read/completion guarantees. On Unix, presence records remain in the profile's private transport directory while socket endpoints use a private, profile-hashed directory below the canonical system temporary directory, keeping endpoint length independent of the profile path and at most 100 encoded bytes. The shared system temporary parent is only validated (current-user-owned without group/other write, or root/current-user-owned, world-writable, and sticky); it is never claimed, permissioned, or cleaned up by gentle-pi. On Windows, the transport selects a package-local PowerShell helper for a Windows named pipe; availability and delivery depend on the helper's bounded startup and pipe checks.
|
|
103
|
+
**[Docs →](docs/readme-reference.md#how-the-harness-decides-what-to-do)**
|
|
116
104
|
|
|
117
105
|
---
|
|
118
106
|
|
|
119
107
|
### ODD — The everyday workflow
|
|
120
108
|
|
|
121
|
-
|
|
109
|
+
<img width="100%" src="docs/assets/diagrams/odd-workflow.svg" alt="Organic Driven Development as seven numbered steps: Authorize, Explore, Resolve uncertainty, and Classify across the top row; Classify forks, so small understood work stays light while substantial work gets step five, Track, with one feature document; both paths converge on Implement task by task and then Close, above a dashed band marking that one feature document mirrored in Engram lets work resume across sessions">
|
|
110
|
+
|
|
111
|
+
**Organic Driven Development (ODD)** is the everyday path: the agent explores before changing anything, clarifies only real decisions, and keeps small understood work small. Substantial, authorized work gets one recoverable feature document — mirrored in memory when available — so progress, evidence, and the next step survive an interruption; checks follow the configured TDD mode.
|
|
112
|
+
|
|
113
|
+
**[Docs →](docs/readme-reference.md#organic-driven-development)**
|
|
122
114
|
|
|
123
|
-
|
|
115
|
+
---
|
|
116
|
+
|
|
117
|
+
### Native review — Review the exact change
|
|
124
118
|
|
|
125
|
-
|
|
119
|
+
<img width="100%" src="docs/assets/diagrams/native-review.svg" alt="Diagram showing one frozen candidate passing through risk-scoped native review to an outcome, while human delivery choices stay separate">
|
|
126
120
|
|
|
127
|
-
|
|
121
|
+
Review the exact change, not a moving target. Native review keeps one candidate in view, returns risk-scoped evidence, and can surface a bounded correction path. You still decide what happens next in your repository.
|
|
128
122
|
|
|
129
|
-
**[→
|
|
123
|
+
**[Docs →](docs/review-integration.md)**
|
|
130
124
|
|
|
131
125
|
---
|
|
132
126
|
|
|
133
|
-
###
|
|
127
|
+
### Gentle Changes — Every edit, attributed and reviewable
|
|
134
128
|
|
|
135
|
-
<
|
|
136
|
-
<img src="docs/assets/diagrams/sdd-cycle.svg" width="1200" alt="Diagram of an optional specification-driven development cycle from explore through archive, with TDD evidence attached to apply when available">
|
|
137
|
-
</p>
|
|
129
|
+
<img width="100%" src="docs/assets/features/changes-view.png" alt="Gentle Changes viewer: worktree accordion with per-file status on the left, the captured diff with line counts on the right, and a keyboard hint row">
|
|
138
130
|
|
|
139
|
-
|
|
131
|
+
You should not have to run `git status` to find out what your agent did. Gentle Changes captures the successful write and edit tool calls from the current session and its owned subagents — no repository scans, no background polling — and shows them in a two-pane viewer with per-file line counts and an honest **diff unavailable** when an external edit breaks continuity. Coverage stops at those tools, so shell commands and failed runs leave no row, and a missing entry never proves a clean tree. `alt+g` opens it; `o` drops the real file into your editor.
|
|
140
132
|
|
|
141
|
-
**[→
|
|
133
|
+
**[Docs →](docs/gentle-shell.md#browse-captured-diffs)**
|
|
142
134
|
|
|
143
135
|
---
|
|
144
136
|
|
|
145
|
-
###
|
|
137
|
+
### Gentle Agents — Parallel work with a live view
|
|
146
138
|
|
|
147
|
-
<
|
|
148
|
-
<img src="docs/assets/diagrams/native-review.svg" width="1200" alt="Diagram showing one frozen candidate passing through risk-scoped native review to an outcome, while human delivery choices stay separate">
|
|
149
|
-
</p>
|
|
139
|
+
<img width="100%" src="docs/assets/features/agents-view.png" alt="Gentle Agents overlay showing a completed subagent thread with model, tokens, and elapsed columns, and the structured handoff it returned">
|
|
150
140
|
|
|
151
|
-
|
|
141
|
+
Delegating work should not mean losing it. Every subagent runs as its own process with a live card above the editor — model, tokens, cost, elapsed — and `alt+a` opens the full view with retained threads, stop controls, and history restored on resume. A child can ask you a question as an ordinary dialog, and background results come back as cards that start a new turn — nothing polls.
|
|
152
142
|
|
|
153
|
-
**[→
|
|
143
|
+
**[Docs →](docs/gentle-shell.md#gentle-agents)**
|
|
154
144
|
|
|
155
145
|
---
|
|
156
146
|
|
|
157
|
-
###
|
|
147
|
+
### Profiles and model routing — One deliberate decision per knob
|
|
158
148
|
|
|
159
|
-
|
|
149
|
+
<img width="100%" src="docs/assets/features/profiles-routing.png" alt="Profiles view: profile list on the left, orchestrator model and effort on the right, with per-role profile routing and effective current routing">
|
|
160
150
|
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
151
|
+
Model, effort, and who does what should be choices, not accidents. Named profiles route the orchestrator atomically and independently from packaged and review roles; a repository can pin its profile so its subagents stop following the globally active one, and the panel always shows the routing the runtime actually uses.
|
|
152
|
+
|
|
153
|
+
**[Docs →](docs/readme-reference.md#agent-model-profiles)**
|
|
154
|
+
|
|
155
|
+
---
|
|
156
|
+
|
|
157
|
+
### Command palette — Every command, one keystroke away
|
|
158
|
+
|
|
159
|
+
<img width="100%" src="docs/assets/features/command-palette.png" alt="Command palette with a search field and grouped entries: Configuration, Session, Diagnostics, SDD, and Skills">
|
|
160
|
+
|
|
161
|
+
Extension commands are only useful if you can find them. `alt+k` opens a curated, grouped palette — Configuration, Session, Diagnostics, SDD, and Skills — searchable by label, command name, or description, showing entries only when they are actually registered.
|
|
162
|
+
|
|
163
|
+
**[Docs →](docs/gentle-shell.md#command-palette)**
|
|
164
164
|
|
|
165
165
|
---
|
|
166
166
|
|
|
167
167
|
### Also in the box
|
|
168
168
|
|
|
169
|
-
|
|
|
170
|
-
|
|
|
169
|
+
| Component | What it does |
|
|
170
|
+
| :--- | :--- |
|
|
171
171
|
| Startup and runtime panel | A configurable gentle-shell entry point and visible runtime state for Pi. |
|
|
172
172
|
| Skills and delivery guidance | Package skills for documentation, issue work, PRs, reviews, and reviewable work units. |
|
|
173
173
|
| Model, effort, persona, and profile controls | Explicit knobs for how Pi routes and presents work. |
|
|
174
174
|
| Safety boundaries | Guards around destructive operations and sensitive-path handling. |
|
|
175
175
|
| Optional companion packages | Extra capabilities you may choose to add; persistent memory is **not** bundled with `gentle-pi`. |
|
|
176
|
+
| Fullscreen workspace layout | Header row plus a scrolling Status → Changes → TODO rail on wide terminals. |
|
|
177
|
+
| Live status bar and prompt petal | One-line gauge, cost, and statuses; the petal shows `working` and `queued`. |
|
|
178
|
+
| Parent ↔ subagent communication | Delegate, steer, reply, and cross-session notification within your local profile. |
|
|
179
|
+
| Native interactive tools | Built-in questions, choices, and review captures — no third-party dependency. |
|
|
180
|
+
| Gentle Todo | A plan card that turns amber when the model lets it go stale. |
|
|
181
|
+
| Subscription usage | Per-window meters and resets for supported provider accounts. |
|
|
182
|
+
| Gentle notices | Gentle AI calls and review reminders as cards in the transcript. |
|
|
176
183
|
|
|
177
|
-
|
|
178
|
-
<summary><strong>Optional companions, when they fit your setup</strong></summary>
|
|
184
|
+
> **Every component, skill and preset: [Full breakdown →](docs/gentle-shell.md)**
|
|
179
185
|
|
|
180
|
-
|
|
186
|
+
---
|
|
181
187
|
|
|
182
|
-
|
|
183
|
-
| --- | --- |
|
|
184
|
-
| `pi-intercom` | Cross-session communication where your Pi setup supports it. |
|
|
185
|
-
| `gentle-engram` | Persistent memory, separately installed and configured. |
|
|
186
|
-
| `pi-web-access` | Web access when a task needs it and your policy allows it. |
|
|
187
|
-
| `pi-lens` | Additional inspection surfaces. |
|
|
188
|
-
| `@juicesharp/rpiv-ask-user-question` | Interactive choice support. |
|
|
188
|
+
### What's new in v2.6.0
|
|
189
189
|
|
|
190
|
-
|
|
190
|
+
The [v2.6.0 release](https://github.com/Gentleman-Programming/gentle-pi/releases/tag/v2.6.0) brings a more persistent, inspectable Pi workspace:
|
|
191
191
|
|
|
192
|
-
|
|
192
|
+
- **Shell:** `/gentle:changes` groups captured write/edit changes from the current agent session and its subagents, without startup repository scans; fullscreen navigation, sidebars, and mouse support stay available. See the [capture limits and shell-command coverage](docs/gentle-shell.md#what-appears-in-changes).
|
|
193
|
+
- **Agents and profiles:** the Agents view shows orchestrator/session hierarchy, retained completion, abort, and lost-exit history, parent-child handoff, and model, effort, and usage observability. Named `/gentle:profiles` atomically route the orchestrator independently from packaged and review roles; applying one replaces the routing of every agent, a repository can be pinned to a profile with `p` so its subagent launches stop following the globally active profile, and the panel shows the routing the runtime actually uses even when `models.json` is sparse.
|
|
194
|
+
- **Control and recovery:** native SDD requires parent-confirmed preflight; native review supports intended-untracked selection, consent, and provider continuations. Subsystems install with explicit recovery guidance when npm lifecycle scripts were skipped; Pi Git installs are recognized globally; custom ask responses are opt-in. Windows keeps child consoles hidden and fixes ownership mode; Gentle Todo keeps the next pending task visible when collapsed.
|
|
195
|
+
|
|
196
|
+
---
|
|
193
197
|
|
|
194
198
|
<p align="right"><a href="#top">Back to top ↑</a></p>
|
|
195
199
|
|
|
@@ -225,7 +229,7 @@ See the [v2.6.0 release notes](https://github.com/Gentleman-Programming/gentle-p
|
|
|
225
229
|
|
|
226
230
|
> **Fullscreen installation note:** a recognized global installation persists Pi’s `"tuiMode": "fullscreen"` setting. Project-local and other install paths do not receive that change.
|
|
227
231
|
|
|
228
|
-
For prerequisites, source-checkout instructions, full install behavior, and release policy, use the **[installation reference](docs/readme-reference.md#install)**. For everyday work, describe the outcome and follow [ODD](#odd--the-everyday-workflow).
|
|
232
|
+
For prerequisites, source-checkout instructions, full install behavior, and release policy, use the **[installation reference](docs/readme-reference.md#install)**. For everyday work, describe the outcome and follow [ODD](#odd--the-everyday-workflow).
|
|
229
233
|
|
|
230
234
|
<p align="right"><a href="#top">Back to top ↑</a></p>
|
|
231
235
|
|
|
@@ -203,7 +203,7 @@ When the policy is on and `subagent_run` is available:
|
|
|
203
203
|
|
|
204
204
|
- The runtime already defaults `subagent_run` to `mode: "background"` under this policy in interactive and RPC sessions, so omit `mode` for ordinary delegation. It returns a task id at once; the terminal stays free and the human keeps typing. Pass a `label` of three to six words naming the work.
|
|
205
205
|
- A child `agent_end` retains its latest answer but is not completion: Pi may still retry, compact, or run a queued follow-up. Treat the task as finished only at `agent_settled`; only then release its queue slot, publish its background result, or terminate it. If it exits first, report failure with its retained answer as diagnostics.
|
|
206
|
-
- When a background task settles, its result arrives as a message in this session (custom type `gentle-agents.result`, one per task) and starts a new turn if you are idle. Wait for it: end the turn once launches and any non-overlapping work are done. Never
|
|
206
|
+
- When a background task settles, its result arrives as a message in this session (custom type `gentle-agents.result`, one per task) and starts a new turn if you are idle. Wait for it: end the turn once launches and any non-overlapping work are done. Never sleep or periodically poll `subagent_status`/`subagent_result` for completion or cache maintenance. Retain the task ID. Use `subagent_status` only at a real orchestration decision boundary: user-requested inspection, relevant scope change, input request, or suspected abnormal behavior. Never relaunch equivalent work merely because it is queued or running. Cache warming belongs to Pi's native runtime, never to model-driven maintenance turns.
|
|
207
207
|
- Do not claim an implementation ready or RDD-ready while its required verification or correction follow-up remains queued. Run the required focused verification before that claim, and retain legitimate post-correction verification. This does not invent a universal full-suite requirement or make a receipt a delivery gate.
|
|
208
208
|
- Use `mode: "task"` only when the subagent must ask the human something mid-flight (task-mode dialogs reach the human; background dialogs are dismissed) or when the human asked to wait.
|
|
209
209
|
- Launch as many independent tasks as the work has; the runner queues beyond `max_concurrency`. Do not duplicate launches or work, and do not overlap files or topics. Never run parallel writers in one worktree.
|
|
Binary file
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="960" height="760" viewBox="0 0 960 760" role="img" aria-labelledby="odd-title odd-desc">
|
|
2
|
+
<title id="odd-title">Organic Driven Development workflow</title>
|
|
3
|
+
<desc id="odd-desc">One feature moves through the seven ODD protocol steps. Authorize, explore, resolve uncertainty, then classify: small understood work stays light with no durable artifacts, while substantial work is tracked in one feature document before the first write. Both paths implement task by task and close with verified proof. The same feature document carries progress across sessions so work resumes instead of restarting.</desc>
|
|
4
|
+
<defs>
|
|
5
|
+
<linearGradient id="odd-bg" x1="0" y1="0" x2="1" y2="1"><stop stop-color="#100c15"/><stop offset="1" stop-color="#21101f"/></linearGradient>
|
|
6
|
+
<marker id="odd-arrow" markerUnits="userSpaceOnUse" markerWidth="10" markerHeight="10" viewBox="0 0 10 10" refX="10" refY="5" orient="auto"><path d="M0 0 10 5 0 10z" fill="#f095c8"/></marker>
|
|
7
|
+
</defs>
|
|
8
|
+
<rect width="960" height="760" rx="20" fill="url(#odd-bg)"/>
|
|
9
|
+
<text x="40" y="65" fill="#fff7f1" font-family="Arial, Helvetica, sans-serif" font-size="44" font-weight="700">Explore, track, implement.</text>
|
|
10
|
+
<text x="40" y="120" fill="#d7a0b8" font-family="Arial, Helvetica, sans-serif" font-size="44" font-weight="700">Resume without ceremony.</text>
|
|
11
|
+
<g fill="#1c1420" stroke="#d7a0b8" stroke-width="2">
|
|
12
|
+
<rect x="40" y="170" width="196" height="120" rx="16"/>
|
|
13
|
+
<rect x="268" y="170" width="196" height="120" rx="16"/>
|
|
14
|
+
<rect x="496" y="170" width="196" height="120" rx="16"/>
|
|
15
|
+
<rect x="724" y="170" width="196" height="120" rx="16"/>
|
|
16
|
+
<rect x="724" y="330" width="196" height="120" rx="16" fill="#2a1426" stroke="#f095c8" stroke-width="3"/>
|
|
17
|
+
<rect x="610" y="490" width="196" height="120" rx="16"/>
|
|
18
|
+
<rect x="268" y="490" width="196" height="120" rx="16"/>
|
|
19
|
+
</g>
|
|
20
|
+
<rect x="496" y="330" width="196" height="120" rx="16" fill="#18121b" stroke="#d7a0b8" stroke-width="2" stroke-dasharray="6 6"/>
|
|
21
|
+
<g fill="none" stroke="#f095c8" stroke-width="3" stroke-linecap="round" marker-end="url(#odd-arrow)">
|
|
22
|
+
<path d="M236 230H268"/>
|
|
23
|
+
<path d="M464 230H496"/>
|
|
24
|
+
<path d="M692 230H724"/>
|
|
25
|
+
<path d="M822 290V330"/>
|
|
26
|
+
<path d="M822 290V310H594V330"/>
|
|
27
|
+
<path d="M708 470V490"/>
|
|
28
|
+
<path d="M610 550H464"/>
|
|
29
|
+
</g>
|
|
30
|
+
<g fill="none" stroke="#f095c8" stroke-width="3" stroke-linecap="round">
|
|
31
|
+
<path d="M594 450V470H708"/>
|
|
32
|
+
<path d="M822 450V470H708"/>
|
|
33
|
+
</g>
|
|
34
|
+
<g font-family="Arial, Helvetica, sans-serif" font-size="20" fill="#d7a0b8" opacity="0.85">
|
|
35
|
+
<text x="56" y="198">01</text>
|
|
36
|
+
<text x="284" y="198">02</text>
|
|
37
|
+
<text x="512" y="198">03</text>
|
|
38
|
+
<text x="740" y="198">04</text>
|
|
39
|
+
<text x="740" y="358">05</text>
|
|
40
|
+
<text x="626" y="518">06</text>
|
|
41
|
+
<text x="284" y="518">07</text>
|
|
42
|
+
</g>
|
|
43
|
+
<g font-family="Arial, Helvetica, sans-serif" text-anchor="middle">
|
|
44
|
+
<g fill="#fff7f1" font-size="30" font-weight="700">
|
|
45
|
+
<text x="138" y="222">Authorize</text>
|
|
46
|
+
<text x="366" y="222">Explore</text>
|
|
47
|
+
<text x="594" y="222">Resolve</text>
|
|
48
|
+
<text x="822" y="222">Classify</text>
|
|
49
|
+
<text x="822" y="382">Track</text>
|
|
50
|
+
<text x="594" y="382">Stay light</text>
|
|
51
|
+
<text x="708" y="542">Implement</text>
|
|
52
|
+
<text x="366" y="542">Close</text>
|
|
53
|
+
</g>
|
|
54
|
+
<g fill="#d7a0b8" font-size="22">
|
|
55
|
+
<text x="138" y="262">read-only</text>
|
|
56
|
+
<text x="366" y="262">code and needs</text>
|
|
57
|
+
<text x="594" y="262">uncertainty</text>
|
|
58
|
+
<text x="822" y="262">substantial?</text>
|
|
59
|
+
<text x="822" y="422">one document</text>
|
|
60
|
+
<text x="594" y="422">small work</text>
|
|
61
|
+
<text x="708" y="582">task by task</text>
|
|
62
|
+
<text x="366" y="582">verified proof</text>
|
|
63
|
+
</g>
|
|
64
|
+
</g>
|
|
65
|
+
<g font-family="Arial, Helvetica, sans-serif" font-size="22" fill="#d7a0b8">
|
|
66
|
+
<text x="708" y="302" text-anchor="middle">small</text>
|
|
67
|
+
<text x="838" y="316" text-anchor="start">substantial</text>
|
|
68
|
+
</g>
|
|
69
|
+
<rect x="40" y="650" width="880" height="90" rx="16" fill="#18121b" stroke="#d7a0b8" stroke-width="2" stroke-dasharray="8 7"/>
|
|
70
|
+
<g font-family="Arial, Helvetica, sans-serif" text-anchor="middle">
|
|
71
|
+
<text x="480" y="686" fill="#fff7f1" font-size="34" font-weight="700">Resume where you stopped</text>
|
|
72
|
+
<text x="480" y="722" fill="#d7a0b8" font-size="26">One feature document, mirrored in Engram across sessions.</text>
|
|
73
|
+
</g>
|
|
74
|
+
</svg>
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/docs/gentle-shell.md
CHANGED
|
@@ -15,7 +15,7 @@ The [v2.6.0 release](https://github.com/Gentleman-Programming/gentle-pi/releases
|
|
|
15
15
|
- The Agents List and Details views preserve the orchestrator/session hierarchy and completion, abort, and lost-exit history. Parent-child queries and notifications have an explicit handoff path, while model, effort, and usage stay observable per task.
|
|
16
16
|
- Named `/gentle:profiles` atomically route the orchestrator separately from packaged and review roles; see the [technical reference](readme-reference.md#agent-model-profiles) for the profile model.
|
|
17
17
|
|
|
18
|
-
The source checkout currently prepares `gentle-pi` `3.
|
|
18
|
+
The source checkout currently prepares `gentle-pi` `3.4.0` with a package-local Gentle AI `v3.5.0` pin; this is not a claim that `3.4.0` is published.
|
|
19
19
|
|
|
20
20
|
## Shell interactions and runtime behavior
|
|
21
21
|
|
|
@@ -118,6 +118,20 @@ The panel rows a provider reports its windows with:
|
|
|
118
118
|
- For Codex, usage comes from the same account usage endpoint the Codex CLI reads, using the OAuth token pi already holds. It is fetched at session start, at most every 5 minutes after a turn, and on `r` in the panel. Rate-limit headers on SSE responses are picked up too.
|
|
119
119
|
- For Claude Pro/Max, usage arrives in the rate-limit headers of every response, so the 5h and weekly windows appear after the first turn.
|
|
120
120
|
- For NaN Cloud, usage comes from the quota endpoint the official dashboard reads, with the same API key pi already holds. Each metered model reports one allowance for the billing period, and that window carries no label: the model id names it in the bar and the reset text says what it is in the panel. A model that also reports a rolling window shows that one labeled next to it (`4h`), which today's payload does not send; percentages are tokens used over the allowance, exactly as the dashboard draws them, and the allowance is the full-period cap (`fullCap`) whenever the model reports a positive one, because `cap` alone is the prorated allowance of the period in progress. It is fetched under the same 5-minute rule as Codex, counted per provider so a switch fetches the provider it switched to, refuses redirects so the bearer cannot be replayed to another origin, and keeps no cached copy. The endpoint sits outside NaN's published OpenAPI, so the parser reads it defensively: a model that reports no allowance is skipped, as the dashboard skips it, while a metered model whose usage cannot be read fails the whole read, so a partial payload never replaces a complete snapshot with a cheaper-looking one. A session that already has a snapshot keeps the last valid one through a malformed payload or a failed fetch, and the pending note appears only while there is nothing to draw.
|
|
121
|
+
- Extensions can register a usage source for their own provider: gentle-shell has no built-in knowledge of it, but treats it exactly like Codex or NaN once registered. Emit `gentle-pi:usage-source/v1` on `pi.events` with `{ schema: "gentle-pi.usage-source/v1", provider, pendingNote?, fetch(apiKey, fetchFn, now) }`, where `fetch` resolves a `ProviderUsage` the same shape the built-in providers produce, or `undefined` when there is nothing to show yet. A malformed payload, a `fetch` that isn't a function, a provider id outside the safe id pattern, or a `fetch` call that throws or rejects is ignored rather than crashing the shell. Re-registering the same provider replaces its source, so emitting again at every `session_start` is safe and keeps load order irrelevant. Once registered, the provider shows `pendingNote` (or the same "no usage yet · r to fetch" default the built-ins use) until its first fetch, and a registration that arrives after the session already started, for the provider currently active, triggers one immediate refresh instead of waiting for the next turn or the 5-minute window. Example, using a neutral provider id:
|
|
122
|
+
|
|
123
|
+
```ts
|
|
124
|
+
pi.events.emit("gentle-pi:usage-source/v1", {
|
|
125
|
+
schema: "gentle-pi.usage-source/v1",
|
|
126
|
+
provider: "acme-cloud",
|
|
127
|
+
fetch: async (apiKey, fetchFn, now) => {
|
|
128
|
+
if (!apiKey) return undefined;
|
|
129
|
+
const response = await fetchFn("https://acme.example/usage", { headers: { Authorization: `Bearer ${apiKey}` } });
|
|
130
|
+
if (!response.ok) return undefined;
|
|
131
|
+
return { provider: "acme-cloud", plan: "Acme · 42 credits", limits: [], fetchedAt: now };
|
|
132
|
+
},
|
|
133
|
+
});
|
|
134
|
+
```
|
|
121
135
|
- The bar names the subscription it shows (`codex`, `claude`, a NaN model) and always follows the active model. A provider with per-model allowances draws the session model's own meter, falling back to its family and then to the account total, never to whichever model the payload happens to list first — and that holds for a payload that reports a single metered model too, because one allowance is still per-model data rather than a reason to echo the first entry. The panel puts the active provider first, marked with the petal, and says why it has no data when it does not: API-key providers have no subscription windows, Claude reports after the first response, Codex and NaN wait for a fetch. A provider without per-model allowances keeps its single aggregate line in the sidebar, unchanged.
|
|
122
136
|
- A provider with per-model allowances is ordered by family on both surfaces: a family stays together, the family that consumes most comes first, and the models inside it follow the same rule, most used first. There are no `total` rows anywhere — an aggregate nobody can act on only costs space — so the account and family totals survive only as the bar's fallback name when the session model holds no allowance of its own (`nan total`). An allowance row leaves the window label empty and prints `name meter percent`, while a labeled sub-window (`4h`) keeps its column, and the reset a window reports rides that same line after a `·`; a window without one ends at its percentage, never on a dangling separator. The sidebar's Usage group prints those same rows in that same order, so the breakdown does not require opening the panel, and stops at the percentage: the reset dates stay in the panel. A row whose windows all round to `0%` is dropped from that group — an allowance nobody has touched yet tells the reader nothing the missing row does not — and the same rule retires the aggregate line of a provider without raw allowances once every window it shows sits at `0%`; the bar and the panel keep printing it, so a zeroed subscription is still verifiable there.
|
|
123
137
|
- Only the plan name and the windows are kept; account details in the payload are discarded.
|
|
@@ -136,6 +150,16 @@ Gentle notices are drawn as cards: the same rounded frame as the prompt. An info
|
|
|
136
150
|
- An active dev-binary override shows above the editor at startup, in amber, naming the binary and its digest, and leaves with the first prompt; an invalid override shows in red with the reason.
|
|
137
151
|
- Subagents draw their own card; see Gentle Agents below.
|
|
138
152
|
|
|
153
|
+
### Native interactive tools
|
|
154
|
+
|
|
155
|
+
Gentle Shell ships its own interactive tools instead of depending on third-party extensions; the built-ins replace `npm:pi-subagents-j0k3r` and `npm:@juicesharp/rpiv-todo` (see Gentle Agents and Gentle Todo below for the removal steps).
|
|
156
|
+
|
|
157
|
+
- **`ask_user_question`** — one to four structured questions in a single questionnaire, each with two to four options, multi-select, per-option descriptions and previews — rendered as real TUI dialogs, usable in the live session.
|
|
158
|
+
- **`ask_user_choice`** — one exactly representable single-select question, with an opt-in free-text response.
|
|
159
|
+
- **`todo`** — plan tracking with the Gentle Todo card (see Gentle Todo below).
|
|
160
|
+
- **`gentle_review` / capture tools** — the native review surface for receipt-driven development.
|
|
161
|
+
- **Optional companions** (separately installed, never bundled): `gentle-engram` for persistent memory, `pi-web-access` for web access when a task needs it and your policy allows it, `pi-lens` for additional inspection surfaces, `pi-intercom` for cross-session communication where your Pi setup supports it, and `@juicesharp/rpiv-ask-user-question` for interactive choice support where a separately installed extension fits your setup. These are companions, not hidden prerequisites or a claim that every Pi installation has every capability; persistent memory is **not** bundled with `gentle-pi`.
|
|
162
|
+
|
|
139
163
|
### Gentle Agents
|
|
140
164
|
|
|
141
165
|
The current package requires Pi 0.85.1 or newer (development tests pin 0.85.1). Use the latest Pi release; gentle-pi does not update your installed Pi automatically. Children, including any `GENTLE_PI_AGENTS_PI` override, must emit `agent_settled`: `agent_end` records a run's output but is not completion because retries or queued continuations may follow.
|
|
@@ -156,7 +180,7 @@ The card is above the editor in every mode, including fullscreen — it is not o
|
|
|
156
180
|
Every subagent is its own `pi --mode rpc` child process, so the terminal never runs subagent work: the host reads JSON lines, applies each one as a small delta to a bounded per-task thread, and notifies only the listeners of that task. A task-mode child's question (`ctx.ui.select`, `confirm`, `input`, `editor`) reaches you as an ordinary pi dialog; a background child's question is dismissed. Subagents have no automatic total execution timeout: a long-running child remains live while it continues emitting RPC events. A silent child still times out through the configurable `stall_timeout_ms` watchdog (default four minutes). An announced tool call that is still running is live work, not silence, so it is bounded by `tool_stall_timeout_ms` instead (default 30 minutes, never below `stall_timeout_ms`). Closing pi stops the children that are still running.
|
|
157
181
|
|
|
158
182
|
- `subagent_list_agents`, `subagent_run` (`agent`, `task`, `label?`, `context?`, `workspace_root?`, `mode?` task or background), `subagent_status`, `subagent_result`, `subagent_list_tasks`, `subagent_reply` (one current-session reply to a live child query), `subagent_cancel`, `subagent_send_message` (steer a running child), `subagent_continue` (resume a finished task in its own session).
|
|
159
|
-
- `orchestrator_session_id`, `orchestrator_list`, and `orchestrator_send_message` provide local-profile session notifications. List results advertise IDs only and reachability remains unknown. Sending selects the sole advertised peer or asks the user to choose; a successful ACK means the peer accepted the notification for delivery, not that it read or completed work. This is notification-and-ACK transport only: it has no cross-session queries, offline queue, retries, broadcasts, or read/completion guarantees. On Unix, presence records remain in the profile's private transport directory while socket endpoints use a private, profile-hashed directory below the canonical system temporary directory, keeping endpoint length independent of the profile path and at most 100 encoded bytes. The shared system temporary parent is only validated (current-user-owned without group/other write, or root/current-user-owned, world-writable, and sticky); it is never claimed, permissioned, or cleaned up by gentle-pi. On POSIX, the transport uses private Unix-domain sockets; on Windows, it uses private named pipes scoped by the current account SID. Notification and ACK limits remain bounded across platforms.
|
|
183
|
+
- `orchestrator_session_id`, `orchestrator_list`, and `orchestrator_send_message` provide local-profile session notifications. List results advertise IDs only and reachability remains unknown. Sending selects the sole advertised peer or asks the user to choose; a successful ACK means the peer accepted the notification for delivery, not that it read or completed work. This is notification-and-ACK transport only: it has no cross-session queries, offline queue, retries, broadcasts, or read/completion guarantees. On Unix, presence records remain in the profile's private transport directory while socket endpoints use a private, profile-hashed directory below the canonical system temporary directory, keeping endpoint length independent of the profile path and at most 100 encoded bytes. The shared system temporary parent is only validated (current-user-owned without group/other write, or root/current-user-owned, world-writable, and sticky); it is never claimed, permissioned, or cleaned up by gentle-pi. On POSIX, the transport uses private Unix-domain sockets; on Windows, it uses private named pipes scoped by the current account SID, served by a package-local PowerShell helper (`runtime/windows-session-transport.ps1`): the transport selects that fixed helper, and availability and delivery depend on the helper's bounded startup and pipe checks. Notification and ACK limits remain bounded across platforms.
|
|
160
184
|
- `subagent_run.workspace_root` selects an existing worktree in the session's Git clone. Validation happens before queueing; the child runs at that canonical root. Successful OS spawn registers the root in the originating parent session, including delayed queued launches, even without an active shell listener. Failed spawns do not register. `subagent_continue` retains the previous task's cwd; status and task details expose it.
|
|
161
185
|
- Background work requires a live interactive/RPC parent. Both `subagent_run` and `subagent_continue` reject background mode in `pi -p` before creating or spawning a task: the parent exits before it can receive a later result. Use task mode for bounded print-mode work.
|
|
162
186
|
- A background task's result comes back to the model as a `gentle-agents.result` message, drawn as a rose card, and starts a new turn when the agent is idle; the model never polls.
|
package/docs/readme-reference.md
CHANGED
|
@@ -106,7 +106,7 @@ This is guidance through existing tools, not a new CLI, phase, state engine, or
|
|
|
106
106
|
| **Skill creation workflow** | Provides the `gentle-ai-skill-creator`/`gentle-ai-skill-improver` skills, `/skill-creation` prompt, and packaged style guide for LLM-first skills. |
|
|
107
107
|
| **Delivery skills** | Includes issue-first PRs, chained PRs, work-unit commits, cognitive docs, comment writing, and Judgment Day review. |
|
|
108
108
|
| **Bounded native review** | Freezes one candidate, dispatches only controller-selected lenses, and records native authority. Review outcomes are informational; delivery follows ordinary repository policy. |
|
|
109
|
-
| **Verified native runtime** | The current source checkout provisions the exact package-local Gentle AI v3.
|
|
109
|
+
| **Verified native runtime** | The current source checkout provisions the exact package-local Gentle AI v3.5.0 runtime: signed, SHA-256-pinned release archives on Darwin/Linux and a Go SumDB-verified source build on Windows x64/arm64. It validates package-local integrity and rejects PATH, global, sibling, symlink, and mode fallbacks. |
|
|
110
110
|
| **Runtime safety** | Blocks destructive shell commands, asks for confirmation for sensitive operations, and blocks direct read/write/edit access to sensitive paths. |
|
|
111
111
|
|
|
112
112
|
## Native pointer regions
|
|
@@ -143,7 +143,7 @@ The stable release is [`v2.6.0`](https://github.com/Gentleman-Programming/gentle
|
|
|
143
143
|
|
|
144
144
|
### Source checkout
|
|
145
145
|
|
|
146
|
-
This checkout prepares `gentle-pi` `3.
|
|
146
|
+
This checkout prepares `gentle-pi` `3.4.0`; it is source state, not a published release. Its package-local native runtime pin is Gentle AI `v3.5.0`, distinct from the published `v2.6.0` pairing.
|
|
147
147
|
|
|
148
148
|
The native SDD status consumer accepts both the pinned producer's legacy
|
|
149
149
|
`apply`/`verify`/`remediate`/`archive` instruction record and the classical
|
|
@@ -154,7 +154,7 @@ Unknown or incomplete instruction records still fail closed.
|
|
|
154
154
|
The Pi runtime now uses native status exclusively for SDD and retires standalone
|
|
155
155
|
sync. The full chain follows completed apply to archive, where applicable delta
|
|
156
156
|
specs are composed; verification remains explicitly invokable. With the current
|
|
157
|
-
3.
|
|
157
|
+
3.5.0 pin, native still requires verification and its emitted evidence requirements;
|
|
158
158
|
a plain practical PASS report does not satisfy that legacy native gate. Pi forwards
|
|
159
159
|
those exact instructions without overriding readiness or inventing legacy evidence.
|
|
160
160
|
Classical direct-archive behavior is compatibility-tested with an identified
|
|
@@ -188,7 +188,7 @@ pi install npm:gentle-pi@2.6.0
|
|
|
188
188
|
|
|
189
189
|
RDD remains opt-in. Enable it only through an explicit user decision with `/gentle:review-mode enable`; `status` lets you inspect the mode without changing it.
|
|
190
190
|
|
|
191
|
-
The source checkout's RDD integration installs Gentle AI only into its private `.gentle-ai/` directory. Darwin and Linux use pinned release assets with asset and executable SHA-256 verification (signed archives for source pin `v3.
|
|
191
|
+
The source checkout's RDD integration installs Gentle AI only into its private `.gentle-ai/` directory. Darwin and Linux use pinned release assets with asset and executable SHA-256 verification (signed archives for source pin `v3.5.0`; raw prerelease binaries only under a prerelease pin). Windows x64 and arm64 build the exact `v3.5.0` source tag with a local Go 1.25.10+ toolchain, a sealed Go environment, `GOTOOLCHAIN=local`, and `GOSUMDB=sum.golang.org`; it does not download Go automatically. Windows provenance is Go-toolchain plus SumDB evidence and postinstall tamper detection, **not** Authenticode or protection against a malicious joint binary-and-manifest replacement. Package-private locks coordinate cooperative concurrent or crashed installers; their tombstones fail closed. A malicious same-user process with write access to package-private `node_modules` is outside that protocol because it can already replace package code, binary, or manifest, and portable Node has no pathname-delete CAS. It never uses `PATH` or a global `gentle-ai` installation. For development or offline installs only, set `GENTLE_PI_SKIP_GENTLE_AI_INSTALL=1`; native review operations then fail closed with an actionable `package-local-binary-missing` error. To recover explicitly, if `GENTLE_PI_SKIP_GENTLE_AI_INSTALL` is set, remove or unset it before changing to the installed `gentle-pi` package directory. Then run `node scripts/install-gentle-ai.mjs`. This invokes the package-owned installer without relying on a global binary or npm configuration change. A missing binary can result from skipped lifecycle scripts, but does not prove that lifecycle scripts were disabled.
|
|
192
192
|
|
|
193
193
|
Recommended companion packages:
|
|
194
194
|
|
|
@@ -237,6 +237,7 @@ An orphan branch with commits and no parent has no branch point to name as `base
|
|
|
237
237
|
/gentle:persona Switch between gentleman and neutral persona modes.
|
|
238
238
|
/gentle:background-subagents Show or set the managed background-subagents policy, with its deciding source.
|
|
239
239
|
/gentle:review-mode Show or set the receipt-driven development mode (status|enable|disable).
|
|
240
|
+
/gentle:animations Show or set global animations: quality, performance, or potato.
|
|
240
241
|
/gentle:banner Configure startup rose, text logo, and color preset.
|
|
241
242
|
```
|
|
242
243
|
|
|
@@ -362,13 +363,13 @@ flowchart TD
|
|
|
362
363
|
|
|
363
364
|
VALIDATE is informational. Commit, push, PR, and release commands follow ordinary repository policy; RDD never authorizes, rewrites, consumes review state for, or blocks them. Dangerous-command safety and destructive-review consent remain independent.
|
|
364
365
|
|
|
365
|
-
For the source checkout, native contract pairing is exact: this adapter resolves only the integrity-verified package-local Gentle AI v3.
|
|
366
|
+
For the source checkout, native contract pairing is exact: this adapter resolves only the integrity-verified package-local Gentle AI v3.5.0 executable, independently hashes it, then negotiates `gentle-ai.review-integration/v2` outside the repository. Capabilities are cached by that executable digest. Every START, target status, FINALIZE, validate, and BIND-SDD request passes the same contract identifier. Negotiated envelopes decode exactly against the vendored schemas; `recover` routes only the provider-selected `action_disposition`, and optional additions require a future compatible schema/minor that the provider explicitly advertises and the consumer negotiates.
|
|
366
367
|
|
|
367
368
|
Contract `/v2` replaces the Base64 `candidate_diff` reviewer transport of `/v1` with immutable `base_tree`/`candidate_tree` plus an ordered `changed_path_manifest` and never an inline patch. `gentle-pi` negotiates `/v2` only, with no dual-lane fallback; the cutover landed as one atomic commit against gentle-ai v2.2.2 (tracked by the `migrate-review-integration-v2` change), and the `/v1` schemas stay packaged because the `/v2` schemas `$ref` into their fragments. This provider contract version is unrelated to Pi's own internal "compact-v2" review-authority naming used below — the shared digit is coincidental, not a version pairing.
|
|
368
369
|
|
|
369
370
|
Target status owns `current_target`, `unrelated`, `ambiguous`, and `corrupted` applicability and returns one native action. Pi does not reconstruct ordinary authority from provider-private files or choose a lineage from repository-wide history. Restart recovery rebuilds only the derived candidate view from the native Git/content projection, including intended-untracked paths, symlinks, and immutable gitlink identities. Native failure envelopes retain their exact mutation outcome, replayability, required inputs, request digest, and next action. After an unknown or lost mutating result, Pi calls target status before any replay decision and returns only the provider-declared action.
|
|
370
371
|
|
|
371
|
-
Once the source checkout's pinned gentle-ai runtime (currently v3.
|
|
372
|
+
Once the source checkout's pinned gentle-ai runtime (currently v3.5.0) has written review authority, rollback MUST preserve every native store and receipt and MUST NOT run a downgraded binary against that repository. Disable the Pi route or roll forward to a compatible authority-aware release instead; deleting authority data or reinstalling an older binary is not a rollback path.
|
|
372
373
|
|
|
373
374
|
### FINALIZE wrapper input
|
|
374
375
|
|
|
@@ -824,6 +825,7 @@ One limitation is worth stating. When a pinned profile omits an agent, that agen
|
|
|
824
825
|
| `/gentle:persona` | Switches global persona mode, with project override support. |
|
|
825
826
|
| `/gentle:background-subagents` | Shows or sets the managed background-subagents policy (`status\|enable\|disable`), naming the source that decided it. |
|
|
826
827
|
| `/gentle:double-esc-cancel` | Shows or sets the double-esc-cancel preference (`status\|enable\|disable`); no argument toggles it. |
|
|
828
|
+
| `/gentle:animations` | Shows or sets global animations (`status\|quality\|performance\|potato`); no argument reports status. |
|
|
827
829
|
| `/gentle:telemetry` | Shows or changes the local Gentle AI telemetry trigger (`status\|enable\|disable\|preview`). |
|
|
828
830
|
| `/gentle:review-mode` | Shows or sets the receipt-driven development mode (`status\|enable\|disable`); user-initiated only, Pi automation never toggles it. |
|
|
829
831
|
| `/gentle:banner` | Configures startup banner rose, text logo, and color preset. |
|
|
@@ -840,6 +842,16 @@ One limitation is worth stating. When a pinned profile omits an agent, that agen
|
|
|
840
842
|
|
|
841
843
|
Startup installs and refreshes only delegation and review assets. SDD assets are installed/refreshed on demand; status and doctor report never-installed SDD assets as informational, while missing or stale assets from an existing installation identify their owner-specific repair command. User and project overrides are reported separately from package drift. Package refresh preserves overrides; explicit saved model settings may still update existing SDD or custom-agent routing at startup.
|
|
842
844
|
|
|
845
|
+
### Native cache warming (Pi 0.86.1+)
|
|
846
|
+
|
|
847
|
+
To allow warming while the parent waits for background results, explicitly set `"cacheWarming": "idle"` in Pi's `settings.json` (user scope: `~/.pi/agent/settings.json`, or project scope: `.pi/settings.json`). Gentle Shell never changes this setting. Native `"streaming"` mode stops when the agent settles: no idle decision is offered for this hook to override. `"off"` remains an opt-out.
|
|
848
|
+
|
|
849
|
+
Pi owns provider cache-lifetime eligibility, safe replay, scheduling, and the fixed 30-minute idle / one-hour streaming horizons. Unknown provider lifetimes do not get inferred. Real provider requests replace Pi's schedule; Gentle Shell adds no timer or maintenance message. Refresh usage stays outside model context. Warming is best-effort, not a guarantee of a future cache hit.
|
|
850
|
+
|
|
851
|
+
Ordinary idle decisions retain Pi's 15% continuation assumption. When the active parent owns queued or running background tasks, Gentle Shell treats continuation probability as 1, but still requires estimated cache-miss savings minus refresh cost to be at least $0.05. Restored, foreign-session, foreground, waiting-for-input, and finished tasks do not strengthen that decision. This only overrides candidates Pi actually offers; it never starts, inspects, polls, steers, or duplicates children.
|
|
852
|
+
|
|
853
|
+
Completion remains push-driven through `gentle-agents.result`. Retain the task ID, end the parent turn when independent work is done, and never sleep or periodically poll status/results to maintain cache or detect completion. Status inspection is for a concrete orchestration decision, not a heartbeat.
|
|
854
|
+
|
|
843
855
|
### Background subagents policy
|
|
844
856
|
|
|
845
857
|
Background delegation requires a live interactive/RPC parent and is rejected in `pi -p`, even when the policy is on. Use task mode for bounded print-mode work.
|
|
@@ -899,6 +911,20 @@ Three sources can decide the policy, and the first hit wins:
|
|
|
899
911
|
|
|
900
912
|
The file uses the strict shape `{"schema":"gentle-pi.double-esc-cancel/v1","policy":"on"}`. A file that is present but malformed fails closed to `off` instead of falling through to the environment variable, and the command reports that case as a warning instead of an ordinary `off`. The extension resolves the policy once at startup and updates it in memory when the command runs; the prompt never re-reads the file on every keypress.
|
|
901
913
|
|
|
914
|
+
### Animation modes
|
|
915
|
+
|
|
916
|
+
Use `/gentle:animations performance` to reduce redraw frequency, or `/gentle:animations potato` to stop Gentle-owned periodic animation. Find **Animation mode** under the command palette's **Configuration** group. `/gentle:animations` and `/gentle:animations status` report the effective mode and deciding source without writing; `/gentle:animations quality` restores the default.
|
|
917
|
+
|
|
918
|
+
| Mode | Working prompt | Startup banner |
|
|
919
|
+
|------|----------------|----------------|
|
|
920
|
+
| `quality` (default) | Existing frames every 80ms | Existing animation every 25ms |
|
|
921
|
+
| `performance` | One animation pulse every 1000ms | One paint every 250ms, advancing 10 logical ticks to retain approximately the original duration |
|
|
922
|
+
| `potato` | Static idle/working/queued state, no animation interval | Completed static artwork immediately, no animation interval |
|
|
923
|
+
|
|
924
|
+
The selection is global: `<configHome>/animations.json`, where `configHome` honors `GENTLE_PI_CONFIG_HOME` and defaults to `~/.pi/gentle-ai`. The strict file shape is `{"schema":"gentle-pi.animations/v1","policy":"quality"}`. There is no project or environment mode override. Missing files use `quality`; malformed or unreadable files also fall back to `quality`, with an attributable warning in status, and are not silently rewritten.
|
|
925
|
+
|
|
926
|
+
A successful command applies to the live prompt immediately, including while working. Starting and settling still request immediate renders. Pi owns enqueue repaint scheduling; Gentle shows the current queued state on the next host render without requiring an animation tick. A running startup banner retains its creation-time policy; the new selection applies at the next banner creation. Operational polling, refresh/debounce timers, Pi core animations, and install-time `tuiMode` are unchanged.
|
|
927
|
+
|
|
902
928
|
Startup banner settings remain global in `banner.json` under `GENTLE_PI_CONFIG_HOME` (default `~/.pi/gentle-ai`). Existing `showRose` and `showTextLogo` opt-outs independently control the main startup artwork; both default to enabled. Changes apply on the next session or `/reload`. Color presets are `pink` (default), `cyan`, `yellow`, and `green`. The static sidebar heading is independent of these preferences and follows the active theme.
|
|
903
929
|
|
|
904
930
|
Startup flag:
|