Skip to content

togg53192/jailbreaks Explained: Why 24K Stars Target AGENTS.md

Audit of togg53192-cmd/jailbreaks (24.4K+ stars): 57 files across 19 folders, AGENTS.md attack surfaces, Modelfile packaging, and agent sandboxing.

Hoang Yell
Hoang Yell
11 min read
Tiếng Việt
togg53192/jailbreaks Explained: Why 24K Stars Target AGENTS.md

Most developers still picture an LLM jailbreak as a clever paragraph pasted into a chat box. That era ended the moment coding agents started reading repository files automatically.

togg53192-cmd/jailbreaks (24,393 GitHub stars, 5,298 forks, no license file) hit the GitHub trending chart with a sharp shift in target surface. Instead of steganographic chat tricks, it catalogs workspace policies, AGENTS.md drop-ins, structured <CFG> harness configs, and Ollama Modelfiles aimed at coding agents (autonomous CLI and IDE assistants that read repo context and invoke shell tools).

I audited the repository’s git tree, SHA-1 blob hashes, commit history, and structural wrappers via the GitHub API without pasting or running a single bypass payload. What follows breaks down what is actually inside those 57 files, why AGENTS.md changes the threat model for working engineers, and how to lock down your agent harness in code.

TL;DR

Fast Breakdown:

  • What is togg53192-cmd/jailbreaks? A viral 24.4K-star repository indexing system-tier instruction templates, AGENTS.md workspace overrides, harness configs, and Ollama Modelfiles across 19 folders.
  • Repo reality vs README claims: The README advertises 32 prompts across 26+ models, while the main branch holds 57 blobs (56 config/markdown files plus README.md), including 5 duplicate-SHA files and a 1-byte stub.
  • Why engineers should care: Coding tools like OpenCode and ZCode auto-load AGENTS.md from cloned folders. Untrusted repo instructions now sit directly inside your agent’s command loop.
  • Repository: togg53192-cmd/jailbreaks on GitHub - No License - 24.3K+ Stars.

Mental Model: The Trojan Clipboard Inside Your Repo

Picture an office reception desk where a visitor hands over a fake employee badge printed on standard printer paper. In a web chat app, the receptionist knows the visitor stands on the public side of the glass. Inside an autonomous coding agent, AGENTS.md sits behind the glass alongside your build scripts and .env rules.


Inside the Git Tree: Chat Tricks Become Harness Configs

Auditing the main tree of togg53192-cmd/jailbreaks turns up 57 files across 19 directories (Alibaba, Anthropic, DeepSeek, Google, Meituan, Meta, Mistral, Moonshot AI, OpenAI, Stealth Models, StepFun, Tencent, Xiaomi, Zhipu AI, xAI, plus four contributor folders). That structural jump matters far more than any single prompt inside.

1. Drop-In AGENTS.md and Workspace Profiles

Roughly a dozen files target coding-agent instruction slots rather than chat boxes (glm-zcode-5.3-AGENTS.md, muse-ai-AGENTS.md, kimi-k3-agents.md, longcat-agents.md, mimo-2.6-agents.md, hy4-agents.md, and spacebunny-agents.md). The README explicitly maps global paths such as ~/.config/opencode/AGENTS.md alongside repo-root AGENTS.md files.

That workflow creates a supply-chain blind spot for engineering teams. Developers who inspect package.json and Dockerfile before running npm install rarely run the same review on AGENTS.md or .cursorrules before pointing an AI CLI at a freshly cloned repository.

2. Structured Configs and Priority Mimicry

Files like xAI/grok-config.txt (41 lines, 3,948 bytes) drop conversational roleplay completely. Instead, they wrap directives inside XML-like <CFG>, <ctx>, <priority>, and <router> tags that imitate application-layer configuration slots.

