AI Discovery Mode

Autonomous workflow learning powered by Gemini AI

What is Discovery Mode?

Discovery mode uses Google Gemini 2.0 to automatically learn and author workflows from natural language descriptions. Submit a task like "create an account on website.com" and Gemini will pilot a browser, analyze the process, and generate optimized HellScript code.

How It Works

1.
Task Submission

User provides natural language description and optional URL

2.
Gemini Analysis

AI pilots browser, examines page structure, captures screenshots

3.
HellScript Generation

Gemini authors optimized automation code

4.
Storage & Execution

Workflow saved to database for reuse

Example Usage

# Run discovery
hellcat run "test login flow on github.com" --follow

šŸ” Discovering workflow...
šŸ“ø Analyzing page structure...
āœļø  Authoring HellScript...
āœ… Workflow created: "GitHub Login Test" v1.0.0

Execution result:
{
  "success": true,
  "login_button_found": true,
  "form_fields": ["login", "password"]
}

Fuel consumed: 12,847 tokens ($0.08)

Gemini Models

Gemini 2.0 Pro

Complex workflows, multi-step reasoning, error recovery

Gemini 2.0 Flash

Fast analysis, simple tasks, quick iterations

Cost

Discovery mode typically consumes 10-50 credits (~$0.05-$0.25) per task. Once authored, the workflow can be reused unlimited times at standard execution cost (1-3 credits).

Error Recovery

If a workflow fails, Gemini can analyze the error state (screenshots, DOM, console logs) and suggest fixes or retry with an updated approach.

Local Testing

You can test discovery mode locally with the complete Hellcat stack:

# Start local environment
luther local start

# Run discovery
luther local discover "your task" --url https://example.com --follow

šŸ¤– AI-Powered Automation

Discovery mode is the core innovation of Hellcat. Instead of manually writing automation scripts, let Gemini learn the workflow for you.