evil-mode

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

A security review command that has several red-team agents attack a code repository, score their findings, and try to disprove them before reporting them.

In plain words
What is it for?
Use it to look for prompt-injection risks, unsafe dependencies, exposed secrets, backdoors, license problems, code theft, AI jailbreaks, or chaotic failure cases.
Why use it?
It reduces false positives and avoids the shallow results of a single security scan by checking findings repeatedly until no new issues are found.

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/evil-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 evil-mode

README.md
[![agentmods](https://agentmods.dev/badge/commands/sifxprime/kodelyth-ecc/evil-mode.svg)](https://agentmods.dev/commands/sifxprime/kodelyth-ecc/evil-mode)
Your own site
<a href="https://agentmods.dev/commands/sifxprime/kodelyth-ecc/evil-mode"><img src="https://agentmods.dev/badge/commands/sifxprime/kodelyth-ecc/evil-mode.svg" alt="Measured on agentmods" height="20"></a>
Per session 44 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,037 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.00044 $0.01037
Opus 5 $0.00022 $0.00518
Sonnet 5 $0.00009 $0.00207
Haiku 4.5 $0.00004 $0.00104

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

Security

Grade A, and why

evil-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/evil-mode.md · 107 lines

How it starts

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

/evil-mode — Attack Your Own Code

Eight red-team specialists hunt your repository the way an attacker would. Unlike a plain sweep, EVIL mode grades its own findings and then tries to disprove them — so what reaches you is what survived scrutiny, not everything anyone thought of.

Findings will be uncomfortable. That is the point. This attacks your own codebase so real attackers find nothing left.

What makes this different from a one-shot scan

Plain sweep EVIL mode
Output Flat list Scored: severity × confidence × exploitability
False positives You triage them Adversarially refuted before you see them
Coverage One pass Loops until two rounds find nothing new
Handoff Prose Structured findings /god-mode can consume

The crew

Core (always): prompt-injection-hunter · supply-chain-auditor · secret-hunter · backdoor-hunter

Opt-in: --license · --theft · --jailbreak · --chaos · --all

Presets: --pre-public (license + theft) · --pre-launch (jailbreak + chaos)

Usage

/evil-mode                      # core 4 on the whole repo
/evil-mode src/auth             # focus a module
/evil-mode --all                # all 8 hunters
/evil-mode --pre-public         # before open-sourcing

Preview crew and cost first:

kodelythecc evil src/auth --all

Instructions to the assistant

Stage 1 — Hunt (parallel)

Launch the selected crew simultaneously via the Task tool. Give each agent its scope and tell it:

  • evidence must quote the actual offending code, not describe it.
  • repro must be concrete steps or a command.
  • Only claim confirmed when you have actually reproduced it.
  • Do not pad. Five confirmed findings beat forty guesses.

Each finding comes back as:

{ "title", "severity": "critical|high|medium|low|info",
  "confidence": "confirmed|likely|suspected|speculative",
  "exploitability": "trivial|moderate|hard|theoretical",
  "file", "line", "evidence", "repro", "fix" }

Read the full file on GitHub · 107 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 · 107 lines · 44 tokens per session scan A 93c27cb7c225

Subscribe to this mod's changes

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