devil-mode

devil-mode is a command for coding agents from sifxprime/kodelyth-ecc. It costs 39 tokens per session (1,320 once invoked), scanned A, original, MIT.

A parallel security sweep that checks a code repository for attack paths involving AI prompts, dependencies, secrets, and hidden malicious code.

In plain words
What is it for?
Use it to find prompt injection, compromised or misspelled dependencies, leaked credentials, obfuscated payloads, network beacons, cryptominers, license violations, code theft, AI jailbreaks, and other hostile behavior.
Why use it?
It brings several attacker-focused checks together so common security risks are reviewed from different angles in one pass.

Command

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.

agentmods
npx agentmods add commands/sifxprime/kodelyth-ecc/devil-mode
Clone the repo
git clone --depth 1 https://github.com/sifxprime/kodelyth-ecc

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 devil-mode

README.md
[![agentmods](https://agentmods.dev/badge/commands/sifxprime/kodelyth-ecc/devil-mode.svg)](https://agentmods.dev/commands/sifxprime/kodelyth-ecc/devil-mode)
Your own site
<a href="https://agentmods.dev/commands/sifxprime/kodelyth-ecc/devil-mode"><img src="https://agentmods.dev/badge/commands/sifxprime/kodelyth-ecc/devil-mode.svg" alt="Measured on agentmods" height="20"></a>
Per session 39 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,320 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00039 $0.01320
Opus 5 $0.00019 $0.00660
Sonnet 5 $0.00008 $0.00264
Haiku 4.5 $0.00004 $0.00132

Measured yesterday against content hash 5fcbf3679668, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

devil-mode 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 yesterday.

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/devil-mode.md · 122 lines

How it starts

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

/devil-mode — Adversarial Parallel Sweep

Four red-team specialists attack your codebase from every angle attackers actually use. What would take a security firm a week of billable hours, your repo gets in 20 minutes.

Read the brief first. Each agent thinks like a hostile actor. Findings will be uncomfortable. That's the point.

What Gets Launched in Parallel

Agent Hunts
prompt-injection-hunter Jailbreak vectors, indirect injection, system-prompt leaks, tool-call hijacking
supply-chain-auditor Typosquats, malicious post-install, lockfile drift, slopsquats, compromised deps
secret-hunter Live secrets, git history leaks, encoded creds, bundled-to-client env vars
backdoor-hunter Obfuscated payloads, network beacons, time bombs, eval/exec abuse, cryptominers

Optional Extension Agents

Use these flags to add more agents to the sweep:

Flag Adds
--license license-violation-finder (GPL contamination, attribution gaps)
--theft code-stealer-detector (copy-paste provenance, copyleft hits)
--jailbreak jailbreak-tester (live AI feature red-team)
--chaos chaos-engineer (fault-injection plan generation)
--all All 8 agents — the full devil sweep

Usage

/devil-mode                  # 4-agent default sweep
/devil-mode --all            # all 8 adversarial agents
/devil-mode src/auth/        # focus on auth module
/devil-mode --pre-public     # before going open-source: --license + --theft + default
/devil-mode --pre-launch     # before public launch: --jailbreak + default + --chaos

Report Format

## DEVIL MODE REPORT

### Prompt Injection Surface (prompt-injection-hunter)
CRITICAL: [list]
HIGH:     [list]
DEFENSE GAPS: [where existing protections can be bypassed]

### Supply Chain (supply-chain-auditor)
THREATS:    [confirmed malicious / typosquat / drift]
WATCHLIST:  [suspicious patterns]
LOCKFILE:   [OK / drift / missing]

### Leaked Secrets (secret-hunter)
ACTIVE:     [rotate now — still valid]
HISTORICAL: [git history leaks — assume compromised]
BUNDLED:    [exposed to every client visit]

### Backdoors / Malicious Code (backdoor-hunter)
CRITICAL:   [confirmed reverse-shell / RCE / exfiltration]
SUSPICIOUS: [needs manual decode/review]

---
TOTAL EXPOSURE:    X critical, Y high, Z medium across N agents
PRIORITIZED ACTIONS:
  1. [first action — usually rotate or revert]
  2. [second]
  3. [third]

Read the full file on GitHub · 122 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. yesterday First seen · 122 lines · 39 tokens per session scan A 5fcbf3679668

Subscribe to this mod's changes

devil-mode is a command published in the GitHub repository sifxprime/kodelyth-ecc (11 stars, last pushed 3d ago), licensed MIT. It adds 39 tokens to every session and 1,320 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-09-03.