bounty-any-issue
by pjrpjr
README.md
# bounty-any-issue
Query live GitHub open USD-bounty issues, rank them by expected hourly value (`EV = payout_usd * win_prob / est_hours`), generate structured **root-cause dossiers**, and issue **SHA-256 diff verification receipts** before opening a PR.
- **Zero runtime dependencies** — pure Python 3 standard library only (`urllib`, `re`, `json`, `hashlib`, `ipaddress`).
- **Expected-value ranker** — parses exact USD payouts (`💎 $1,500`, `/bounty 750`, `[$300]`, `USD 400`), penalizes crowded/competing PR threads, rewards reproducible stack traces & named source files, and ranks strictly by `$/hr`.
- **Root-cause dossier engine** — extracts implicated source files, exception types, symbols, and repro commands into a structured JSON + Markdown dossier with a ready-to-paste PR template.
- **Diff verification receipts (`BountyProofReceipt/1.0`)** — checks unified diff hunk arithmetic, blocks leaked credentials/private keys, flags unsafe debug/shell patterns, and signs a canonical SHA-256 receipt.
- **Standalone + cloud integrated** — runs locally against GitHub REST API or offline fixtures, and integrates with [solvebounty.fastmesh.dev](https://solvebounty.fastmesh.dev).
## Quickstart
```bash
git clone https://github.com/pjrpjr/bounty-any-issue.git
cd bounty-any-issue
# Verify installation offline
python3 bounty_any_issue.py --self-check
# Scan live GitHub open USD bounties ranked by EV ($/hr)
python3 bounty_any_issue.py scan --lang python --min-usd 150 --limit 10
# Run 100% offline with built-in benchmark dataset
python3 bounty_any_issue.py scan --offline
# Generate a root-cause dossier for a GitHub issue (or offline fixture demo-101)
python3 bounty_any_issue.py dossier demo-101 --offline -o ./dossier-101
# Verify a git patch before opening a PR (validates hunks + secret scan + SHA-256 receipt)
git diff | python3 bounty_any_issue.py verify-diff - --issue https://github.com/owner/repo/issues/42
```
## MCP Client Configuration (Claude Desktop / Cursor / Windsurf)
```json
{
"mcpServers": {
"bounty-any-issue": {
"command": "python3",
"args": ["/path/to/bounty-any-issue/bounty_any_issue.py", "--stdio"],
"env": {
"GITHUB_TOKEN": "",
"FASTMESH_API_KEY": ""
}
}
}
}
```
### Exposed MCP Tools
- `scan_github_bounties` — Query open USD bounties and rank by `EV = payout_usd * win_prob / est_hours`.
- `build_root_cause_dossier` — Build a structured root-cause dossier, patch plan, and PR template for any issue.
- `verify_patch_diff` — Validate unified diff syntax/hunk counts, scan added lines for secrets, and output a SHA-256 `BountyProofReceipt`.
## Hosted Cloud Bounty Desk & FastMesh Prepaid Wallets
Accelerate bounty scanning, automated dossier generation, and 40+ verified-outcome developer tools (`$0` charge on empty/miss results):
- **Live Bounty Hunter & Patch Factory**: [https://solvebounty.fastmesh.dev](https://solvebounty.fastmesh.dev)
- **Live FastMesh Super-Catalog**: [https://super.fastmesh.dev](https://super.fastmesh.dev)
- **Prepaid Creem Wallet Packs** (one prepaid balance across every FastMesh endpoint, zero subscription lock-in):
- **Starter ($19)**: [Buy Starter Pack](https://www.creem.io/product/prod_5YTmBS1AJVStf0nTYjKaP2)
- **Pro ($79)**: [Buy Pro Pack](https://www.creem.io/product/prod_4TXd1wGn4p1yOlHy9YEfqe)
- **Scale ($249)**: [Buy Scale Pack](https://www.creem.io/product/prod_3eyoWKwE8jQm6LHceGFjKn)
## Development & Tests
```bash
python3 -m unittest discover -s tests -v
```
## License
MIT — see [LICENSE](./LICENSE).
This server cannot be deployed
Maintenance
ActivityMaintained
ResponsivenessNo recent community issues