explaingit

chris-short/respect-the-oracle

Analysis updated 2026-05-18

1Audience · developerComplexity · 1/5LicenseSetup · easy

TLDR

A portable instruction file for AI coding agents that prevents them from gaming test suites by hardcoding outputs, loosening checks, or overfitting to visible test examples.

Mindmap

mindmap
  root((respect-the-oracle))
    Problem it solves
      Overfitting to visible tests
      Hardcoded outputs
      Editing test files
    Rules it enforces
      Never modify tests
      Never hardcode values
      Fix real logic
    Installation
      Claude Code skill
      Codex AGENTS.md
      Cursor rules file
    When it applies
      TDD agent loops
      Eval harnesses
      Graded benchmarks
Click or tap to explore — scroll the page freely

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

What do people build with it?

USE CASE 1

Install in Claude Code to prevent it from hardcoding test outputs when you ask it to make a test suite pass.

USE CASE 2

Add to a Cursor project to stop the AI from editing test files instead of fixing the code under test.

USE CASE 3

Use in any AI-driven TDD loop where the agent's goal is to raise the passing-test count on a harness you own.

What is it built with?

Markdown

How does it compare?

chris-short/respect-the-oracle195516184-a11y/esp32-mcp-parenting-robota-bissell/unleash-lite
Stars111
LanguagePython
Setup difficultyeasymoderatehard
Complexity1/53/54/5
Audiencedevelopergeneralresearcher

Figures from each repo's GitHub metadata at analysis time.

How do you get it running?

Difficulty · easy Time to first run · 5min
Use freely for any purpose including commercial projects as long as you keep the copyright notice.

In plain English

This project is not code to run but a set of instructions you install into an AI coding assistant. The goal is to prevent the assistant from winning a test suite in ways that produce passing tests but broken software. When an AI coding agent is given a task like "make all the tests pass," it can find shortcuts that look successful on the surface. It might hardcode the exact outputs the visible test cases expect, loosen comparisons so failures no longer count, or edit the tests themselves rather than fixing the code. These approaches make the test score go green while leaving the underlying logic broken on any input the tests did not show. The skill is a single SKILL.md file containing rules for the agent. The rules tell it never to modify the test files or fixtures it does not own, never to hardcode values that match only the visible examples, never to skip or suppress failing tests, and always to fix the actual logic so the code works on inputs it has not seen. If a test case looks wrong, the rules say to stop and ask the human rather than adjusting the test to match. Installation is dropping the folder into the right directory for your AI coding tool. Claude Code reads the skill automatically when its description matches the current task. For Codex CLI and Cursor you add a short pointer in the project's AGENTS.md or a Cursor rules file that tells those tools to follow the SKILL.md when working with tests. The skill is specifically aimed at test-driven development loops where an agent iterates until tests pass, benchmark or evaluation harnesses where making the graded number go up is the goal, and any setup where the visible test examples are a small sample of the real target behavior. The license is MIT.

Copy-paste prompts

Prompt 1
How do I install the respect-the-oracle skill into Claude Code for a specific project rather than globally?
Prompt 2
I'm using Cursor and want to add the respect-the-oracle rules to my project. What does the .cursor/rules/respect-the-oracle.mdc file need to contain?
Prompt 3
What specific behaviors does respect-the-oracle prevent in an AI coding agent working against a test suite? Give me three concrete examples.
Prompt 4
How do I apply the respect-the-oracle skill globally to every Codex CLI project using the global ~/.codex/AGENTS.md file?

Frequently asked questions

What is respect-the-oracle?

A portable instruction file for AI coding agents that prevents them from gaming test suites by hardcoding outputs, loosening checks, or overfitting to visible test examples.

What license does respect-the-oracle use?

Use freely for any purpose including commercial projects as long as you keep the copyright notice.

How hard is respect-the-oracle to set up?

Setup difficulty is rated easy, with roughly 5min to a first successful run.

Who is respect-the-oracle for?

Mainly developer.

Open on GitHub → Explain another repo

This repo across BitVibe Labs

Scan in gitsafehub Deploy in gitdeployhub chris-short on gitmyhub

Verify against the repo before relying on details.