Other entries (Google/Gemini-Hydrogen.md, Google/Gemini-4-Neon.md, OpenAI/gpt-oss-20b.md) frame themselves as formal # Content Guidelines or # Developer Content Policy manuals. They try to exploit instruction hierarchy (the priority order a model assigns to developer prompts versus user input) by sounding like trusted deployment metadata.

3. Local Ollama Modelfiles

Two entries (Google/gemma4.md referencing FROM VladimirGav/gemma4-26b-16GB-VRAM and OpenAI/gpt-oss-20b.md referencing FROM gpt-oss:20b) ship as Ollama Modelfile recipes (FROM plus SYSTEM). Once you run models locally through Ollama, you already control the SYSTEM channel directly. Packaging that as a “jailbreak” shows how blurry the line between custom system engineering and bypass culture has become.

4. Stealth Models and Free Coding Proxies

Unlike older catalogs focused strictly on paid frontier APIs, togg53192-cmd/jailbreaks dedicates a whole directory (Stealth Models/) plus 0x8D jailbreaks/BigPickle-opencode.md to free or ephemeral coding aliases routed through OpenCode Zen (Beam.md, Unified.md, crouton-alpha.md, spacebunny-agents.md).

On X, free high-speed coding endpoints inside OpenCode drive massive developer adoption overnight, turning zero-cost inference proxies into prime targets for automated prompt tuning:

DeepSeek V4.1 Flash is now free in OpenCode

Beginner Walkthrough: Trying These Mechanisms Safely

If you have never touched AGENTS.md, OpenCode configs, or an Ollama Modelfile before, the repo’s README can look cryptic. You do not need any bypass prompt to test how these configuration slots work. Run these three harmless 2-minute experiments in /tmp so you see the exact mechanics firsthand.

Step 1: Inspect the Repo in an Isolated Folder

Never clone an unverified prompt collection inside your active workspace where a coding agent might auto-read it. Put it in /tmp and verify the duplicate SHA-1 files yourself:

git clone --depth 1 https://github.com/togg53192-cmd/jailbreaks.git /tmp/jb-audit
find /tmp/jb-audit -type f -name "*.md" -exec sha1sum {} + | sort | uniq -w40 -D

Step 2: Test How AGENTS.md Controls a Coding CLI

Think of AGENTS.md as a house-rules note taped to a folder’s front door. Create a throwaway directory, write a harmless 3-line AGENTS.md, and start your coding CLI inside it:

mkdir -p /tmp/agent-demo && cd /tmp/agent-demo
printf '# AGENTS.md\n- Reply in 3 bullet points max.\n- Never run rm or curl without asking.\n' > AGENTS.md

Ask your agent to inspect the folder. It follows those bullets automatically - which shows why an untrusted AGENTS.md inside a cloned library can steer an agent before you type a word. (Global rules in ~/.config/opencode/AGENTS.md apply the same way across every project.)

Step 3: Build a Harmless Local Modelfile

When the README tells Ollama users to run ollama create, it is just packaging a base model plus a custom SYSTEM prompt. Try it with a clean code-reviewer example:

FROM gemma3:4b
PARAMETER temperature 0.2
SYSTEM "You are a strict Python reviewer. List only bugs and one-line fixes."
ollama create safe-reviewer -f Modelfile
ollama run safe-reviewer "Review: eval(input())"

Once you see those three steps run on your own machine, every folder in togg53192-cmd/jailbreaks clicks immediately without copying untrusted files.


Defensive Workflows: Auditing Untrusted Agent Configs

You do not need to test bypass prompts on production APIs to defend your stack. Treat every external AGENTS.md, CLAUDE.md, and Modelfile as executable configuration, and verify it before an agent reads the directory.

1. Pre-Scan Cloned Repositories Before Launching Agents

Run a fast structural gate right after git clone to flag hidden instruction files, suspicious XML policy tags, or zero-width Unicode characters before your coding CLI loads the workspace:

