session-boundary

session-boundary is a skill for Claude Code from restarter/lets-workflow. It costs 55 tokens per session (2,373 once invoked), scanned A, original, MIT.

An internal helper that finds and checks the starting point for a session’s Git commit range. It reports which commits belong to the session and how trustworthy that result is.

In plain words
What is it for?
Use it when another command needs to summarize a session’s changes or save a reliable commit-range description.
Why use it?
It prevents commands from using the wrong set of commits or presenting an estimate as an exact count. It fails closed when the boundary cannot be validated.

Skill for Claude Code

Written for Claude Code: user-invocable in frontmatter. Also seen: positional $N argument.

Part of the lets plugin — 14 skills, 22 commands, 15 agents shipped together

Good fit Use it when another command needs to summarize a session’s changes or…

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/restarter/lets-workflow/session-boundary
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 restarter/lets-workflow --skill session-boundary
Clone the repo
git clone --depth 1 https://github.com/restarter/lets-workflow

Made for: Claude Code.

Or install lets, the plugin that ships this one along with the rest of its 14 skills, 22 commands, 15 agents.

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 session-boundary

README.md
[![agentmods](https://agentmods.dev/badge/skills/restarter/lets-workflow/session-boundary.svg)](https://agentmods.dev/skills/restarter/lets-workflow/session-boundary)
Your own site
<a href="https://agentmods.dev/skills/restarter/lets-workflow/session-boundary"><img src="https://agentmods.dev/badge/skills/restarter/lets-workflow/session-boundary.svg" alt="Measured on agentmods" height="20"></a>
Per session 55 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,373 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.00055 $0.02373
Opus 5 $0.00028 $0.01187
Sonnet 5 $0.00011 $0.00475
Haiku 4.5 $0.00006 $0.00237

Measured yesterday against content hash 5b4d982ec237, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

session-boundary 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 yesterday.

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.

plugins/lets/skills/session-boundary/SKILL.md · 147 lines

How it starts

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

Session Boundary

Resolve the ref a session's commit range is measured from, validate it, and say how far it can be trusted. /lets:end needs it EARLY (it gates which settlements are offered) and session-snapshot needs it LATE (the ### Range block it writes into a durable file). Two copies of a validation ladder drift, and drift here is what produced a confident "260 commits" for a 6-commit session (lets-370mx), so the ladder lives here and nowhere else.

Contract: no args. Output: four echoed lines the caller reads VERBATIM.

SESSION_BOUNDARY=<sha | none>
SESSION_TRUST=<exact | prior-session | estimate | none>
SESSION_COMMITS=<N | unknown>
SESSION_RANGE_DESC=<one-line human description, always carrying the trust level>

Diagnostic NOTEs go to stderr - surface them to the user, they are the loud half of every degradation.

Fail closed. If the four lines do not arrive, the caller MUST assume SESSION_TRUST=none / SESSION_COMMITS=unknown and proceed as though no boundary exists. Never re-derive one inline - a second copy is a second answer, which is the defect this skill exists to prevent.

Trust levels

level boundary what the caller may claim
exact this session's session: line in .task-<branch-slug> the count is this session's work
prior-session a session: line or legacy slugged ref recorded by an EARLIER session a real recorded boundary, but not this session's - best-effort
estimate nothing recorded; derived from this branch's point off $LETS_MERGE_BRANCH what this BRANCH added, not what this session did
none nothing usable (rejected, or absent while HEAD is $LETS_MERGE_BRANCH) nothing - there is no number

A caller that gates a destructive or task-completing offer on the range must require exact or prior-session. SESSION_RANGE_DESC always embeds the level, so a number cannot travel into a file or a tracker comment without the qualifier that earned it.

Resolve

Read the full file on GitHub · 147 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. yesterday First seen · 147 lines · 55 tokens per session scan A 5b4d982ec237

Subscribe to this mod's changes

session-boundary is a skill published in the GitHub repository restarter/lets-workflow (17 stars, last pushed 2d ago), licensed MIT. It adds 55 tokens to every session and 2,373 once invoked, about $0.0003 per session on Opus 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-05.

Related

Other skills, from other repositories