wick-resource-limits

wick-resource-limits is a skill for Claude Code, Codex from yogasw/wick. It costs 93 tokens per session (3,105 once invoked), scanned A, original, MIT.

A guide to controlling and measuring how much memory, CPU, and disk input/output a coding agent uses. It explains three modes: off, measure, and enforce.

In plain words
What is it for?
Use it to inspect resource usage, set agent limits, understand out-of-memory kills, check disk space and usage history, and diagnose queued agent launches.
Why use it?
It clarifies why an agent may run out of memory, be killed, wait in a queue, or use more resources than expected. It also explains which limits work only on Linux and which information is available everywhere.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions subagents; mentions Codex.

Good fit Use it to inspect resource usage, set agent limits, understand out-of-memory kills, check disk space and usage history, and diagnose queued agent launches.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/yogasw/wick/wick-resource-limits
Install

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.

Any agent
npx skills add yogasw/wick --skill wick-resource-limits
Clone the repo
git clone --depth 1 https://github.com/yogasw/wick

Made for: Claude Code, Codex.

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 wick-resource-limits

README.md
[![agentmods](https://agentmods.dev/badge/skills/yogasw/wick/wick-resource-limits/github.svg)](https://agentmods.dev/skills/yogasw/wick/wick-resource-limits)
Your own site
<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.

agentmods 80×15 button for wick-resource-limits

Your own site · 80×15
<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>
Per session 93 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,105 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. 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.00093 $0.03105
Opus 5.5 $0.00037 $0.01242
Sonnet 5.5 $0.00019 $0.00621
Haiku 4.5 $0.00009 $0.00311

Measured 1mo ago against content hash 3992ab3990cc, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

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.

internal/agents/skillsync/builtin/wick-resource-limits/SKILL.md · 168 lines

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

Read the full file on GitHub · 168 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. 1mo ago Changed · +41 lines · +9 tokens per session 3992ab3990cc
  2. 3mo ago First seen · 127 lines · 84 tokens per session scan A abd0377059eb

Subscribe to this mod's changes

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.

Related

wick-resource-limits compared with skills from other repositories

wick-resource-limits next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
wick-resource-limitsyogasw/wickSkill42d agoMITA93Claude Code, Codex
mnemonmnemon-dev/mnemonSkill7527d agoApache-2.0A25Claude Code, Codex
mnemonmnemon-dev/mnemonSkill7527d agoApache-2.0A25Claude Code, Codex
mnemonmnemon-dev/mnemonSkill7527d agoApache-2.0A68Claude Code, Codex
mnemonmnemon-dev/mnemonSkill7527d agoApache-2.0A24Claude Code, Codex
session-historyalivecontext/aliveSkill13212d agoMITA74Claude Code
mine-for-contextalivecontext/aliveSkill13212d agoMITA61Claude Code