deslop

deslop is a command for Claude Code from damusix/atomic-claude. It costs 116 tokens per session (2,841 once invoked), scanned A, original, MIT.

A codebase audit command that looks for accumulated clutter and inconsistencies, then writes its findings to a report. It can later apply findings that you choose.

In plain words
What is it for?
It is for auditing a whole Git repository or a selected directory, reading the report, and applying selected findings. Git is a system that tracks project file changes.
Why use it?
It separates inspection from changes, so you can review reported problems before anything is edited. It helps find dead code, duplicate helpers, noisy comments, swallowed errors, and other drift from the project's conventions.

Command for Claude Code

Written for Claude Code: $ARGUMENTS substitution. Also seen: names the AskUserQuestion tool.

Good fit It is for auditing a whole Git repository or a selected directory, reading the report, and applying selected findings. Git is a system that tracks project file changes.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/damusix/atomic-claude/deslop
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.

Clone the repo
git clone --depth 1 https://github.com/damusix/atomic-claude

Made for: Claude Code.

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 deslop

README.md
[![agentmods](https://agentmods.dev/badge/commands/damusix/atomic-claude/deslop/github.svg)](https://agentmods.dev/commands/damusix/atomic-claude/deslop)
Your own site
<a href="https://agentmods.dev/commands/damusix/atomic-claude/deslop"><img src="https://agentmods.dev/badge/commands/damusix/atomic-claude/deslop/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 deslop

Your own site · 80×15
<a href="https://agentmods.dev/commands/damusix/atomic-claude/deslop"><img src="https://agentmods.dev/badge/commands/damusix/atomic-claude/deslop.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 116 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,841 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.00116 $0.02841
Opus 5.5 $0.00046 $0.01136
Sonnet 5.5 $0.00023 $0.00568
Haiku 4.5 $0.00012 $0.00284

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

Security

Grade A, and why

deslop 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.

context/commands/deslop.md · 224 lines

How it starts

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

You are the orchestrator. Every other review surface atomic ships is diff-scoped; this one looks at the code as it stands. You never audit or edit anything yourself — Phase 1 fans out read-only atomic-deslopper agents and merges what they write, Phase 2 drives atomic-implementer over findings the user accepted.

The two phases are separate invocations on purpose. Phase 1 touches no source file. The user reads the report on their own time and decides. A run that audits and fixes in one pass is a run nobody reviewed.

$ARGUMENTS:

Form Means
empty audit the whole repo
<path> audit that subtree only
apply fix findings from the last report — prompts for which
apply <ids or tier> fix those findings — D-3 D-7, safe, safe guarded

Anything starting with apply routes to Phase 2. Everything else is Phase 1.

Phase 1 — Audit

Pre-flight

git rev-parse --is-inside-work-tree

Not a git repo → not a git repo. /deslop audits a versioned project. Stop.

Gather, each as its own call:

git rev-parse HEAD
git status --porcelain
test -f docs/wiki/index.md && echo wiki=yes || echo wiki=no
test -f .claude/.atomic-index/atomic.db && echo index=warm || echo index=cold

A dirty tree is not a refusal — the audit is read-only — but note it in the report header, since findings are anchored to lines that uncommitted edits may have moved.

Index. Warm → atomic code sync. Cold → offer to run atomic code index once, and say why: dead-code findings are proof-based with an index and heuristic without one, and the agents degrade to grep either way. Never block on it. Skip silently when atomic is absent.

Test suite. Read the build/test table in docs/wiki/index.md when it exists; otherwise detect from the project manifest (package.json scripts, Makefile targets, go.mod, pyproject.toml). You need one runnable test command, or the knowledge that there is none. Do not run it yet — Phase 1 changes nothing and does not need a baseline. This answer goes into every shard agent's brief, because it decides whether guarded findings can exist at all.

Read the full file on GitHub · 224 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 First seen · 224 lines · 116 tokens per session scan A 553eb2ec7ed0

Subscribe to this mod's changes

deslop is a command published in the GitHub repository damusix/atomic-claude (112 stars, last pushed 8d ago), licensed MIT. It adds 116 tokens to every session and 2,841 once invoked, about $0.0005 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-09-17.