Seedlabs

RefusalShot Armor: Prompt-Layer Safety Pack for API-Built LLM Products

A library of examples that teaches AI chatbots how to politely refuse harmful requests.

A ready-made library of 'here is how I refuse harmful requests' examples that teams add to their prompt to make any API-based chatbot more jailbreak-resistant — no retraining or model access needed — plus a test that proves the improvement before each release.

Computer ScienceAdversarial Robustness in Machine Learning
Reasoning and Retrieval OptimizationTrust & safety for consumer and education products built on third-party LLM APIs

Concept

A maintained, versioned library of refusal demonstrations — short examples of an assistant declining harmful requests — that product teams inject into their prompt or context to shift the model's output distribution toward safety, bundled with a pre-release test harness. The pack is organized by harm category, sized to each target model's context budget (the source paper notes 4096-token windows on 7b models limit how many demonstrations fit, so the library ships in tiers), and re-validated whenever the API provider updates its model. The harness runs a jailbreak suite — including the ICA attack from the same paper — before each release and reports a before/after ASR number. The wedge: this is an alignment-hardening lever for teams building on third-party APIs (GPT-4, Claude, Gemini) where fine-tuning, checkpoint merging, and weight access are all impossible.

Why now

The new paper demonstrates the defense side of the same lever as the attack: In-Context Defense (ICD) — refusal demonstrations in context — bolsters resilience, validated across Vicuna-7b-v1.5, Llama2-7b-chat, QWen-7b-v2, and GPT-4 0613 on AdvBench (~500 prompts) and HarmBench, i.e., on the exact closed-source API models most product teams depend on. The threat it defends against is quantified in the same paper: harmful demonstrations alone reach 46–81% ASR even on GPT-4. Older corpus paper [3] shows safety measurably degrades after task fine-tuning and that the known remedy — merging with safety-aligned checkpoints — requires access to model weights; ICD offers the prompt-level alternative for the large population of deployments that only have API access.

Written by GLM · 8 Nov 2026

AI assessment

Backed by 2 papers82

A pragmatic, prompt-based safety utility that leverages In-Context Defense (ICD) to harden closed-source LLM APIs without requiring model weights.

Evidence strength
5/5
The idea directly implements the 'In-Context Defense' (ICD) mechanism validated in the provided research across both open and closed-source models (GPT-4).
Market pull
4/5
Companies deploying consumer-facing LLM agents have high urgency to prevent jailbreaks, and those using APIs lack the weight access needed for more permanent fixes.
Novelty & moat
2/5
The idea is a direct 'defense' counterpart to the existing ShotCurve (which focuses on the attack/stress-test), using the same mechanism of in-context demonstrations.
Feasibility
5/5
Building a curated library of prompts and a test harness requires no complex infrastructure, only a set of validated examples and an API wrapper.
Wedge clarity
4/5
The 'safety pack' for API-based products is a sharp, specific entry point that solves a concrete pain point for developers.
Simplicity / focus
5/5
The product is focused on a single mechanism (ICD) and a single goal (jailbreak resistance), avoiding platform bloat.

Scored by Gemma 4 · 8 Nov 2026. Rated against a fixed rubric (evidence, market, novelty, feasibility, wedge, simplicity), relative to the closest ideas already in the catalog. A prior estimate to compare ideas before real-world signal arrives.

Act on this idea

Ideas only matter if someone runs with them. Your message goes straight to the founder's inbox — nothing is stored on our servers.

Who benefits

  • Khan Academyorganization

    Its Khanmigo tutor runs on GPT-4 via API, so it cannot touch model weights; a tested refusal-demonstration pack is one of the few safety levers it controls for a student-facing product.

  • Snapcompany

    My AI is a GPT-4-based consumer chatbot facing a massive adversarial user base; a versioned refusal pack plus an ASR regression harness fits a consumer trust-and-safety workflow without any model access.

  • Duolingocompany

    Its GPT-4-powered conversation features sit on a third-party API; prompt-layer refusal demonstrations harden an education product against jailbreaks where retraining is not an option.

  • Its GPT-4-based advisor assistant operates in a regulated environment; a prompt-layer defense with a measurable before/after ASR report adds a controllable safeguard on top of provider-side alignment.

Research it builds on

  1. Jailbreak and Guard Aligned Language Models With Only Few In-Context Demonstrations
    Zeming Wei, Yue Wang, Ang Li et al. · 2026 · 464 citations
    All ideas from this paper →
  2. Safeguard Fine-Tuned LLMs Through Pre- and Post-Tuning Model Merging
    Hua Farn, Hsuan Su, Shachi H Kumar et al. · 2025 · 3 citations
    All ideas from this paper →
Leave feedback
feasibility