- CLI with notification, activity, and escalation commands - SQLite database with schema - Datasette + static HTML dashboard - Systemd service for background operation - Install/uninstall scripts - SKILL.md and procedures for sub-agent usage
2.5 KiB
2.5 KiB
Argus Sub-Agent Procedures
Standard procedures for AI agents performing community management tasks.
Notification Triage
Input
- Pending notifications from
argus notif list --pending
Process
-
Classify each notification:
review-request: Someone requested your reviewmention: You were mentionedassign: Issue/PR was assigned to youcomment: New comment on subscribed threadci-failure: CI/CD failure notification
-
Prioritize:
- P1 (immediate): Security issues, prod failures
- P2 (same day): Review requests, direct mentions
- P3 (when possible): General comments, updates
-
Act:
- For each notification, either:
- Take action (review, respond, fix)
- Escalate (create escalation)
- Dismiss (with reason)
- For each notification, either:
Output
# After processing each notification
argus notif act <id> <action> "<brief detail>"
# Or dismiss
argus notif dismiss <id> "<reason>"
# Log activity
argus activity log <action> "<detail>" [--issue <id>]
Pull Request Review
Input
- PR notification or explicit request
Process
- Read PR: Check title, description, changes
- Assess scope: Is this a minor fix or major change?
- Review code: Look for issues, suggest improvements
- Leave feedback: Comment on GitHub
- Log action: Record what you did
Output
argus notif act <id> reviewed "Approved with comments"
argus activity log pr-review "Reviewed PR #123: Added caching layer"
Escalation Handling
When to Escalate
- Notification pending > 48 hours
- Security-related issues
- Unclear requirements needing human decision
- Permission/access issues
Process
# Create escalation
argus escalate create \
--category "stale-notification" \
--title "PR #123 needs maintainer input" \
--priority high
# After human acknowledges
argus escalate ack <id>
# After resolution
argus escalate resolve <id> \
--by "k9ert" \
--resolution "Merged after fixes"
Daily Routine
Suggested daily workflow for automated community management:
# Morning
argus notif pull
argus status
argus notif list --pending --limit 20
# Process notifications (triage, respond, escalate)
# ... actions ...
# End of day
argus notif audit --stale-hours 48
argus activity list --limit 10
Reporting
For summaries:
-- Via datasette or direct SQL
SELECT action, COUNT(*)
FROM activity_log
WHERE timestamp > date('now', '-7 days')
GROUP BY action;
Dashboard at http://localhost:8101 provides visual overview.