What is cs?
cs is a Claude Code mod by hex. cs's in-session mod: the band above the prompt, the rotate and wrap keys under it, and forced rotation past CS_ROTATE_FORCE_CTX. It is listed under Interface and has 57 GitHub stars.
| Type | Claude code mod |
|---|---|
| Author | hex |
| Repository | hex/claude-sessions |
| Popularity | 57 GitHub stars |
| Category | Interface |
| Security | High risk (44/100) |
| Rank | #341 of 9,397 Claude Code mods; #140 in Interface |
| License | MIT |
| Last commit | 2026-11-24 |
| Stars this week | +2 |
| Hooks | 9 events |
| Sees | every prompt, the finish skill |
| Draws on | UserMessage, AbovePrompt, SessionMode, AskUserQuestion, PromptHint |
Is cs safe to install?
cs scores 44/100 on the MCPMods security check: High risk. Things to review: starts processes outside the sandbox; writes files or config; reads environment variables; watches every prompt or event. It passed 2 of 8 checks.
Mod footprints come from claude plugin validate, which lists every event a mod hooks and every API call it makes without running it.
| Check | Result |
|---|---|
| No network access | Pass |
| Starts processes outside the sandbox | Review |
| Writes files or config | Review |
| Reads environment variables | Review |
| Watches every prompt or event | Review |
| Drives Claude (model calls, prompts) | Note |
| Validator reported problems | Note |
| Has an open-source license | Pass |
API calls in its code
| Call | What it means |
|---|---|
$.clock.after | |
$.clock.every | |
$.clock.now | |
$.command.list | |
$.command.register | |
$.command.run | drives Claude |
$.env.get | reads env vars |
$.fs.exists | reads files |
$.fs.list | reads files |
$.fs.read | reads files |
$.fs.stat | reads files |
$.fs.write | writes files |
$.process.run | runs processes |
$.prompt.submit | drives Claude |
$.session.compact | drives Claude |
$.session.cwd | |
$.session.id | |
$.session.usage | |
$.ui.ask | draws interface |
$.ui.invalidate | draws interface |
$.ui.log | draws interface |
$.ui.resolve | draws interface |
$.ui.scroll | draws interface |
$.ui.toast | draws interface |
How do I install cs?
- Check your Claude Code version. Mods need Claude Code 2.1.287 or later and are on by default.
claude --version
- Read its footprint. This lists every event it hooks and every API call it makes, without running it.
git clone https://github.com/hex/claude-sessions claude plugin validate ./claude-sessions/mods/cs
- Install it. Run this in your terminal, then /reload-plugins in an open session.
git clone https://github.com/hex/claude-sessions && claude --plugin-dir ./claude-sessions/mods/cs
Or ask Claude to set it up
Paste this into Claude Code and it installs cs for you:
Install the "cs" Claude Code mod from https://github.com/hex/claude-sessions/tree/main/mods/cs. Run claude plugin validate on it first and show me what it can access before you enable it.
More from hex/claude-sessions
This repository has 6 Claude Code mods on MCPMods.
- cs-filter-chat: Restyles the chat: your messages and Claude's replies, and nothing of the work between them. Off by default; the band's (Review before installing)
- cs-images: Draws pictures from absolute file paths inside replies, as pixels or coloured blocks. (Review before installing)
- cs-mermaid: Draws mermaid flowcharts in replies inline, as coloured blocks and lines. (Low risk)
- cs-panel: /cs opens a pane of cs's settings, its mods' /config rows and its own CS_* settings, and changes one per machine or for (Review before installing)
- cs-update: Release notes for a pending cs update, once per launch, with 1 to install it in place; /cs-update reopens the pane. (Review before installing)