forked from tailcallhq/forgecode
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathforge.default.yaml
More file actions
102 lines (94 loc) · 2.79 KB
/
Copy pathforge.default.yaml
File metadata and controls
102 lines (94 loc) · 2.79 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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
commands:
- name: commit
description: Analyzes and organizes code changes into meaningful, well-structured commits
- name: pull-request
description: Analyzes code changes, generates comprehensive PR descriptions with linked issues.
variables:
mode: ACT
# Define model anchors with simpler, purpose-based names
models:
# Role-based model definitions - easy to swap implementation
- &advanced_model anthropic/claude-3.7-sonnet
- &standard_model anthropic/claude-3.5-haiku
- &fast_model google/gemini-2.0-flash-thinking-exp:free
agents:
- tool_supported: true
id: title_generation_worker
model: *standard_model
system_prompt: "{{> system-prompt-title-generator.hbs }}"
user_prompt: <technical_content>{{event.value}}</technical_content>
tools:
- tool_forge_event_dispatch
subscribe:
- user_task_init
- id: help_agent
model: *fast_model
system_prompt: "{{> system-prompt-help.hbs }}"
user_prompt: <query>{{event.value}}</query>
tools:
- tool_forge_fs_read
- tool_forge_fs_create
subscribe:
- user_help_query
- tool_supported: true
id: software-engineer
model: *advanced_model
system_prompt: "{{> system-prompt-engineer.hbs }}"
user_prompt: |-
<task>{{event.value}}</task>
<mode>{{variables.mode}}</mode>
ephemeral: false
tools:
- tool_forge_fs_read
- tool_forge_fs_create
- tool_forge_fs_remove
- tool_forge_fs_patch
- tool_forge_process_shell
- tool_forge_net_fetch
- tool_forge_fs_search
subscribe:
- user_task_init
- user_task_update
max_walker_depth: 4
- tool_supported: true
id: github-task-agent
model: *advanced_model
system_prompt: "{{> system-prompt-github-engineer.hbs }}"
user_prompt: |-
<event>{{event.name}}</event>
<value>{{event.value}}</value>
<mode>ACT</mode>
ephemeral: false
tools:
- tool_forge_fs_read
- tool_forge_fs_create
- tool_forge_fs_remove
- tool_forge_fs_patch
- tool_forge_process_shell
- tool_forge_net_fetch
- tool_forge_fs_search
- tool_forge_event_dispatch
subscribe:
- fix_issue
- update_pr
max_walker_depth: 4
- tool_supported: true
id: git-commit-worker
model: *advanced_model
ephemeral: true
system_prompt: "{{> system-prompt-git-commit.hbs }}"
user_prompt: "Go ahead and make the commit, {{event.value}}"
tools:
- tool_forge_process_shell
subscribe:
- commit
- tool_supported: true
id: github-pull-request-create-worker
model: *advanced_model
ephemeral: true
system_prompt: "{{> system-prompt-github-pull-request.hbs }}"
user_prompt: "Go ahead and create a PR"
tools:
- tool_forge_process_shell
subscribe:
- pull-request