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.
npx skills add toolshedlabs-hash/nightshift --skill overnight-agent-guardrailsgit clone --depth 1 https://github.com/toolshedlabs-hash/nightshiftWrote 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.
[](https://agentmods.dev/skills/toolshedlabs-hash/nightshift/overnight-agent-guardrails)<a href="https://agentmods.dev/skills/toolshedlabs-hash/nightshift/overnight-agent-guardrails"><img src="https://agentmods.dev/badge/skills/toolshedlabs-hash/nightshift/overnight-agent-guardrails/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.
<a href="https://agentmods.dev/skills/toolshedlabs-hash/nightshift/overnight-agent-guardrails"><img src="https://agentmods.dev/badge/skills/toolshedlabs-hash/nightshift/overnight-agent-guardrails.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00146 | $0.00628 |
| Opus 5 | $0.00073 | $0.00314 |
| Sonnet 5 | $0.00029 | $0.00126 |
| Haiku 4.5 | $0.00015 | $0.00063 |
Grade A, and why
overnight-agent-guardrails 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 10d 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.
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.
What it actually says
Overnight agent guardrails
Use this when a user wants to leave a coding agent running unattended and needs the run to be bounded, resumable and checkable afterwards.
When this applies
- "leave it running overnight", "run this unattended", "let it work while I sleep"
- a run that kept going and produced hours of output nobody verified
- wanting a hard ceiling on what one unattended run can cost
What to do
The four scripts ship inside this skill directory, so there is nothing to fetch.
Refer to them as $SKILL_DIR below, meaning the folder this file is in.
-
Wrap the existing loop in the runaway guard. It exits nonzero when the run should stop, so it belongs in the
whilecondition:while "$SKILL_DIR/runaway-guard" --max-iters 40 --max-minutes 480; do ... one bounded unit of work ... doneAt least one cap is required. It refuses to start with none, because an unbounded loop is the thing it exists to prevent.
-
Put the project's real checks behind the gate, so unchecked work is never accepted:
"$SKILL_DIR/verify-gate" "npm test" "npm run lint"Nonzero means stop or escalate, rather than piling more work on a broken base.
-
Write the handoff file at the end of every unit of work, rewritten and not appended.
HANDOFF.mdin this directory is the template. A fresh run reads that one file and continues. -
Record events as you go with
"$SKILL_DIR/nightlog", then produce the summary with"$SKILL_DIR/morning-brief". The verdict lands on the first line.
Notes
touch $NIGHTSHIFT_DIR/STOPhalts a running loop by hand. That is the whole kill switch.- There is no daemon. State is one counter directory you can delete to reset.
- Everything is MIT and about 300 lines of bash. Reading it takes ten minutes.
What ships with it
5 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
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.
- 10d ago First seen · 61 lines · 146 tokens per session scan A fd125b199007
overnight-agent-guardrails is a skill published in the GitHub repository toolshedlabs-hash/nightshift (5 stars, last pushed 1mo ago), licensed MIT. It adds 146 tokens to every session and 628 once invoked, about $0.0007 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-08-31.
Other skills, from other repositories
adaptive-token-efficiency
Escalation-only workflow for materially ambiguous, research-heavy, high-impact, cross-system, or failed-validation tasks. Do not load for clear, bounded, low-risk work; use the AGENTS fast path.
hive.chart-creation-foundations
Required reading whenever any chart tool is available. Teaches the one-tool embedding contract (call chartrender → live chart appears in chat AND a downloadable PNG lands in the queen session dir), the ECharts (data viz) vs Mermaid (structural diagrams) decision, the BI/financial-grade aesthetic baseline (no…
browser-edge-cases
SOP for debugging browser automation failures on complex websites. Use when browser tools fail on specific sites like LinkedIn, Twitter/X, SPAs, or sites with Shadow DOM.
taiyi-ui-design
A design-planning guide for describing how an application's user interface should look and behave. It produces a UI-DESIGN.md document covering layouts, components, interactions, accessibility, and error states.
taiyi-evolve
A workflow skill that compares the implemented code with the frozen design after development and testing. It records architecture changes and proposes updates to DESIGN.md, the document describing the intended system structure.
aiwg-regenerate-copilot
Regenerate copilot-instructions.md for GitHub Copilot with vendor-specific content only.