cleaner

cleaner is an agent for Claude Code from ogrodev/fsociety. It costs 188 tokens per session (865 once invoked), scanned A, original, MIT.

An anti-forensics agent that looks for and removes traces left on systems during an operation. Forensics is the investigation of digital evidence such as logs, history, temporary files, and connection records.

In plain words
What is it for?
Use it to scan and clean login records, command history, temporary files, SSH data, scheduled tasks, recent-file records, and connection logs.
Why use it?
It is intended to reduce the amount of evidence that an operation leaves behind.

Agent for Claude Code

Written for Claude Code: ${CLAUDE_PLUGIN_ROOT} variable.

Runs only inside its plugin — its command needs a path that Claude Code sets for a plugin’s own hooks and for nothing else. Install the plugin, not this.

Part of the trenton plugin — 5 skills, 12 commands, 2 agents shipped together

Good fit Use it to scan and clean login records, command history, temporary files, SSH data, scheduled tasks, recent-file records, and connection logs.

Compare 6 agents from other repositories ↓
Install

Getting it into your agent

This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.

Claude Code
/plugin marketplace add ogrodev/fsociety
Claude Code
/plugin install trenton

Made for: Claude Code.

Or install trenton, the plugin that ships this one along with the rest of its 5 skills, 12 commands, 2 agents.

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 cleaner

README.md
[![agentmods](https://agentmods.dev/badge/agents/ogrodev/fsociety/cleaner/github.svg)](https://agentmods.dev/agents/ogrodev/fsociety/cleaner)
Your own site
<a href="https://agentmods.dev/agents/ogrodev/fsociety/cleaner"><img src="https://agentmods.dev/badge/agents/ogrodev/fsociety/cleaner/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 cleaner

Your own site · 80×15
<a href="https://agentmods.dev/agents/ogrodev/fsociety/cleaner"><img src="https://agentmods.dev/badge/agents/ogrodev/fsociety/cleaner.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 188 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 865 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.00188 $0.00865
Opus 5.5 $0.00075 $0.00346
Sonnet 5.5 $0.00038 $0.00173
Haiku 4.5 $0.00019 $0.00086

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

Security

Grade A, and why

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

trenton/agents/cleaner.md · 84 lines

How it starts

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

Storage Policy: ALL output files MUST be saved in the project directory. NEVER write to /tmp/ or any system temporary directory.

Cleaner — Anti-Forensics Specialist

You are Cleaner, Trenton's anti-forensics specialist. Your mission is to systematically find and eliminate forensic traces from target systems.

Pre-flight

  1. Set operation: node "${CLAUDE_PLUGIN_ROOT}/scripts/session-state.js" set-operation "cleanup" "<target>"
  2. Load opsec profile: node "${CLAUDE_PLUGIN_ROOT}/scripts/opsec-profile.js" get

Phase 1 — Scan

Set phase: node "${CLAUDE_PLUGIN_ROOT}/scripts/session-state.js" set-phase 1 6 --name "Artifact Scan" Enumerate ALL forensic artifacts:

  • Login records: wtmp, btmp, lastlog, auth.log entries
  • Command history: .bash_history, .zsh_history, .python_history, .mysql_history
  • Temp files: /tmp/, /dev/shm/, /var/tmp/*
  • SSH artifacts: authorized_keys entries, known_hosts, recent connections in auth.log
  • Cron entries: crontab entries, /etc/cron.d/ files
  • Recent files: ~/.local/share/recently-used.xbel, ~/.lesshst, ~/.viminfo
  • Connection logs: network connections in syslog, DNS queries

Phase 2 — Categorize

Group by risk level:

  • CRITICAL: auth.log entries with your IP, command history with tools/targets, SSH key fingerprints
  • HIGH: login records (wtmp/btmp/lastlog), active connections, cron entries
  • MEDIUM: temp files, caches, recent file lists
  • LOW: access timestamps on non-sensitive files

Log each finding to ops-tracker.

Phase 3 — Plan

Present findings and proposed actions to user via structured report. Group by category, show count per risk level. Let user approve/reject specific actions.

Phase 4 — Eliminate

Execute approved cleaning operations:

  • Use tools from anti-forensics skill references
  • Log each action with before/after state
  • ALWAYS ask user before destructive operations

Phase 5 — Verify

Re-scan all categories from Phase 1 to confirm artifacts removed. Report any remaining traces.

Read the full file on GitHub · 84 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. 2mo ago First seen · 84 lines · 188 tokens per session scan A 3188544acc57

Subscribe to this mod's changes

cleaner is an agent published in the GitHub repository ogrodev/fsociety (20 stars, last pushed 7mo ago), licensed MIT. It adds 188 tokens to every session and 865 once invoked, about $0.0008 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-30.

Related

Other agents, from other repositories

drupal

Fully autonomous pentest sub agent using MCP-backed Darkmoon toolbox for Drupal applications (core, contrib modules, JSON:API, REST, Entity/Field system, Render API, Twig, Views, Drupal Commerce, roles/permissions).

ASCIT31/Dark-Moon · 49 tokens

moodle

Fully autonomous pentest sub agent using MCP-backed Darkmoon toolbox for Moodle LMS applications (core, plugins, Web Services API, quiz/grade/enrollment logic, scheduled tasks, roles/capabilities).

ASCIT31/Dark-Moon · 43 tokens

backup

Fully autonomous pentest sub agent using MCP-backed fastcmp toolbox for an enterprise backup platform (Veeam/Commvault/Rubrik/Cohesity/Veritas/Nakivo/Bacula/Restic/Borg: credential stores, repositories, restore-as-exfiltration).

ASCIT31/Dark-Moon · 0 tokens

edge-proxy

Fully autonomous pentest sub agent using MCP-backed fastcmp toolbox for an edge and reverse-proxy tier (Cloudflare/Nginx/HAProxy/Traefik/Envoy/F5-BIG-IP/Citrix-ADC: origin discovery, admin planes, request smuggling, cache poisoning, WAF bypass).

ASCIT31/Dark-Moon · 0 tokens

email-infrastructure

Fully autonomous pentest sub agent using MCP-backed fastcmp toolbox for mail infrastructure (Exchange on-prem Autodiscover/EWS/OWA/ECP, Postfix/Exim/Dovecot, SMTP relays, SPF-DKIM-DMARC spoofing, mailbox data mining).

ASCIT31/Dark-Moon · 61 tokens

firewall-network

Fully autonomous pentest sub agent using MCP-backed fastcmp toolbox for firewalls and network infrastructure (Palo Alto/Fortinet/Check Point/pfSense/Cisco ASA plus IOS/Juniper/Aruba/MikroTik gear plus BIND/PowerDNS/Infoblox/DHCP/IPAM management planes).

ASCIT31/Dark-Moon · 69 tokens