kirillk 83ec1b33df fix(jetbrains): harden mermaid parsing, limits and sequence layout
Addresses PR review on the mermaid diagram engine:

- Share AwtMeasure safely. The engine service holds one instance and draws
  off the EDT on the default dispatcher, so the font cache is now a
  ConcurrentHashMap. The Graphics2D that had no dispose() is already gone.
- Refuse pathological sources earlier. A character cap is checked before any
  preprocessing, node and link caps are enforced while the model is built so
  `A & B & ... --> ...` cannot expand first, and both parsers check
  cancellation per line. The `%%{...}%%` mask is a linear scan instead of a
  lazy regex that rescanned to end-of-text per unterminated opener, and the
  message regex can no longer backtrack over a colon-free line.
- Assign subgraph membership on re-mention. `Client --> Gateway` followed by
  `subgraph core` / `Gateway --> Auth` now puts Gateway inside the frame,
  which is how mermaid reads it.
- Report sequence scene size from glyph extents, not anchors, so a
  left-anchored self-message label is inside the bounds a renderer clips to.
- Close activations left open at the end of a script, so `A->>+B: hi` with no
  matching deactivate still draws its bar.
- Parse participant ids through unquote and match ` as ` case-insensitively
  outside quotes, so `participant "Alice"` and `PARTICIPANT C AS Client`
  resolve to one column.

assertInBounds now checks text extents rather than anchors, so this class of
overflow fails in tests instead of clipping at paint time.
2026-08-26 13:01:26 -04:00
2026-07-22 13:31:23 +02:00
2026-07-22 13:31:23 +02:00
2026-07-22 13:31:23 +02:00
2026-07-22 13:31:23 +02:00
2026-08-19 19:43:23 +00:00
2026-08-17 08:52:26 +02:00
2026-07-22 13:31:23 +02:00
2026-08-20 12:26:16 +00:00
2026-07-22 13:31:23 +02:00
2026-07-30 14:24:24 +02:00
2026-07-22 15:00:34 +02:00
2026-07-30 14:24:24 +02:00
2026-07-22 13:31:23 +02:00
2026-07-22 13:31:23 +02:00
2026-07-22 13:31:23 +02:00
2026-07-22 13:31:23 +02:00
2026-08-20 12:26:16 +00:00
2026-07-22 13:31:23 +02:00
2026-07-22 13:31:23 +02:00
2026-07-22 13:31:23 +02:00
2026-07-22 13:31:23 +02:00
2026-07-22 13:31:23 +02:00
2026-07-22 13:31:23 +02:00
2025-09-27 04:10:56 -04:00
2026-07-30 14:24:24 +02:00

English | 简体中文 | 繁體中文 | 한국어 | Deutsch | Español | Français | Italiano | Dansk | 日本語 | Polski | Русский | Bosanski | العربية | Norsk | Português (Brasil) | ไทย | Türkçe | Українська | বাংলা | Ελληνικά | Tiếng Việt

Kilo Code logo

The open source coding agent for building with AI in VS Code, JetBrains, or the CLI.

VS Code Marketplace npm X (Twitter) Blog Discord Reddit

Kilo-in-VS-Code-and-CLI


Kilo Code is an AI coding agent that meets you everywhere you work: VS Code, JetBrains, and the CLI. It's open source with open pricing. You pick from 500+ models, switch between them mid-task, and pay the model provider's rate with zero markup. No API keys required to start.

Installation

Pick where you want to run Kilo.

VS Code

Install the Kilo Code extension directly, or grab it from the VS Code Marketplace. Create an account and you'll have access to 500+ models including GPT-5.5, Claude Opus 4.7, Claude Sonnet 4.6, and Gemini 3.1 Pro Preview, all at provider pricing.

CLI
# npm
npm install -g @kilocode/cli

# curl
curl -fsSL https://kilo.ai/cli/install | bash

# pnpm
pnpm add -g @kilocode/cli

# bun
bun add -g @kilocode/cli

# Homebrew (macOS / Linux)
brew install Kilo-Org/tap/kilo

# Arch Linux (AUR)
paru -S kilo-bin

Then run kilo in any project directory to start.

JetBrains

Install the Kilo Code plugin from the JetBrains Marketplace, or search "Kilo Code" in Settings → Plugins inside any JetBrains IDE.

Cloud Agent

Run Kilo from the web, no local machine needed, at app.kilo.ai/cloud.

Code Reviews

Set up automated AI code reviews on your pull requests at app.kilo.ai/code-reviews.

KiloClaw

Spin up your always-on AI agent at app.kilo.ai/claw.

Install the CLI from GitHub Releases (binaries)

Download the latest binary from the Releases page.

Platform Asset
Windows (most PCs) kilo-windows-x64.zip
macOS (Apple Silicon) kilo-darwin-arm64.zip
macOS (Intel) kilo-darwin-x64.zip
Linux x64 kilo-linux-x64.tar.gz
Linux ARM kilo-linux-arm64.tar.gz

Notes: x64-baseline is a compatibility build for older CPUs without AVX. musl is the statically linked build for Alpine or minimal Docker images without glibc. kilo-vscode-*.vsix is the VS Code extension package, not the CLI. Source code archives are for building from source.

Agents

Kilo ships with specialized agents you switch between depending on the task. You can also build your own custom agents.

  • Code - The default. Implements and edits code from natural language.
  • Plan - Designs architecture and writes implementation plans before any code gets written.
  • Ask - Answers questions about your codebase without touching any files.
  • Debug - Troubleshoots and traces issues.
  • Review - Reviews your changes and surfaces issues across performance, security, style, and test coverage.

Learn more about agents and custom agents.

What it does

  • Code generation from natural language, across multiple files.
  • Inline autocomplete with ghost-text suggestions and tab to accept.
  • Self-checking so the agent reviews and corrects its own work.
  • Terminal and browser control to run commands and automate the web.
  • MCP marketplace to find and wire up MCP servers that extend what the agent can do.
  • 500+ models with mid-task switching, so you can match latency, cost, and reasoning to the job.

Autonomous Mode (CI/CD)

Run kilo run with --auto for fully autonomous operation with no prompts, built for CI/CD pipelines:

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

--auto disables all permission prompts and lets the agent execute any action without confirmation. Only use it in trusted environments.

Documentation

For configuration and everything else, head over to the docs.

Contributing

Contributions are welcome from developers, writers, and everyone in between. Start with the Contributing Guide for environment setup, coding standards, and how to open a pull request. See RELEASING.md for the VS Code extension and CLI release process, and packages/kilo-jetbrains/RELEASING.md for the JetBrains plugin.

Please review our Code of Conduct before getting involved.

License

MIT. You're free to use, modify, and distribute this code, including commercially, as long as you keep the attribution and license notices. See License.

FAQ

Where did Kilo CLI come from?

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


Join the community Discord | X | 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%