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 yogasw/wick --skill wick-resource-limitsgit clone --depth 1 https://github.com/yogasw/wickWrote 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/yogasw/wick/wick-resource-limits)<a href="https://agentmods.dev/skills/yogasw/wick/wick-resource-limits"><img src="https://agentmods.dev/badge/skills/yogasw/wick/wick-resource-limits/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/yogasw/wick/wick-resource-limits"><img src="https://agentmods.dev/badge/skills/yogasw/wick/wick-resource-limits.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.00093 | $0.03105 |
| Opus 5.5 | $0.00037 | $0.01242 |
| Sonnet 5.5 | $0.00019 | $0.00621 |
| Haiku 4.5 | $0.00009 | $0.00311 |
Grade A, and why
wick-resource-limits 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 1mo 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.
How it starts
The opening of the file, as written. The whole thing — 168 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Agent resource limits
Wick can cap how much memory, CPU, and IO its agents consume, and records what they actually used. Enforcement is done by the kernel, not by wick sampling and killing — a sampler cannot catch a process that allocates a gigabyte between two samples.
Two things follow from that, and they explain most questions about this subsystem:
- Enforcement needs cgroups, so it is Linux-only. Measurement, reporting, and crash recovery work everywhere.
- A killed agent is killed by the kernel. Wick's job is to report it accurately, not to prevent it after the fact.
The one exception is the Resource Guard watchdog (Linux): a 1-second loop over the whole host that stops agent work when CPU or memory nears a hang, before the kernel acts at the cliff edge — on a small host without swap the kernel may never act and the machine just freezes. See "The fast watchdog" below.
The three modes
memory_guard_mode, default off:
| Mode | Writes limits | Kills anything | Records usage |
|---|---|---|---|
off |
no | no | no |
measure |
no | no | yes — fully |
enforce |
yes | kernel kills the offender | yes |
The distinction that trips people up: measure records everything and applies nothing. It is not a dry run that logs what it would do — it is real measurement with no ceilings. That makes it the correct first step: run in measure for a while, look at the observed peaks, then set limits from real numbers rather than guesses.
Do not describe measure as "not doing anything". It is doing the measuring; it is only withholding the enforcement.
What each platform can actually do
Answer from this table rather than inferring from "Linux-only":
| Capability | Linux + systemd | Linux, no systemd | Windows | macOS |
|---|---|---|---|---|
| Per-agent memory ceiling | yes | yes | no | no |
| Aggregate ceiling for all agents | yes | yes | no | no |
| CPU weight / quota / task cap | yes | no | no | no |
| Naming an OOM kill with its peak | yes | no | no | no |
Peak readable in measure mode |
yes | yes | no | no |
| Agents die before wick does | yes | yes | no | no |
| Queue a spawn when RAM is low | yes | yes | no | no |
| Machine memory total / available | yes | yes | yes | no |
| Process listing | yes | yes | yes | no |
| Disk capacity | yes | yes | yes | yes |
| Usage history + Resources page | yes | yes | yes | partial |
| Crash recovery + respawn | yes | yes | yes | yes |
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.
- 1mo ago Changed · +41 lines · +9 tokens per session 3992ab3990cc
- 3mo ago First seen · 127 lines · 84 tokens per session scan A abd0377059eb
wick-resource-limits is a skill published in the GitHub repository yogasw/wick (4 stars, last pushed 2d ago), licensed MIT. It adds 93 tokens to every session and 3,105 once invoked, about $0.0004 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.
wick-resource-limits compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| wick-resource-limitsyogasw/wick | Skill | 4 | 2d ago | MIT | A | 93 | Claude Code, Codex |
| mnemonmnemon-dev/mnemon | Skill | 752 | 7d ago | Apache-2.0 | A | 25 | Claude Code, Codex |
| mnemonmnemon-dev/mnemon | Skill | 752 | 7d ago | Apache-2.0 | A | 25 | Claude Code, Codex |
| mnemonmnemon-dev/mnemon | Skill | 752 | 7d ago | Apache-2.0 | A | 68 | Claude Code, Codex |
| mnemonmnemon-dev/mnemon | Skill | 752 | 7d ago | Apache-2.0 | A | 24 | Claude Code, Codex |
| session-historyalivecontext/alive | Skill | 132 | 12d ago | MIT | A | 74 | Claude Code |
| mine-for-contextalivecontext/alive | Skill | 132 | 12d ago | MIT | A | 61 | Claude Code |