Skip to content

feat: add autonomous bounty-hunting agent with multi-LLM orchestration (#861) [fj4WqyCCw3C5ShR1RfB7MoBPTpkRrBFYP1uT35g3MvT] - #1461

Open
waterWang wants to merge 2 commits into
SolFoundry:mainfrom
waterWang:feat/autonomous-bounty-hunting-agent-861
Open

feat: add autonomous bounty-hunting agent with multi-LLM orchestration (#861) [fj4WqyCCw3C5ShR1RfB7MoBPTpkRrBFYP1uT35g3MvT]#1461
waterWang wants to merge 2 commits into
SolFoundry:mainfrom
waterWang:feat/autonomous-bounty-hunting-agent-861

Conversation

@waterWang

Copy link
Copy Markdown

Summary

Implements a full autonomous multi-agent system that finds bounties, analyzes requirements, implements solutions, runs tests, and submits PRs without human intervention, as specified in the #861 T3 bounty.

Multi-LLM Agent Pipeline

Role Agent Description
Scanner BountyHunter.scan() Discovers unclaimed bounty issues via GitHub API
Planner PlannerAgent Analyzes requirements → structured implementation plan
Implementer ImplementerAgent Generates TypeScript code following SDK conventions
Verifier VerifierAgent Runs tests, type-checks, linting + static analysis (TODO/console/secret detection)
Reviewer ReviewerAgent Multi-LLM scoring (quality, correctness, security)
Submitter SubmitterAgent Creates PR with wallet address for bounty payment

New Files

  • sdk/src/agent/types.ts — Agent system type definitions (roles, plan, review, verification)
  • sdk/src/agent/agent.ts — Base LLM agent class with provider abstraction + mock mode
  • sdk/src/agent/planner.ts — Planning agent
  • sdk/src/agent/implementer.ts — Code generation agent
  • sdk/src/agent/verifier.ts — Test/verification agent with static analysis
  • sdk/src/agent/reviewer.ts — Multi-LLM review agent
  • sdk/src/agent/submitter.ts — PR submission agent
  • sdk/src/agent/orchestrator.tsBountyHunter orchestrator tying the pipeline together
  • sdk/src/agent/index.ts — Module exports
  • sdk/src/__tests__/agent.test.ts — 13 tests covering the full agent system

Configuration

import { BountyHunter } from '@solfoundry/sdk/agent';

const hunter = new BountyHunter({
  defaultProvider: { provider: 'openai', apiKey: 'sk-...', model: 'gpt-4o' },
  github: { owner: 'SolFoundry', repo: 'solfoundry', token: 'ghp_...' },
  walletAddress: 'fj4WqyCCw3C5ShR1RfB7MoBPTpkRrBFYP1uT35g3MvT',
});

const result = await hunter.hunt(861);
console.log(result.prUrl);

Testing

216 tests pass across all 11 SDK test files (including 13 new agent tests). Uses mock mode for deterministic LLM responses in tests.

Closes #861

waterWang and others added 2 commits August 1, 2026 23:08
SolFoundry#861)

Implements a full autonomous multi-agent system that:
- Scans for unclaimed bounties via GitHub API
- Plans implementation with LLM-powered analysis
- Generates code with proper TypeScript conventions
- Verifies solutions with test execution and static analysis
- Reviews with multi-LLM scoring (quality, correctness, security)
- Submits PRs with wallet address for bounty payment

Closes SolFoundry#861
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 T3: Full Autonomous Bounty-Hunting Agent

1 participant