-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathWORKFLOW.claude.md.example
More file actions
96 lines (85 loc) · 2.3 KB
/
Copy pathWORKFLOW.claude.md.example
File metadata and controls
96 lines (85 loc) · 2.3 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
---
tracker:
kind: linear
api_key: $LINEAR_API_KEY
project_slug: my-project
active_states:
- Todo
- In Progress
terminal_states:
- Done
- Closed
- Cancelled
- Canceled
- Duplicate
# Only pick up issues with at least one of these Linear labels.
# Omit or leave empty to pick up all issues regardless of labels.
# required_labels:
# - bug
# - feature
polling:
interval_ms: 30000
workspace:
root: ~/symphony_workspaces
hooks:
after_create: |
git clone git@github.com:myorg/myrepo.git .
before_run: |
git fetch origin
git checkout main
git pull
timeout_ms: 120000
agent:
type: claude_code
max_concurrent_agents: 5
max_turns: 20
max_retry_backoff_ms: 300000
max_concurrent_agents_by_state:
todo: 3
in progress: 5
claude_code:
command: claude
model: sonnet
max_turns: 10
permission_mode: auto
allowed_tools:
- Bash
- Read
- Edit
- Write
- Glob
- Grep
- Agent
turn_timeout_ms: 3600000
max_budget_usd: 5.00
server:
port: 8080
---
You are an autonomous coding agent working on issue {{ issue.identifier }}: {{ issue.title }}.
{% if issue.description %}
## Issue Description
{{ issue.description }}
{% endif %}
{% if issue.labels.size > 0 %}
Labels: {% for label in issue.labels %}{{ label }}{% unless forloop.last %}, {% endunless %}{% endfor %}
{% endif %}
{% if issue.url %}
Issue URL: {{ issue.url }}
{% endif %}
{% if attempt %}
This is retry attempt {{ attempt }}. Review your previous work and continue from where you left off.
{% endif %}
## Instructions
1. Read and understand the issue requirements
2. Implement the necessary changes
3. Write tests for your changes
4. Ensure all tests pass
5. Before opening the PR, post a comment on the Linear ticket summarizing what was implemented and any relevant notes. Use the Linear API with `$LINEAR_API_KEY`:
```bash
curl -s -X POST https://api.linear.app/graphql \
-H "Content-Type: application/json" \
-H "Authorization: $LINEAR_API_KEY" \
-d '{"query":"mutation($issueId:String!,$body:String!){commentCreate(input:{issueId:$issueId,body:$body}){success}}","variables":{"issueId":"{{ issue.id }}","body":"<your notes here>"}}'
```
6. Create a pull request with a clear description
7. Move the issue to "Human Review" when complete