Skip to content

feat(subagents): spawn takes skills the subagent reads first - #25

Merged
T-Crypt merged 1 commit into
oh-my-pocketfrom
feat/stage-skills
Oct 19, 2026
Merged

T-Crypt merged 1 commit into
oh-my-pocketfrom
feat/stage-skills

Conversation

@T-Crypt

@T-Crypt T-Crypt commented Oct 19, 2026

Copy link
Copy Markdown
Owner

A router can now hand each stage the skills its job needs at spawn time. Until now a stage got only what its agent definition or router stage named in advance, so a UI refresh ran without the UI skill unless the role always carried it.

What changed

  • subagent spawn takes skills: [...]: up to four installed skills, by name. The subagent reads each in full before it starts, after the skills its definition or stage already names.
  • A name that is not installed, or a fifth skill, fails the call before anything starts. The router fixes the list and spawns again.
  • skillsToRead in routers.ts builds the "read these first" lines for editor-router stages and for spawn skills, so a stage sees the same instruction whichever asked for it.
  • docs/features.md and the README list the new option.

Proof

  • npm run check: clean.
  • npm test: 644 of 644 pass.
  • npm run format:check: clean.
  • The new test in test/routers.test.ts fails with the src/ change reverted and passes with it.

Why

The homelab hq router picks skills per stage from a table (UI work gets ui-ux-pro-max in plan, frontend-design and web-shot in implement). Without this option it could only write a Skills: line in the brief and hope a low-thinking stage opened them.

@T-Crypt
T-Crypt marked this pull request as ready for review October 19, 2026 15:13
@T-Crypt
T-Crypt merged commit 79dfbe2 into oh-my-pocket Oct 19, 2026
2 checks passed
@T-Crypt
T-Crypt deleted the feat/stage-skills branch October 19, 2026 15:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant