{% extends 'base.html' %} {% block title_head %} Defend {% endblock title_head %} {% block head %} {% endblock head %} {% block content %} {% load gameui %}

Set your defense 🏰

{% csrf_token %}

Protect your account by entering opening and closing security rules that surround your access code. Whenever your access code is entered, your AI has to say "Access Granted".

[Power user options]

You can choose which AI model to use for your defense: {% llm_choice_selector account %} Once you save, all attacks will be evaluated against this model. You can also test strategies without saving your defense in the sandbox.

Opening Defense Seen before the attack
{% settings_value 'MAX_DEFENSE_PRE_PROMPT_LENGTH_TOKENS' as initial_length_pre_prompt %} {% include "token_notifications.html" with id="#defense_pre_prompt" field_name="defense_pre_prompt" initial_tokens=initial_length_pre_prompt %}
Access Code Replaced by the attack
{% settings_value 'MAX_ACCESS_CODE_LENGTH_TOKENS' as initial_length_access_code %} {% include "token_notifications.html" with id="#access_code" field_name="access_code" initial_tokens=initial_length_access_code %}
Closing Defense Seen after the attack
{% settings_value 'MAX_DEFENSE_POST_PROMPT_LENGTH_TOKENS' as initial_length_post_prompt %} {% include "token_notifications.html" with id="#defense_post_prompt" field_name="defense_post_prompt" initial_tokens=initial_length_post_prompt %}
{% load static %} {% include "absolute_spinner.html" %}
{% endblock %}