- Create a
/files
folder at the root of this repository. - Create a
.env
file and add yourOPENAI_API_KEY
andANTHROPIC_API_KEY
keys which you can get from Anthropic's platform. - Set up a Python virtual environment:
- Run
python3 -m venv venvbot
. - Activate the virtual environment with
source venvbot/bin/activate
.
- Run
- Install dependencies:
- Run
pip install -r requirements.txt
.
- Run
- Copy directories and files for analysis into the
/docs
folder.⚠️ Important: Only include relevant and in-scope.sol
,.rs
,.move
,.ts
or.go
files. Test files and out of scope contracts should NOT be included.
- Start the bot:
- Run
make app
to start the analysis.
- Run
- Enter the project name, language and chosen LLM model for analysis when prompted (we currently recommend CLAUDE):
- Ensure you only type one word each time.
- Generated reports will be placed in
./reports
directory:- A summary including the estimated number of weeks and the overall complexity of the project.
- A complexity report with a file-by-file analysis, providing complexity scores and metrics for each file.
- A suggested audit plan.
-
Notifications
You must be signed in to change notification settings - Fork 0
hvbr1s/complexity-bot
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
A bot able to estimate the complexity of Solana programs and EVM smart contracts
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published