find . -maxdepth 3 \( -iname "AGENTS.md" -o -iname "CLAUDE.md" -o -iname ".cursorrules" -o -iname "*modelfile*" \) -print0 |
  xargs -0 -r wc -l -c

If a third-party library repository ships an AGENTS.md file spanning hundreds of lines or containing <CFG> or priority-override headers, strip or quarantine it before opening the directory in an agentic editor.

2. Inspect Ollama Modelfiles Without Blindly Importing

Never run ollama create on a downloaded Modelfile without reading its FROM base image, PARAMETER overrides, and SYSTEM block first:

from pathlib import Path
import sys

lines = Path(sys.argv[1]).read_text(encoding="utf-8", errors="replace").splitlines()
directives = [l for l in lines if l.startswith(("FROM ", "PARAMETER ", "TEMPLATE ", "ADAPTER "))]
print("\n".join(directives) or "No Modelfile directives found.")

Unverified FROM tags can pull unexpected quantized weights, while modified TEMPLATE blocks silently alter chat boundaries and tool-call delimiters.

3. Enforce Tool Boundaries Outside the Prompt

No markdown instruction can guarantee a model resists conflicting workspace text. As TypeScript educator Matt Pocock noted on X regarding agent design, reliable systems constrain the agent’s action space in deterministic code:

This is an extremely good watch. The things that felt novel/interesting to me: 1. Lock down your agents Humans tend to like 'sharp knife' abstractions - that are powerful, but you can cut yourself if your use them wrong. Lauren says agents perform much better in extremely locked-down environments. Abstractions are designed so they can't screw up, and lint rules enforce it. They built a whole internal framework (Dune) to keep the agent on track. That helps optimise agents that don't have a large context window to work productively in your codebase. 2. Create verification infrastructure To trust the results of any agent, you either need to sit and watch it OR have it provide evidence of its improvement. This has always made sense to me, but Lauren really pushes it hard here: - Invest in custom CLI's that let the agent drive the app and measure its performance - Make the app "factory ready" from the get-go - i.e. deployable to an environment where the agent can mess about with it 3. Feature Maps Lauren's software factory (what she calls an 'outer loop') often requires the agent to break down vague bug reports from users and to turn those into potential fixes. To aid that, they built a 'feature map' of all the main features in their application, which describe exactly how the app is supposed to function. This has become essential for helping the agent navigate the codebase, and figure out quickly how things are supposed to work. It's maintained along with the codebase, and kept in sync via automations. This is the kind of documentation I usually warn against. It goes stale quickly and can confuse agents if it's not kept up to date. But Lauren's team are using it as critical navigation infrastructure, and it makes it possible for agents to explore faster and better - even on a large codebase. So it sounds like navigation docs like this are worth it if they enable new behavior. Banger talk - watch the whole thing on 2x.

Put your real guardrails in the harness layer:

  • Require explicit interactive confirmation before running rm, network uploads, or credential reads.
  • Mount only the target repository directory inside your container or bubblewrap sandbox, never ~/.ssh or ~/.aws.
  • Separate trusted user-level instructions from untrusted repository files with explicit delimiter tagging.

The Rough Edges: Repo Drift, Duplicates, and Zero Licensing

Star counts on GitHub trending lists hide glaring maintenance and legal cracks. A shallow API audit of togg53192-cmd/jailbreaks exposes four hard truths that viral threads skip.

  • Stale README vs actual git tree: The landing page claims 32 prompts across 26+ models, yet the main branch holds 57 blobs across 19 folders as PRs accumulated without updating the index.
  • Byte-for-byte duplicate files: Hashing the git tree reveals identical SHA-1 blobs masquerading as model-specific configs. Four files inside 0x8D jailbreaks/ (chatgpt-free-tier.md, gemini-chat.md, grok-fast.md, kimi-standard.md) share the exact same c134bf33... SHA (16,831 bytes). DeepSeek/deepseekv4.1 and v4.1-1017.md and Stealth Models/Unified.md also share an identical 2770560a... SHA (11,489 bytes), while Alibaba/qwen-preferences.md is a 1-byte empty stub.
  • No open-source license (license: null): Despite 5,298 forks and a “PRs welcome” badge, the repo has no LICENSE file. Under default copyright law, all rights remain reserved - copying files into commercial evaluation pipelines carries legal risk.
  • Zero automated test suite: Unlike Promptfoo or NVIDIA Garak, the repo provides no pass/fail matrix, refusal-rate telemetry, or model-version pinning. Even the maintainer notes in the README that their $200 in donated OpenRouter credits ran out, leaving entries unverified across model updates.

