refactor!: delegate skill workflows to plugin-scoped subagents #4
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "refactor/subagent-architecture"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The three skill SKILL.md files (~17 KB total) used to load into the main
session on every invocation and persist in the conversation history until
compaction. This PR moves each workflow body into a plugin-scoped subagent
(
agents/commit-worker.md,agents/push-worker.md,agents/pr-worker.md)and rewrites each SKILL.md as a thin orchestrator (~9 KB total, -49%) that
drives a two-pass exchange:
mode=proposereturns a structured plan, theorchestrator surfaces it via
AskUserQuestionin main,mode=executecarries out the approval. The heavy workflow body now lives inside the
subagent's isolated context and is discarded when the subagent terminates,
so main only ever holds the thin router plus the short summary artifacts.
Frontmatter descriptions are tightened too (-25% off the pre-refactor
baseline) to cut the persistent system-reminder cost. Requires a Claude
Code runtime that supports plugin-scoped agents at
<plugin-root>/agents/<name>.md— documented in a new README Architecturesection