feat(mcp): one-call startup panel + registration-cost telemetry#593
Merged
NagyVikt merged 2 commits intoJun 12, 2026
Merged
Conversation
added 2 commits
June 12, 2026 15:37
startup_panel gains compact_hivemind, attention_summary, and tool_profile so it answers 'who else is active / anything blocking / which surface am I on' alone; AGENTS.md makes it THE startup call with escalation rules, deprecating the 4-call sweep. savings_report emits registration_cost from instrumented tool registration.
docs/mcp.md startup loop now matches AGENTS.md (panel first, sweep = escalation). Lane task previews strip newlines before the 80-char cut. Registration telemetry's schema-first-overload undercount documented.
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
Phases 4+5 of the approved Colony plan (final token-reduction slice):
startup_panelnow carriescompact_hivemind(8-lane map: agent/branch/activity/task),attention_summary({unread, blocking, pending_handoffs}), andtool_profile(lean/full — agents know whether to restart withCOLONY_TOOL_PROFILE=fullfor plan/spec/memoir tools). AGENTS.md and docs/mcp.md both bless it as THE startup call with explicit escalation rules; the legacy 4-call sweep stays as deprecated fallback (agents-contract test green). Saves ~3 MCP calls of context per session.buildServerinstruments every registration (gateToolRegistrationonRegister);savings_reportemitsregistration_cost{profile, tool_count, name_description_tokens} so the per-session schema-injection cost is observable at runtime. Schema-inclusive budgets remain enforced bytool-budget.test.ts.Test plan
pnpm typecheck/pnpm lint(incl. agents-contract) /pnpm test(mcp-server 314) /pnpm build🤖 Generated with Claude Code