Skip to content

πŸ” Human-in-the-Loop smart contract auditing assistant powered by LlamaIndex + OpenAI β€” review, refine, repeat.

Notifications You must be signed in to change notification settings

beloveddie/smart-contract-audit-loop

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

5 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

🧠 Human-in-the-Loop Smart Contract Auditing Assistant

Built with πŸ’‘ LlamaIndex, πŸ€– OpenAI GPT-4o, and πŸ§‘β€πŸ’» Python
This project is a real-time, feedback-driven smart contract auditing assistantβ€”where the AI listens, the human directs, and the audit gets better with every loop.


🎯 What It Does

This tool lets you:

  • Input raw Solidity smart contract functions
  • Run an initial AI-powered security audit (summary, risks, suggestions)
  • Provide natural language feedback
  • Watch the AI regenerate the audit with your comments incorporated
  • Repeat until you approve βœ…

It's inspired by the LlamaIndex Choose Your Own Adventure Workflowβ€”but adapted for smart contract auditing workflows.


πŸ“Ή Demo

Watch the live demo on Loom:
▢️ Watch Demo


πŸ› οΈ Tech Stack

  • LlamaIndex Workflow API
  • OpenAI GPT-4o
  • Pydantic for audit structuring
  • Async Python workflow

πŸŒ€ Workflow Structure

graph TD
    A[Solidity Input] --> B[Initial LLM Audit]
    B --> C[Human Review / Feedback]
    C --> D[LLM Re-Audit w/ Feedback]
    D -->|Satisfied| E[Next Function]
    D -->|More Feedback| C
    E --> F[Final Audit Report]
Loading

πŸ™ Credits & Glory

Built by @bassmajor_ (Eddie Otudor) with help from the Holy Spirit & assistance from ChatGPT 🀝

β€œTo GOD be the glory.”

About

πŸ” Human-in-the-Loop smart contract auditing assistant powered by LlamaIndex + OpenAI β€” review, refine, repeat.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors