An open API service indexing awesome lists of open source software.

https://github.com/tintinweb/vscode-chonky

๐Ÿฃ Chonky - A Superhuman LLM Auditing Agent for Solidity
https://github.com/tintinweb/vscode-chonky

agentic-ai security solidity vscode-extension

Last synced: 3 months ago
JSON representation

๐Ÿฃ Chonky - A Superhuman LLM Auditing Agent for Solidity

Awesome Lists containing this project

README

          

# ๐Ÿฃ Chonky - A Superhuman LLM Auditing Agent for Solidity

Chonky is a VS Code extension that transforms GitHub Copilot into a specialized smart contract security auditing agent.

![Chonky Logo](https://github.com/tintinweb/vscode-chonky/raw/main/img/superchonky.png)

**Your AI-Powered Smart Contract Auditing Assistant**

[![Version](https://img.shields.io/badge/version-0.6.6-blue.svg)](https://github.com/tintinweb/vscode-chonky)
[![License](https://img.shields.io/badge/license-Proprietary-orange.svg)](LICENSE)

[![Sponsor](https://img.shields.io/badge/โ™ฅ๏ธ-Sponsor-red?style=for-the-badge&logo=github)](https://github.com/sponsors/tintinweb)

---

**VS Code Marketplace:**
- [ tintinweb.chonky ](https://marketplace.visualstudio.com/items?itemName=tintinweb.chonky)
- `#> ext tintinweb.chonky`

**TLDR;**
- Agent Augmented Auditing
- Automated Scoping
- Automated In-Depth Security Analysis
- Agentic Tooling for Deep Smart Contract Insights
- Extending Agent capabilities with General Purpose LLM Tooling
- Your Smart Contract Auditing Side-Kick!

**Extends GitHub/Copilot Model Capabilities**

## ๐Ÿš€ Quick Start Guide

image

### ๐Ÿ’ฌ Use Chonky's Tools in Copilots Agentic Mode
Open Copilot Chat โ†’ switch to `Agent` mode โ†’ Ask the agent

```typescript
// list availabler tools
List chonky available llm tools
```

### ๐Ÿ’ฌ Chat with Chonky
Use `Agent` mode for day-to-day use. The agent will decide when to invoke any of Chonky's tools. Use the **@chonky** chat participant for specialized operations.

### ๐Ÿ“Š Scope Solidity Projects
Generate comprehensive project scoping reports

### ๐Ÿค– Agent Automated Audits
Run comprehensive automated security analysis
```
**@chonky** #autoaudit Full security scan
```

### ๐ŸŽฏ Custom Chat Modes
Specialized chat modes for different audit phases

### ๐Ÿ” Discover Tools
Explore all available features for your tier

### ๐Ÿ“œ Agentic Auditor Prompt Template
Pre-prompt your action with our agentic security auditor template.

## โšก Early Access / Sponsors / Professional

### โ™ฅ๏ธ Sign In for Early Access Features (Sponsors)
[Sponsor](https://github.com/sponsors/tintinweb) and get Early Access to **experimental** future features ๐Ÿ˜Š. Ping me if you run into any problems ๐Ÿค—.

### โšกโšก Custom Agentic Workflows
Ready-to-go **Scoping**/**Auditing** workflows, easy to extend and customize.
```
**@chonky** ...
```

### โšกโšก Access to a comprehensive list of Security Primers
Get access to our curated list of Solidity security primers to augment and automate your security auditing.
```
**@chonky** ...
```

---

## ๐Ÿ†• What's New in v0.6.6

### โœจ Highlights
- ๐Ÿ”ง **Improved .chonky Directory Discovery**
- ๐Ÿ“ **Flexible File Placement Support**

### ๐Ÿš€ Improvements
- โ–ธ Fixed discovery of files in .chonky root directory (e.g., .chonky/xxx.workflow.md)
- โ–ธ Simplified validation logic for better file placement flexibility
- โ–ธ Enhanced workspace resource detection

---

## ๐Ÿ†• What's New in v0.6.5

### โœจ Highlights
- ๐Ÿ“ **Auto-Discovery of .chonky Workspace Folders**
- ๐ŸŽฏ **Repository Filtering with repositoryId**
- ๐Ÿ” **Pattern-Based Resource Discovery**
- ๐Ÿ“Š **Enhanced Discovery Output**

### ๐ŸŒŸ New Features
- โ–ธ Automatic workspace .chonky folder detection for project-specific security resources
- โ–ธ Repository filtering for targeted primer/workflow discovery
- โ–ธ Flexible file extension matching (*.primer.md, *.workflow.md, tools/*.yml)
- โ–ธ Repository information display in discovery results

### ๐Ÿš€ Improvements
- โ–ธ Better project-specific security resource management
- โ–ธ Enhanced filtering capabilities for large repositories
- โ–ธ More intuitive workspace-based resource organization

---

## ๐Ÿ†• What's New in v0.6.5

### โœจ Highlights
- ๐ŸŽจ **Enhanced Visual Code Annotation System**
- ๐ŸŽฏ **Accurate Line Targeting with Code Validation**
- ๐Ÿ›ก๏ธ **Advanced Security-Focused Decorations**
- โœจ **Custom Styling with Full Validation**

---

## ๐Ÿ†• What's New in v0.6.0

### โœจ Highlights
- ๐Ÿš€ **Advanced Security Analysis Features**
- ๐Ÿ›ก๏ธ **Enhanced AI-Powered Vulnerability Detection**
- โšก **Improved Tier-Based Feature Access**

### ๐ŸŒŸ New Features
- โ–ธ Security primer discovery and loading system
- โ–ธ Workflow repository with pre-built analysis templates
- โ–ธ Tool configuration repository access
- โ–ธ Interactive Solidity REPL (Chisel) integration
- โ–ธ Comprehensive differential analysis orchestrator
- โ–ธ AI-powered function similarity detection
- โ–ธ Advanced vulnerability database search
- โ–ธ MetaMask Snap security analysis
- โ–ธ Multi-language scoping (Go, Rust, Solidity)
- โ–ธ Etherscan and Sourcify integration
- โ–ธ Semgrep static analysis integration

### ๐Ÿš€ Improvements
- โ–ธ Faster contract analysis
- โ–ธ Improved tooltip experience
- โ–ธ Enhanced sponsorship integration

---

## ๐Ÿ› ๏ธ Feature Catalog

### ๐Ÿ†“ Base Features (21 tools)
*Available to everyone*

| Feature | Description |
|---------|-------------|
| ๐Ÿ”น **Chonky Chat Participant** | AI-powered **@chonky** chat participant for intelligent assistance |
| ๐Ÿ”น **Solidity Metrics & Scoping** | Comprehensive project analysis and scoping reports |
| ๐Ÿ”น **Contract Structure Analysis** | Deep dive into contract architecture and patterns |
| ๐Ÿ”น **Inheritance Tree Analysis** | Visualize and analyze inheritance relationships |
| ๐Ÿ”น **Contract Flattening** | Flatten complex contract hierarchies |
| ๐Ÿ”น **Access Control Analysis** | Identify permission patterns and vulnerabilities |
| ๐Ÿ”น **Storage Layout Analysis** | Optimize storage packing and layout |
| ๐Ÿ”น **Deployable Contract Discovery** | Find contracts ready for deployment |
| ๐Ÿ”น **Import Dependency Analysis** | Map external dependencies and risks |
| ๐Ÿ”น **External Calls Analysis** | Map and analyze all external interactions |
| ๐Ÿ”น **ERC Compliance Checker** | Verify token standard implementations |
| ๐Ÿ”น **Semgrep Security Analysis** | Advanced static analysis with custom rules |
| ๐Ÿ”น **Surya Visualization Suite** | Generate graphs and visual contract analysis |
| ๐Ÿ”น **Solhint Code Quality** | Automated code quality and style checks |
| ๐Ÿ”น **JSON Processing Tools** | Advanced JSON parsing and analysis |
| ๐Ÿ”น **DateTime Utilities** | Timestamp and date manipulation tools |
| ๐Ÿ”น **Memory Store** | Persistent data storage across sessions |
| ๐Ÿ”น **Available Tools Discovery** | Explore all available Chonky capabilities |
| ๐Ÿ”น **Workspace File Search** | Intelligent file discovery and search |
| ๐Ÿ”น **Workspace Integration** | Auto-discovery of .chonky folders with pattern-based resource matching |
| ๐Ÿ”น **Editor Decorator Tool** | Advanced visual code annotation with accurate line targeting and custom styling |
| ๐Ÿ”น **Diagnostic View Manager** | Read and create VS Code diagnostics with code snippet validation |

### โšก Early Access Features (12 tools)
*Available earlier to sponsors*

> ๐Ÿ’ก **Support development to get early access** - [Become a Sponsor](https://github.com/sponsors/tintinweb)

| Feature | Description |
|---------|-------------|
| ๐Ÿ”ธ **Custom Chat Modes** | Specialized chat modes for auditing workflows and scoping |
| ๐Ÿ”ธ **Solidity REPL (Chisel)** | Interactive Solidity execution environment |
| ๐Ÿ”ธ **Reentrancy Detection** | Comprehensive reentrancy vulnerability analysis |
| ๐Ÿ”ธ **Oracle Risk Analysis** | Identify oracle manipulation vulnerabilities |
| ๐Ÿ”ธ **Event Pattern Analysis** | Verify event emission completeness |
| ๐Ÿ”ธ **Function Similarity Detector** | AI-powered function pattern matching |
| ๐Ÿ”ธ **Inconsistency Reporter** | Find security pattern discrepancies |
| ๐Ÿ”ธ **Differential Analysis Orchestrator** | Comprehensive security pattern comparison |
| ๐Ÿ”ธ **Smart Contract Invariants** | Verify contract invariant properties |
| ๐Ÿ”ธ **Function Analysis Engine** | Deep function behavior and pattern analysis |
| ๐Ÿ”ธ **Contract Call Graph Generator** | Advanced interaction flow visualization |
| ๐Ÿ”ธ **Function Path Tracer** | Execution path analysis with wildcard selectors |

### โšก Professional Features (12 tools)
*For security teams and researchers*

> ๐Ÿš€ **Professional tools for advanced security research** - [Upgrade to Professional](https://github.com/sponsors/tintinweb)

| Feature | Description |
|---------|-------------|
| โšก **Security Primer Discovery** | Discover and search security analysis primers |
| โšก **Security Primer Loading** | Load comprehensive security primers for AI analysis |
| โšก **Workflow Repository Access** | Access pre-built security analysis workflows |
| โšก **Tool Repository Access** | Access security tool configurations and templates |
| โšก **Vulnerability Database Search** | Query Solodit for known vulnerabilities |
| โšก **Diligence Vulnerability Database** | Access ConsenSys Diligence research database |
| โšก **Go Codebase Scoping** | Security analysis for Go blockchain projects |
| โšก **Rust Codebase Scoping** | Security analysis for Rust blockchain projects |
| โšก **MetaMask Snap Analysis** | Comprehensive MetaMask Snap security review |
| โšก **Etherscan Integration** | On-chain contract verification and analysis |
| โšก **Sourcify Integration** | Source code verification and metadata analysis |
| โšก **Public Codebase Search** | Search GitHub for similar contract patterns |

---

## ๐Ÿ“– Documentation

### Getting Started
1. **Install the Extension**: Search for "Chonky" in VS Code Extensions
2. **Start Chatting**: Use `@chonky` in any chat window (`ask` Mode)
3. **Discover Tools**: Switch to Copilot `Agentic` Mode, ask about Chonky's available tools in natural language
4. **Scope Your Project**: In `Agentic` or Scoping Mode, ask to scope the project

### Chat Modes
Chonky supports specialized chat modes for different agentic workflows:
- `Scoping` - Project scoping and analysis
- `Audit` - Security auditing workflows

### Tool Categories
- **๐Ÿ”’ Security Analysis**: Access control, reentrancy, external calls, oracle analysis
- **๐Ÿ—๏ธ Contract Structure**: Structure analysis, imports, inheritance, flattening
- **๐Ÿ“Š Code Quality**: Events, ERC compliance, functions, invariants
- **๐ŸŒ External Services**: Etherscan, Sourcify, vulnerability databases
- **๐Ÿ› ๏ธ Utilities**: Surya graphs, Solhint, scoping, memory store

---

## ๐ŸŽฏ Use Cases

### Security Auditors
- Comprehensive vulnerability detection
- Automated pattern analysis
- AI-assisted code review
- Integration with external databases

### Development Teams
- Project scoping and metrics
- Code quality assurance
- ERC standard compliance
- Continuous security monitoring

### Security Researchers
- Advanced vulnerability research
- Pattern similarity detection
- Multi-language analysis
- Custom primer development

---

## ๐Ÿ”ง Installation

### VS Code Marketplace
1. Open VS Code
2. Go to Extensions (Ctrl+Shift+X)
3. Search for "Chonky"
4. Click Install

### Manual Installation
1. Download the latest `.vsix` file from releases
2. Open VS Code
3. Run `Extensions: Install from VSIX...`
4. Select the downloaded file

---

## ๐Ÿค Contributing

We welcome contributions! Here's how you can help:

1. **Report Bugs**: Open an issue with detailed information
2. **Feature Requests**: Suggest new features or improvements
3. **Documentation**: Help improve our docs
4. **Sponsorship**: Support development through GitHub Sponsors

### Development Setup

```bash
git clone https://github.com/tintinweb/vscode-chonky.git
cd chonky
npm install
npm run compile
```

---

## ๐Ÿ’ Support Development

Chonky is developed and maintained by passionate security researchers. Your support helps us:

- ๐Ÿ”ฌ **Research new vulnerabilities**
- ๐Ÿ› ๏ธ **Develop advanced tools**
- ๐Ÿ“š **Create educational content**
- ๐ŸŒ **Keep tools free for everyone**

[![Sponsor](https://img.shields.io/badge/โ™ฅ๏ธ-Sponsor-red?style=for-the-badge&logo=github)](https://github.com/sponsors/tintinweb)

### Sponsorship Tiers
- **๐Ÿ”น Base**: Core features for everyone
- **๐Ÿ”ธ Early Access (see [Sponsor page](https://github.com/sponsors/tintinweb))**: Early access to new features
- **โšก Professional (contact me)**: Advanced research tools

---

## ๐Ÿ“„ License & Credits

Created by [tintinweb](https://github.com/tintinweb) - Security researcher and smart contract auditor with 7+ years in Blockchain security.

---

## ๐Ÿ“ž Support & Community

- **GitHub Issues**: [Report bugs and request features](https://github.com/tintinweb/vscode-chonky/issues)
- **Twitter**: [@tintinweb](https://twitter.com/nicht_tintin)
- **Website**: [Visit our website](https://tintinweb.github.io/portfolio/)

---

**Made with โ™ฅ๏ธ by the security community**

[๐Ÿ  Home](https://github.com/tintinweb/vscode-chonky) โ€ข [๐Ÿ“– Docs](https://github.com/tintinweb/vscode-chonky/wiki) โ€ข [๐Ÿ’ Sponsor](https://github.com/sponsors/tintinweb)