| Revert "wip: gentle"
This reverts commit 99bae2ce6cfd1b72b8a76347a13f6a7dc7718d89.
| 5 天前 |
| Revert "wip: gentle"
This reverts commit 99bae2ce6cfd1b72b8a76347a13f6a7dc7718d89.
| 5 天前 |
| feat: add autoloadSkills frontmatter field for agent definitions
Adds optional autoloadSkills field to agent frontmatter that automatically loads listed skills when a sub-agent is spawned. Uses the same buildSkillPromptMessage + sendCustomMessage mechanism as interactive skill loading, queued via sendCustomMessage({ triggerTurn: false }) before the first session.prompt(task). No extra agent turns, no new injection path. Skills stay in listing for sub-resource access. Compaction behavior matches manual loading. Unknown skill names silently skipped.
Lore-id: f85fdbdc
Constraint: autoload must use buildSkillPromptMessage + sendCustomMessage, never modify systemPrompt or use contextFiles
Constraint: triggerTurn must be false to avoid extra agent turns
Rejected: append to systemPrompt | agent cannot distinguish skill content from own instructions
Rejected: contextFiles injection | agent sees opaque file blob, cannot discover sub-resources
Rejected: promptCustomMessage per skill | N extra agent turns with model inference
Directive: autoload skill names are resolved against parent session skill list at spawn time in task/index.ts
Tested: TypeScript compiles clean with tsc --noEmit
Tested: parseAgentFields parses array and CSV string frontmatter
Tested: parseAgentFields returns undefined for absent and empty fields
Not-tested: bun test cannot run locally due to missing pi_natives native addon (requires Rust toolchain)
Confidence: high
Scope-risk: moderate
Reversibility: clean
| 8 天前 |
| Revert "wip: gentle"
This reverts commit 99bae2ce6cfd1b72b8a76347a13f6a7dc7718d89.
| 5 天前 |
| Revert "wip: gentle"
This reverts commit 99bae2ce6cfd1b72b8a76347a13f6a7dc7718d89.
| 5 天前 |
| Revert "wip: gentle"
This reverts commit 99bae2ce6cfd1b72b8a76347a13f6a7dc7718d89.
| 5 天前 |
| Revert "wip: gentle"
This reverts commit 99bae2ce6cfd1b72b8a76347a13f6a7dc7718d89.
| 5 天前 |
| Revert "wip: gentle"
This reverts commit 99bae2ce6cfd1b72b8a76347a13f6a7dc7718d89.
| 5 天前 |
| Revert "wip: gentle"
This reverts commit 99bae2ce6cfd1b72b8a76347a13f6a7dc7718d89.
| 5 天前 |