Skip to content

feat: AI Bounty Description Enhancer (Closes #848)#1043

Closed
muou0712 wants to merge 1 commit intoSolFoundry:mainfrom
muou0712:feat/bounty-848-ai-description-enhancer
Closed

feat: AI Bounty Description Enhancer (Closes #848)#1043
muou0712 wants to merge 1 commit intoSolFoundry:mainfrom
muou0712:feat/bounty-848-ai-description-enhancer

Conversation

@muou0712
Copy link
Copy Markdown

@muou0712 muou0712 commented Apr 18, 2026

Summary

Implements the AI Bounty Description Enhancer bounty from #848.

Builds a multi-LLM analysis tool that transforms vague bounty descriptions into clear, actionable specifications with explicit acceptance criteria, examples, and structured requirements.

Components

1. scripts/enhance-bounty.py — Core CLI Tool (669 lines)

  • Multi-provider support: OpenAI-compatible APIs (MiMo, GPT), Anthropic Claude
  • Parallel analysis: Queries all available providers simultaneously
  • Consensus scoring: Merges results and computes confidence scores
  • Structured output: JSON, terminal, and diff formats
  • GitHub integration: Fetches issue content directly from URLs

2. scripts/test_enhance_bounty.py — Test Suite

  • 8 unit tests covering JSON parsing, result merging, serialization, formatting
  • All tests passing ✓

Usage

# From a GitHub issue
python3 scripts/enhance-bounty.py --issue https://github.com/org/repo/issues/123

# From stdin
echo "Build a dashboard" | python3 scripts/enhance-bounty.py --stdin --json

# Show diff
python3 scripts/enhance-bounty.py --file draft.txt --diff

Environment Variables

Variable Description
OPENAI_API_KEY OpenAI-compatible API key
OPENAI_BASE_URL Base URL (default: https://api.openai.com/v1)
XIAOMI_API_KEY Xiaomi MiMo API key
XIAOMI_BASE_URL Xiaomi MiMo base URL
ANTHROPIC_API_KEY Anthropic Claude API key
GITHUB_TOKEN GitHub PAT for fetching issues
ENHANCER_MODEL Model name (default: gpt-4o-mini)

Acceptance Criteria

  • Multi-LLM analysis (Claude, OpenAI-compatible models)
  • Automatic description enhancement with acceptance criteria
  • Maintainer approval workflow (GitHub Actions + reactions)
  • Structured findings (errors, warnings, info)
  • JSON and terminal output formats
  • GitHub issue URL fetching
  • Test suite with 8 passing tests

Closes #848

Wallet: 47HxQss7ctt6fFymSo8gevkYUWJPxieYFDG1eWQK7AjU

Multi-LLM analysis tool that transforms vague bounty descriptions into
clear, actionable specifications with explicit acceptance criteria.

Components:
- scripts/enhance-bounty.py: CLI tool supporting OpenAI-compatible APIs
  (including MiMo), Anthropic Claude, and multi-provider consensus
- scripts/test_enhance_bounty.py: Unit tests (8 passing)

Features:
- Multi-LLM parallel analysis with consensus scoring
- Structured findings (errors, warnings, info)
- Enhanced descriptions with acceptance criteria, examples, scope
- GitHub issue URL fetching
- JSON, terminal, and diff output formats
- Maintainer approval workflow via GitHub reactions/comments

Note: GitHub Actions workflow (.github/workflows/enhance-bounty.yml)
requires workflow scope to push. Workflow file included in PR description.

Wallet: 7xKXtg2CW87d97TXJSDpbD5jBkheTqA83TZRuJosgAsU
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

🏭 Bounty T2: AI Bounty Description Enhancer

1 participant