Skip to content

Conversation

@marius-kilocode
Copy link
Contributor

@marius-kilocode marius-kilocode commented Dec 2, 2025

Adds a new Agent Manager panel for running multiple autonomous agent sessions in parallel.

Features:

  • Adds an Agent Manager button to the kilo code sidebar
  • Each agent is driven by a in process isolated kilo code cli binary
  • Users can start multiple agent sessions in parallel in the same repository
  • Start, stop, and remove sessions
  • Session state managed via Jotai in webview

Notes:

  • The parallel worktree integration is not part of this PR to keep it smaller
  • Behind feature flag (AGENT_MANAGER_ENABLED) - dev mode only
  • Agents run in full-auto mode without user confirmation, but user gets a notification
  • Requires kilocode CLI to be installed (we validate this)
  • We also validate for empty repositories
  • All localizations are added

Screens
image
image
image
image

@changeset-bot
Copy link

changeset-bot bot commented Dec 2, 2025

⚠️ No Changeset found

Latest commit: d324170

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds a multi-agent orchestration system called "Agent Manager" that enables running multiple autonomous AI agent sessions in parallel. Each agent is driven by an isolated Kilocode CLI process running in JSON mode, with state management handled via Jotai in the webview.

Key Changes:

  • New Agent Manager panel accessible from the sidebar (behind AGENT_MANAGER_ENABLED feature flag)
  • Complete webview UI with session management, message streaming, and real-time status updates
  • Backend provider that spawns and manages CLI processes, parsing nd-json output
  • Comprehensive test coverage for parser logic and state management

Reviewed changes

Copilot reviewed 33 out of 34 changed files in this pull request and generated 5 comments.

Show a summary per file
File Description
webview-ui/vite.config.ts Added agent-manager.html as build entry point
webview-ui/agent-manager.html New HTML entry for Agent Manager webview
webview-ui/package.json Added Jotai dependency for state management
webview-ui/src/i18n/locales/en/agentManager.json English localizations for Agent Manager UI
webview-ui/src/agent-manager/index.tsx React app entry point with i18n setup
webview-ui/src/agent-manager/utils/vscode.ts VS Code API wrapper for webview communication
webview-ui/src/agent-manager/state/ Jotai atoms and hooks for session and message state
webview-ui/src/agent-manager/components/ React components for UI (sidebar, detail view, messages, chat)
webview-ui/src/agent-manager/components/AgentManagerApp.css Complete styling for Agent Manager UI
src/core/agent-manager/types.ts TypeScript interfaces for agent sessions and messages
src/core/agent-manager/CliOutputParser.ts Parser for CLI nd-json output with ANSI handling
src/core/agent-manager/AgentRegistry.ts In-memory session registry with lifecycle management
src/core/agent-manager/AgentManagerProvider.ts Main provider managing webview and CLI processes
src/core/agent-manager/__tests__/ Comprehensive test suites for parser and provider
src/core/task/Task.ts Added CLI-mode storage path fallback
src/activate/registerCommands.ts Registered agentManagerOpen command
src/package.json Added Agent Manager command to VS Code manifest
packages/types/src/vscode.ts Added agentManagerOpen command ID
packages/types/src/feature-flags.ts Added AGENT_MANAGER_ENABLED feature flag
pnpm-lock.yaml Lockfile updates for Jotai dependency
Files not reviewed (1)
  • pnpm-lock.yaml: Language not supported

Copy link
Contributor

@RSO RSO left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I tested it, and while there's definitely room for improvement, I think this is a good place to start with a first version. Great job!

@marius-kilocode marius-kilocode merged commit 27f5631 into main Dec 4, 2025
12 checks passed
@marius-kilocode marius-kilocode deleted the agent-manager branch December 4, 2025 10:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants