feat: subagent system with parallel execution and TUI fork panel - #11
Draft
LiusCraft wants to merge 23 commits into
Draft
feat: subagent system with parallel execution and TUI fork panel#11LiusCraft wants to merge 23 commits into
LiusCraft wants to merge 23 commits into
Conversation
- 删除 internal/store/,Store 接口和 FileStore 实现移至 session/store.go - Agent Loop 持有 session.Store 接口,不直接依赖 FileStore - 新增 session.Open 封装新建或恢复语义,消除 main.go 中重复的字段修补逻辑 - 更新所有引用和测试
- new internal/notify/ package: global event hub with pattern matching - new internal/tools/mcp/ package: MCP Manager with stdio/streamable-http/SSE transport - Registry: add Register/Unregister/UnregisterAll/ReloadTools for dynamic tool management - Config: add mcp_servers support with validation - Wire MCP Manager into main.go with Event Hub hooks for failure handling - Update README with system architecture diagram, MCP config docs
… scroll mode - Remove MouseModeCellMotion so terminal native text selection works - Remove mouse event forwarding and viewport MouseWheelEnabled (no-op without mouse mode) - Enable DEC alternate scroll mode so mouse wheel still scrolls viewport - Handle up/down arrow keys for viewport scroll (alternate scroll mode converts wheel to key events) - Fix spawn_agent default fallback handling
- ctrl+s: cycle focus through running subagents - ctrl+k: kill focused subagent - esc: exit detail view - Render subagent session messages when focused - Footer hint: ctrl+s subagent
…pproach Replace ctrl+s/ctrl+k/focusAgent with compact informational panel. Running subagents shown as inline status like '⟳ sub:explore'. Users view subagent details via get_agent_session tool through main agent.
…, prevent queue overwrite
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.
Subagent System
实现并行 subagent 系统,支持角色配置、独立上下文执行、事件驱动的 TUI 监控。
功能
架构
internal/subagent/manager.go - SubagentManager
internal/subagent/tools.go - 4 个工具工厂
internal/agent/loop.go - SystemPrompt 字段
internal/config/config.go - AgentConfig + merge
internal/session/session.go - ParentID + NewSubagent