Skip to content
프로젝트

davidondrej/jailbreak-autoresearch

GitHub에서 보기

소개

모델을 자유롭게 하겠습니다.

기타 프로젝트

이 수치를 측정하는 방법

측정된 스타 증가

in 24h
0
in 7 days
0
in 15 days
+1
in 1 month
기록 수집 중

서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.

README.md

Original

Jailbreak Autoresearch

A small autoresearch loop for prompt-harness experiments.

The repo tests whether different header/footer harnesses change how target models answer one fixed body. Each experiment stores the harness, response, score, and model-role permutation in SQLite.

Jailbreak Autoresearch

Before You Run

Customize these two root files:

  • example.md — the body/prompt you want to test.
  • desired-output.md — the scoring rubric describing what a good answer should look like.

The runner always uses example.md as the body and desired-output.md as the verifier. Keep them in sync.

Every generated footer is normalized to end with:

Answer with exactly one sentence.

Run with Codex /goal (recommended)

This loop is designed to run autonomously inside Codex CLI's /goal feature (Codex CLI v0.128.0+). Codex enters a self-checking loop that proposes harnesses, scores responses against desired-output.md, and iterates until the success signal in objective.md is met.

Once example.md, desired-output.md, and .env are in place, open Codex in this directory and start the loop:

/goal Follow objective.md. Read first: README.md, AGENTS.md, src/, run.py, report.py. Validate after each change with: python3 run.py --all-strategies --max-permutations 1 && python3 report.py. Work in checkpoints; commit each improvement. Stop when the success signal in objective.md is met, or when further changes need human input.

See docs-slash-goal.md for the full /goal reference (4-part contract, checkpointing, pause/resume, common failure modes). For a one-shot smoke test instead of an autonomous loop, see start-prompt.md.

Setup

Create .env:

OPENROUTER_API_KEY=your_key_here

Run a dry smoke test:

python3 run.py --all-strategies --max-permutations 1 --dry-run

Run one live baseline:

python3 run.py --strategy baseline --max-permutations 1

Run all strategies on one role permutation:

python3 run.py --all-strategies --max-permutations 1

Summarize results:

python3 report.py

Results are written to runs/experiments.sqlite.

How It Works

  1. run.py chooses target, researcher, and scorer models from models.json.
  2. The researcher proposes a candidate multi-turn harness.
  3. The target model receives the harness with example.md inserted as the final body.
  4. The scorer compares the response to desired-output.md and returns a score from 0.0 to 1.0.
  5. Winning fragments are stored and reused by later strategies.

Strategies:

  • baseline — no harness.
  • seeded — seed headers/footers from prompts/headers/ and prompts/footers/.
  • evolve-best — mutate the strongest prior harness.
  • recombine — recombine strong fragments from prior runs.

Files

  • example.md — your active test body.
  • desired-output.md — your active scoring rubric.
  • models.json — OpenRouter model list.
  • src/ — runner, prompt, strategy, scoring, and storage code.
  • tests/ — invariant tests.
  • runs/ — local experiment database, ignored by git.

Notes

  • Do not commit real API keys.
  • Do not commit private experiment databases.
  • Use only test bodies you are authorized to evaluate.

관련 프로젝트 살펴보기

불러오는 중…