re-selftest

re-selftest is a command for Claude Code from sodam-ai/SoDam-Reverse-Eng. It costs 32 tokens per session (269 once invoked), scanned A, original, Apache-2.0.

A command for checking whether three safety layers—AI refusal, a tool-blocking hook, and file-integrity hashes—are working.

In plain words
What is it for?
Use it to run the plugin’s self-test, understand passed or failed checks, and record a missing integrity hash when needed.
Why use it?
It helps reveal a missing or altered safety mechanism before relying on the reverse-engineering safeguards.

Command 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 sodam-reverse plugin — 6 skills, 7 commands, 1 hook shipped together

Good fit Use it to run the plugin’s self-test, understand passed or failed checks, and record a missing integrity hash when needed.

Compare 6 commands 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 sodam-ai/SoDam-Reverse-Eng
Claude Code
/plugin install sodam-reverse

Made for: Claude Code.

Or install sodam-reverse, the plugin that ships this one along with the rest of its 6 skills, 7 commands, 1 hook.

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 re-selftest

README.md
[![agentmods](https://agentmods.dev/badge/commands/sodam-ai/sodam-reverse-eng/re-selftest/github.svg)](https://agentmods.dev/commands/sodam-ai/sodam-reverse-eng/re-selftest)
Your own site
<a href="https://agentmods.dev/commands/sodam-ai/sodam-reverse-eng/re-selftest"><img src="https://agentmods.dev/badge/commands/sodam-ai/sodam-reverse-eng/re-selftest/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 re-selftest

Your own site · 80×15
<a href="https://agentmods.dev/commands/sodam-ai/sodam-reverse-eng/re-selftest"><img src="https://agentmods.dev/badge/commands/sodam-ai/sodam-reverse-eng/re-selftest.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 32 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 269 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.00032 $0.00269
Opus 5 $0.00016 $0.00134
Sonnet 5 $0.00006 $0.00054
Haiku 4.5 $0.00003 $0.00027

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

Security

Grade A, and why

re-selftest 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 11d 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.

commands/re-selftest.md · 20 lines

What it actually says

SoDam-Reverse-Eng의 안전 3층 셀프테스트를 실행하세요.

Bash로 다음을 실행합니다 (설치된 플러그인의 hooks 폴더):

node "${CLAUDE_PLUGIN_ROOT}/hooks/_selftest.mjs"

${CLAUDE_PLUGIN_ROOT}가 인식되지 않으면, 설치된 sodam-reverse 플러그인 폴더의 hooks/_selftest.mjs 경로를 찾아 실행하세요.

결과를 초보가 이해하도록 한국어로 설명하세요:

  • ✅ 통과 / ❌ 실패 항목 구분
  • 3층 무결성 manifest가 없으면, 출력된 해시를 references/integrity.json에 기록하는 방법 안내 (형식: {"hooks/re-deny-guard.mjs":"<출력된 해시>"})
  • 마지막에 덧붙이기: "셀프테스트 통과 = 완전한 안전 인증이 아니다. 레드팀 변형은 별도 라이브 검증이 필요하다."
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. 11d ago First seen · 20 lines · 32 tokens per session scan A 7bf054d9b2fb

Subscribe to this mod's changes

re-selftest is a command published in the GitHub repository sodam-ai/SoDam-Reverse-Eng (1 stars, last pushed today), licensed Apache-2.0. It adds 32 tokens to every session and 269 once invoked, about $0.0002 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-31.