-
Notifications
You must be signed in to change notification settings - Fork 1.1k
feat(subagent): add API key pool for parallel subagent execution #2369
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
Liewzheng
wants to merge
23
commits into
MoonshotAI:main
Choose a base branch
from
Liewzheng:dev-feat-subagent-optimized
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
23 commits
Select commit
Hold shift + click to select a range
63eeaf1
feat(subagent): add API key pool for parallel subagent execution
Liewzheng f7ff734
docs: update env-vars and agents docs for subagent multi-key parallel…
Liewzheng dc9eb9c
docs: update CHANGELOG for subagent multi-key parallel execution
Liewzheng c1b2853
fix(subagent): only inject key-pool keys for kimi provider; fix TOCTO…
Liewzheng 304190a
fix(subagent): unwrap KeyPoolKimi in isinstance checks; limit key-poo…
Liewzheng 45f3c74
fix(subagent): remove API key from log; use resume model for concurre…
Liewzheng fcab6e1
fix(subagent): remove API key from builder log; keep timed-out agents…
Liewzheng fc60a89
fix(subagent): address Codex Review round 4 feedback
Liewzheng a7b00bb
fix(subagent): resolve default model and count matching-provider runs…
Liewzheng b438f87
fix(subagent): clear pre-run timeouts from running_foreground
Liewzheng 7b63d29
fix(subagent): rotate keys for streaming status retries
Liewzheng 66cf0ae
refactor(subagent): centralise KeyPoolKimi unwrapping with unwrap_kim…
Liewzheng cc1d643
feat(subagent): add key health tracking with exponential cooldown to …
Liewzheng 026e43e
fix(auth): preserve pooled API keys during OAuth refresh
Liewzheng ee7452c
fix(key-pool): reset key failures when cooldown expires
Liewzheng b50ef8f
fix(key-pool): advance fallback slot when all keys cooling down
Liewzheng 53efcfd
fix(auth): only skip OAuth refresh for wrapped pooled providers
Liewzheng 4e4267f
fix(agent): allow timeout=0 to disable foreground timeout
Liewzheng 100b9bc
fix(agent): reject zero timeout for background agents
Liewzheng 60d70eb
fix(agent): respect resume model overrides when applying provider caps
Liewzheng cb47dfc
fix(agent): persist resumed model override to store for provider cap …
Liewzheng bcd5f0b
fix(agent): defer persisting resume model override until launch succeeds
Liewzheng 628b42b
fix(agent): keep non-Kimi foreground cap global
Liewzheng File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
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
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
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
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
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
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
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When users follow this new table and pass
timeout: 0toAgentto disable the foreground timeout, the tool call is rejected before it reaches_resolve_foreground_timeoutbecauseParams.timeoutis constrained withge=30insrc/kimi_cli/tools/agent/__init__.py. The0escape hatch currently only works throughKIMI_FOREGROUND_AGENT_TIMEOUT, so either allow0in the parameter schema or remove this instruction from the docs.Useful? React with 👍 / 👎.