← 返回
未分类 Key

bud-code-review

AI-powered code review using Gemini. Reviews entire projects, catches bugs, suggests fixes, and helps debug.
AI-powered code review using Gemini. Reviews entire projects, catches bugs, suggests fixes, and helps debug.
yjkj999999
未分类 community v1.0.0 1 版本 100000 Key: 需要
★ 0
Stars
📥 17
下载
💾 0
安装
1
版本
#latest

概述

Code Review

AI-powered code review using Google's Gemini to analyze Python (and other) codebases.

Setup

  1. Get a Gemini API key from https://aistudio.google.com
  2. Add to TOOLS.md: GEMINI_API_KEY=your_key_here
  3. Or set as environment variable

Features

Reviews: Full project or single files — catches bugs, security issues, performance problems, race conditions

Fixes: Generates specific code fixes for critical issues found

Debug: Analyzes error descriptions + code to identify likely causes

Usage

review /path/to/project    → Review all Python files in directory
review /path/to/file.py    → Review single file
review <code_snippet>      → Review inline code

How it works

  1. Recursively finds all .py files in path
  2. Sends each file to Gemini with context-appropriate prompts
  3. Parallel execution for speed
  4. Compiles findings into prioritized report:
    • 🔴 Critical (security, race conditions, potential losses)
    • 🟡 Important (bugs, error handling, API issues)
    • 🟢 Suggestions (best practices, maintainability)

Focus areas by file type

FileFocus
-------------
Trading botsRace conditions, risk calculation errors, order logic
APIsAuth handling, retry logic, timeout behavior
State/DBAtomicity, corruption risk, concurrent access
ML/AILookahead bias, overfitting, data leakage

Example output

📊 Code Review: trading-bot/

🔴 CRITICAL
• scanner.py: Race condition in flip logic (close→entry not atomic)
• risk_manager.py: Stale order logic wrong for LIMIT orders

🟡 IMPORTANT  
• oanda_api.py: No retry on 429/5xx errors
• state.py: Non-atomic JSON writes

🟢 SUGGESTIONS
• Centralize API calls to reduce rate limit risk
• Add file locking for concurrent state access

Requirements

  • Python 3.8+
  • filelock package (for state files): pip install filelock
  • Gemini API key (free tier works)

版本历史

共 1 个版本

  • v1.0.0 从ClawHub迁移发布 当前
    2026-06-07 13:01 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

dev-programming

Mcporter

steipete
使用 mcporter CLI 直接列出、配置、认证及调用 MCP 服务器/工具(支持 HTTP 或 stdio),涵盖临时服务器、配置编辑及 CLI/类型生成功能。
★ 197 📥 68,005
design-media

agnes-image-gen

user_15292d5a
使用 Agnes AI 的图片生成模型生成图片,支持文生图(agnes-image-2.1-flash)和图生图(agnes-image-2.0-flash)。支持自定义 API Key,用户可使用自己的 Agnes Key。优化重点:降低
★ 1 📥 206
dev-programming

Github

steipete
使用 `gh` CLI 与 GitHub 交互,通过 `gh issue`、`gh pr`、`gh run` 和 `gh api` 管理议题、PR、CI 运行及高级查询。
★ 681 📥 329,785