Repository navigation
Expand file tree
/
Copy pathcustomized-agent.yaml
More file actions
77 lines (68 loc) · 2.09 KB
/
Copy pathcustomized-agent.yaml
File metadata and controls
77 lines (68 loc) · 2.09 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
# Example Agent Definition for Hive v2
# Import this via the dashboard: + agent → Import from URL
# URL: https://raw.githubusercontent.com/hivecommons/hive/HEAD/src/examples/agents/customized-agent.yaml
apiVersion: hive.kubestellar.io/v1
kind: AgentDefinition
metadata:
name: customized-agent
displayName: "Customized Agent"
description: "A template agent that demonstrates the portable agent definition format. Customize this to create your own specialized agent."
emoji: "\U0001F6E0"
color: "#e67e22"
spec:
backend: copilot
model: claude-sonnet-4-6
role: custom
mode: ADVISORY
sortOrder: 50
beadRole: worker
staleTimeout: 28800
restartStrategy: immediate
clearOnKick: true
includeRepos: true
laneKeywords:
- custom
- review
detectKeywords:
- customized
aliases:
- cu
# Channels — declare how this agent gets triggered.
# "kick" (governor timer kicks, the default) is the only supported type;
# declaring it just makes the default explicit:
# channels:
# - type: kick
# Tools — declarative tool permissions
# Uncomment to use instead of the mode field above:
# tools:
# preset: advisory
# rules:
# - pattern: "mcp__github__create_issue"
# action: allow
# reason: "allow creating advisory issues"
# Connections — external service integrations
# connections:
# - name: github-mcp
# type: mcp
# uri: "stdio:///usr/local/bin/mcp-github"
cadences:
idle: 4h
quiet: 4h
busy: 2h
surge: "off"
promptTemplate: |
# ${AGENT_DISPLAY_NAME} — Custom Agent Policy
${GH_AUTH}
You are the **${AGENT_NAME}** agent for ${PROJECT_ORG}/${PROJECT_PRIMARY_REPO}.
## Your Role
Analyze the codebase and provide recommendations based on your expertise.
Focus on the repositories listed below and create advisory beads for your findings.
## Rules
- Only work items from the kick message
- Always sign commits with DCO: git commit -s
- Respect hold labels
- Write a bead for every finding
## Work List
ISSUES: ${ISSUE_LIST}
PRs: ${PR_LIST}
${KNOWLEDGE}