Skip to main content

Module modes

Module modes 

Source
Expand description

claude-code-mode — the minor mode layered on the IDE terminal buffer.

I1 registers it as a Manual-activation marker mode (no per-buffer resources). In I5 it becomes the minor mode :claude activates on the BufferKind::Terminal buffer running the agent: its on_activate will ensure the server is running, contribute the headerline status row, and own the diff affordances (design §3). The -mode suffix matches the ModeRegistry naming convention (enforced at registration).

Structs§

ClaudeCodeMode
The Claude Code IDE minor mode.
ClaudeCodeStatusGuard
I7: per-activation Guard. While claude-code-mode is active on a buffer, that buffer shows the claude-code modeline status segment; the Guard’s Drop (on deactivate / buffer close) unregisters it so the segment clears. None when the server handle wasn’t available at activation (e.g. tests without the service) — then the Guard is an inert no-op.

Functions§

register_claude_code_modes
Register claude-code-mode against registry. Called from editor boot.