feat: add nano team mode — LLM-planned multi-worker async collaboration#2013
Open
pancacake wants to merge 5 commits intoHKUDS:mainfrom
Open
feat: add nano team mode — LLM-planned multi-worker async collaboration#2013pancacake wants to merge 5 commits intoHKUDS:mainfrom
pancacake wants to merge 5 commits intoHKUDS:mainfrom
Conversation
Collaborator
|
Thanks @pancacake |
This was referenced Mar 15, 2026
Introduce a self-organizing team system where the LLM plans a 2-3 member team from a user goal, then each member runs as an independent async worker coordinating through a shared task board and mailbox. Key components: - team/state.py: pure dataclasses (Task, Teammate, Mail, TeamState) - team/board.py: file-locked task board (claim/complete/approve/reject) - team/mailbox.py: JSONL message bus with auto-truncation (200 msgs) - team/tools.py: TeamTool (leader) + TeamWorkerTool (worker) for LLM - team/_filelock.py: cross-platform file locking (Unix fcntl / Win msvcrt) - team/__init__.py: TeamManager lifecycle, planning, worker scheduling Also includes: - build_base_tools() factory to deduplicate tool registration - parse_json_from_llm() extracted to utils/helpers.py - CLI team panel with live board view - /team commands in AgentLoop for all channels - Risk gate for destructive instructions - Full test coverage (test_team_mode, test_team_routing, test_cli_input) Made-with: Cursor
24d4567 to
d2c7a6e
Compare
- Resolve 4 conflict files (loop.py, commands.py, schema.py, test_cli_input.py) - Migrate ~190 lines of inline team commands from loop.py into nanobot/command/team.py - Update cmd_stop/cmd_new in builtin.py for team cancellation and metadata cleanup - Fix TelegramConfig import path, missing datetime import, dead `import re` - Add /teams exact alias, update /help with team command listing - All 617 tests pass
…fix circular imports
Resolve config schema overlap by keeping both team-mode worker settings from pr-2013 and the new timezone default from main.
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
nanobot/agent/team/module: TeamManager (lifecycle & scheduling), state.py (pure dataclasses), board.py (file-locked task board), mailbox.py (JSONL message bus with auto-truncation), tools.py (TeamTool + TeamWorkerTool), _filelock.py (cross-platform file locking)build_base_tools()factory to eliminate duplicated tool registration across loop.py / subagent.py / team; moveparse_json_from_llm()to utils/helpers.pyHighlights
/team <goal>to start,/team status//team log//team stopto manage/team confirmto proceedTest Plan
test_team_mode.py— TeamManager core: plan validation, fallback, session isolation, lifecycle, approval flowtest_team_routing.py— AgentLoop command routing: all /team subcommands, aliases, approval, Telegram interceptiontest_cli_input.py— CLI team view rendering and suppress logic