Marius 46e06264da feat(agent-manager): add fixed local session tab with branch display and persistence (#446)
* tmp

* tmp

* tmp

* feat(agent-manager): add fixed local session tab with branch display and persistence

Add a dedicated local session item at the top of the agent manager sidebar
that always runs in the main repo (never a worktree). The local session
persists across panel reopens via vscode webview state, shows the current
git branch name (refreshed on click), and supports keyboard navigation.

Extract navigation logic into a pure testable function with 16 unit tests.

* fix(agent-manager): invalidate stale persisted localSessionID on recovery

The local session ID was persisted to webview state but never checked
against the actual sessions list on recovery. If the session was deleted
or expired between VS Code reloads, the UI would get stuck selecting a
ghost session with no way to recover.
2026-02-19 11:49:15 +01:00
2026-02-18 13:26:43 +01:00
2026-02-18 19:30:20 +01:00
2026-02-19 10:11:36 +00:00
2026-02-10 22:10:03 -03:00
2026-02-18 19:30:20 +01:00
2026-02-10 22:10:03 -03:00
2025-06-29 21:12:58 -04:00
2026-02-02 18:32:22 -03:00
2026-02-18 17:03:12 -03:00
2026-01-01 17:54:11 -05:00
2026-02-10 22:10:03 -03:00
2026-02-16 15:30:43 -03:00
2026-02-18 18:16:52 +01:00
2026-02-13 14:18:59 +00:00
2026-02-18 19:30:20 +01:00
2025-09-27 04:10:56 -04:00

Kilo CLI logo

The open source AI coding agent.

Discord X Reddit


Installation

# npm
npm install -g @kilocode/cli

# Or run directly with npx
npx @kilocode/cli

Then run kilo in any project directory to start.

Agents

Kilo CLI includes two built-in agents you can switch between using the Tab key:

  • build - Default, full access agent for development work
  • plan - Read-only agent for analysis and code exploration
    • Denies file edits by default
    • Asks permission before running bash commands
    • Ideal for exploring unfamiliar codebases or planning changes

Also included is a general subagent for complex searches and multi-step tasks. This is used internally and can be invoked using @general in messages.

Autonomous Mode (CI/CD)

Use the --auto flag with kilo run to enable fully autonomous operation without user interaction. This is ideal for CI/CD pipelines and automated workflows:

kilo run --auto "run tests and fix any failures"

Important: The --auto flag disables all permission prompts and allows the agent to execute any action without confirmation. Only use this in trusted environments like CI/CD pipelines.

Migrating from Kilo Code Extension

If you're coming from the Kilo Code VS Code extension, your configurations are automatically migrated:

Kilo Code Feature Kilo CLI Equivalent
Custom modes Converted to agents
Rules (.kilocoderules, .kilocode/rules/) Added to instructions array
Skills (.kilocode/skills/) Auto-discovered alongside .opencode/skill/
Workflows (.kilocode/workflows/) Converted to commands
MCP servers Migrated to mcp config

MCP servers are configured in ~/.config/kilo/opencode.json (or opencode.jsonc; on Windows the config directory may be under %USERPROFILE% depending on your environment). Use a top-level "mcp" object: each key is a server name, value is type: "local" and command: ["executable", "arg1", ...]. Optional per-server: environment, enabled, timeout. Restart the CLI after editing for changes to take effect. (Path from packages/opencode/src/global/index.ts; schema in config.ts McpLocal.)

Default mode mappings:

  • codebuild agent
  • architectplan agent

For detailed migration information, see:

Documentation

For more info on how to configure Kilo CLI, head over to our docs.

Contributing

If you're interested in contributing, please read our contributing docs before submitting a pull request.

FAQ

Where did Kilo CLI come from?

Kilo CLI is a fork of OpenCode, enhanced to work within the Kilo agentic engineering platform.


Join our community Discord | X.com | Reddit

S
Description
Kilo is the all-in-one agentic engineering platform. Build, ship, and iterate faster with the most popular open source coding agent. #1 coding agent on OpenRouter. 1.5M+ Kilo Coders. 25T+ tokens processed
Readme MIT
1.3 GiB
Languages
TypeScript 81.2%
Kotlin 12.5%
CSS 3.1%
JavaScript 2.6%
HTML 0.3%
Other 0.2%