jetbrains-session

jetbrains-session is a skill for Claude Code, Codex from Kilo-Org/kilocode. It costs 50 tokens per session (3,401 once invoked), scanned A, original, MIT.

A set of instructions for working on the chat session interface of a JetBrains plugin. It covers Swing components, session lifecycle, transcript cards, background styling, session events, and tests using a fake session API.

In plain words
What is it for?
It helps modify chat transcript cards, session and controller behavior, background surfaces, editor-based styling, session events, and related tests.
Why use it?
It helps keep the interface visually consistent and prevents lifecycle or theme problems when changing session screens.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions AGENTS.md.

Good fit It helps modify chat transcript cards, session and controller behavior, background surfaces, editor-based styling, session events, and related tests.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/kilo-org/kilocode/jetbrains-session
About the project

Kilo Code is an open-source AI coding agent that works inside VS Code and JetBrains, from the command line, or through cloud services. Developers use it to build software with AI models, switch between providers, and run cloud agents or automated code reviews. The catalogue includes eleven skills, eight agents, and one instruction for Kilo Code.

Kilo-Org/kilocode · 27,622 stars · on GitHub · kilo.ai

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add Kilo-Org/kilocode --skill jetbrains-session
Clone the repo
git clone --depth 1 https://github.com/Kilo-Org/kilocode

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for jetbrains-session

README.md
[![agentmods](https://agentmods.dev/badge/skills/kilo-org/kilocode/jetbrains-session/github.svg)](https://agentmods.dev/skills/kilo-org/kilocode/jetbrains-session)
Your own site
<a href="https://agentmods.dev/skills/kilo-org/kilocode/jetbrains-session"><img src="https://agentmods.dev/badge/skills/kilo-org/kilocode/jetbrains-session/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for jetbrains-session

Your own site · 80×15
<a href="https://agentmods.dev/skills/kilo-org/kilocode/jetbrains-session"><img src="https://agentmods.dev/badge/skills/kilo-org/kilocode/jetbrains-session.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 50 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,401 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00050 $0.03401
Opus 5.5 $0.00020 $0.01360
Sonnet 5.5 $0.00010 $0.00680
Haiku 4.5 $0.00005 $0.00340

Measured 17d ago against content hash 6fca84e293d2, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

jetbrains-session scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 17d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.kilo/skills/jetbrains-session/SKILL.md · 220 lines

How it starts

The opening of the file, as written. The whole thing — 220 lines — stays where its author put it; the contents beside it link to each section on GitHub.

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.

  • SessionRootPanel is the primary opaque backdrop. It overrides getBackground() and returns SessionUiStyle.Colors.sessionBackground().
  • sessionBackground() follows the panel background, but when that equals the raised editor surface (codeBlockBackground()) — e.g. Islands Dark/Darcula, where panel and editor backgrounds are identical — it shifts by SESSION_DELTA via UiStyle.Colors.contrast (lighter in dark themes, darker in light) so the prompt bubble/input and other raised surfaces stay visible. This is a universal fallback, not a per-theme override.
  • SessionRootPanel.Blocker is the only other session-background opaque panel. It also overrides getBackground() with sessionBackground() for modal blocking.
  • Scroll panes, viewports, transcript layout panels, message lists, turn containers, wrapper panels, and card bodies should be non-opaque unless they intentionally paint a distinct surface.
  • applyStyle(style) must not assign session-background colors. It may update fonts, foregrounds, editor colors, and other non-background styling. Background colors that must be dynamic should come from getBackground() or custom painting.
  • Transcript card header hover is getBackground()-driven: keep an isHovered flag on the hover row/header, set or clear it from mouse enter/exit, and repaint only that row/header. Do not assign row.background or header.background on hover.
  • Primary/secondary transcript card bodies are transparent by default. The actual content inside a body (code blocks, todo list, shell/tool output) is the raised surface: make that content component opaque and paint SessionUiStyle.Colors.codeBlockBackground() (the editor background), using its own insets so the fill covers the whole content. For MdView-backed bodies set md.opaque = false so the prose/body stays transparent while the code/output panes remain the opaque editor surface — do not make the whole body opaque.
  • Rounded cards that paint their own surface (for example RoundedContentPanel-based question/login cards) should do that in custom painting or a contentColor() override, not by making every nested panel opaque.
  • Standard platform buttons placed on custom-painted session cards should not force the card background. If a button sits on a rounded/custom-painted card, make it non-opaque when needed so Swing does not fill its rectangular bounds behind DarculaButtonUI's rounded paint (notably visible in Islands Light).
  • DialogView (question, permission, login-required, outcome, revert, onboarding cards) is a fourth documented surface: contentColor() paints SessionUiStyle.View.Dialog.bgColor() — a DIALOG_DELTA contrast shift off the backdrop — while outlined is true, so the card reads as its own panel, distinct from both the backdrop and codeBlockBackground(). Its border is Dialog.outlineColor(), the midpoint between backdrop and card fill, so the edge is a soft transition rather than the hard Outline.brightColor() line a fill-less card needs. setOutlined(false) drops back to the plain backdrop color with no outline, for chrome-free states like an interrupted-run note.

Read the full file on GitHub · 220 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 17d ago First seen · 220 lines · 50 tokens per session scan A 6fca84e293d2

Subscribe to this mod's changes

jetbrains-session is a skill published in the GitHub repository Kilo-Org/kilocode (27,622 stars, last pushed today), licensed MIT. It adds 50 tokens to every session and 3,401 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-29.

Related

Other skills, from other repositories

theme-factory

Create new AiderDesk UI themes by defining SCSS color variables, registering theme types, and adding i18n display names. Use when adding a theme, creating a color scheme, customizing appearance, or implementing dark mode and light mode variants.

hotovo/aider-desk · 53 tokens

data-viz

Act as a Senior Data Visualization Designer for dashboards, analytics pages, and chart-driven UI built in Recharts / visx / D3 / Plotly — chart-type decision tree, dashboard layout heuristics, color-blind safe palettes, empty/loading/error states, library trade-offs. For a one-off chart or plot, prefer a…

rajitsaha/100xprism · 86 tokens

motion-designer

Act as a Senior Motion Designer to specify and ship purposeful UI animation — micro-interactions, transitions, scroll-driven sequences, page transitions, loading states. Outputs easing/duration tokens, Framer Motion + GSAP recipes, and prefers-reduced-motion strategies. For implementing with the Motion/Framer Motion…

rajitsaha/100xprism · 87 tokens

a11y-auditor

Act as a Senior Accessibility Engineer to audit a page, component, or design against WCAG 2.2 AA. Produces a triaged finding list (critical/serious/moderate), focus-order map, contrast report, ARIA decision tree, and a screen-reader test plan. Use when shipping new UI, hardening an existing flow, or preparing for…

rajitsaha/100xprism · 88 tokens

enterprise-design

Produce a comprehensive technical blueprint for a web product or SaaS, suitable for implementation in Figma Make, engineering sprints, and cloud deployment.

rajitsaha/100xprism · 32 tokens

figma-translator

Translate any technical specification into five precise, self-contained Figma Make prompts ready to paste and generate. Use when you have an enterprise-design, visual-system-architect, or copywriting output and need to convert it into Figma Make–compatible prompts covering hero, features, social proof, CTA, and mobile…

rajitsaha/100xprism · 68 tokens