-
Notifications
You must be signed in to change notification settings - Fork 35
Expand file tree
/
Copy pathmain.py
More file actions
40 lines (30 loc) · 1.2 KB
/
main.py
File metadata and controls
40 lines (30 loc) · 1.2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
"""Bug Fixer Agent — resolves GitHub issues labeled 'bug'.
Usage:
uv run bug_fixer/main.py --issue https://github.com/aws/agentcore-cli/issues/123
uv run bug_fixer/main.py --issue https://github.com/aws/agentcore-cli/issues/123 --config config.yaml
"""
import argparse
import sys
from pathlib import Path
from orchestrations.fix_and_review.orchestrator import run_pipeline
PROMPTS_DIR = Path(__file__).resolve().parent / "prompts"
def main():
parser = argparse.ArgumentParser(description="Bug Fixer Agent")
parser.add_argument("--issue", required=True, help="GitHub issue URL")
parser.add_argument("--config", default="config.yaml", help="Config YAML path")
parser.add_argument("--aws-profile", help="Override AWS profile")
parser.add_argument("--harness-arn", help="Override harness ARN")
args = parser.parse_args()
overrides = {}
if args.aws_profile:
overrides["aws_profile"] = args.aws_profile
if args.harness_arn:
overrides["harness_arn"] = args.harness_arn
return run_pipeline(
issue_url=args.issue,
config_path=args.config,
prompts_dir=PROMPTS_DIR,
**overrides,
)
if __name__ == "__main__":
sys.exit(main())