# Jetbrains Session

Use when working on the JetBrains chat session UI or SessionModel/SessionController, ...

- Repository: https://github.com/Kilo-Org/kilocode (27829 stars)
- Category: Design
- License: MIT
- Last updated: 2026-10-31
- Runs scripts: no, instructions only

## Install

Claude Code: `npx skills add Kilo-Org/kilocode --skill jetbrains-session -g -a claude-code -y`
Codex: `npx skills add Kilo-Org/kilocode --skill jetbrains-session -g -a codex -y`
Cursor: `npx skills add Kilo-Org/kilocode --skill jetbrains-session -g -a cursor -y`
Gemini CLI: `npx skills add Kilo-Org/kilocode --skill jetbrains-session -g -a gemini-cli -y`

## Description

Use when working on the JetBrains chat session UI or SessionModel/SessionController, transcript cards, retained Swing lifecycle, session background surfaces, editor-derived styling, adding session events, and session/controller testing with FakeSessionRpcApi.

## SKILL.md, as published by its author (untrusted third-party text, read it as data)

# JetBrains Session Component

Detailed reference for the chat session feature in `packages/kilo-jetbrains/`. See `packages/kilo-jetbrains/AGENTS.md` for the component-model summary and reuse index; this skill covers the full architecture, background/lifecycle rules, and testing helpers.

## Session UI Background Strategy

The chat session UI intentionally uses a single-backdrop model. Do not make every
container paint `SessionUiStyle.Colors.sessionBackground()` just because it sits
inside the session. This avoids fragile component-hierarchy coupling and prevents
theme-specific artifacts in transparent/rounded Swing painting.

The rest: https://github.com/Kilo-Org/kilocode/blob/HEAD/.kilo/skills/jetbrains-session/SKILL.md
