Skip to content

Getting Started

github-actions[bot] edited this page May 21, 2026 · 5 revisions

Getting Started with Oracle

This guide takes you from zero to your first generated test. It should take about five minutes.

Prerequisites

You'll need:

  • Python 3.11 or later (python --version to check)
  • Node.js 18 or later (node --version to check)
  • An Anthropic API key (console.anthropic.com)
  • Git

Step 1: Install Oracle

git clone https://github.com/bri-stevenski/oracle-test-ai-agent.git
cd oracle-test-ai-agent
pip install -e .

Verify the install worked:

oracle version

You should see: Oracle AI v0.1 (MVP)

Step 2: Open Oracle in Claude Code

Oracle runs as a Claude Code plugin — no API key setup required. Install the plugin once:

claude plugin install .

Claude Code's own session provides the LLM. Your first /oracle:generate will analyse the target file and write tests automatically.

Step 3: Generate Your First Test

oracle generate "Test that GET /api/health returns 200"

Oracle will:

  1. Classify the intent (API test)
  2. Pick the best framework (pytest)
  3. Generate a test file
  4. Print the path to the file

The output looks something like:

Oracle Processing Request...

Test Type: api
Framework: pytest

Reasoning:
 - HTTP endpoint test maps to API category
 - Python ecosystem detected, pytest preferred

Output File:
tests/generated/api/test_api_health_get_200.py

Step 5: Look at the Generated File

cat tests/generated/api/test_api_health_get_200.py

Read through it. Check that:

  • The endpoint matches what you intended
  • The assertion matches the expected behavior
  • There are no placeholder values you need to fill in

Step 6: Run the Test

oracle generate "Test that GET /api/health returns 200" --run

Or, if you already have the file:

pytest tests/generated/api/test_api_health_get_200.py

What Happens to Generated Tests

Generated tests live in tests/generated/ — a scratch space that is not committed to git. They're yours to review and run freely.

Once a test passes review, you can promote it into the committed test suite. See the oracle-promote-test skill for the full promotion checklist.

Want a Preview Without Generating?

Use --recommend-only to see what Oracle would pick without calling the LLM (no API key needed):

oracle generate "load test the search endpoint" --recommend-only

Next Steps

Clone this wiki locally