Skip to content

feat(mcp): one-call startup panel + registration-cost telemetry#593

Merged
NagyVikt merged 2 commits into
mainfrom
agent/claude/startup-panel-one-call-and-registration-2026-06-12-15-26
Jun 12, 2026
Merged

feat(mcp): one-call startup panel + registration-cost telemetry#593
NagyVikt merged 2 commits into
mainfrom
agent/claude/startup-panel-one-call-and-registration-2026-06-12-15-26

Conversation

@NagyVikt

Copy link
Copy Markdown
Collaborator

Summary

Phases 4+5 of the approved Colony plan (final token-reduction slice):

  • One-call startup. startup_panel now carries compact_hivemind (8-lane map: agent/branch/activity/task), attention_summary ({unread, blocking, pending_handoffs}), and tool_profile (lean/full — agents know whether to restart with COLONY_TOOL_PROFILE=full for 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.
  • Registration-cost telemetry. buildServer instruments every registration (gateToolRegistration onRegister); savings_report emits registration_cost {profile, tool_count, name_description_tokens} so the per-session schema-injection cost is observable at runtime. Schema-inclusive budgets remain enforced by tool-budget.test.ts.

Test plan

  • pnpm typecheck / pnpm lint (incl. agents-contract) / pnpm test (mcp-server 314) / pnpm build
  • New assertions: panel tool_profile/compact_hivemind/attention_summary; savings registration_cost (tool_count>70, tokens>1000 under full)
  • Independent review: APPROVE (MEDIUM docs/mcp.md drift + 2 LOW fixed in-branch)

🤖 Generated with Claude Code

NagyVikt 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.
@NagyVikt NagyVikt merged commit fc53979 into main Jun 12, 2026
6 of 8 checks passed
@NagyVikt NagyVikt deleted the agent/claude/startup-panel-one-call-and-registration-2026-06-12-15-26 branch June 12, 2026 14:01
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