delegation-coder-agent.yaml 993 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. id: delegation-coder-agent
  2. name: Coder Agent Delegation (Simple Task)
  3. description: |
  4. Tests that opencoder can delegate simple tasks to coder-agent.
  5. For simple, focused implementations, should use coder-agent to save time.
  6. Agent should:
  7. 1. Recognize simple task
  8. 2. Optionally delegate to subagents/code/coder-agent
  9. 3. OR implement directly (both acceptable for simple tasks)
  10. category: developer
  11. agent: opencoder
  12. model: anthropic/claude-sonnet-4-5
  13. prompts:
  14. - text: "Create a simple hello world function in utils/hello.js"
  15. expectContext: false
  16. - text: "approve"
  17. delayMs: 2000
  18. # Expected behavior
  19. behavior:
  20. # Either delegates OR implements directly (both OK for simple tasks)
  21. mustUseAnyOf: [[task], [write]]
  22. minToolCalls: 1
  23. # Should follow approval workflow
  24. expectedViolations:
  25. - rule: approval-gate
  26. shouldViolate: false
  27. severity: error
  28. approvalStrategy:
  29. type: auto-approve
  30. timeout: 90000
  31. tags:
  32. - delegation
  33. - coder-agent
  34. - simple-task