Orchestrate repo agents from the platform with only their repo's rules #52
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
Problem
The platform skills start repo agents (repo architects, planners, implementers, reviewers) with the
Agenttool. That tool has no working-directory setting, so every sub-agent runs inrecipe-platformand gets the platform'sCLAUDE.md, not the sibling repo's.CLAUDE.md("Sub-agent spawning pattern") and/plan-feature(Steps 4 and 5) require a sub-agent "rooted" in the sibling, because only the automatic load guarantees that the sibling's conventions are in view. Today this is approximated by telling each agent to read its repo'sCLAUDE.mdfirst. That depends on the agent following the instruction, and the platform's rules stay in its context too.Found during
/plan-featurefor spec 004, at Step 4.Goal
Repo agents started from the platform load only their repo's rules, as they would in a session opened in that repo. This keeps the context small and avoids mixing contradictory rules (e.g. the git rules for
mainandstage).Options to research
docs/team.md), so the user can also talk to a repo architect directly. Architects often ask questions, so that matters. To find out: can such an agent be rooted in its repo, and how does itsCLAUDE.mdload?Agenttool settings), and howCLAUDE.mdloads for directories outside the session's directory (--add-dirand related settings). This setup is reported to work in another project with the same sibling layout.claude -pwith the sibling as its directory), started by the skills. This roots the agent reliably, but its permissions must be set up front and its progress is less visible.Scope of the change
plan-feature,implement-feature,review-feature, possibly the sharedrecipe-workflowplugin skills,CLAUDE.md("Sub-agent spawning pattern") anddocs/team.md. Each changed skill or agent needs its ADR.🤖 Generated with Claude Code