Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By matthewmathistrellysv1.53.0MITIn 1 marketplace
SessionStart checks that tell an agent session the true state of the world and establish that repository Markdown is untrusted historical material. Also installs PreToolUse speed bumps that turn a first attempt down once and let the same attempt through again: an expensive Elixir force-rebuild, and a headless `claude -p` run that would bill the API account instead of the subscription. Plus an advisory on first contact with a large, actively-worked source file. A SubagentStart hook tells a spawned subagent, and only when it is true, that the worktree it was handed is behind origin/main and how far — SessionStart context never reaches a subagent, so an agent otherwise greps a stale tree and reports missing what merely is not checked out. A PostToolUse advisory notes, once per file, when a session writes a Markdown file this repo's conventions do not expect. Available on demand via /scry. A PreToolUse ADVISORY speaks when a Bash command creates a branch without naming a start point, giving how far HEAD sits behind origin/<default> and how old the last fetch is, since a count measured against a stale remote-tracking ref is itself stale; SCRY_BRANCH_POINT_FETCH_HOURS (default 2) sets when a fetch counts as dated. It never fetches, moves nothing, and denies nothing. A plugin monitor (Claude only) watches when the session's prompt cache goes cold — read from the status-line payload, the only place Claude Code reports it, via a small wrapper the user points statusLine at once — and, at most once per user message, asks the session to write a summary as its reply in the conversation while the cache is still warm — never to a file — opening with the full session id and how to pick it up in a new window; a UserPromptSubmit hook is what re-arms it, and only for a user message, so tool calls, cache hits, task and monitor notifications, and the summary itself never do. It follows the session a /clear starts in the same process. While work the session started is unfinished, it sends instead a keep-alive with a roster of that work as Scry can read it from metadata (workflows with an agent started and no result, however quiet; background commands whose output file a process still holds open; subagents written within SCRY_KEEPALIVE_FRESH_SECS, default 3600, with what the silence means once it nears the TTL) — Scry reports, the session judges. When nothing listed has written for a whole TTL it says that instead: the silent work is the only reason the session is still woken, work that never finishes never sends the notification it is kept warm for, and these are the session's own tasks to look at; it counts how many keep-alives in a row found the same and after SCRY_KEEPALIVE_SILENT_MAX (default 3) stops keeping the cache warm for it. At most SCRY_KEEPALIVE_MAX (default 8) times per user message, then it asks for the summary with the unfinished work named. SCRY_CACHE_HANDOFF=0 disables it; SCRY_CACHE_HANDOFF_LEAD_SECONDS (default 120) sets how long before expiry it speaks. statusline.sh is a whole status line for Claude Code (Claude only): folder, branch when off the default, uncommitted and unpushed counts when non-zero, model, session cost, other live sessions in the directory, the seven-day window with its reset day, context as tokens over the window, and the cache segment — minutes until it goes cold, and the size of the re-read the next request pays once it has. A SessionEnd hook records which session a /clear ended (id, transcript path, directory, time; one small file under $TMPDIR, deleted when the next session reads it, swept after a day), so the session that replaces it is told exactly which one it left, its transcript path, what resuming it costs, and whether Scry asked it for a summary before it went idle — read from Scry's own state file, so the successor knows whether the end of that transcript holds one. At SessionStart it names in-process teammates (named agents that live inside the Claude process and die only with it — /clear does not end them) spawned in this repo family by any session a running Claude process has held, with age, said once per process per set of names; Scry cannot see whether one is still registered, so it names ListAgents as what can, and stops nothing (2026-09-21: twenty idle for four days, found only when asked). It also names what that session left RUNNING: the subagents still writing under its session id, and the background jobs under it that recorded no result. A subagent, workflow agent or background job outlives the session that launched it, but its result reports to a session id that takes no more turns — and before 1.29.0 this hook filed those subagents under "other sessions", which reads as somebody else's work and is what makes a replacement session start the same build a second time on the same branch. At two moments it gives an insight from research, never an instruction: when a subagent's report comes back reading as a review, the three kinds of finding (defect, quality, speculative) and how each is settled; when an edit adds comment text to a code file, what keeps a comment true, naming claims about other modules and names, dates or stories when it sees them, in the added text or already in the file. Two notes about shared services, naming none: before a command runs a remote tool (ssh, curl, psql, kubectl, aws, gh api, git fetch) in a loop, in parallel or in the background, it says the session has no reading of that service's health or load and that retries and parallel callers multiply the load; after two or more timeouts, 5xx, 429 or slow calls from remote tools within ten minutes, it says what the answers do and do not show. At SessionStart it flags open PRs that passed review and CI but sit unqueued, PRs knocked out of the merge queue, checks that failed after passing on the run before, and an idle merge queue while reviewed PRs wait. At SessionStart it also names subfolders below the start folder that carry their own AGENTS.md or CLAUDE.md and that what they say is not in context during early planning, search, naming, and builder briefs; and at SessionStart and after a write of an AGENTS.md or CLAUDE.md, it names any folder whose AGENTS.md has no CLAUDE.md that links to or imports it.
Trending plugins
7-day copy clicks
Claude loads one when your task matches it, or you run it by name.
2 cautions to review before installing
A hook runs when Claude uses the Bash tool
A hook runs when Claude writes or edits files
Static checks of hooks, mods, MCP servers and commands. Not a security audit.
1 marketplace, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Claude Code and
Codex SessionStart checks that give a
fresh agent session — or a fresh you — the state of the world the instant it
starts, instead of making it dig or making you remember to ask. Both clients
run the same shared scripts from this repository; only their package manifests
are client-specific.
A session is told its working directory and a git snapshot, and nothing else. Not what else is running, not what the last session was doing, not what the machine is carrying. Independent checks and advisories fill that in.
| Answers | |
|---|---|
architecture.sh | Will the first build or compile here surprise me? |
stack.sh | What is it built on? |
pins.sh, pins_edit_advisory.sh | Is a version pinned here known-vulnerable, or far behind what is released? One line at startup, once, for a high or critical advisory on a runtime dependency; a count in the status line; a note on the manifest being edited; the rest on demand |
elixir_build_guard.sh | Is this command about to cost me 20 minutes? |
health.sh | Is this repo in good shape? |
fleet.sh | What else is happening right now? |
pressure.sh | What shape is this machine in? |
context_length_advisory.sh | How much is this session carrying, and what does that mean? A ladder of notes as the context grows (60k, 80k, 100k, 200k, then every 100k), each adding a work type and updating the earlier ones |
load_fanout_advisory.sh, service_distress_advisory.sh | Is this session about to hit something shared many times over, or already getting the answers a struggling service gives? A note before a loop, parallel or background fan-out against a remote tool; a note after repeated timeouts, 5xx, 429 or slow calls |
subagent_cold_advisory.sh, peek_deliver.sh, send_cold_guard.sh | What is a quiet subagent doing, how big is it, and what would waking it re-read? At 45 minutes of silence a background peek reads its record and a small model writes a note, which the main agent receives on its next hook; the first message to an agent whose cache is cold is turned down once with that note |
schedule_cost_advisory.sh | What does a repeating check-in re-read, and how many runs a day does the schedule make? |
skills/check-sessions | What are all the other sessions doing? Reads them without messaging or waking any, through the same reader the peek uses (peek.py) |
main_drift_advisory.sh | Is the tree this subagent was handed the current one? |
cache_handoff_monitor.sh | Is this session about to lose its prompt cache — and what is still unfinished, or what should be summarised first? |
roster.sh | What did this session start that has not finished — and is it what I remember? |
teammates (in fleet.sh, roster.sh) | Which in-process teammates, from any session a live Claude process has held, were never recorded as stopped — with the one tool that can tell, ListAgents, named. Said once per process per set of names. |
statusline_setup.sh | Is Scry's status bar set up — and if not, why is there no bar? |
| Markdown trust | What goes wrong when repository prose is mistaken for authority? |
architecture.sh — the build state of the codebase's projects, or a
quick folder layout when there is nothing to say. It is a dispatcher, not a
language scanner: it hands off to scanners/ (Elixir today), so one hook
works in every repo including a polyglot tree. For each mix project it says
when deps are not fetched and when the build is cold (the next compile is a
full one). It does not describe
what the code holds (domains, resources): that is the work, not the
environment, and a repo's own pages carry it (removed in 1.52.0). It searches
down from the repo root, not up from the session's directory — an upward
walk only finds a project marker at or above cwd, so a monorepo whose
mix.exs files live in apps/* got nothing, in exactly the repo that most
needed it.
The search prunes vendored trees as it walks rather than filtering after —
a naive repo-wide search of a real monorepo returned 2,512 mix.exs
files, almost all under deps/, which would have reported Ash's own
projects as the application's. Excluding deps/, _build/ and node_modules/ left
62; excluding .worktrees/ (~20 checkouts of the same projects) left the
real 3. Pruned, it runs in ~240ms where a naive find takes ~2s.
7-day copy clicks
Plugins from other owners that cover similar ground
Built from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
npx claudepluginhub matthewmathistrellys/scry --plugin scry