feat(mcp): add agent-stack resolution and list_agent_stacks tool (#1183, #1184)#1193
Merged
Conversation
…, #1184) - Add AgentStackService for loading/resolving agent stack presets - Extend dispatch_agents with agentStack parameter for preset-based dispatch - Add list_agent_stacks MCP tool with optional category filter - Stack resolution: custom (.codingbuddy/agent-stacks/) > default (rules/agent-stacks/) - Backward compatible: explicit primaryAgent/specialists still override
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Replace fs.PathLike and fs.Dirent references (not exported from fs/promises) with unknown type assertions to fix CI type-check.
Cast overloaded fs.readdir/readFile mocks to vi.fn() to bypass TypeScript overload resolution. Matches project convention used in custom.service.spec.ts.
JeremyDev87
commented
Apr 3, 2026
JeremyDev87
left a comment
Owner
Author
There was a problem hiding this comment.
✅ Conductor Review — APPROVE
CI: 25/25 ALL PASS (type-check fix applied)
Review: APPROVE — 0 issues
Plan Verification (#1183 + #1184 combined):
- AgentStackService with listStacks() and resolveStack()
- Custom stacks (.codingbuddy/agent-stacks/) override default stacks
- dispatch_agents accepts agentStack parameter
- Stack resolves to primaryAgent + specialists correctly
- list_agent_stacks MCP tool with category filter
- Backward compatible (explicit agent lists still work)
- Comprehensive tests for service + handler
- NestJS module wired up (agent.module.ts)
- RulesService extended for stack directory resolution
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
AgentStackServicefor loading/resolving agent stack presets from default (packages/rules/.ai-rules/agent-stacks/) and custom (.codingbuddy/agent-stacks/) locationsdispatch_agentsMCP tool withagentStackparameter for preset-based agent dispatchlist_agent_stacksMCP tool with optionalcategoryfilterprimaryAgent/specialistsstill take precedence over stack valuesCloses #1183, Closes #1184
Changes
agent-stack.service.tslistStacks(),resolveStack()agent-stack.service.spec.tsagent.handler.tsagentStackparam on dispatch_agents +list_agent_stackstoolagent.handler.spec.tsagent.types.tsAgentStack,AgentStackSummarytypes +agentStackonDispatchAgentsInputagent.module.tsAgentStackServiceproviderrules.service.tsgetRulesDir()getterTest plan