Decision Matrix: Corpus Archaeology vs Automated Testing

Dimension togg53192-cmd/jailbreaks L1B3RT4S Promptfoo / Garak
Primary Target Coding harnesses (AGENTS.md), Modelfiles, stealth models Chat-era .mkd catalogs, Unicode steg, glitch tokens Production LLM APIs & RAG apps in CI
Repo Structure 57 blobs (includes 5 duplicate SHAs & 1-byte stub) 39 .mkd files + JSON command & token DBs Modular YAML/Python probe suites
License Clarity None (null - All Rights Reserved) AGPL-3.0 MIT / Apache-2.0
Verification None - manual copy-paste only Community-tested taxonomy, no runner Automated pass/fail CI grading
Engineering Action Audit format patterns to harden AGENTS.md parsing Test Unicode sanitization & token limits Run regression gates on every deploy

Final Take

togg53192-cmd/jailbreaks is messy, unlicensed, and full of duplicate files - yet its 24.4K stars prove that prompt attacks have moved from chat windows straight into AGENTS.md and local agent configs, so sanitize your cloned workspaces in code before your coding assistant reads a single line.

Hands-On Challenge (15-Minute Test)

Audit your own local developer environment in three terminal steps:

  1. Scan your active workspace folders (find ~/workspaces -maxdepth 3 -iname "AGENTS.md" -o -iname ".cursorrules") to list every instruction file your coding agent auto-loads today.
  2. Add a pre-session shell alias or git hook that alerts whenever a newly cloned repo introduces an AGENTS.md, CLAUDE.md, or hidden Unicode tag characters (U+E0000-U+E007F).
  3. Verify your coding CLI’s tool permissions so shell execution and file writes outside the repo root require explicit approval.

Frequently Asked Questions (FAQ)

What is togg53192-cmd/jailbreaks?

It is a 24.4K-star GitHub repository indexing 56 markdown and configuration files across 19 folders, covering system prompts, AGENTS.md workspace overrides, <CFG> blocks, and Ollama Modelfiles targeting frontier, open-weight, and stealth AI models.

How does it differ from elder-plinius/L1B3RT4S?

While L1B3RT4S centers on chat-era .mkd prompts, invisible Unicode steganography (U+E0020 tag characters), and AGGREGLITCH tokenizer edge cases, togg53192-cmd/jailbreaks shifts toward coding-agent harnesses (AGENTS.md, OpenCode, ZCode), structured config blocks, and local Ollama Modelfiles.

Why is AGENTS.md a security risk for developers?

Autonomous coding agents automatically read AGENTS.md at the root of a repository to load project conventions. If you clone an untrusted third-party repo and launch an agent with shell or filesystem access, malicious instructions inside AGENTS.md enter the agent’s context with high perceived authority.

No. The repository ships without a LICENSE file (license: null), meaning default copyright restrictions apply, and several files are unverified duplicates (0x8D jailbreaks/ shares identical SHA-1 hashes across four model names). Build deterministic evaluation harnesses with tools like Promptfoo or Garak instead.

Related posts

yell@hoangyell:~ %

>hoangyell --status

Busy hanging out with family, cafe & AI ☕🤖

Did someone yell? Want to chat code or collab? Reach me on Instagram:

Open Instagram esc to close