echo-chamber

(★ 10)

Code and examples for Echo Chamber LLM Jailbreak.

File Explorer

  • .gitignore
  • .pre-commit-config.yaml
  • .python-version
  • LICENSE
  • pyproject.toml
  • README.md

# Use via CDN

jsDelivr

jsDelivr serves any public GitHub repository as a CDN with zero setup. Pick a version and a file to get a ready-to-paste link and snippet.

Command Glossary

Commands referenced in this DOCs, explained below.

🔍

complete

View Details ▼

Get and set argument autocompletion rules of shell commands in Bash.
The specified completions will be invoked when `<Tab>` is pressed in Bash.
See also: `compgen`, `compopt`.

complete -F {{function}} {{command}}

Set arguments of a command to autocomplete through a function (completion response is sent in `$COMPREPLY` variable):

complete -C {{autocomplete_command}} {{command}}

Set arguments of a command to autocomplete through another command (`$1` is the command, `$2` is the argument the cursor is on, and `$3` is the argument preceding the cursor):

complete -b {{command}}

Set arguments of a command to autocomplete to shell builtins:

🔍

pass

View Details ▼

Store and read passwords or other sensitive data.
All data is GPG-encrypted, and managed with a Git repository.

pass init {{gpg_id_1 gpg_id_2 ...}}

Initialize (or re-encrypt) the storage using one or more GPG IDs:

pass insert {{[-m|--multiline]}} {{path/to/data}}

Save a new password and additional information (press `<Ctrl d>` on a new line to complete):

pass edit {{path/to/data}}

Edit an entry:

🔍

pre-commit

View Details ▼

Create Git hooks that run before commits.

pre-commit install

Install pre-commit into your Git hooks:

pre-commit run

Run pre-commit hooks on all staged files:

pre-commit run --all-files

Run pre-commit hooks on all files, staged or unstaged:

🔍

ruff check

View Details ▼

An extremely fast Python linter. `check` is the default command - it can be omitted everywhere.
If no files or directories are specified, the current working directory is used by default.

ruff check {{path/to/file_or_directory1 path/to/file_or_directory2 ...}}

Run the linter on the given files or directories:

ruff check --fix

Apply the suggested fixes, modifying the files in-place:

ruff check --watch

Run the linter and re-lint on change:

🔍

ruff format

View Details ▼

An extremely fast Python code formatter.
If no files or directories are specified, the current working directory is used by default.

ruff format {{path/to/file_or_directory1 path/to/file_or_directory2 ...}}

Format given files or directories in-place:

ruff format --check

Print which files would have been modified and return a non-zero exit code if there are files to reformat, and zero otherwise:

ruff format --diff

Print what changes would be made without modifying the files:

🔍

uv pip

View Details ▼

Provides pip-like commands for installing, uninstalling, and managing packages.

uv pip install {{package}}

Install a package:

uv pip install {{[-r|--requirements]}} {{requirements.txt}}

Install packages from a requirements file:

uv pip install {{package==1.2.3}}

Install a package with a specific version:

🔍

uv sync

View Details ▼

Update the project's environment to match the lockfile.

uv sync

Sync the project environment with the lockfile:

uv sync --all-extras

Sync and include all optional dependencies:

uv sync --extra {{extra_name}}

Sync with specific optional dependencies:

// repository documentation