test-validation.sh 1.1 KB

12345678910111213141516171819202122232425262728293031323334
  1. #!/bin/bash
  2. echo "==================================="
  3. echo "Agent Validator Test Script"
  4. echo "==================================="
  5. echo ""
  6. echo "This script will help you test the agent validation plugin."
  7. echo ""
  8. echo "In your OpenCode CLI, run these commands one by one:"
  9. echo ""
  10. echo "1. debug_validator"
  11. echo " └─ Check if 'agent' field shows real agent names"
  12. echo ""
  13. echo "2. analyze_agent_usage"
  14. echo " └─ See which agents were active and their tool usage"
  15. echo ""
  16. echo "3. analyze_context_reads"
  17. echo " └─ View context files that were loaded"
  18. echo ""
  19. echo "4. validate_session"
  20. echo " └─ Full compliance and tracking report"
  21. echo ""
  22. echo "5. check_context_compliance"
  23. echo " └─ Verify context loading rules were followed"
  24. echo ""
  25. echo "==================================="
  26. echo ""
  27. echo "What to look for:"
  28. echo "✓ Agent names should NOT be 'unknown'"
  29. echo "✓ Should see 'openagent' and potentially 'general' subagent"
  30. echo "✓ Context file 'standards/code.md' should be tracked"
  31. echo "✓ Tools should be attributed to correct agents"
  32. echo ""