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.5 | $0.00058 | $0.00251 |
| Sonnet 5.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 2mo 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.
- 2mo 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 (4 stars, last pushed 3mo ago), licensed MIT. It adds 146 tokens to every session and 628 once invoked, about $0.0006 per session on Opus 5.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.
overnight-agent-guardrails compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| overnight-agent-guardrailstoolshedlabs-hash/nightshift | Skill | 4 | 3mo ago | MIT | A | 146 | Claude Code, Codex |
| web-design-system-foundationmakifbaysal/tasktrooper | Skill | 122 | yesterday | Apache-2.0 | A | 77 | Claude Code, Codex |
| implementation-task-specmakifbaysal/tasktrooper | Skill | 122 | yesterday | Apache-2.0 | A | 29 | Claude Code, Codex |
| analiz-html-reportmakifbaysal/tasktrooper | Skill | 122 | yesterday | Apache-2.0 | A | 35 | Claude Code, Codex |
| llm-and-agent-securitymakifbaysal/tasktrooper | Skill | 122 | yesterday | Apache-2.0 | A | 73 | Claude Code, Codex |
| design-system-authoringmakifbaysal/tasktrooper | Skill | 122 | yesterday | Apache-2.0 | A | 62 | Claude Code, Codex |
| screen-mockup-htmlmakifbaysal/tasktrooper | Skill | 122 | yesterday | Apache-2.0 | A | 63 | Claude Code, Codex |