Open
Conversation
Design for DJ to manage multiple concurrent Codex processes, each typed with a roster persona. Covers orchestrator bridge, command parsing, cross-agent communication, and dynamic mid-session spawning.
18-task TDD plan covering roster loader, command parser, agent pool, pool event multiplexing, persona-aware UI, and startup integration.
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
internal/roster/) to load persona definitions from.roster/personas/*.mdYAML frontmatter files and repo signals fromsignals.jsoninternal/orchestrator/) that extractsdj-commandJSON blocks from streaming agent deltas for spawn/message/complete actionsinternal/pool/) to manage multiple concurrent Codex agent processes with spawn, stop, lookup by thread ID, and orchestrator detectioninternal/config/with roster path, auto-orchestrate toggle, and max agent countp/m/s/Kkeybindings for swarm controlcmd/dj/main.go) to load roster and create an agent pool when personas are available, falling back to single-client mode otherwiseInputBarModelfor text entry, persona picker menu, agent picker for messaging, canvas swarm filter, and menu intent routing for multi-purpose menusNew packages
internal/roster/internal/orchestrator/dj-commandfenced block parser for streaming deltasinternal/pool/AgentPoolmanaging multipleAgentProcessinstancesSwarm interaction UI (new in this update)
inputbar.gomsgs.go,app_menu.goMenuIntentenum distinguishes persona picker, agent picker, and thread context menuapp_swarm.gopkey opens persona menu → input bar for task entry → spawns agentapp_swarm.gomkey opens agent menu → input bar for message → sends to agentcanvas.goskey toggles canvas to show only agent threadsapp_inputbar.goTest plan
go test ./... -v -race— all passgolangci-lint run— 0 issuesgo build -o dj ./cmd/dj— builds successfully