feat(pi-workflow): reuse standard agent profiles
This commit is contained in:
@@ -35,6 +35,26 @@ The managed flow is:
|
||||
|
||||
The assistant must inspect the current run before each state-changing call and obtain the user's explicit Gate Decision. It must not infer approval.
|
||||
|
||||
## Agent selection
|
||||
|
||||
`pi-workflow` reuses explicitly mapped standard definitions from `pi-interactive-subagents` before falling back to its bundled workflow profiles. By default, `scout` owns Discovery and `worker` owns Implementation; bundled profiles continue to supply Design, Prototype, Verify, and independent Review. Definitions resolve with package, global, then trusted-project precedence and are pinned into the run with their workflow role overlay.
|
||||
|
||||
Configure or disable mappings in `~/.pi/agent/pi-workflow.json` or trusted `.pi/pi-workflow.json`:
|
||||
|
||||
```json
|
||||
{
|
||||
"standardAgents": {
|
||||
"enabled": true,
|
||||
"roles": {
|
||||
"scout": ["discover"],
|
||||
"worker": ["implement"]
|
||||
}
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
A mapping replaces the complete inherited role map at that configuration layer. Agent names must be lowercase kebab case and roles must be workflow roles. Unmapped standard definitions are ignored. Standard definitions provide identity, instructions, model, thinking level, and requested tools, but do not widen permissions: workflow stage allowlists still remove `bash`, recursive subagent tools, and any other unapproved tool.
|
||||
|
||||
## Inspect and continue
|
||||
|
||||
Use `/workflow` for the drill-down dashboard. TUI mode opens shallow popup overlays for the run list, run actions, Gates, confirmations, questions, and feedback. Plans, reports, prototype evidence, and Assignment transcripts open in a sanitized full-screen reader. Escape returns one level. RPC, print, and JSON modes remain linear and never open custom overlays.
|
||||
|
||||
Reference in New Issue
Block a user