dos-enforce-tune

dos-enforce-tune is a skill for Claude Code from anthony-chaudhary/dos-kernel. It costs 62 tokens per session (2,961 once invoked), scanned A, original, MIT.

A tuning process for DOS enforcement policies, where DOS is a system that decides whether an action should be allowed or stopped. It uses recorded outcomes to adjust policy thresholds while keeping only changes that are shown to improve measured task results.

In plain words
What is it for?
Use it to run dos enforce-tune, review false denials and successful catches, and keep enforcement-policy changes only when the system measures a real improvement.
Why use it?
It reduces overly aggressive denials while preserving denials that correctly stopped unwanted actions, using evidence from cases the tuning loop did not create.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: mentions subagents.

Needs its repository: it reads a path above its own folder, which exists only inside the repository. The line is git worktree add ../_et-candidate HEAD.

Part of the dos-kernel plugin — 18 skills, 3 hooks, 1 MCP server shipped together

Good fit Use it to run dos enforce-tune, review false denials and successful catches, and keep enforcement-policy changes only when the system measures a real improvement.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/anthony-chaudhary/dos-kernel
agentmods
npx agentmods add skills/anthony-chaudhary/dos-kernel/dos-enforce-tune

Made for: Claude Code.

Or install dos-kernel, the plugin that ships this one along with the rest of its 18 skills, 3 hooks, 1 MCP server.

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 dos-enforce-tune

README.md
[![agentmods](https://agentmods.dev/badge/skills/anthony-chaudhary/dos-kernel/dos-enforce-tune/github.svg)](https://agentmods.dev/skills/anthony-chaudhary/dos-kernel/dos-enforce-tune)
Your own site
<a href="https://agentmods.dev/skills/anthony-chaudhary/dos-kernel/dos-enforce-tune"><img src="https://agentmods.dev/badge/skills/anthony-chaudhary/dos-kernel/dos-enforce-tune/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 dos-enforce-tune

Your own site · 80×15
<a href="https://agentmods.dev/skills/anthony-chaudhary/dos-kernel/dos-enforce-tune"><img src="https://agentmods.dev/badge/skills/anthony-chaudhary/dos-kernel/dos-enforce-tune.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 62 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,961 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. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 5 findings, up to high

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • high Rogue Agent · line 88
    Skill modifies its own code, configuration, or behavior at runtime. Self-modification enables an agent to escalate privileges, disable safety constraints, or install persistent backdoors.
    Fix: Prevent the skill from modifying its own code, SKILL.md, or configuration files. Treat skill files as read-only at runtime.
  • high Rogue Agent · line 191
    Skill modifies its own code, configuration, or behavior at runtime. Self-modification enables an agent to escalate privileges, disable safety constraints, or install persistent backdoors.
    Fix: Prevent the skill from modifying its own code, SKILL.md, or configuration files. Treat skill files as read-only at runtime.
  • high Rogue Agent · line 101
    Skill modifies its own code, configuration, or behavior at runtime. Self-modification enables an agent to escalate privileges, disable safety constraints, or install persistent backdoors.
    Fix: Prevent the skill from modifying its own code, SKILL.md, or configuration files. Treat skill files as read-only at runtime.
  • high Rogue Agent · line 190
    Skill modifies its own code, configuration, or behavior at runtime. Self-modification enables an agent to escalate privileges, disable safety constraints, or install persistent backdoors.
    Fix: Prevent the skill from modifying its own code, SKILL.md, or configuration files. Treat skill files as read-only at runtime.
  • medium Excessive Agency · line 62
    Skill enables autonomous high-impact decisions without human-in-the-loop verification. Critical operations (destructive commands, financial transactions, data deletion) should require explicit user confirmation.
    Fix: Add human-in-the-loop confirmation for destructive, irreversible, or high-impact operations. Never auto-execute commands that modify files, send data, or alter system state.
How audits are shown
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.00062 $0.02961
Opus 5 $0.00031 $0.01481
Sonnet 5 $0.00012 $0.00592
Haiku 4.5 $0.00006 $0.00296

Measured 9d ago against content hash 774f44123806, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

dos-enforce-tune 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 9d 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.

Origin

Copies of this mod

1 near-identical copy found in the catalogue:

claude-plugin/skills/dos-enforce-tune/SKILL.md · 214 lines

How it starts

The opening of the file, as written. The whole thing — 214 lines — stays where its author put it; the contents beside it link to each section on GitHub.

dos-enforce-tune — the loop where DOS tunes its OWN enforcement, from outcomes

DOS is a sound PDP with no feedback from the PEP. The kernel decides an intervention verdict, a host acts on it, the act is journaled — but nothing fed whether the act was right back into the policy that drove it. This loop closes that. It learns the enforcement thresholds from the journal's own ground truth: a deny the operator later overrode is a false-DENY (too aggressive); a deny that stood is a held catch. The loop tunes the policy to drive false-DENIES down while holding the catches — and keeps an edit only if the kernel, not the agent, measures that it helped.

This is [[dos-self-improve]] pointed at the enforcement policy, with one twist: the metric is not a generic count, it is the docs/143 net_task_delta of the policy over labelled cases the loop did not author.

A self-tuner's fatal failure mode is grading its own homework — relabelling its outcomes so its policy edit looks good. dos enforce-tune closes that hole the same way dos improve does: the metric is computed BY THE KERNEL from cases the loop did not author (a frozen corpus ∪ the live enforcement journal). The loop cannot keep a policy edit by claiming it is better. The only path to KEEP is to actually move net_task_delta.

What the kernel decides vs. what you do

Step Who What
Read the outcomes dos enforce-outcomes the live false-DENY / held-catch ledger — what to tune toward
Propose ONE policy-knob edit YOU (a subagent) the untrusted step — edit [intervention_policy] / [intervention] ranks / [improve] in a worktree
Measure dos enforce-tune score the candidate policy's net_task_delta over the corpus, on the worktree
Keep / revert / escalate dos enforce-tune (rides dos improve) the kernel's typed verdict over env-authored facts — NOT your opinion
Merge / discard / escalate YOU (or the autonomous cadence) carry out the kernel's verdict

Read the full file on GitHub · 214 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. 9d ago First seen · 214 lines · 62 tokens per session scan A 774f44123806

Subscribe to this mod's changes

dos-enforce-tune is a skill published in the GitHub repository anthony-chaudhary/dos-kernel (19 stars, last pushed yesterday), licensed MIT. It adds 62 tokens to every session and 2,961 once invoked, about $0.0003 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-30.