StepToe Legal AI

Two Independent AI Agents for Legal Research and Law Monitoring

🚀 Try Interactive Demos

Experience our AI agents in action. Click any demo below to get started:

QA Agent Demo

Ask legal questions and receive comprehensive analysis with Bluebook citations. Try sample questions or enter your own.

Try QA Agent →

Up2Date Agent Demo

See how the system detects legal changes and generates comprehensive 5-section impact reports with update proposals.

Try Up2Date Agent →

LawGuide Browser

Browse all 15 legal entries across 5 practice areas. Search by statute, case name, or topic.

Browse LawGuide →

Project Overview

This demo system contains two independent AI agents built for StepToe, a law firm requiring intelligent legal research and automated law monitoring capabilities.

2
AI Agents
15
LawGuide Entries
10/10
Tests Passed
100%
Success Rate

🤖 QA Agent

Legal question-answering system with constitutional input/output classifiers

  • Blocks jailbreaks & prompt poisoning
  • Retrieves relevant LawGuide materials
  • Generates comprehensive legal analysis
  • Validates output quality with GPT-4o
  • Bluebook citation format
View Test Report

📊 Up2Date Agent

Automated law monitoring pipeline that detects changes and proposes LawGuide updates

  • Monitors legal sources for changes
  • Detects modifications via text diff
  • Assesses impact on LawGuide
  • Generates update proposals
  • Professional HTML reports
View Code

Technology Stack

Core Technologies

  • Python 3.10+
  • OpenAI API (GPT-4o, GPT-4o-mini)
  • Direct API calls (no frameworks)
  • Clean, auditable code

Key Features

  • Constitutional classifiers
  • TF-IDF search (no embeddings)
  • Structured JSON output
  • Professional HTML reports

Resources

GitHub Repository Documentation QA Test Report

Architecture

QA Agent Pipeline

User Question
  ↓
[INPUT CONSTITUTION] — Fast classifier (gpt-4o-mini)
  ↓ PASS / BLOCK
[RETRIEVER] — Search LawGuide
  ↓ Retrieved context
[QA ENGINE] — Generate answer (gpt-4o)
  ↓ Draft answer
[OUTPUT CONSTITUTION] — Quality validator
  ↓ PASS / REWRITE / BLOCK
Final Answer to User

Up2Date Agent Pipeline

[SOURCE MANAGER] — Fetch current law page
  ↓
[CHANGE DETECTOR] — Compare vs snapshot
  ↓ No change → stop / Change → continue
[LAWGUIDE SEARCHER] — Find affected entries
  ↓
[IMPACT ASSESSOR] — LLM: Update needed? (gpt-4o)
  ↓ No → log / Yes → continue
[PROPOSAL GENERATOR] — Draft update (gpt-4o)
  ↓
[NOTIFIER] — Generate HTML report
  ↓
[REPORT] — Saved to reports/ folder