Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/agent-change.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,4 @@ title: "[Agent] "

<!-- Compatibility, performance, security, and how to revert the change if needed. -->

<!-- A maintainer applies agent-candidate when the issue is ready. The agent opens a PR; merging is manual. -->
<!-- A maintainer applies agent-candidate when the issue is ready. The agent uses GLM-5.3 by default; apply agent-kimi first for harder or image-based work. The agent opens a PR; merging is manual. -->
10 changes: 9 additions & 1 deletion .github/workflows/agent-issue-trigger.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,16 @@ jobs:
issue_json="$(gh api "repos/opensensor/lightNVR/issues/${ISSUE_NUMBER}")"
issue_title="$(jq -r .title <<< "$issue_json")"
issue_body="$(jq -r '.body // "" | .[0:16000]' <<< "$issue_json")"
model="glm-5.3"
spec="automation/agent-harness/glm.yaml"
if jq -e '.labels | any(.name == "agent-kimi")' <<< "$issue_json" >/dev/null; then
model="kimi-k3"
spec="automation/agent-harness/kimi.yaml"
fi
echo "Launching issue #${ISSUE_NUMBER} with ${model}"
echo "Issue #${ISSUE_NUMBER}: ${model}" >> "$GITHUB_STEP_SUMMARY"
session_json="$(doctl harness-runtime create \
--spec automation/agent-harness/kimi.yaml \
--spec "$spec" \
--name "$session_name" \
--interactive=false -o json)"
session_id="$(jq -r '.session_id // empty' <<< "$session_json")"
Expand Down
13 changes: 13 additions & 0 deletions automation/agent-harness/glm.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
name: lightnvr-public-issue-glm
agent: opencode
size: mars-2vcpu-4gb
idle_timeout: 30m
repos:
- opensensor/lightNVR
env:
HARNESS_INFERENCE_MODEL: glm-5.3
secrets:
HARNESS_INFERENCE_API_KEY: ${HARNESS_INFERENCE_API_KEY}
GIT_DEPLOY_KEY_B64: ${GIT_DEPLOY_KEY_B64}
permissions:
default: allow
Loading