Skip to content

Remove 8 AgentManager passthrough methods from route files - #625

Merged
selfcontained merged 1 commit into
mainfrom
tech-debt/remove-manager-passthroughs-routes
May 30, 2026
Merged

Remove 8 AgentManager passthrough methods from route files#625
selfcontained merged 1 commit into
mainfrom
tech-debt/remove-manager-passthroughs-routes

Conversation

@selfcontained

Copy link
Copy Markdown
Owner

Summary

  • routes/mcp.ts and routes/feedback.ts now call telemetry, persona-reviews, and feedback modules directly via pool instead of routing through AgentManager passthrough methods
  • Removed 8 pure-delegation methods from manager.ts: listRecentPersonaReviews, listRecentFeedback, getActivitySummary, getAgentHistory, getFeedbackSummary, listFeedback, listFeedbackByParent, updateFeedbackStatus
  • Also removed unused type re-exports (ActivitySummaryResult, AgentHistoryEntry, AgentHistoryResult, FeedbackSummaryResult) from manager.ts
  • Updated 3 test files to match the new call patterns
  • getPersonaReview passthrough kept — still used by mcp-handlers.ts

This continues the manager.ts passthrough cleanup series (PRs #598, #602, #608, #615, #622).

What qualifies as tech debt

These methods added indirection without value — each was a one-liner that forwarded to the underlying module. Making route files call the modules directly makes the data flow explicit and reduces the surface area of the AgentManager class.

Next run

The backlog item for next run is: manager.ts createAgent method (~300 lines) could be split into setup-script path vs inert path.

Test plan

  • pnpm run check — type checking passes
  • pnpm run test — all unit tests pass
  • pnpm run test:e2e — 160/160 E2E tests pass

🤖 Generated with Claude Code

Routes (mcp.ts, feedback.ts) now call the underlying modules
(telemetry, persona-reviews, feedback) directly via pool instead of
routing through AgentManager. This removes 80 lines of pure delegation
from manager.ts and makes the data flow explicit at each call site.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@selfcontained
selfcontained merged commit 01d9fc4 into main May 30, 2026
1 check passed
@selfcontained
selfcontained deleted the tech-debt/remove-manager-passthroughs-routes branch May 30, 2026 09:17
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