coding: Command for Claude Code

.claude/commands/sl.md

sl is a command for Claude Code from fwornle/coding. It costs 16 tokens per session (2,435 once invoked), scanned B, original, MIT.

A command for loading and summarising recent session logs, which are saved records of earlier coding work.

In plain words
What is it for?
Use it to review recent project and coding-session history before continuing a task.
Why use it?
It restores context from previous sessions so work can continue without starting from the beginning.

Command for Claude Code

Written for Claude Code: argument-hint in frontmatter. Also seen: reads .claude/ paths; mentions Claude Code.

This is fwornle/coding's own configuration. It tells Claude Code how to work on coding itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything coding configures →

Reuse

Borrowing it

Nothing to install: this file belongs to fwornle/coding. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/fwornle/coding/main/.claude/commands/sl.md
Clone the repo
git clone --depth 1 https://github.com/fwornle/coding

Made for: Claude Code.

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 sl

README.md
[![agentmods](https://agentmods.dev/badge/commands/fwornle/coding/sl/github.svg)](https://agentmods.dev/commands/fwornle/coding/sl)
Your own site
<a href="https://agentmods.dev/commands/fwornle/coding/sl"><img src="https://agentmods.dev/badge/commands/fwornle/coding/sl/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 sl

Your own site · 80×15
<a href="https://agentmods.dev/commands/fwornle/coding/sl"><img src="https://agentmods.dev/badge/commands/fwornle/coding/sl.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 16 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,435 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. 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.00016 $0.02435
Opus 5.5 $0.00006 $0.00974
Sonnet 5.5 $0.00003 $0.00487
Haiku 4.5 $0.00002 $0.00244

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

Security

Grade B, and why

sl scanned grade B with 1 finding 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 20d 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.

Reads agent configuration directoriesmediumAgent snooping

.claude/, .codex/, .gemini/ hold keys, settings and other credentials a mod has no legitimate need for.

user-level rules in `~/.claude/settings.json`:
.claude/commands/sl.md · 208 lines

How it starts

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

Session Logs (/sl) - Session Continuity Command

Load and summarize recent Live Session Logs (LSL) to provide continuity from previous work sessions.

Instructions

Goal: Load recent LSL files and produce a summary to establish context continuity.

Tooling Rules (read first — these keep /sl prompt-free)

Use exactly the two ls forms below for discovery, and Read for content. Nothing else.

Do NOT use Glob. Claude Code no longer exposes a Glob tool to the main agent — search is done through Bash. An earlier version of this skill mandated Glob and banned Bash outright, which made every /sl run open with an apology about the preferred tool being unavailable before falling back to an ad-hoc find. The two commands below are the replacement; they are pre-allowed, so they do not prompt.

The two allowed discovery commands (<ROOT> is .coding/history for the current project, or the absolute coding path for Step 3):

<ROOT> is the repo's learning checkout (<repo>/.coding/history). A repo nobody has launched since per-repo tenancy has no .coding/ yet and keeps a REAL .specstory/history directory instead — use that as <ROOT> there (the same rule as lib/history/paths.cjs). Never read through .specstory/history when .coding/ exists: it is only a leftover symlink.

ls -d <ROOT>/[0-9][0-9][0-9][0-9]/[0-9][0-9]      # list YYYY/MM tranche dirs, oldest→newest
ls -1r <ROOT>/<YYYY>/<MM>                          # list one month's files, NEWEST FIRST

Both are matched by user-level allow rules (see Permissions), so they run prompt-free in any project.

Two things the numeric [0-9] pattern buys you — do not "simplify" it away:

  • .coding/history also contains non-LSL subtrees (logs/, docs/). A recursive **/*.md sweep over the coding project returns ~23,000 files, almost all noise. The numeric year/month pattern selects only real LSL tranches.
  • Listing one month at a time keeps the result at tens of files, not thousands.

Read the full file on GitHub · 208 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. 20d ago Changed · +9 lines b7f228d0b5d0
  2. 1mo ago Changed · +4 lines 67c1612cdc29
  3. 1mo ago Changed · +1 lines · +2 tokens per session 8555aec1f331
  4. 1mo ago First seen · 194 lines · 14 tokens per session scan B cf5cf5ad5f25

Subscribe to this mod's changes

sl is a command published in the GitHub repository fwornle/coding (2 stars, last pushed today), licensed MIT. It adds 16 tokens to every session and 2,435 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it B with 1 finding (reads agent configuration directories). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.