session-limit

by Ben Drucker · ★ 17 · updated yesterday

Automationwarnings

0

Warn the model mid-turn as the 5-hour or 7-day limit nears

install session-limit

Install

/plugin marketplace add bendrucker/claude
/plugin install session-limit@bendrucker

Then run /reload-plugins or start a new session. Requires Claude Code 2.1.287+.

View source on GitHub

What it hooks into

From an automated scan with claude plugin validate, not a security review. Mods run with your permissions; read the code before installing.

Events
session.startsession.measure
API calls
$.clock.now$.modEvents.emit$.session.append$.state.get$.state.set
Reach
level 1 of 3 other: $.modEvents.emitother: $.state.getother: $.state.set

Origin

How it got here
Automated scan of public GitHub repos, via the CC0 dataset awesome-claude-code-mods (scan of ).
Repository
github.com/bendrucker/claude
Path in repo
plugins/session-limit
Source commit
8f2c1ce the exact code the scan read
Author
Ben Drucker @bendrucker
License
MIT
First published
Last pushed
First listed here

Name and description come from the mod's own manifest. We link to the code; we don't host it, and it stays under its author's license.

More from bendrucker/claude

auto-mode

bendrucker/claude

Enhancements for Claude Code auto mode

★ 17GuardsAutomation

classifier-telemetry

bendrucker/claude

Records each tool call's permission verdict and wall time so auto-mode classifier cost is measurable from the session index

★ 17GuardsAutomation

herdr

bendrucker/claude

Drive the herdr terminal workspace manager: panes, tabs, workspaces, and sibling coding agents

★ 17Automation

mod-events

bendrucker/claude

Structured event log for mods: $.modEvents.emit writes per-session OTel log records as JSONL

★ 17Automation

plan

bendrucker/claude

Planning mode guidelines and context injection

★ 17Status lineGuardsPrompt

run-command

bendrucker/claude

Pick a reply's ! suggestion by click or digit to fill it into the shell prompt

★ 17BandsReskinsPrompt