feat: add Agent Teams support and token usage fuel gauges#79
Open
ErickGross-19 wants to merge 1 commit intopablodelucca:mainfrom
Open
feat: add Agent Teams support and token usage fuel gauges#79ErickGross-19 wants to merge 1 commit intopablodelucca:mainfrom
ErickGross-19 wants to merge 1 commit intopablodelucca:mainfrom
Conversation
Backend (extension): - src/constants.ts: add Agent/TeamCreate/TeamDelete/SendMessage tool name constants and TEAMMATE_MATCH_WINDOW_MS - src/types.ts: make terminalRef optional for teammates; add inputTokens, outputTokens, and team fields to AgentState and PersistedAgent - src/teamManager.ts: new module — registerPendingTeammate, tryClaimJsonlForTeammate, markAgentAsLead, getTeammatesForLead, handleSendMessage, clearExpiredPending - src/transcriptParser.ts: detect Agent/TeamCreate/SendMessage tool events; extract token usage; expand PERMISSION_EXEMPT_TOOLS - src/fileWatcher.ts: call tryClaimJsonlForTeammate before /clear logic - src/agentManager.ts: persist/restore teammates; re-send token/lead on reconnect - src/PixelAgentsViewProvider.ts: despawn all teammates on lead terminal close Webview: - webview-ui/src/constants.ts: team label, fuel gauge, token threshold constants - webview-ui/src/office/types.ts: add team + token fields to Character; add 'message' bubble type - webview-ui/src/office/engine/characters.ts: init inputTokens/outputTokens - webview-ui/src/office/engine/officeState.ts: addAgent teamFields param; markAsLead, setAgentTokens, showSendMessageBubble; tick 'message' bubbles - webview-ui/src/hooks/useExtensionMessages.ts: handle agentIsLead, teammateCreated, teammateRemoved, agentSendMessage, agentTokenUsage - webview-ui/src/office/engine/renderer.ts: renderCharacterLabels — LEAD/role badge and color-coded fuel gauge per character
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.
Backend (extension):
Webview: