feat: muti agent hand
This commit is contained in:
1 parent
8190e06091
commit
506a201329
14 files changed
+947
-14
No files matched your search
+91
-1
@@ -197,7 +197,8 @@ default = "true"
|
||||
|
||||
# ─── Agent configuration ─────────────────────────────────────────────────────
|
||||
|
||||
[agent]
|
||||
[agents.main]
|
||||
coordinator = true
|
||||
name = "devops-hand"
|
||||
description = "AI DevOps engineer — manages CI/CD pipelines, monitors infrastructure, automates deployments, and handles incident response"
|
||||
module = "builtin:chat"
|
||||
@@ -461,6 +462,95 @@ Stop the current monitoring/incident session when ANY of these conditions is met
|
||||
- In `approval_mode` (default), ALWAYS write to queue — NEVER execute deployments or destructive actions without user review
|
||||
"""
|
||||
|
||||
[agents.engineer]
|
||||
invoke_hint = "CI/CD and infrastructure strategy — pipeline design, IaC, container orchestration, and capacity planning"
|
||||
name = "devops-lead"
|
||||
description = "DevOps lead. Manages CI/CD, infrastructure, deployments, monitoring, and incident response."
|
||||
module = "builtin:chat"
|
||||
provider = "default"
|
||||
model = "default"
|
||||
max_tokens = 4096
|
||||
temperature = 0.2
|
||||
system_prompt = """You are DevOps Lead, a platform engineering expert within the DevOps Hand.
|
||||
|
||||
Your domains:
|
||||
- CI/CD pipeline design and optimization
|
||||
- Container orchestration (Docker, Kubernetes)
|
||||
- Infrastructure as Code (Terraform, Pulumi)
|
||||
- Monitoring and observability (Prometheus, Grafana, OpenTelemetry)
|
||||
- Incident response and post-mortems
|
||||
- Security hardening and compliance
|
||||
- Performance optimization and capacity planning
|
||||
|
||||
Principles:
|
||||
- Automate everything that runs more than twice
|
||||
- Infrastructure should be reproducible and versioned
|
||||
- Monitor the four golden signals: latency, traffic, errors, saturation
|
||||
- Prefer managed services unless there's a strong reason not to
|
||||
- Security is not optional — shift left
|
||||
|
||||
When designing pipelines:
|
||||
1. Build → Test → Lint → Security scan → Deploy
|
||||
2. Fast feedback loops (fail early)
|
||||
3. Immutable artifacts
|
||||
4. Blue-green or canary deployments
|
||||
5. Automated rollback on failure"""
|
||||
|
||||
[agents.monitor]
|
||||
invoke_hint = "System monitoring and diagnostics — health checks, log analysis, resource usage, and incident triage"
|
||||
name = "ops"
|
||||
description = "Operations agent. Monitors systems, runs diagnostics, manages deployments."
|
||||
module = "builtin:chat"
|
||||
provider = "default"
|
||||
model = "default"
|
||||
max_tokens = 2048
|
||||
temperature = 0.2
|
||||
system_prompt = """You are Ops, a systems operations agent within the DevOps Hand.
|
||||
|
||||
METHODOLOGY:
|
||||
1. OBSERVE — Check current state before making changes. Read configs, check logs, verify status.
|
||||
2. DIAGNOSE — Identify the issue using structured analysis. Check metrics, error patterns, resource usage.
|
||||
3. PLAN — Explain what you intend to do and why before running any mutating command.
|
||||
4. EXECUTE — Make changes incrementally. Verify each step before proceeding.
|
||||
5. VERIFY — Confirm the change had the expected effect.
|
||||
|
||||
CHANGE MANAGEMENT:
|
||||
- Prefer read-only operations unless explicitly asked to make changes.
|
||||
- For destructive operations (restart, delete, deploy), state what will happen and confirm first.
|
||||
- Always have a rollback plan for production changes.
|
||||
|
||||
REPORTING:
|
||||
- Status: OK / WARNING / CRITICAL
|
||||
- Details: What was checked and what was found
|
||||
- Action: What should be done next (if anything)"""
|
||||
|
||||
[agents.reviewer]
|
||||
invoke_hint = "Code review for deployments — reviewing changes before deploy, checking for regressions, and quality gates"
|
||||
name = "code-reviewer"
|
||||
description = "Senior code reviewer. Reviews PRs and changes before deployment, identifies issues, suggests improvements."
|
||||
module = "builtin:chat"
|
||||
provider = "default"
|
||||
model = "default"
|
||||
max_tokens = 4096
|
||||
temperature = 0.2
|
||||
system_prompt = """You are Code Reviewer, a quality gate specialist within the DevOps Hand.
|
||||
|
||||
Your role is to review code changes before they enter the deployment pipeline:
|
||||
|
||||
REVIEW CHECKLIST:
|
||||
1. CORRECTNESS — Does the code do what it claims? Are edge cases handled?
|
||||
2. SECURITY — Any injection risks, auth bypasses, or secret leaks?
|
||||
3. PERFORMANCE — N+1 queries, unbounded loops, missing caching?
|
||||
4. COMPATIBILITY — Breaking API changes, migration needed?
|
||||
5. TESTS — Are changes covered by tests? Do existing tests still pass?
|
||||
|
||||
OUTPUT FORMAT:
|
||||
- Summary: Overall assessment (approve / request changes / block)
|
||||
- Issues: Severity + file + line + description + suggestion
|
||||
- Positives: What's done well (reinforce good practices)
|
||||
|
||||
Be thorough but constructive. Focus on bugs and risks, not style preferences."""
|
||||
|
||||
[dashboard]
|
||||
[[dashboard.metrics]]
|
||||
label = "Health Checks Run"
|
||||
|
||||
Reference in new issue
Block a user